configure 795 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111
  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_x11
  784. with_x
  785. enable_x11_shared
  786. enable_video_x11_xcursor
  787. enable_video_x11_xdbe
  788. enable_video_x11_xinerama
  789. enable_video_x11_xinput
  790. enable_video_x11_xrandr
  791. enable_video_x11_scrnsaver
  792. enable_video_x11_xshape
  793. enable_video_x11_vm
  794. enable_video_vivante
  795. enable_video_cocoa
  796. enable_video_directfb
  797. enable_directfb_shared
  798. enable_video_kmsdrm
  799. enable_kmsdrm_shared
  800. enable_video_dummy
  801. enable_video_opengl
  802. enable_video_opengles
  803. enable_video_opengles1
  804. enable_video_opengles2
  805. enable_libudev
  806. enable_dbus
  807. enable_ime
  808. enable_ibus
  809. enable_fcitx
  810. enable_input_tslib
  811. enable_pthreads
  812. enable_pthread_sem
  813. enable_directx
  814. enable_sdl_dlopen
  815. enable_clock_gettime
  816. enable_rpath
  817. enable_render_d3d
  818. '
  819. ac_precious_vars='build_alias
  820. host_alias
  821. target_alias
  822. CC
  823. CFLAGS
  824. LDFLAGS
  825. LIBS
  826. CPPFLAGS
  827. CPP
  828. CXX
  829. CXXFLAGS
  830. CCC
  831. CXXCPP
  832. XMKMF'
  833. # Initialize some variables set by options.
  834. ac_init_help=
  835. ac_init_version=false
  836. ac_unrecognized_opts=
  837. ac_unrecognized_sep=
  838. # The variables have the same names as the options, with
  839. # dashes changed to underlines.
  840. cache_file=/dev/null
  841. exec_prefix=NONE
  842. no_create=
  843. no_recursion=
  844. prefix=NONE
  845. program_prefix=NONE
  846. program_suffix=NONE
  847. program_transform_name=s,x,x,
  848. silent=
  849. site=
  850. srcdir=
  851. verbose=
  852. x_includes=NONE
  853. x_libraries=NONE
  854. # Installation directory options.
  855. # These are left unexpanded so users can "make install exec_prefix=/foo"
  856. # and all the variables that are supposed to be based on exec_prefix
  857. # by default will actually change.
  858. # Use braces instead of parens because sh, perl, etc. also accept them.
  859. # (The list follows the same order as the GNU Coding Standards.)
  860. bindir='${exec_prefix}/bin'
  861. sbindir='${exec_prefix}/sbin'
  862. libexecdir='${exec_prefix}/libexec'
  863. datarootdir='${prefix}/share'
  864. datadir='${datarootdir}'
  865. sysconfdir='${prefix}/etc'
  866. sharedstatedir='${prefix}/com'
  867. localstatedir='${prefix}/var'
  868. includedir='${prefix}/include'
  869. oldincludedir='/usr/include'
  870. docdir='${datarootdir}/doc/${PACKAGE}'
  871. infodir='${datarootdir}/info'
  872. htmldir='${docdir}'
  873. dvidir='${docdir}'
  874. pdfdir='${docdir}'
  875. psdir='${docdir}'
  876. libdir='${exec_prefix}/lib'
  877. localedir='${datarootdir}/locale'
  878. mandir='${datarootdir}/man'
  879. ac_prev=
  880. ac_dashdash=
  881. for ac_option
  882. do
  883. # If the previous option needs an argument, assign it.
  884. if test -n "$ac_prev"; then
  885. eval $ac_prev=\$ac_option
  886. ac_prev=
  887. continue
  888. fi
  889. case $ac_option in
  890. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  891. *=) ac_optarg= ;;
  892. *) ac_optarg=yes ;;
  893. esac
  894. # Accept the important Cygnus configure options, so we can diagnose typos.
  895. case $ac_dashdash$ac_option in
  896. --)
  897. ac_dashdash=yes ;;
  898. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  899. ac_prev=bindir ;;
  900. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  901. bindir=$ac_optarg ;;
  902. -build | --build | --buil | --bui | --bu)
  903. ac_prev=build_alias ;;
  904. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  905. build_alias=$ac_optarg ;;
  906. -cache-file | --cache-file | --cache-fil | --cache-fi \
  907. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  908. ac_prev=cache_file ;;
  909. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  910. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  911. cache_file=$ac_optarg ;;
  912. --config-cache | -C)
  913. cache_file=config.cache ;;
  914. -datadir | --datadir | --datadi | --datad)
  915. ac_prev=datadir ;;
  916. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  917. datadir=$ac_optarg ;;
  918. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  919. | --dataroo | --dataro | --datar)
  920. ac_prev=datarootdir ;;
  921. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  922. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  923. datarootdir=$ac_optarg ;;
  924. -disable-* | --disable-*)
  925. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  926. # Reject names that are not valid shell variable names.
  927. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  928. as_fn_error $? "invalid feature name: $ac_useropt"
  929. ac_useropt_orig=$ac_useropt
  930. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  931. case $ac_user_opts in
  932. *"
  933. "enable_$ac_useropt"
  934. "*) ;;
  935. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  936. ac_unrecognized_sep=', ';;
  937. esac
  938. eval enable_$ac_useropt=no ;;
  939. -docdir | --docdir | --docdi | --doc | --do)
  940. ac_prev=docdir ;;
  941. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  942. docdir=$ac_optarg ;;
  943. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  944. ac_prev=dvidir ;;
  945. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  946. dvidir=$ac_optarg ;;
  947. -enable-* | --enable-*)
  948. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  949. # Reject names that are not valid shell variable names.
  950. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  951. as_fn_error $? "invalid feature name: $ac_useropt"
  952. ac_useropt_orig=$ac_useropt
  953. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  954. case $ac_user_opts in
  955. *"
  956. "enable_$ac_useropt"
  957. "*) ;;
  958. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  959. ac_unrecognized_sep=', ';;
  960. esac
  961. eval enable_$ac_useropt=\$ac_optarg ;;
  962. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  963. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  964. | --exec | --exe | --ex)
  965. ac_prev=exec_prefix ;;
  966. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  967. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  968. | --exec=* | --exe=* | --ex=*)
  969. exec_prefix=$ac_optarg ;;
  970. -gas | --gas | --ga | --g)
  971. # Obsolete; use --with-gas.
  972. with_gas=yes ;;
  973. -help | --help | --hel | --he | -h)
  974. ac_init_help=long ;;
  975. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  976. ac_init_help=recursive ;;
  977. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  978. ac_init_help=short ;;
  979. -host | --host | --hos | --ho)
  980. ac_prev=host_alias ;;
  981. -host=* | --host=* | --hos=* | --ho=*)
  982. host_alias=$ac_optarg ;;
  983. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  984. ac_prev=htmldir ;;
  985. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  986. | --ht=*)
  987. htmldir=$ac_optarg ;;
  988. -includedir | --includedir | --includedi | --included | --include \
  989. | --includ | --inclu | --incl | --inc)
  990. ac_prev=includedir ;;
  991. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  992. | --includ=* | --inclu=* | --incl=* | --inc=*)
  993. includedir=$ac_optarg ;;
  994. -infodir | --infodir | --infodi | --infod | --info | --inf)
  995. ac_prev=infodir ;;
  996. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  997. infodir=$ac_optarg ;;
  998. -libdir | --libdir | --libdi | --libd)
  999. ac_prev=libdir ;;
  1000. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1001. libdir=$ac_optarg ;;
  1002. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1003. | --libexe | --libex | --libe)
  1004. ac_prev=libexecdir ;;
  1005. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1006. | --libexe=* | --libex=* | --libe=*)
  1007. libexecdir=$ac_optarg ;;
  1008. -localedir | --localedir | --localedi | --localed | --locale)
  1009. ac_prev=localedir ;;
  1010. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1011. localedir=$ac_optarg ;;
  1012. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1013. | --localstate | --localstat | --localsta | --localst | --locals)
  1014. ac_prev=localstatedir ;;
  1015. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1016. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1017. localstatedir=$ac_optarg ;;
  1018. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1019. ac_prev=mandir ;;
  1020. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1021. mandir=$ac_optarg ;;
  1022. -nfp | --nfp | --nf)
  1023. # Obsolete; use --without-fp.
  1024. with_fp=no ;;
  1025. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1026. | --no-cr | --no-c | -n)
  1027. no_create=yes ;;
  1028. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1029. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1030. no_recursion=yes ;;
  1031. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1032. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1033. | --oldin | --oldi | --old | --ol | --o)
  1034. ac_prev=oldincludedir ;;
  1035. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1036. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1037. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1038. oldincludedir=$ac_optarg ;;
  1039. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1040. ac_prev=prefix ;;
  1041. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1042. prefix=$ac_optarg ;;
  1043. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1044. | --program-pre | --program-pr | --program-p)
  1045. ac_prev=program_prefix ;;
  1046. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1047. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1048. program_prefix=$ac_optarg ;;
  1049. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1050. | --program-suf | --program-su | --program-s)
  1051. ac_prev=program_suffix ;;
  1052. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1053. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1054. program_suffix=$ac_optarg ;;
  1055. -program-transform-name | --program-transform-name \
  1056. | --program-transform-nam | --program-transform-na \
  1057. | --program-transform-n | --program-transform- \
  1058. | --program-transform | --program-transfor \
  1059. | --program-transfo | --program-transf \
  1060. | --program-trans | --program-tran \
  1061. | --progr-tra | --program-tr | --program-t)
  1062. ac_prev=program_transform_name ;;
  1063. -program-transform-name=* | --program-transform-name=* \
  1064. | --program-transform-nam=* | --program-transform-na=* \
  1065. | --program-transform-n=* | --program-transform-=* \
  1066. | --program-transform=* | --program-transfor=* \
  1067. | --program-transfo=* | --program-transf=* \
  1068. | --program-trans=* | --program-tran=* \
  1069. | --progr-tra=* | --program-tr=* | --program-t=*)
  1070. program_transform_name=$ac_optarg ;;
  1071. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1072. ac_prev=pdfdir ;;
  1073. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1074. pdfdir=$ac_optarg ;;
  1075. -psdir | --psdir | --psdi | --psd | --ps)
  1076. ac_prev=psdir ;;
  1077. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1078. psdir=$ac_optarg ;;
  1079. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1080. | -silent | --silent | --silen | --sile | --sil)
  1081. silent=yes ;;
  1082. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1083. ac_prev=sbindir ;;
  1084. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1085. | --sbi=* | --sb=*)
  1086. sbindir=$ac_optarg ;;
  1087. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1088. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1089. | --sharedst | --shareds | --shared | --share | --shar \
  1090. | --sha | --sh)
  1091. ac_prev=sharedstatedir ;;
  1092. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1093. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1094. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1095. | --sha=* | --sh=*)
  1096. sharedstatedir=$ac_optarg ;;
  1097. -site | --site | --sit)
  1098. ac_prev=site ;;
  1099. -site=* | --site=* | --sit=*)
  1100. site=$ac_optarg ;;
  1101. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1102. ac_prev=srcdir ;;
  1103. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1104. srcdir=$ac_optarg ;;
  1105. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1106. | --syscon | --sysco | --sysc | --sys | --sy)
  1107. ac_prev=sysconfdir ;;
  1108. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1109. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1110. sysconfdir=$ac_optarg ;;
  1111. -target | --target | --targe | --targ | --tar | --ta | --t)
  1112. ac_prev=target_alias ;;
  1113. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1114. target_alias=$ac_optarg ;;
  1115. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1116. verbose=yes ;;
  1117. -version | --version | --versio | --versi | --vers | -V)
  1118. ac_init_version=: ;;
  1119. -with-* | --with-*)
  1120. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1121. # Reject names that are not valid shell variable names.
  1122. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1123. as_fn_error $? "invalid package name: $ac_useropt"
  1124. ac_useropt_orig=$ac_useropt
  1125. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1126. case $ac_user_opts in
  1127. *"
  1128. "with_$ac_useropt"
  1129. "*) ;;
  1130. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1131. ac_unrecognized_sep=', ';;
  1132. esac
  1133. eval with_$ac_useropt=\$ac_optarg ;;
  1134. -without-* | --without-*)
  1135. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1136. # Reject names that are not valid shell variable names.
  1137. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1138. as_fn_error $? "invalid package name: $ac_useropt"
  1139. ac_useropt_orig=$ac_useropt
  1140. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1141. case $ac_user_opts in
  1142. *"
  1143. "with_$ac_useropt"
  1144. "*) ;;
  1145. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1146. ac_unrecognized_sep=', ';;
  1147. esac
  1148. eval with_$ac_useropt=no ;;
  1149. --x)
  1150. # Obsolete; use --with-x.
  1151. with_x=yes ;;
  1152. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1153. | --x-incl | --x-inc | --x-in | --x-i)
  1154. ac_prev=x_includes ;;
  1155. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1156. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1157. x_includes=$ac_optarg ;;
  1158. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1159. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1160. ac_prev=x_libraries ;;
  1161. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1162. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1163. x_libraries=$ac_optarg ;;
  1164. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1165. Try \`$0 --help' for more information"
  1166. ;;
  1167. *=*)
  1168. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1169. # Reject names that are not valid shell variable names.
  1170. case $ac_envvar in #(
  1171. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1172. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1173. esac
  1174. eval $ac_envvar=\$ac_optarg
  1175. export $ac_envvar ;;
  1176. *)
  1177. # FIXME: should be removed in autoconf 3.0.
  1178. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1179. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1180. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1181. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1182. ;;
  1183. esac
  1184. done
  1185. if test -n "$ac_prev"; then
  1186. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1187. as_fn_error $? "missing argument to $ac_option"
  1188. fi
  1189. if test -n "$ac_unrecognized_opts"; then
  1190. case $enable_option_checking in
  1191. no) ;;
  1192. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1193. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1194. esac
  1195. fi
  1196. # Check all directory arguments for consistency.
  1197. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1198. datadir sysconfdir sharedstatedir localstatedir includedir \
  1199. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1200. libdir localedir mandir
  1201. do
  1202. eval ac_val=\$$ac_var
  1203. # Remove trailing slashes.
  1204. case $ac_val in
  1205. */ )
  1206. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1207. eval $ac_var=\$ac_val;;
  1208. esac
  1209. # Be sure to have absolute directory names.
  1210. case $ac_val in
  1211. [\\/$]* | ?:[\\/]* ) continue;;
  1212. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1213. esac
  1214. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1215. done
  1216. # There might be people who depend on the old broken behavior: `$host'
  1217. # used to hold the argument of --host etc.
  1218. # FIXME: To remove some day.
  1219. build=$build_alias
  1220. host=$host_alias
  1221. target=$target_alias
  1222. # FIXME: To remove some day.
  1223. if test "x$host_alias" != x; then
  1224. if test "x$build_alias" = x; then
  1225. cross_compiling=maybe
  1226. elif test "x$build_alias" != "x$host_alias"; then
  1227. cross_compiling=yes
  1228. fi
  1229. fi
  1230. ac_tool_prefix=
  1231. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1232. test "$silent" = yes && exec 6>/dev/null
  1233. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1234. ac_ls_di=`ls -di .` &&
  1235. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1236. as_fn_error $? "working directory cannot be determined"
  1237. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1238. as_fn_error $? "pwd does not report name of working directory"
  1239. # Find the source files, if location was not specified.
  1240. if test -z "$srcdir"; then
  1241. ac_srcdir_defaulted=yes
  1242. # Try the directory containing this script, then the parent directory.
  1243. ac_confdir=`$as_dirname -- "$as_myself" ||
  1244. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1245. X"$as_myself" : 'X\(//\)[^/]' \| \
  1246. X"$as_myself" : 'X\(//\)$' \| \
  1247. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1248. $as_echo X"$as_myself" |
  1249. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1250. s//\1/
  1251. q
  1252. }
  1253. /^X\(\/\/\)[^/].*/{
  1254. s//\1/
  1255. q
  1256. }
  1257. /^X\(\/\/\)$/{
  1258. s//\1/
  1259. q
  1260. }
  1261. /^X\(\/\).*/{
  1262. s//\1/
  1263. q
  1264. }
  1265. s/.*/./; q'`
  1266. srcdir=$ac_confdir
  1267. if test ! -r "$srcdir/$ac_unique_file"; then
  1268. srcdir=..
  1269. fi
  1270. else
  1271. ac_srcdir_defaulted=no
  1272. fi
  1273. if test ! -r "$srcdir/$ac_unique_file"; then
  1274. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1275. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1276. fi
  1277. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1278. ac_abs_confdir=`(
  1279. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1280. pwd)`
  1281. # When building in place, set srcdir=.
  1282. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1283. srcdir=.
  1284. fi
  1285. # Remove unnecessary trailing slashes from srcdir.
  1286. # Double slashes in file names in object file debugging info
  1287. # mess up M-x gdb in Emacs.
  1288. case $srcdir in
  1289. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1290. esac
  1291. for ac_var in $ac_precious_vars; do
  1292. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1293. eval ac_env_${ac_var}_value=\$${ac_var}
  1294. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1295. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1296. done
  1297. #
  1298. # Report the --help message.
  1299. #
  1300. if test "$ac_init_help" = "long"; then
  1301. # Omit some internal or obsolete options to make the list less imposing.
  1302. # This message is too long to be a string in the A/UX 3.1 sh.
  1303. cat <<_ACEOF
  1304. \`configure' configures this package to adapt to many kinds of systems.
  1305. Usage: $0 [OPTION]... [VAR=VALUE]...
  1306. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1307. VAR=VALUE. See below for descriptions of some of the useful variables.
  1308. Defaults for the options are specified in brackets.
  1309. Configuration:
  1310. -h, --help display this help and exit
  1311. --help=short display options specific to this package
  1312. --help=recursive display the short help of all the included packages
  1313. -V, --version display version information and exit
  1314. -q, --quiet, --silent do not print \`checking ...' messages
  1315. --cache-file=FILE cache test results in FILE [disabled]
  1316. -C, --config-cache alias for \`--cache-file=config.cache'
  1317. -n, --no-create do not create output files
  1318. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1319. Installation directories:
  1320. --prefix=PREFIX install architecture-independent files in PREFIX
  1321. [$ac_default_prefix]
  1322. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1323. [PREFIX]
  1324. By default, \`make install' will install all the files in
  1325. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1326. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1327. for instance \`--prefix=\$HOME'.
  1328. For better control, use the options below.
  1329. Fine tuning of the installation directories:
  1330. --bindir=DIR user executables [EPREFIX/bin]
  1331. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1332. --libexecdir=DIR program executables [EPREFIX/libexec]
  1333. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1334. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1335. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1336. --libdir=DIR object code libraries [EPREFIX/lib]
  1337. --includedir=DIR C header files [PREFIX/include]
  1338. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1339. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1340. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1341. --infodir=DIR info documentation [DATAROOTDIR/info]
  1342. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1343. --mandir=DIR man documentation [DATAROOTDIR/man]
  1344. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1345. --htmldir=DIR html documentation [DOCDIR]
  1346. --dvidir=DIR dvi documentation [DOCDIR]
  1347. --pdfdir=DIR pdf documentation [DOCDIR]
  1348. --psdir=DIR ps documentation [DOCDIR]
  1349. _ACEOF
  1350. cat <<\_ACEOF
  1351. X features:
  1352. --x-includes=DIR X include files are in DIR
  1353. --x-libraries=DIR X library files are in DIR
  1354. System types:
  1355. --build=BUILD configure for building on BUILD [guessed]
  1356. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1357. _ACEOF
  1358. fi
  1359. if test -n "$ac_init_help"; then
  1360. cat <<\_ACEOF
  1361. Optional Features:
  1362. --disable-option-checking ignore unrecognized --enable/--with options
  1363. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1364. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1365. --enable-shared[=PKGS] build shared libraries [default=yes]
  1366. --enable-static[=PKGS] build static libraries [default=yes]
  1367. --enable-fast-install[=PKGS]
  1368. optimize for fast installation [default=yes]
  1369. --disable-libtool-lock avoid locking (might break parallel builds)
  1370. --enable-assertions Enable internal sanity checks
  1371. (auto/disabled/release/enabled/paranoid)
  1372. [[default=auto]]
  1373. --enable-dependency-tracking
  1374. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1375. --enable-libc Use the system C library [[default=yes]]
  1376. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1377. --enable-atomic Enable the atomic operations subsystem
  1378. [[default=yes]]
  1379. --enable-audio Enable the audio subsystem [[default=yes]]
  1380. --enable-video Enable the video subsystem [[default=yes]]
  1381. --enable-render Enable the render subsystem [[default=yes]]
  1382. --enable-events Enable the events subsystem [[default=yes]]
  1383. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1384. --enable-haptic Enable the haptic (force feedback) subsystem
  1385. [[default=yes]]
  1386. --enable-power Enable the power subsystem [[default=yes]]
  1387. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1388. --enable-threads Enable the threading subsystem [[default=yes]]
  1389. --enable-timers Enable the timer subsystem [[default=yes]]
  1390. --enable-file Enable the file subsystem [[default=yes]]
  1391. --enable-loadso Enable the shared object loading subsystem
  1392. [[default=yes]]
  1393. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1394. --enable-assembly Enable assembly routines [[default=yes]]
  1395. --enable-ssemath Allow GCC to use SSE floating point math
  1396. [[default=maybe]]
  1397. --enable-mmx use MMX assembly routines [[default=yes]]
  1398. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1399. --enable-sse use SSE assembly routines [[default=yes]]
  1400. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1401. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1402. --enable-altivec use Altivec assembly routines [[default=yes]]
  1403. --enable-oss support the OSS audio API [[default=maybe]]
  1404. --enable-alsa support the ALSA audio API [[default=yes]]
  1405. --disable-alsatest Do not try to compile and run a test Alsa program
  1406. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1407. --enable-jack use JACK audio [[default=yes]]
  1408. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1409. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1410. --disable-esdtest Do not try to compile and run a test ESD program
  1411. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1412. --enable-pulseaudio use PulseAudio [[default=yes]]
  1413. --enable-pulseaudio-shared
  1414. dynamically load PulseAudio support [[default=yes]]
  1415. --enable-arts support the Analog Real Time Synthesizer
  1416. [[default=yes]]
  1417. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1418. --enable-nas support the NAS audio API [[default=yes]]
  1419. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1420. --enable-sndio support the sndio audio API [[default=yes]]
  1421. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1422. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1423. --enable-fusionsound-shared
  1424. dynamically load fusionsound audio support
  1425. [[default=yes]]
  1426. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1427. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1428. --enable-libsamplerate use libsamplerate for audio rate conversion
  1429. [[default=yes]]
  1430. --enable-libsamplerate-shared
  1431. dynamically load libsamplerate [[default=yes]]
  1432. --enable-video-wayland use Wayland video driver [[default=yes]]
  1433. --enable-video-wayland-qt-touch
  1434. QtWayland server support for Wayland video driver
  1435. [[default=yes]]
  1436. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1437. --enable-video-mir use Mir video driver [[default=yes]]
  1438. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1439. --enable-video-x11 use X11 video driver [[default=yes]]
  1440. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1441. --enable-video-x11-xcursor
  1442. enable X11 Xcursor support [[default=yes]]
  1443. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1444. --enable-video-x11-xinerama
  1445. enable X11 Xinerama support [[default=yes]]
  1446. --enable-video-x11-xinput
  1447. enable X11 XInput extension for manymouse, tablets,
  1448. etc [[default=yes]]
  1449. --enable-video-x11-xrandr
  1450. enable X11 Xrandr extension for fullscreen
  1451. [[default=yes]]
  1452. --enable-video-x11-scrnsaver
  1453. enable X11 screensaver extension [[default=yes]]
  1454. --enable-video-x11-xshape
  1455. enable X11 XShape support [[default=yes]]
  1456. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1457. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1458. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1459. --enable-video-directfb use DirectFB video driver [[default=no]]
  1460. --enable-directfb-shared
  1461. dynamically load directfb support [[default=yes]]
  1462. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1463. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1464. --enable-video-dummy use dummy video driver [[default=yes]]
  1465. --enable-video-opengl include OpenGL support [[default=yes]]
  1466. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1467. --enable-video-opengles1
  1468. include OpenGL ES 1.1 support [[default=yes]]
  1469. --enable-video-opengles2
  1470. include OpenGL ES 2.0 support [[default=yes]]
  1471. --enable-libudev enable libudev support [[default=yes]]
  1472. --enable-dbus enable D-Bus support [[default=yes]]
  1473. --enable-ime enable IME support [[default=yes]]
  1474. --enable-ibus enable IBus support [[default=yes]]
  1475. --enable-fcitx enable fcitx support [[default=yes]]
  1476. --enable-input-tslib use the Touchscreen library for input
  1477. [[default=yes]]
  1478. --enable-pthreads use POSIX threads for multi-threading
  1479. [[default=yes]]
  1480. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1481. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1482. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1483. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1484. UNIX [[default=yes]]
  1485. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1486. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1487. Optional Packages:
  1488. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1489. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1490. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1491. both]
  1492. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1493. --with-sysroot=DIR Search for dependent libraries within DIR
  1494. (or the compiler's sysroot if not specified).
  1495. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1496. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1497. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1498. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1499. --with-x use the X Window System
  1500. Some influential environment variables:
  1501. CC C compiler command
  1502. CFLAGS C compiler flags
  1503. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1504. nonstandard directory <lib dir>
  1505. LIBS libraries to pass to the linker, e.g. -l<library>
  1506. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1507. you have headers in a nonstandard directory <include dir>
  1508. CPP C preprocessor
  1509. CXX C++ compiler command
  1510. CXXFLAGS C++ compiler flags
  1511. CXXCPP C++ preprocessor
  1512. XMKMF Path to xmkmf, Makefile generator for X Window System
  1513. Use these variables to override the choices made by `configure' or to help
  1514. it to find libraries and programs with nonstandard names/locations.
  1515. Report bugs to the package provider.
  1516. _ACEOF
  1517. ac_status=$?
  1518. fi
  1519. if test "$ac_init_help" = "recursive"; then
  1520. # If there are subdirs, report their specific --help.
  1521. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1522. test -d "$ac_dir" ||
  1523. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1524. continue
  1525. ac_builddir=.
  1526. case "$ac_dir" in
  1527. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1528. *)
  1529. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1530. # A ".." for each directory in $ac_dir_suffix.
  1531. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1532. case $ac_top_builddir_sub in
  1533. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1534. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1535. esac ;;
  1536. esac
  1537. ac_abs_top_builddir=$ac_pwd
  1538. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1539. # for backward compatibility:
  1540. ac_top_builddir=$ac_top_build_prefix
  1541. case $srcdir in
  1542. .) # We are building in place.
  1543. ac_srcdir=.
  1544. ac_top_srcdir=$ac_top_builddir_sub
  1545. ac_abs_top_srcdir=$ac_pwd ;;
  1546. [\\/]* | ?:[\\/]* ) # Absolute name.
  1547. ac_srcdir=$srcdir$ac_dir_suffix;
  1548. ac_top_srcdir=$srcdir
  1549. ac_abs_top_srcdir=$srcdir ;;
  1550. *) # Relative name.
  1551. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1552. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1553. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1554. esac
  1555. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1556. cd "$ac_dir" || { ac_status=$?; continue; }
  1557. # Check for guested configure.
  1558. if test -f "$ac_srcdir/configure.gnu"; then
  1559. echo &&
  1560. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1561. elif test -f "$ac_srcdir/configure"; then
  1562. echo &&
  1563. $SHELL "$ac_srcdir/configure" --help=recursive
  1564. else
  1565. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1566. fi || ac_status=$?
  1567. cd "$ac_pwd" || { ac_status=$?; break; }
  1568. done
  1569. fi
  1570. test -n "$ac_init_help" && exit $ac_status
  1571. if $ac_init_version; then
  1572. cat <<\_ACEOF
  1573. configure
  1574. generated by GNU Autoconf 2.69
  1575. Copyright (C) 2012 Free Software Foundation, Inc.
  1576. This configure script is free software; the Free Software Foundation
  1577. gives unlimited permission to copy, distribute and modify it.
  1578. _ACEOF
  1579. exit
  1580. fi
  1581. ## ------------------------ ##
  1582. ## Autoconf initialization. ##
  1583. ## ------------------------ ##
  1584. # ac_fn_c_try_compile LINENO
  1585. # --------------------------
  1586. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1587. ac_fn_c_try_compile ()
  1588. {
  1589. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1590. rm -f conftest.$ac_objext
  1591. if { { ac_try="$ac_compile"
  1592. case "(($ac_try" in
  1593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1594. *) ac_try_echo=$ac_try;;
  1595. esac
  1596. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1597. $as_echo "$ac_try_echo"; } >&5
  1598. (eval "$ac_compile") 2>conftest.err
  1599. ac_status=$?
  1600. if test -s conftest.err; then
  1601. grep -v '^ *+' conftest.err >conftest.er1
  1602. cat conftest.er1 >&5
  1603. mv -f conftest.er1 conftest.err
  1604. fi
  1605. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1606. test $ac_status = 0; } && {
  1607. test -z "$ac_c_werror_flag" ||
  1608. test ! -s conftest.err
  1609. } && test -s conftest.$ac_objext; then :
  1610. ac_retval=0
  1611. else
  1612. $as_echo "$as_me: failed program was:" >&5
  1613. sed 's/^/| /' conftest.$ac_ext >&5
  1614. ac_retval=1
  1615. fi
  1616. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1617. as_fn_set_status $ac_retval
  1618. } # ac_fn_c_try_compile
  1619. # ac_fn_c_try_link LINENO
  1620. # -----------------------
  1621. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1622. ac_fn_c_try_link ()
  1623. {
  1624. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1625. rm -f conftest.$ac_objext conftest$ac_exeext
  1626. if { { ac_try="$ac_link"
  1627. case "(($ac_try" in
  1628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1629. *) ac_try_echo=$ac_try;;
  1630. esac
  1631. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1632. $as_echo "$ac_try_echo"; } >&5
  1633. (eval "$ac_link") 2>conftest.err
  1634. ac_status=$?
  1635. if test -s conftest.err; then
  1636. grep -v '^ *+' conftest.err >conftest.er1
  1637. cat conftest.er1 >&5
  1638. mv -f conftest.er1 conftest.err
  1639. fi
  1640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1641. test $ac_status = 0; } && {
  1642. test -z "$ac_c_werror_flag" ||
  1643. test ! -s conftest.err
  1644. } && test -s conftest$ac_exeext && {
  1645. test "$cross_compiling" = yes ||
  1646. test -x conftest$ac_exeext
  1647. }; then :
  1648. ac_retval=0
  1649. else
  1650. $as_echo "$as_me: failed program was:" >&5
  1651. sed 's/^/| /' conftest.$ac_ext >&5
  1652. ac_retval=1
  1653. fi
  1654. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1655. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1656. # interfere with the next link command; also delete a directory that is
  1657. # left behind by Apple's compiler. We do this before executing the actions.
  1658. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1659. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1660. as_fn_set_status $ac_retval
  1661. } # ac_fn_c_try_link
  1662. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1663. # -------------------------------------------------------
  1664. # Tests whether HEADER exists and can be compiled using the include files in
  1665. # INCLUDES, setting the cache variable VAR accordingly.
  1666. ac_fn_c_check_header_compile ()
  1667. {
  1668. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1670. $as_echo_n "checking for $2... " >&6; }
  1671. if eval \${$3+:} false; then :
  1672. $as_echo_n "(cached) " >&6
  1673. else
  1674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1675. /* end confdefs.h. */
  1676. $4
  1677. #include <$2>
  1678. _ACEOF
  1679. if ac_fn_c_try_compile "$LINENO"; then :
  1680. eval "$3=yes"
  1681. else
  1682. eval "$3=no"
  1683. fi
  1684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1685. fi
  1686. eval ac_res=\$$3
  1687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1688. $as_echo "$ac_res" >&6; }
  1689. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1690. } # ac_fn_c_check_header_compile
  1691. # ac_fn_c_try_cpp LINENO
  1692. # ----------------------
  1693. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1694. ac_fn_c_try_cpp ()
  1695. {
  1696. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1697. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1698. case "(($ac_try" in
  1699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1700. *) ac_try_echo=$ac_try;;
  1701. esac
  1702. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1703. $as_echo "$ac_try_echo"; } >&5
  1704. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1705. ac_status=$?
  1706. if test -s conftest.err; then
  1707. grep -v '^ *+' conftest.err >conftest.er1
  1708. cat conftest.er1 >&5
  1709. mv -f conftest.er1 conftest.err
  1710. fi
  1711. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1712. test $ac_status = 0; } > conftest.i && {
  1713. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1714. test ! -s conftest.err
  1715. }; then :
  1716. ac_retval=0
  1717. else
  1718. $as_echo "$as_me: failed program was:" >&5
  1719. sed 's/^/| /' conftest.$ac_ext >&5
  1720. ac_retval=1
  1721. fi
  1722. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1723. as_fn_set_status $ac_retval
  1724. } # ac_fn_c_try_cpp
  1725. # ac_fn_c_try_run LINENO
  1726. # ----------------------
  1727. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1728. # that executables *can* be run.
  1729. ac_fn_c_try_run ()
  1730. {
  1731. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1732. if { { ac_try="$ac_link"
  1733. case "(($ac_try" in
  1734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1735. *) ac_try_echo=$ac_try;;
  1736. esac
  1737. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1738. $as_echo "$ac_try_echo"; } >&5
  1739. (eval "$ac_link") 2>&5
  1740. ac_status=$?
  1741. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1742. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1743. { { case "(($ac_try" in
  1744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1745. *) ac_try_echo=$ac_try;;
  1746. esac
  1747. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1748. $as_echo "$ac_try_echo"; } >&5
  1749. (eval "$ac_try") 2>&5
  1750. ac_status=$?
  1751. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1752. test $ac_status = 0; }; }; then :
  1753. ac_retval=0
  1754. else
  1755. $as_echo "$as_me: program exited with status $ac_status" >&5
  1756. $as_echo "$as_me: failed program was:" >&5
  1757. sed 's/^/| /' conftest.$ac_ext >&5
  1758. ac_retval=$ac_status
  1759. fi
  1760. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1761. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1762. as_fn_set_status $ac_retval
  1763. } # ac_fn_c_try_run
  1764. # ac_fn_c_check_func LINENO FUNC VAR
  1765. # ----------------------------------
  1766. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1767. ac_fn_c_check_func ()
  1768. {
  1769. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1771. $as_echo_n "checking for $2... " >&6; }
  1772. if eval \${$3+:} false; then :
  1773. $as_echo_n "(cached) " >&6
  1774. else
  1775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1776. /* end confdefs.h. */
  1777. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1778. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1779. #define $2 innocuous_$2
  1780. /* System header to define __stub macros and hopefully few prototypes,
  1781. which can conflict with char $2 (); below.
  1782. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1783. <limits.h> exists even on freestanding compilers. */
  1784. #ifdef __STDC__
  1785. # include <limits.h>
  1786. #else
  1787. # include <assert.h>
  1788. #endif
  1789. #undef $2
  1790. /* Override any GCC internal prototype to avoid an error.
  1791. Use char because int might match the return type of a GCC
  1792. builtin and then its argument prototype would still apply. */
  1793. #ifdef __cplusplus
  1794. extern "C"
  1795. #endif
  1796. char $2 ();
  1797. /* The GNU C library defines this for functions which it implements
  1798. to always fail with ENOSYS. Some functions are actually named
  1799. something starting with __ and the normal name is an alias. */
  1800. #if defined __stub_$2 || defined __stub___$2
  1801. choke me
  1802. #endif
  1803. int
  1804. main ()
  1805. {
  1806. return $2 ();
  1807. ;
  1808. return 0;
  1809. }
  1810. _ACEOF
  1811. if ac_fn_c_try_link "$LINENO"; then :
  1812. eval "$3=yes"
  1813. else
  1814. eval "$3=no"
  1815. fi
  1816. rm -f core conftest.err conftest.$ac_objext \
  1817. conftest$ac_exeext conftest.$ac_ext
  1818. fi
  1819. eval ac_res=\$$3
  1820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1821. $as_echo "$ac_res" >&6; }
  1822. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1823. } # ac_fn_c_check_func
  1824. # ac_fn_cxx_try_compile LINENO
  1825. # ----------------------------
  1826. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1827. ac_fn_cxx_try_compile ()
  1828. {
  1829. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1830. rm -f conftest.$ac_objext
  1831. if { { ac_try="$ac_compile"
  1832. case "(($ac_try" in
  1833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1834. *) ac_try_echo=$ac_try;;
  1835. esac
  1836. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1837. $as_echo "$ac_try_echo"; } >&5
  1838. (eval "$ac_compile") 2>conftest.err
  1839. ac_status=$?
  1840. if test -s conftest.err; then
  1841. grep -v '^ *+' conftest.err >conftest.er1
  1842. cat conftest.er1 >&5
  1843. mv -f conftest.er1 conftest.err
  1844. fi
  1845. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1846. test $ac_status = 0; } && {
  1847. test -z "$ac_cxx_werror_flag" ||
  1848. test ! -s conftest.err
  1849. } && test -s conftest.$ac_objext; then :
  1850. ac_retval=0
  1851. else
  1852. $as_echo "$as_me: failed program was:" >&5
  1853. sed 's/^/| /' conftest.$ac_ext >&5
  1854. ac_retval=1
  1855. fi
  1856. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1857. as_fn_set_status $ac_retval
  1858. } # ac_fn_cxx_try_compile
  1859. # ac_fn_cxx_try_cpp LINENO
  1860. # ------------------------
  1861. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1862. ac_fn_cxx_try_cpp ()
  1863. {
  1864. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1865. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1866. case "(($ac_try" in
  1867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1868. *) ac_try_echo=$ac_try;;
  1869. esac
  1870. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1871. $as_echo "$ac_try_echo"; } >&5
  1872. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1873. ac_status=$?
  1874. if test -s conftest.err; then
  1875. grep -v '^ *+' conftest.err >conftest.er1
  1876. cat conftest.er1 >&5
  1877. mv -f conftest.er1 conftest.err
  1878. fi
  1879. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1880. test $ac_status = 0; } > conftest.i && {
  1881. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1882. test ! -s conftest.err
  1883. }; then :
  1884. ac_retval=0
  1885. else
  1886. $as_echo "$as_me: failed program was:" >&5
  1887. sed 's/^/| /' conftest.$ac_ext >&5
  1888. ac_retval=1
  1889. fi
  1890. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1891. as_fn_set_status $ac_retval
  1892. } # ac_fn_cxx_try_cpp
  1893. # ac_fn_cxx_try_link LINENO
  1894. # -------------------------
  1895. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1896. ac_fn_cxx_try_link ()
  1897. {
  1898. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1899. rm -f conftest.$ac_objext conftest$ac_exeext
  1900. if { { ac_try="$ac_link"
  1901. case "(($ac_try" in
  1902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1903. *) ac_try_echo=$ac_try;;
  1904. esac
  1905. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1906. $as_echo "$ac_try_echo"; } >&5
  1907. (eval "$ac_link") 2>conftest.err
  1908. ac_status=$?
  1909. if test -s conftest.err; then
  1910. grep -v '^ *+' conftest.err >conftest.er1
  1911. cat conftest.er1 >&5
  1912. mv -f conftest.er1 conftest.err
  1913. fi
  1914. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1915. test $ac_status = 0; } && {
  1916. test -z "$ac_cxx_werror_flag" ||
  1917. test ! -s conftest.err
  1918. } && test -s conftest$ac_exeext && {
  1919. test "$cross_compiling" = yes ||
  1920. test -x conftest$ac_exeext
  1921. }; then :
  1922. ac_retval=0
  1923. else
  1924. $as_echo "$as_me: failed program was:" >&5
  1925. sed 's/^/| /' conftest.$ac_ext >&5
  1926. ac_retval=1
  1927. fi
  1928. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1929. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1930. # interfere with the next link command; also delete a directory that is
  1931. # left behind by Apple's compiler. We do this before executing the actions.
  1932. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1933. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1934. as_fn_set_status $ac_retval
  1935. } # ac_fn_cxx_try_link
  1936. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1937. # -------------------------------------------------------
  1938. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1939. # the include files in INCLUDES and setting the cache variable VAR
  1940. # accordingly.
  1941. ac_fn_c_check_header_mongrel ()
  1942. {
  1943. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1944. if eval \${$3+:} false; then :
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1946. $as_echo_n "checking for $2... " >&6; }
  1947. if eval \${$3+:} false; then :
  1948. $as_echo_n "(cached) " >&6
  1949. fi
  1950. eval ac_res=\$$3
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1952. $as_echo "$ac_res" >&6; }
  1953. else
  1954. # Is the header compilable?
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1956. $as_echo_n "checking $2 usability... " >&6; }
  1957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1958. /* end confdefs.h. */
  1959. $4
  1960. #include <$2>
  1961. _ACEOF
  1962. if ac_fn_c_try_compile "$LINENO"; then :
  1963. ac_header_compiler=yes
  1964. else
  1965. ac_header_compiler=no
  1966. fi
  1967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1969. $as_echo "$ac_header_compiler" >&6; }
  1970. # Is the header present?
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1972. $as_echo_n "checking $2 presence... " >&6; }
  1973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1974. /* end confdefs.h. */
  1975. #include <$2>
  1976. _ACEOF
  1977. if ac_fn_c_try_cpp "$LINENO"; then :
  1978. ac_header_preproc=yes
  1979. else
  1980. ac_header_preproc=no
  1981. fi
  1982. rm -f conftest.err conftest.i conftest.$ac_ext
  1983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1984. $as_echo "$ac_header_preproc" >&6; }
  1985. # So? What about this header?
  1986. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1987. yes:no: )
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1989. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1991. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1992. ;;
  1993. no:yes:* )
  1994. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1995. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1996. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1997. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1999. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2000. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2001. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2002. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2003. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2004. ;;
  2005. esac
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2007. $as_echo_n "checking for $2... " >&6; }
  2008. if eval \${$3+:} false; then :
  2009. $as_echo_n "(cached) " >&6
  2010. else
  2011. eval "$3=\$ac_header_compiler"
  2012. fi
  2013. eval ac_res=\$$3
  2014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2015. $as_echo "$ac_res" >&6; }
  2016. fi
  2017. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2018. } # ac_fn_c_check_header_mongrel
  2019. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2020. # -------------------------------------------
  2021. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2022. # variable VAR accordingly.
  2023. ac_fn_c_check_type ()
  2024. {
  2025. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2027. $as_echo_n "checking for $2... " >&6; }
  2028. if eval \${$3+:} false; then :
  2029. $as_echo_n "(cached) " >&6
  2030. else
  2031. eval "$3=no"
  2032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2033. /* end confdefs.h. */
  2034. $4
  2035. int
  2036. main ()
  2037. {
  2038. if (sizeof ($2))
  2039. return 0;
  2040. ;
  2041. return 0;
  2042. }
  2043. _ACEOF
  2044. if ac_fn_c_try_compile "$LINENO"; then :
  2045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2046. /* end confdefs.h. */
  2047. $4
  2048. int
  2049. main ()
  2050. {
  2051. if (sizeof (($2)))
  2052. return 0;
  2053. ;
  2054. return 0;
  2055. }
  2056. _ACEOF
  2057. if ac_fn_c_try_compile "$LINENO"; then :
  2058. else
  2059. eval "$3=yes"
  2060. fi
  2061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2062. fi
  2063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2064. fi
  2065. eval ac_res=\$$3
  2066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2067. $as_echo "$ac_res" >&6; }
  2068. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2069. } # ac_fn_c_check_type
  2070. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2071. # ----------------------------------------------------
  2072. # Tries to find if the field MEMBER exists in type AGGR, after including
  2073. # INCLUDES, setting cache variable VAR accordingly.
  2074. ac_fn_c_check_member ()
  2075. {
  2076. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2078. $as_echo_n "checking for $2.$3... " >&6; }
  2079. if eval \${$4+:} false; then :
  2080. $as_echo_n "(cached) " >&6
  2081. else
  2082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2083. /* end confdefs.h. */
  2084. $5
  2085. int
  2086. main ()
  2087. {
  2088. static $2 ac_aggr;
  2089. if (ac_aggr.$3)
  2090. return 0;
  2091. ;
  2092. return 0;
  2093. }
  2094. _ACEOF
  2095. if ac_fn_c_try_compile "$LINENO"; then :
  2096. eval "$4=yes"
  2097. else
  2098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2099. /* end confdefs.h. */
  2100. $5
  2101. int
  2102. main ()
  2103. {
  2104. static $2 ac_aggr;
  2105. if (sizeof ac_aggr.$3)
  2106. return 0;
  2107. ;
  2108. return 0;
  2109. }
  2110. _ACEOF
  2111. if ac_fn_c_try_compile "$LINENO"; then :
  2112. eval "$4=yes"
  2113. else
  2114. eval "$4=no"
  2115. fi
  2116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2117. fi
  2118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2119. fi
  2120. eval ac_res=\$$4
  2121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2122. $as_echo "$ac_res" >&6; }
  2123. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2124. } # ac_fn_c_check_member
  2125. cat >config.log <<_ACEOF
  2126. This file contains any messages produced by compilers while
  2127. running configure, to aid debugging if configure makes a mistake.
  2128. It was created by $as_me, which was
  2129. generated by GNU Autoconf 2.69. Invocation command line was
  2130. $ $0 $@
  2131. _ACEOF
  2132. exec 5>>config.log
  2133. {
  2134. cat <<_ASUNAME
  2135. ## --------- ##
  2136. ## Platform. ##
  2137. ## --------- ##
  2138. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2139. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2140. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2141. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2142. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2143. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2144. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2145. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2146. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2147. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2148. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2149. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2150. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2151. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2152. _ASUNAME
  2153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2154. for as_dir in $PATH
  2155. do
  2156. IFS=$as_save_IFS
  2157. test -z "$as_dir" && as_dir=.
  2158. $as_echo "PATH: $as_dir"
  2159. done
  2160. IFS=$as_save_IFS
  2161. } >&5
  2162. cat >&5 <<_ACEOF
  2163. ## ----------- ##
  2164. ## Core tests. ##
  2165. ## ----------- ##
  2166. _ACEOF
  2167. # Keep a trace of the command line.
  2168. # Strip out --no-create and --no-recursion so they do not pile up.
  2169. # Strip out --silent because we don't want to record it for future runs.
  2170. # Also quote any args containing shell meta-characters.
  2171. # Make two passes to allow for proper duplicate-argument suppression.
  2172. ac_configure_args=
  2173. ac_configure_args0=
  2174. ac_configure_args1=
  2175. ac_must_keep_next=false
  2176. for ac_pass in 1 2
  2177. do
  2178. for ac_arg
  2179. do
  2180. case $ac_arg in
  2181. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2182. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2183. | -silent | --silent | --silen | --sile | --sil)
  2184. continue ;;
  2185. *\'*)
  2186. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2187. esac
  2188. case $ac_pass in
  2189. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2190. 2)
  2191. as_fn_append ac_configure_args1 " '$ac_arg'"
  2192. if test $ac_must_keep_next = true; then
  2193. ac_must_keep_next=false # Got value, back to normal.
  2194. else
  2195. case $ac_arg in
  2196. *=* | --config-cache | -C | -disable-* | --disable-* \
  2197. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2198. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2199. | -with-* | --with-* | -without-* | --without-* | --x)
  2200. case "$ac_configure_args0 " in
  2201. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2202. esac
  2203. ;;
  2204. -* ) ac_must_keep_next=true ;;
  2205. esac
  2206. fi
  2207. as_fn_append ac_configure_args " '$ac_arg'"
  2208. ;;
  2209. esac
  2210. done
  2211. done
  2212. { ac_configure_args0=; unset ac_configure_args0;}
  2213. { ac_configure_args1=; unset ac_configure_args1;}
  2214. # When interrupted or exit'd, cleanup temporary files, and complete
  2215. # config.log. We remove comments because anyway the quotes in there
  2216. # would cause problems or look ugly.
  2217. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2218. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2219. trap 'exit_status=$?
  2220. # Save into config.log some information that might help in debugging.
  2221. {
  2222. echo
  2223. $as_echo "## ---------------- ##
  2224. ## Cache variables. ##
  2225. ## ---------------- ##"
  2226. echo
  2227. # The following way of writing the cache mishandles newlines in values,
  2228. (
  2229. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2230. eval ac_val=\$$ac_var
  2231. case $ac_val in #(
  2232. *${as_nl}*)
  2233. case $ac_var in #(
  2234. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2235. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2236. esac
  2237. case $ac_var in #(
  2238. _ | IFS | as_nl) ;; #(
  2239. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2240. *) { eval $ac_var=; unset $ac_var;} ;;
  2241. esac ;;
  2242. esac
  2243. done
  2244. (set) 2>&1 |
  2245. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2246. *${as_nl}ac_space=\ *)
  2247. sed -n \
  2248. "s/'\''/'\''\\\\'\'''\''/g;
  2249. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2250. ;; #(
  2251. *)
  2252. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2253. ;;
  2254. esac |
  2255. sort
  2256. )
  2257. echo
  2258. $as_echo "## ----------------- ##
  2259. ## Output variables. ##
  2260. ## ----------------- ##"
  2261. echo
  2262. for ac_var in $ac_subst_vars
  2263. do
  2264. eval ac_val=\$$ac_var
  2265. case $ac_val in
  2266. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2267. esac
  2268. $as_echo "$ac_var='\''$ac_val'\''"
  2269. done | sort
  2270. echo
  2271. if test -n "$ac_subst_files"; then
  2272. $as_echo "## ------------------- ##
  2273. ## File substitutions. ##
  2274. ## ------------------- ##"
  2275. echo
  2276. for ac_var in $ac_subst_files
  2277. do
  2278. eval ac_val=\$$ac_var
  2279. case $ac_val in
  2280. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2281. esac
  2282. $as_echo "$ac_var='\''$ac_val'\''"
  2283. done | sort
  2284. echo
  2285. fi
  2286. if test -s confdefs.h; then
  2287. $as_echo "## ----------- ##
  2288. ## confdefs.h. ##
  2289. ## ----------- ##"
  2290. echo
  2291. cat confdefs.h
  2292. echo
  2293. fi
  2294. test "$ac_signal" != 0 &&
  2295. $as_echo "$as_me: caught signal $ac_signal"
  2296. $as_echo "$as_me: exit $exit_status"
  2297. } >&5
  2298. rm -f core *.core core.conftest.* &&
  2299. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2300. exit $exit_status
  2301. ' 0
  2302. for ac_signal in 1 2 13 15; do
  2303. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2304. done
  2305. ac_signal=0
  2306. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2307. rm -f -r conftest* confdefs.h
  2308. $as_echo "/* confdefs.h */" > confdefs.h
  2309. # Predefined preprocessor variables.
  2310. cat >>confdefs.h <<_ACEOF
  2311. #define PACKAGE_NAME "$PACKAGE_NAME"
  2312. _ACEOF
  2313. cat >>confdefs.h <<_ACEOF
  2314. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2315. _ACEOF
  2316. cat >>confdefs.h <<_ACEOF
  2317. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2318. _ACEOF
  2319. cat >>confdefs.h <<_ACEOF
  2320. #define PACKAGE_STRING "$PACKAGE_STRING"
  2321. _ACEOF
  2322. cat >>confdefs.h <<_ACEOF
  2323. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2324. _ACEOF
  2325. cat >>confdefs.h <<_ACEOF
  2326. #define PACKAGE_URL "$PACKAGE_URL"
  2327. _ACEOF
  2328. # Let the site file select an alternate cache file if it wants to.
  2329. # Prefer an explicitly selected file to automatically selected ones.
  2330. ac_site_file1=NONE
  2331. ac_site_file2=NONE
  2332. if test -n "$CONFIG_SITE"; then
  2333. # We do not want a PATH search for config.site.
  2334. case $CONFIG_SITE in #((
  2335. -*) ac_site_file1=./$CONFIG_SITE;;
  2336. */*) ac_site_file1=$CONFIG_SITE;;
  2337. *) ac_site_file1=./$CONFIG_SITE;;
  2338. esac
  2339. elif test "x$prefix" != xNONE; then
  2340. ac_site_file1=$prefix/share/config.site
  2341. ac_site_file2=$prefix/etc/config.site
  2342. else
  2343. ac_site_file1=$ac_default_prefix/share/config.site
  2344. ac_site_file2=$ac_default_prefix/etc/config.site
  2345. fi
  2346. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2347. do
  2348. test "x$ac_site_file" = xNONE && continue
  2349. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2350. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2351. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2352. sed 's/^/| /' "$ac_site_file" >&5
  2353. . "$ac_site_file" \
  2354. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2355. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2356. as_fn_error $? "failed to load site script $ac_site_file
  2357. See \`config.log' for more details" "$LINENO" 5; }
  2358. fi
  2359. done
  2360. if test -r "$cache_file"; then
  2361. # Some versions of bash will fail to source /dev/null (special files
  2362. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2363. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2365. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2366. case $cache_file in
  2367. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2368. *) . "./$cache_file";;
  2369. esac
  2370. fi
  2371. else
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2373. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2374. >$cache_file
  2375. fi
  2376. # Check that the precious variables saved in the cache have kept the same
  2377. # value.
  2378. ac_cache_corrupted=false
  2379. for ac_var in $ac_precious_vars; do
  2380. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2381. eval ac_new_set=\$ac_env_${ac_var}_set
  2382. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2383. eval ac_new_val=\$ac_env_${ac_var}_value
  2384. case $ac_old_set,$ac_new_set in
  2385. set,)
  2386. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2387. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2388. ac_cache_corrupted=: ;;
  2389. ,set)
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2391. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2392. ac_cache_corrupted=: ;;
  2393. ,);;
  2394. *)
  2395. if test "x$ac_old_val" != "x$ac_new_val"; then
  2396. # differences in whitespace do not lead to failure.
  2397. ac_old_val_w=`echo x $ac_old_val`
  2398. ac_new_val_w=`echo x $ac_new_val`
  2399. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2401. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2402. ac_cache_corrupted=:
  2403. else
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2405. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2406. eval $ac_var=\$ac_old_val
  2407. fi
  2408. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2409. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2411. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2412. fi;;
  2413. esac
  2414. # Pass precious variables to config.status.
  2415. if test "$ac_new_set" = set; then
  2416. case $ac_new_val in
  2417. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2418. *) ac_arg=$ac_var=$ac_new_val ;;
  2419. esac
  2420. case " $ac_configure_args " in
  2421. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2422. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2423. esac
  2424. fi
  2425. done
  2426. if $ac_cache_corrupted; then
  2427. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2428. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2429. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2430. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2431. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2432. fi
  2433. ## -------------------- ##
  2434. ## Main body of script. ##
  2435. ## -------------------- ##
  2436. ac_ext=c
  2437. ac_cpp='$CPP $CPPFLAGS'
  2438. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2439. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2440. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2441. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2442. ac_aux_dir=
  2443. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2444. if test -f "$ac_dir/install-sh"; then
  2445. ac_aux_dir=$ac_dir
  2446. ac_install_sh="$ac_aux_dir/install-sh -c"
  2447. break
  2448. elif test -f "$ac_dir/install.sh"; then
  2449. ac_aux_dir=$ac_dir
  2450. ac_install_sh="$ac_aux_dir/install.sh -c"
  2451. break
  2452. elif test -f "$ac_dir/shtool"; then
  2453. ac_aux_dir=$ac_dir
  2454. ac_install_sh="$ac_aux_dir/shtool install -c"
  2455. break
  2456. fi
  2457. done
  2458. if test -z "$ac_aux_dir"; then
  2459. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2460. fi
  2461. # These three variables are undocumented and unsupported,
  2462. # and are intended to be withdrawn in a future Autoconf release.
  2463. # They can cause serious problems if a builder's source tree is in a directory
  2464. # whose full name contains unusual characters.
  2465. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2466. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2467. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2468. orig_CFLAGS="$CFLAGS"
  2469. #
  2470. # Making releases:
  2471. # Edit include/SDL_version.h and change the version, then:
  2472. # SDL_MICRO_VERSION += 1;
  2473. # SDL_INTERFACE_AGE += 1;
  2474. # SDL_BINARY_AGE += 1;
  2475. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2476. # if backwards compatibility has been broken,
  2477. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2478. #
  2479. SDL_MAJOR_VERSION=2
  2480. SDL_MINOR_VERSION=0
  2481. SDL_MICRO_VERSION=6
  2482. SDL_INTERFACE_AGE=0
  2483. SDL_BINARY_AGE=6
  2484. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2485. # libtool versioning
  2486. case `pwd` in
  2487. *\ * | *\ *)
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2489. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2490. esac
  2491. macro_version='2.4.2'
  2492. macro_revision='1.3337'
  2493. ltmain="$ac_aux_dir/ltmain.sh"
  2494. # Make sure we can run config.sub.
  2495. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2496. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2498. $as_echo_n "checking build system type... " >&6; }
  2499. if ${ac_cv_build+:} false; then :
  2500. $as_echo_n "(cached) " >&6
  2501. else
  2502. ac_build_alias=$build_alias
  2503. test "x$ac_build_alias" = x &&
  2504. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2505. test "x$ac_build_alias" = x &&
  2506. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2507. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2508. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2509. fi
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2511. $as_echo "$ac_cv_build" >&6; }
  2512. case $ac_cv_build in
  2513. *-*-*) ;;
  2514. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2515. esac
  2516. build=$ac_cv_build
  2517. ac_save_IFS=$IFS; IFS='-'
  2518. set x $ac_cv_build
  2519. shift
  2520. build_cpu=$1
  2521. build_vendor=$2
  2522. shift; shift
  2523. # Remember, the first character of IFS is used to create $*,
  2524. # except with old shells:
  2525. build_os=$*
  2526. IFS=$ac_save_IFS
  2527. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2529. $as_echo_n "checking host system type... " >&6; }
  2530. if ${ac_cv_host+:} false; then :
  2531. $as_echo_n "(cached) " >&6
  2532. else
  2533. if test "x$host_alias" = x; then
  2534. ac_cv_host=$ac_cv_build
  2535. else
  2536. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2537. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2538. fi
  2539. fi
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2541. $as_echo "$ac_cv_host" >&6; }
  2542. case $ac_cv_host in
  2543. *-*-*) ;;
  2544. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2545. esac
  2546. host=$ac_cv_host
  2547. ac_save_IFS=$IFS; IFS='-'
  2548. set x $ac_cv_host
  2549. shift
  2550. host_cpu=$1
  2551. host_vendor=$2
  2552. shift; shift
  2553. # Remember, the first character of IFS is used to create $*,
  2554. # except with old shells:
  2555. host_os=$*
  2556. IFS=$ac_save_IFS
  2557. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2558. # Backslashify metacharacters that are still active within
  2559. # double-quoted strings.
  2560. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2561. # Same as above, but do not quote variable references.
  2562. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2563. # Sed substitution to delay expansion of an escaped shell variable in a
  2564. # double_quote_subst'ed string.
  2565. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2566. # Sed substitution to delay expansion of an escaped single quote.
  2567. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2568. # Sed substitution to avoid accidental globbing in evaled expressions
  2569. no_glob_subst='s/\*/\\\*/g'
  2570. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2571. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2572. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2574. $as_echo_n "checking how to print strings... " >&6; }
  2575. # Test print first, because it will be a builtin if present.
  2576. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2577. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2578. ECHO='print -r --'
  2579. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2580. ECHO='printf %s\n'
  2581. else
  2582. # Use this function as a fallback that always works.
  2583. func_fallback_echo ()
  2584. {
  2585. eval 'cat <<_LTECHO_EOF
  2586. $1
  2587. _LTECHO_EOF'
  2588. }
  2589. ECHO='func_fallback_echo'
  2590. fi
  2591. # func_echo_all arg...
  2592. # Invoke $ECHO with all args, space-separated.
  2593. func_echo_all ()
  2594. {
  2595. $ECHO ""
  2596. }
  2597. case "$ECHO" in
  2598. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2599. $as_echo "printf" >&6; } ;;
  2600. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2601. $as_echo "print -r" >&6; } ;;
  2602. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2603. $as_echo "cat" >&6; } ;;
  2604. esac
  2605. ac_ext=c
  2606. ac_cpp='$CPP $CPPFLAGS'
  2607. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2608. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2609. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2610. if test -n "$ac_tool_prefix"; then
  2611. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2612. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2614. $as_echo_n "checking for $ac_word... " >&6; }
  2615. if ${ac_cv_prog_CC+:} false; then :
  2616. $as_echo_n "(cached) " >&6
  2617. else
  2618. if test -n "$CC"; then
  2619. ac_cv_prog_CC="$CC" # Let the user override the test.
  2620. else
  2621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2622. for as_dir in $PATH
  2623. do
  2624. IFS=$as_save_IFS
  2625. test -z "$as_dir" && as_dir=.
  2626. for ac_exec_ext in '' $ac_executable_extensions; do
  2627. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2628. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2629. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2630. break 2
  2631. fi
  2632. done
  2633. done
  2634. IFS=$as_save_IFS
  2635. fi
  2636. fi
  2637. CC=$ac_cv_prog_CC
  2638. if test -n "$CC"; then
  2639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2640. $as_echo "$CC" >&6; }
  2641. else
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2643. $as_echo "no" >&6; }
  2644. fi
  2645. fi
  2646. if test -z "$ac_cv_prog_CC"; then
  2647. ac_ct_CC=$CC
  2648. # Extract the first word of "gcc", so it can be a program name with args.
  2649. set dummy gcc; ac_word=$2
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2651. $as_echo_n "checking for $ac_word... " >&6; }
  2652. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2653. $as_echo_n "(cached) " >&6
  2654. else
  2655. if test -n "$ac_ct_CC"; then
  2656. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2657. else
  2658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2659. for as_dir in $PATH
  2660. do
  2661. IFS=$as_save_IFS
  2662. test -z "$as_dir" && as_dir=.
  2663. for ac_exec_ext in '' $ac_executable_extensions; do
  2664. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2665. ac_cv_prog_ac_ct_CC="gcc"
  2666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2667. break 2
  2668. fi
  2669. done
  2670. done
  2671. IFS=$as_save_IFS
  2672. fi
  2673. fi
  2674. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2675. if test -n "$ac_ct_CC"; then
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2677. $as_echo "$ac_ct_CC" >&6; }
  2678. else
  2679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2680. $as_echo "no" >&6; }
  2681. fi
  2682. if test "x$ac_ct_CC" = x; then
  2683. CC=""
  2684. else
  2685. case $cross_compiling:$ac_tool_warned in
  2686. yes:)
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2688. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2689. ac_tool_warned=yes ;;
  2690. esac
  2691. CC=$ac_ct_CC
  2692. fi
  2693. else
  2694. CC="$ac_cv_prog_CC"
  2695. fi
  2696. if test -z "$CC"; then
  2697. if test -n "$ac_tool_prefix"; then
  2698. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2699. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2701. $as_echo_n "checking for $ac_word... " >&6; }
  2702. if ${ac_cv_prog_CC+:} false; then :
  2703. $as_echo_n "(cached) " >&6
  2704. else
  2705. if test -n "$CC"; then
  2706. ac_cv_prog_CC="$CC" # Let the user override the test.
  2707. else
  2708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2709. for as_dir in $PATH
  2710. do
  2711. IFS=$as_save_IFS
  2712. test -z "$as_dir" && as_dir=.
  2713. for ac_exec_ext in '' $ac_executable_extensions; do
  2714. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2715. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2716. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2717. break 2
  2718. fi
  2719. done
  2720. done
  2721. IFS=$as_save_IFS
  2722. fi
  2723. fi
  2724. CC=$ac_cv_prog_CC
  2725. if test -n "$CC"; then
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2727. $as_echo "$CC" >&6; }
  2728. else
  2729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2730. $as_echo "no" >&6; }
  2731. fi
  2732. fi
  2733. fi
  2734. if test -z "$CC"; then
  2735. # Extract the first word of "cc", so it can be a program name with args.
  2736. set dummy cc; ac_word=$2
  2737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2738. $as_echo_n "checking for $ac_word... " >&6; }
  2739. if ${ac_cv_prog_CC+:} false; then :
  2740. $as_echo_n "(cached) " >&6
  2741. else
  2742. if test -n "$CC"; then
  2743. ac_cv_prog_CC="$CC" # Let the user override the test.
  2744. else
  2745. ac_prog_rejected=no
  2746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2747. for as_dir in $PATH
  2748. do
  2749. IFS=$as_save_IFS
  2750. test -z "$as_dir" && as_dir=.
  2751. for ac_exec_ext in '' $ac_executable_extensions; do
  2752. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2753. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2754. ac_prog_rejected=yes
  2755. continue
  2756. fi
  2757. ac_cv_prog_CC="cc"
  2758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2759. break 2
  2760. fi
  2761. done
  2762. done
  2763. IFS=$as_save_IFS
  2764. if test $ac_prog_rejected = yes; then
  2765. # We found a bogon in the path, so make sure we never use it.
  2766. set dummy $ac_cv_prog_CC
  2767. shift
  2768. if test $# != 0; then
  2769. # We chose a different compiler from the bogus one.
  2770. # However, it has the same basename, so the bogon will be chosen
  2771. # first if we set CC to just the basename; use the full file name.
  2772. shift
  2773. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2774. fi
  2775. fi
  2776. fi
  2777. fi
  2778. CC=$ac_cv_prog_CC
  2779. if test -n "$CC"; then
  2780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2781. $as_echo "$CC" >&6; }
  2782. else
  2783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2784. $as_echo "no" >&6; }
  2785. fi
  2786. fi
  2787. if test -z "$CC"; then
  2788. if test -n "$ac_tool_prefix"; then
  2789. for ac_prog in cl.exe
  2790. do
  2791. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2792. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2794. $as_echo_n "checking for $ac_word... " >&6; }
  2795. if ${ac_cv_prog_CC+:} false; then :
  2796. $as_echo_n "(cached) " >&6
  2797. else
  2798. if test -n "$CC"; then
  2799. ac_cv_prog_CC="$CC" # Let the user override the test.
  2800. else
  2801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2802. for as_dir in $PATH
  2803. do
  2804. IFS=$as_save_IFS
  2805. test -z "$as_dir" && as_dir=.
  2806. for ac_exec_ext in '' $ac_executable_extensions; do
  2807. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2808. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2810. break 2
  2811. fi
  2812. done
  2813. done
  2814. IFS=$as_save_IFS
  2815. fi
  2816. fi
  2817. CC=$ac_cv_prog_CC
  2818. if test -n "$CC"; then
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2820. $as_echo "$CC" >&6; }
  2821. else
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2823. $as_echo "no" >&6; }
  2824. fi
  2825. test -n "$CC" && break
  2826. done
  2827. fi
  2828. if test -z "$CC"; then
  2829. ac_ct_CC=$CC
  2830. for ac_prog in cl.exe
  2831. do
  2832. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2833. set dummy $ac_prog; ac_word=$2
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2835. $as_echo_n "checking for $ac_word... " >&6; }
  2836. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2837. $as_echo_n "(cached) " >&6
  2838. else
  2839. if test -n "$ac_ct_CC"; then
  2840. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2841. else
  2842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2843. for as_dir in $PATH
  2844. do
  2845. IFS=$as_save_IFS
  2846. test -z "$as_dir" && as_dir=.
  2847. for ac_exec_ext in '' $ac_executable_extensions; do
  2848. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2849. ac_cv_prog_ac_ct_CC="$ac_prog"
  2850. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2851. break 2
  2852. fi
  2853. done
  2854. done
  2855. IFS=$as_save_IFS
  2856. fi
  2857. fi
  2858. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2859. if test -n "$ac_ct_CC"; then
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2861. $as_echo "$ac_ct_CC" >&6; }
  2862. else
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2864. $as_echo "no" >&6; }
  2865. fi
  2866. test -n "$ac_ct_CC" && break
  2867. done
  2868. if test "x$ac_ct_CC" = x; then
  2869. CC=""
  2870. else
  2871. case $cross_compiling:$ac_tool_warned in
  2872. yes:)
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2874. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2875. ac_tool_warned=yes ;;
  2876. esac
  2877. CC=$ac_ct_CC
  2878. fi
  2879. fi
  2880. fi
  2881. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2882. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2883. as_fn_error $? "no acceptable C compiler found in \$PATH
  2884. See \`config.log' for more details" "$LINENO" 5; }
  2885. # Provide some information about the compiler.
  2886. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2887. set X $ac_compile
  2888. ac_compiler=$2
  2889. for ac_option in --version -v -V -qversion; do
  2890. { { ac_try="$ac_compiler $ac_option >&5"
  2891. case "(($ac_try" in
  2892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2893. *) ac_try_echo=$ac_try;;
  2894. esac
  2895. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2896. $as_echo "$ac_try_echo"; } >&5
  2897. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2898. ac_status=$?
  2899. if test -s conftest.err; then
  2900. sed '10a\
  2901. ... rest of stderr output deleted ...
  2902. 10q' conftest.err >conftest.er1
  2903. cat conftest.er1 >&5
  2904. fi
  2905. rm -f conftest.er1 conftest.err
  2906. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2907. test $ac_status = 0; }
  2908. done
  2909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2910. /* end confdefs.h. */
  2911. int
  2912. main ()
  2913. {
  2914. ;
  2915. return 0;
  2916. }
  2917. _ACEOF
  2918. ac_clean_files_save=$ac_clean_files
  2919. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2920. # Try to create an executable without -o first, disregard a.out.
  2921. # It will help us diagnose broken compilers, and finding out an intuition
  2922. # of exeext.
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2924. $as_echo_n "checking whether the C compiler works... " >&6; }
  2925. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2926. # The possible output files:
  2927. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2928. ac_rmfiles=
  2929. for ac_file in $ac_files
  2930. do
  2931. case $ac_file in
  2932. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2933. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2934. esac
  2935. done
  2936. rm -f $ac_rmfiles
  2937. if { { ac_try="$ac_link_default"
  2938. case "(($ac_try" in
  2939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2940. *) ac_try_echo=$ac_try;;
  2941. esac
  2942. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2943. $as_echo "$ac_try_echo"; } >&5
  2944. (eval "$ac_link_default") 2>&5
  2945. ac_status=$?
  2946. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2947. test $ac_status = 0; }; then :
  2948. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2949. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2950. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2951. # so that the user can short-circuit this test for compilers unknown to
  2952. # Autoconf.
  2953. for ac_file in $ac_files ''
  2954. do
  2955. test -f "$ac_file" || continue
  2956. case $ac_file in
  2957. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2958. ;;
  2959. [ab].out )
  2960. # We found the default executable, but exeext='' is most
  2961. # certainly right.
  2962. break;;
  2963. *.* )
  2964. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2965. then :; else
  2966. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2967. fi
  2968. # We set ac_cv_exeext here because the later test for it is not
  2969. # safe: cross compilers may not add the suffix if given an `-o'
  2970. # argument, so we may need to know it at that point already.
  2971. # Even if this section looks crufty: it has the advantage of
  2972. # actually working.
  2973. break;;
  2974. * )
  2975. break;;
  2976. esac
  2977. done
  2978. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2979. else
  2980. ac_file=''
  2981. fi
  2982. if test -z "$ac_file"; then :
  2983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2984. $as_echo "no" >&6; }
  2985. $as_echo "$as_me: failed program was:" >&5
  2986. sed 's/^/| /' conftest.$ac_ext >&5
  2987. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2988. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2989. as_fn_error 77 "C compiler cannot create executables
  2990. See \`config.log' for more details" "$LINENO" 5; }
  2991. else
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2993. $as_echo "yes" >&6; }
  2994. fi
  2995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2996. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2998. $as_echo "$ac_file" >&6; }
  2999. ac_exeext=$ac_cv_exeext
  3000. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3001. ac_clean_files=$ac_clean_files_save
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3003. $as_echo_n "checking for suffix of executables... " >&6; }
  3004. if { { ac_try="$ac_link"
  3005. case "(($ac_try" in
  3006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3007. *) ac_try_echo=$ac_try;;
  3008. esac
  3009. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3010. $as_echo "$ac_try_echo"; } >&5
  3011. (eval "$ac_link") 2>&5
  3012. ac_status=$?
  3013. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3014. test $ac_status = 0; }; then :
  3015. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3016. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3017. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3018. # `rm'.
  3019. for ac_file in conftest.exe conftest conftest.*; do
  3020. test -f "$ac_file" || continue
  3021. case $ac_file in
  3022. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3023. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3024. break;;
  3025. * ) break;;
  3026. esac
  3027. done
  3028. else
  3029. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3030. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3031. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3032. See \`config.log' for more details" "$LINENO" 5; }
  3033. fi
  3034. rm -f conftest conftest$ac_cv_exeext
  3035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3036. $as_echo "$ac_cv_exeext" >&6; }
  3037. rm -f conftest.$ac_ext
  3038. EXEEXT=$ac_cv_exeext
  3039. ac_exeext=$EXEEXT
  3040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3041. /* end confdefs.h. */
  3042. #include <stdio.h>
  3043. int
  3044. main ()
  3045. {
  3046. FILE *f = fopen ("conftest.out", "w");
  3047. return ferror (f) || fclose (f) != 0;
  3048. ;
  3049. return 0;
  3050. }
  3051. _ACEOF
  3052. ac_clean_files="$ac_clean_files conftest.out"
  3053. # Check that the compiler produces executables we can run. If not, either
  3054. # the compiler is broken, or we cross compile.
  3055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3056. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3057. if test "$cross_compiling" != yes; then
  3058. { { ac_try="$ac_link"
  3059. case "(($ac_try" in
  3060. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3061. *) ac_try_echo=$ac_try;;
  3062. esac
  3063. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3064. $as_echo "$ac_try_echo"; } >&5
  3065. (eval "$ac_link") 2>&5
  3066. ac_status=$?
  3067. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3068. test $ac_status = 0; }
  3069. if { ac_try='./conftest$ac_cv_exeext'
  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_try") 2>&5
  3077. ac_status=$?
  3078. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3079. test $ac_status = 0; }; }; then
  3080. cross_compiling=no
  3081. else
  3082. if test "$cross_compiling" = maybe; then
  3083. cross_compiling=yes
  3084. else
  3085. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3086. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3087. as_fn_error $? "cannot run C compiled programs.
  3088. If you meant to cross compile, use \`--host'.
  3089. See \`config.log' for more details" "$LINENO" 5; }
  3090. fi
  3091. fi
  3092. fi
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3094. $as_echo "$cross_compiling" >&6; }
  3095. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3096. ac_clean_files=$ac_clean_files_save
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3098. $as_echo_n "checking for suffix of object files... " >&6; }
  3099. if ${ac_cv_objext+:} false; then :
  3100. $as_echo_n "(cached) " >&6
  3101. else
  3102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3103. /* end confdefs.h. */
  3104. int
  3105. main ()
  3106. {
  3107. ;
  3108. return 0;
  3109. }
  3110. _ACEOF
  3111. rm -f conftest.o conftest.obj
  3112. if { { ac_try="$ac_compile"
  3113. case "(($ac_try" in
  3114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3115. *) ac_try_echo=$ac_try;;
  3116. esac
  3117. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3118. $as_echo "$ac_try_echo"; } >&5
  3119. (eval "$ac_compile") 2>&5
  3120. ac_status=$?
  3121. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3122. test $ac_status = 0; }; then :
  3123. for ac_file in conftest.o conftest.obj conftest.*; do
  3124. test -f "$ac_file" || continue;
  3125. case $ac_file in
  3126. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3127. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3128. break;;
  3129. esac
  3130. done
  3131. else
  3132. $as_echo "$as_me: failed program was:" >&5
  3133. sed 's/^/| /' conftest.$ac_ext >&5
  3134. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3135. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3136. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3137. See \`config.log' for more details" "$LINENO" 5; }
  3138. fi
  3139. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3140. fi
  3141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3142. $as_echo "$ac_cv_objext" >&6; }
  3143. OBJEXT=$ac_cv_objext
  3144. ac_objext=$OBJEXT
  3145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3146. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3147. if ${ac_cv_c_compiler_gnu+:} false; then :
  3148. $as_echo_n "(cached) " >&6
  3149. else
  3150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3151. /* end confdefs.h. */
  3152. int
  3153. main ()
  3154. {
  3155. #ifndef __GNUC__
  3156. choke me
  3157. #endif
  3158. ;
  3159. return 0;
  3160. }
  3161. _ACEOF
  3162. if ac_fn_c_try_compile "$LINENO"; then :
  3163. ac_compiler_gnu=yes
  3164. else
  3165. ac_compiler_gnu=no
  3166. fi
  3167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3168. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3169. fi
  3170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3171. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3172. if test $ac_compiler_gnu = yes; then
  3173. GCC=yes
  3174. else
  3175. GCC=
  3176. fi
  3177. ac_test_CFLAGS=${CFLAGS+set}
  3178. ac_save_CFLAGS=$CFLAGS
  3179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3180. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3181. if ${ac_cv_prog_cc_g+:} false; then :
  3182. $as_echo_n "(cached) " >&6
  3183. else
  3184. ac_save_c_werror_flag=$ac_c_werror_flag
  3185. ac_c_werror_flag=yes
  3186. ac_cv_prog_cc_g=no
  3187. CFLAGS="-g"
  3188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3189. /* end confdefs.h. */
  3190. int
  3191. main ()
  3192. {
  3193. ;
  3194. return 0;
  3195. }
  3196. _ACEOF
  3197. if ac_fn_c_try_compile "$LINENO"; then :
  3198. ac_cv_prog_cc_g=yes
  3199. else
  3200. CFLAGS=""
  3201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3202. /* end confdefs.h. */
  3203. int
  3204. main ()
  3205. {
  3206. ;
  3207. return 0;
  3208. }
  3209. _ACEOF
  3210. if ac_fn_c_try_compile "$LINENO"; then :
  3211. else
  3212. ac_c_werror_flag=$ac_save_c_werror_flag
  3213. CFLAGS="-g"
  3214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3215. /* end confdefs.h. */
  3216. int
  3217. main ()
  3218. {
  3219. ;
  3220. return 0;
  3221. }
  3222. _ACEOF
  3223. if ac_fn_c_try_compile "$LINENO"; then :
  3224. ac_cv_prog_cc_g=yes
  3225. fi
  3226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3227. fi
  3228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3229. fi
  3230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3231. ac_c_werror_flag=$ac_save_c_werror_flag
  3232. fi
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3234. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3235. if test "$ac_test_CFLAGS" = set; then
  3236. CFLAGS=$ac_save_CFLAGS
  3237. elif test $ac_cv_prog_cc_g = yes; then
  3238. if test "$GCC" = yes; then
  3239. CFLAGS="-g -O2"
  3240. else
  3241. CFLAGS="-g"
  3242. fi
  3243. else
  3244. if test "$GCC" = yes; then
  3245. CFLAGS="-O2"
  3246. else
  3247. CFLAGS=
  3248. fi
  3249. fi
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3251. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3252. if ${ac_cv_prog_cc_c89+:} false; then :
  3253. $as_echo_n "(cached) " >&6
  3254. else
  3255. ac_cv_prog_cc_c89=no
  3256. ac_save_CC=$CC
  3257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3258. /* end confdefs.h. */
  3259. #include <stdarg.h>
  3260. #include <stdio.h>
  3261. struct stat;
  3262. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3263. struct buf { int x; };
  3264. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3265. static char *e (p, i)
  3266. char **p;
  3267. int i;
  3268. {
  3269. return p[i];
  3270. }
  3271. static char *f (char * (*g) (char **, int), char **p, ...)
  3272. {
  3273. char *s;
  3274. va_list v;
  3275. va_start (v,p);
  3276. s = g (p, va_arg (v,int));
  3277. va_end (v);
  3278. return s;
  3279. }
  3280. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3281. function prototypes and stuff, but not '\xHH' hex character constants.
  3282. These don't provoke an error unfortunately, instead are silently treated
  3283. as 'x'. The following induces an error, until -std is added to get
  3284. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3285. array size at least. It's necessary to write '\x00'==0 to get something
  3286. that's true only with -std. */
  3287. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3288. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3289. inside strings and character constants. */
  3290. #define FOO(x) 'x'
  3291. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3292. int test (int i, double x);
  3293. struct s1 {int (*f) (int a);};
  3294. struct s2 {int (*f) (double a);};
  3295. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3296. int argc;
  3297. char **argv;
  3298. int
  3299. main ()
  3300. {
  3301. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3302. ;
  3303. return 0;
  3304. }
  3305. _ACEOF
  3306. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3307. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3308. do
  3309. CC="$ac_save_CC $ac_arg"
  3310. if ac_fn_c_try_compile "$LINENO"; then :
  3311. ac_cv_prog_cc_c89=$ac_arg
  3312. fi
  3313. rm -f core conftest.err conftest.$ac_objext
  3314. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3315. done
  3316. rm -f conftest.$ac_ext
  3317. CC=$ac_save_CC
  3318. fi
  3319. # AC_CACHE_VAL
  3320. case "x$ac_cv_prog_cc_c89" in
  3321. x)
  3322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3323. $as_echo "none needed" >&6; } ;;
  3324. xno)
  3325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3326. $as_echo "unsupported" >&6; } ;;
  3327. *)
  3328. CC="$CC $ac_cv_prog_cc_c89"
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3330. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3331. esac
  3332. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3333. fi
  3334. ac_ext=c
  3335. ac_cpp='$CPP $CPPFLAGS'
  3336. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3337. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3338. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3340. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3341. if ${ac_cv_path_SED+:} false; then :
  3342. $as_echo_n "(cached) " >&6
  3343. else
  3344. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3345. for ac_i in 1 2 3 4 5 6 7; do
  3346. ac_script="$ac_script$as_nl$ac_script"
  3347. done
  3348. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3349. { ac_script=; unset ac_script;}
  3350. if test -z "$SED"; then
  3351. ac_path_SED_found=false
  3352. # Loop through the user's path and test for each of PROGNAME-LIST
  3353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3354. for as_dir in $PATH
  3355. do
  3356. IFS=$as_save_IFS
  3357. test -z "$as_dir" && as_dir=.
  3358. for ac_prog in sed gsed; do
  3359. for ac_exec_ext in '' $ac_executable_extensions; do
  3360. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3361. as_fn_executable_p "$ac_path_SED" || continue
  3362. # Check for GNU ac_path_SED and select it if it is found.
  3363. # Check for GNU $ac_path_SED
  3364. case `"$ac_path_SED" --version 2>&1` in
  3365. *GNU*)
  3366. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3367. *)
  3368. ac_count=0
  3369. $as_echo_n 0123456789 >"conftest.in"
  3370. while :
  3371. do
  3372. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3373. mv "conftest.tmp" "conftest.in"
  3374. cp "conftest.in" "conftest.nl"
  3375. $as_echo '' >> "conftest.nl"
  3376. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3377. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3378. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3379. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3380. # Best one so far, save it but keep looking for a better one
  3381. ac_cv_path_SED="$ac_path_SED"
  3382. ac_path_SED_max=$ac_count
  3383. fi
  3384. # 10*(2^10) chars as input seems more than enough
  3385. test $ac_count -gt 10 && break
  3386. done
  3387. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3388. esac
  3389. $ac_path_SED_found && break 3
  3390. done
  3391. done
  3392. done
  3393. IFS=$as_save_IFS
  3394. if test -z "$ac_cv_path_SED"; then
  3395. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3396. fi
  3397. else
  3398. ac_cv_path_SED=$SED
  3399. fi
  3400. fi
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3402. $as_echo "$ac_cv_path_SED" >&6; }
  3403. SED="$ac_cv_path_SED"
  3404. rm -f conftest.sed
  3405. test -z "$SED" && SED=sed
  3406. Xsed="$SED -e 1s/^X//"
  3407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3408. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3409. if ${ac_cv_path_GREP+:} false; then :
  3410. $as_echo_n "(cached) " >&6
  3411. else
  3412. if test -z "$GREP"; then
  3413. ac_path_GREP_found=false
  3414. # Loop through the user's path and test for each of PROGNAME-LIST
  3415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3416. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3417. do
  3418. IFS=$as_save_IFS
  3419. test -z "$as_dir" && as_dir=.
  3420. for ac_prog in grep ggrep; do
  3421. for ac_exec_ext in '' $ac_executable_extensions; do
  3422. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3423. as_fn_executable_p "$ac_path_GREP" || continue
  3424. # Check for GNU ac_path_GREP and select it if it is found.
  3425. # Check for GNU $ac_path_GREP
  3426. case `"$ac_path_GREP" --version 2>&1` in
  3427. *GNU*)
  3428. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3429. *)
  3430. ac_count=0
  3431. $as_echo_n 0123456789 >"conftest.in"
  3432. while :
  3433. do
  3434. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3435. mv "conftest.tmp" "conftest.in"
  3436. cp "conftest.in" "conftest.nl"
  3437. $as_echo 'GREP' >> "conftest.nl"
  3438. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3439. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3440. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3441. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3442. # Best one so far, save it but keep looking for a better one
  3443. ac_cv_path_GREP="$ac_path_GREP"
  3444. ac_path_GREP_max=$ac_count
  3445. fi
  3446. # 10*(2^10) chars as input seems more than enough
  3447. test $ac_count -gt 10 && break
  3448. done
  3449. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3450. esac
  3451. $ac_path_GREP_found && break 3
  3452. done
  3453. done
  3454. done
  3455. IFS=$as_save_IFS
  3456. if test -z "$ac_cv_path_GREP"; then
  3457. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3458. fi
  3459. else
  3460. ac_cv_path_GREP=$GREP
  3461. fi
  3462. fi
  3463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3464. $as_echo "$ac_cv_path_GREP" >&6; }
  3465. GREP="$ac_cv_path_GREP"
  3466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3467. $as_echo_n "checking for egrep... " >&6; }
  3468. if ${ac_cv_path_EGREP+:} false; then :
  3469. $as_echo_n "(cached) " >&6
  3470. else
  3471. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3472. then ac_cv_path_EGREP="$GREP -E"
  3473. else
  3474. if test -z "$EGREP"; then
  3475. ac_path_EGREP_found=false
  3476. # Loop through the user's path and test for each of PROGNAME-LIST
  3477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3478. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3479. do
  3480. IFS=$as_save_IFS
  3481. test -z "$as_dir" && as_dir=.
  3482. for ac_prog in egrep; do
  3483. for ac_exec_ext in '' $ac_executable_extensions; do
  3484. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3485. as_fn_executable_p "$ac_path_EGREP" || continue
  3486. # Check for GNU ac_path_EGREP and select it if it is found.
  3487. # Check for GNU $ac_path_EGREP
  3488. case `"$ac_path_EGREP" --version 2>&1` in
  3489. *GNU*)
  3490. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3491. *)
  3492. ac_count=0
  3493. $as_echo_n 0123456789 >"conftest.in"
  3494. while :
  3495. do
  3496. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3497. mv "conftest.tmp" "conftest.in"
  3498. cp "conftest.in" "conftest.nl"
  3499. $as_echo 'EGREP' >> "conftest.nl"
  3500. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3501. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3502. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3503. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3504. # Best one so far, save it but keep looking for a better one
  3505. ac_cv_path_EGREP="$ac_path_EGREP"
  3506. ac_path_EGREP_max=$ac_count
  3507. fi
  3508. # 10*(2^10) chars as input seems more than enough
  3509. test $ac_count -gt 10 && break
  3510. done
  3511. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3512. esac
  3513. $ac_path_EGREP_found && break 3
  3514. done
  3515. done
  3516. done
  3517. IFS=$as_save_IFS
  3518. if test -z "$ac_cv_path_EGREP"; then
  3519. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3520. fi
  3521. else
  3522. ac_cv_path_EGREP=$EGREP
  3523. fi
  3524. fi
  3525. fi
  3526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3527. $as_echo "$ac_cv_path_EGREP" >&6; }
  3528. EGREP="$ac_cv_path_EGREP"
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3530. $as_echo_n "checking for fgrep... " >&6; }
  3531. if ${ac_cv_path_FGREP+:} false; then :
  3532. $as_echo_n "(cached) " >&6
  3533. else
  3534. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3535. then ac_cv_path_FGREP="$GREP -F"
  3536. else
  3537. if test -z "$FGREP"; then
  3538. ac_path_FGREP_found=false
  3539. # Loop through the user's path and test for each of PROGNAME-LIST
  3540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3541. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3542. do
  3543. IFS=$as_save_IFS
  3544. test -z "$as_dir" && as_dir=.
  3545. for ac_prog in fgrep; do
  3546. for ac_exec_ext in '' $ac_executable_extensions; do
  3547. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3548. as_fn_executable_p "$ac_path_FGREP" || continue
  3549. # Check for GNU ac_path_FGREP and select it if it is found.
  3550. # Check for GNU $ac_path_FGREP
  3551. case `"$ac_path_FGREP" --version 2>&1` in
  3552. *GNU*)
  3553. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3554. *)
  3555. ac_count=0
  3556. $as_echo_n 0123456789 >"conftest.in"
  3557. while :
  3558. do
  3559. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3560. mv "conftest.tmp" "conftest.in"
  3561. cp "conftest.in" "conftest.nl"
  3562. $as_echo 'FGREP' >> "conftest.nl"
  3563. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3564. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3565. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3566. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3567. # Best one so far, save it but keep looking for a better one
  3568. ac_cv_path_FGREP="$ac_path_FGREP"
  3569. ac_path_FGREP_max=$ac_count
  3570. fi
  3571. # 10*(2^10) chars as input seems more than enough
  3572. test $ac_count -gt 10 && break
  3573. done
  3574. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3575. esac
  3576. $ac_path_FGREP_found && break 3
  3577. done
  3578. done
  3579. done
  3580. IFS=$as_save_IFS
  3581. if test -z "$ac_cv_path_FGREP"; then
  3582. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3583. fi
  3584. else
  3585. ac_cv_path_FGREP=$FGREP
  3586. fi
  3587. fi
  3588. fi
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3590. $as_echo "$ac_cv_path_FGREP" >&6; }
  3591. FGREP="$ac_cv_path_FGREP"
  3592. test -z "$GREP" && GREP=grep
  3593. # Check whether --with-gnu-ld was given.
  3594. if test "${with_gnu_ld+set}" = set; then :
  3595. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3596. else
  3597. with_gnu_ld=no
  3598. fi
  3599. ac_prog=ld
  3600. if test "$GCC" = yes; then
  3601. # Check if gcc -print-prog-name=ld gives a path.
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3603. $as_echo_n "checking for ld used by $CC... " >&6; }
  3604. case $host in
  3605. *-*-mingw*)
  3606. # gcc leaves a trailing carriage return which upsets mingw
  3607. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3608. *)
  3609. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3610. esac
  3611. case $ac_prog in
  3612. # Accept absolute paths.
  3613. [\\/]* | ?:[\\/]*)
  3614. re_direlt='/[^/][^/]*/\.\./'
  3615. # Canonicalize the pathname of ld
  3616. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3617. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3618. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3619. done
  3620. test -z "$LD" && LD="$ac_prog"
  3621. ;;
  3622. "")
  3623. # If it fails, then pretend we aren't using GCC.
  3624. ac_prog=ld
  3625. ;;
  3626. *)
  3627. # If it is relative, then search for the first ld in PATH.
  3628. with_gnu_ld=unknown
  3629. ;;
  3630. esac
  3631. elif test "$with_gnu_ld" = yes; then
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3633. $as_echo_n "checking for GNU ld... " >&6; }
  3634. else
  3635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3636. $as_echo_n "checking for non-GNU ld... " >&6; }
  3637. fi
  3638. if ${lt_cv_path_LD+:} false; then :
  3639. $as_echo_n "(cached) " >&6
  3640. else
  3641. if test -z "$LD"; then
  3642. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3643. for ac_dir in $PATH; do
  3644. IFS="$lt_save_ifs"
  3645. test -z "$ac_dir" && ac_dir=.
  3646. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3647. lt_cv_path_LD="$ac_dir/$ac_prog"
  3648. # Check to see if the program is GNU ld. I'd rather use --version,
  3649. # but apparently some variants of GNU ld only accept -v.
  3650. # Break only if it was the GNU/non-GNU ld that we prefer.
  3651. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3652. *GNU* | *'with BFD'*)
  3653. test "$with_gnu_ld" != no && break
  3654. ;;
  3655. *)
  3656. test "$with_gnu_ld" != yes && break
  3657. ;;
  3658. esac
  3659. fi
  3660. done
  3661. IFS="$lt_save_ifs"
  3662. else
  3663. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3664. fi
  3665. fi
  3666. LD="$lt_cv_path_LD"
  3667. if test -n "$LD"; then
  3668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3669. $as_echo "$LD" >&6; }
  3670. else
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3672. $as_echo "no" >&6; }
  3673. fi
  3674. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3676. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3677. if ${lt_cv_prog_gnu_ld+:} false; then :
  3678. $as_echo_n "(cached) " >&6
  3679. else
  3680. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3681. case `$LD -v 2>&1 </dev/null` in
  3682. *GNU* | *'with BFD'*)
  3683. lt_cv_prog_gnu_ld=yes
  3684. ;;
  3685. *)
  3686. lt_cv_prog_gnu_ld=no
  3687. ;;
  3688. esac
  3689. fi
  3690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3691. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3692. with_gnu_ld=$lt_cv_prog_gnu_ld
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3694. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3695. if ${lt_cv_path_NM+:} false; then :
  3696. $as_echo_n "(cached) " >&6
  3697. else
  3698. if test -n "$NM"; then
  3699. # Let the user override the test.
  3700. lt_cv_path_NM="$NM"
  3701. else
  3702. lt_nm_to_check="${ac_tool_prefix}nm"
  3703. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3704. lt_nm_to_check="$lt_nm_to_check nm"
  3705. fi
  3706. for lt_tmp_nm in $lt_nm_to_check; do
  3707. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3708. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3709. IFS="$lt_save_ifs"
  3710. test -z "$ac_dir" && ac_dir=.
  3711. tmp_nm="$ac_dir/$lt_tmp_nm"
  3712. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3713. # Check to see if the nm accepts a BSD-compat flag.
  3714. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3715. # nm: unknown option "B" ignored
  3716. # Tru64's nm complains that /dev/null is an invalid object file
  3717. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3718. */dev/null* | *'Invalid file or object type'*)
  3719. lt_cv_path_NM="$tmp_nm -B"
  3720. break
  3721. ;;
  3722. *)
  3723. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3724. */dev/null*)
  3725. lt_cv_path_NM="$tmp_nm -p"
  3726. break
  3727. ;;
  3728. *)
  3729. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3730. continue # so that we can try to find one that supports BSD flags
  3731. ;;
  3732. esac
  3733. ;;
  3734. esac
  3735. fi
  3736. done
  3737. IFS="$lt_save_ifs"
  3738. done
  3739. : ${lt_cv_path_NM=no}
  3740. fi
  3741. fi
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3743. $as_echo "$lt_cv_path_NM" >&6; }
  3744. if test "$lt_cv_path_NM" != "no"; then
  3745. NM="$lt_cv_path_NM"
  3746. else
  3747. # Didn't find any BSD compatible name lister, look for dumpbin.
  3748. if test -n "$DUMPBIN"; then :
  3749. # Let the user override the test.
  3750. else
  3751. if test -n "$ac_tool_prefix"; then
  3752. for ac_prog in dumpbin "link -dump"
  3753. do
  3754. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3755. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3757. $as_echo_n "checking for $ac_word... " >&6; }
  3758. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3759. $as_echo_n "(cached) " >&6
  3760. else
  3761. if test -n "$DUMPBIN"; then
  3762. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3763. else
  3764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3765. for as_dir in $PATH
  3766. do
  3767. IFS=$as_save_IFS
  3768. test -z "$as_dir" && as_dir=.
  3769. for ac_exec_ext in '' $ac_executable_extensions; do
  3770. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3771. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3772. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3773. break 2
  3774. fi
  3775. done
  3776. done
  3777. IFS=$as_save_IFS
  3778. fi
  3779. fi
  3780. DUMPBIN=$ac_cv_prog_DUMPBIN
  3781. if test -n "$DUMPBIN"; then
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3783. $as_echo "$DUMPBIN" >&6; }
  3784. else
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3786. $as_echo "no" >&6; }
  3787. fi
  3788. test -n "$DUMPBIN" && break
  3789. done
  3790. fi
  3791. if test -z "$DUMPBIN"; then
  3792. ac_ct_DUMPBIN=$DUMPBIN
  3793. for ac_prog in dumpbin "link -dump"
  3794. do
  3795. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3796. set dummy $ac_prog; ac_word=$2
  3797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3798. $as_echo_n "checking for $ac_word... " >&6; }
  3799. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3800. $as_echo_n "(cached) " >&6
  3801. else
  3802. if test -n "$ac_ct_DUMPBIN"; then
  3803. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3804. else
  3805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3806. for as_dir in $PATH
  3807. do
  3808. IFS=$as_save_IFS
  3809. test -z "$as_dir" && as_dir=.
  3810. for ac_exec_ext in '' $ac_executable_extensions; do
  3811. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3812. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3813. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3814. break 2
  3815. fi
  3816. done
  3817. done
  3818. IFS=$as_save_IFS
  3819. fi
  3820. fi
  3821. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3822. if test -n "$ac_ct_DUMPBIN"; then
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3824. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3825. else
  3826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3827. $as_echo "no" >&6; }
  3828. fi
  3829. test -n "$ac_ct_DUMPBIN" && break
  3830. done
  3831. if test "x$ac_ct_DUMPBIN" = x; then
  3832. DUMPBIN=":"
  3833. else
  3834. case $cross_compiling:$ac_tool_warned in
  3835. yes:)
  3836. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3837. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3838. ac_tool_warned=yes ;;
  3839. esac
  3840. DUMPBIN=$ac_ct_DUMPBIN
  3841. fi
  3842. fi
  3843. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3844. *COFF*)
  3845. DUMPBIN="$DUMPBIN -symbols"
  3846. ;;
  3847. *)
  3848. DUMPBIN=:
  3849. ;;
  3850. esac
  3851. fi
  3852. if test "$DUMPBIN" != ":"; then
  3853. NM="$DUMPBIN"
  3854. fi
  3855. fi
  3856. test -z "$NM" && NM=nm
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3858. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3859. if ${lt_cv_nm_interface+:} false; then :
  3860. $as_echo_n "(cached) " >&6
  3861. else
  3862. lt_cv_nm_interface="BSD nm"
  3863. echo "int some_variable = 0;" > conftest.$ac_ext
  3864. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3865. (eval "$ac_compile" 2>conftest.err)
  3866. cat conftest.err >&5
  3867. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3868. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3869. cat conftest.err >&5
  3870. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3871. cat conftest.out >&5
  3872. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3873. lt_cv_nm_interface="MS dumpbin"
  3874. fi
  3875. rm -f conftest*
  3876. fi
  3877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3878. $as_echo "$lt_cv_nm_interface" >&6; }
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3880. $as_echo_n "checking whether ln -s works... " >&6; }
  3881. LN_S=$as_ln_s
  3882. if test "$LN_S" = "ln -s"; then
  3883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3884. $as_echo "yes" >&6; }
  3885. else
  3886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3887. $as_echo "no, using $LN_S" >&6; }
  3888. fi
  3889. # find the maximum length of command line arguments
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3891. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3892. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3893. $as_echo_n "(cached) " >&6
  3894. else
  3895. i=0
  3896. teststring="ABCD"
  3897. case $build_os in
  3898. msdosdjgpp*)
  3899. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3900. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3901. # during glob expansion). Even if it were fixed, the result of this
  3902. # check would be larger than it should be.
  3903. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3904. ;;
  3905. gnu*)
  3906. # Under GNU Hurd, this test is not required because there is
  3907. # no limit to the length of command line arguments.
  3908. # Libtool will interpret -1 as no limit whatsoever
  3909. lt_cv_sys_max_cmd_len=-1;
  3910. ;;
  3911. cygwin* | mingw* | cegcc*)
  3912. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3913. # about 5 minutes as the teststring grows exponentially.
  3914. # Worse, since 9x/ME are not pre-emptively multitasking,
  3915. # you end up with a "frozen" computer, even though with patience
  3916. # the test eventually succeeds (with a max line length of 256k).
  3917. # Instead, let's just punt: use the minimum linelength reported by
  3918. # all of the supported platforms: 8192 (on NT/2K/XP).
  3919. lt_cv_sys_max_cmd_len=8192;
  3920. ;;
  3921. mint*)
  3922. # On MiNT this can take a long time and run out of memory.
  3923. lt_cv_sys_max_cmd_len=8192;
  3924. ;;
  3925. amigaos*)
  3926. # On AmigaOS with pdksh, this test takes hours, literally.
  3927. # So we just punt and use a minimum line length of 8192.
  3928. lt_cv_sys_max_cmd_len=8192;
  3929. ;;
  3930. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3931. # This has been around since 386BSD, at least. Likely further.
  3932. if test -x /sbin/sysctl; then
  3933. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3934. elif test -x /usr/sbin/sysctl; then
  3935. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3936. else
  3937. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3938. fi
  3939. # And add a safety zone
  3940. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3941. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3942. ;;
  3943. interix*)
  3944. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3945. lt_cv_sys_max_cmd_len=196608
  3946. ;;
  3947. os2*)
  3948. # The test takes a long time on OS/2.
  3949. lt_cv_sys_max_cmd_len=8192
  3950. ;;
  3951. osf*)
  3952. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3953. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3954. # nice to cause kernel panics so lets avoid the loop below.
  3955. # First set a reasonable default.
  3956. lt_cv_sys_max_cmd_len=16384
  3957. #
  3958. if test -x /sbin/sysconfig; then
  3959. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3960. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3961. esac
  3962. fi
  3963. ;;
  3964. sco3.2v5*)
  3965. lt_cv_sys_max_cmd_len=102400
  3966. ;;
  3967. sysv5* | sco5v6* | sysv4.2uw2*)
  3968. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3969. if test -n "$kargmax"; then
  3970. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3971. else
  3972. lt_cv_sys_max_cmd_len=32768
  3973. fi
  3974. ;;
  3975. *)
  3976. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3977. if test -n "$lt_cv_sys_max_cmd_len"; then
  3978. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3979. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3980. else
  3981. # Make teststring a little bigger before we do anything with it.
  3982. # a 1K string should be a reasonable start.
  3983. for i in 1 2 3 4 5 6 7 8 ; do
  3984. teststring=$teststring$teststring
  3985. done
  3986. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3987. # If test is not a shell built-in, we'll probably end up computing a
  3988. # maximum length that is only half of the actual maximum length, but
  3989. # we can't tell.
  3990. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3991. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3992. test $i != 17 # 1/2 MB should be enough
  3993. do
  3994. i=`expr $i + 1`
  3995. teststring=$teststring$teststring
  3996. done
  3997. # Only check the string length outside the loop.
  3998. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3999. teststring=
  4000. # Add a significant safety factor because C++ compilers can tack on
  4001. # massive amounts of additional arguments before passing them to the
  4002. # linker. It appears as though 1/2 is a usable value.
  4003. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4004. fi
  4005. ;;
  4006. esac
  4007. fi
  4008. if test -n $lt_cv_sys_max_cmd_len ; then
  4009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4010. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4011. else
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4013. $as_echo "none" >&6; }
  4014. fi
  4015. max_cmd_len=$lt_cv_sys_max_cmd_len
  4016. : ${CP="cp -f"}
  4017. : ${MV="mv -f"}
  4018. : ${RM="rm -f"}
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4020. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4021. # Try some XSI features
  4022. xsi_shell=no
  4023. ( _lt_dummy="a/b/c"
  4024. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4025. = c,a/b,b/c, \
  4026. && eval 'test $(( 1 + 1 )) -eq 2 \
  4027. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4028. && xsi_shell=yes
  4029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4030. $as_echo "$xsi_shell" >&6; }
  4031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4032. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4033. lt_shell_append=no
  4034. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4035. >/dev/null 2>&1 \
  4036. && lt_shell_append=yes
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4038. $as_echo "$lt_shell_append" >&6; }
  4039. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4040. lt_unset=unset
  4041. else
  4042. lt_unset=false
  4043. fi
  4044. # test EBCDIC or ASCII
  4045. case `echo X|tr X '\101'` in
  4046. A) # ASCII based system
  4047. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4048. lt_SP2NL='tr \040 \012'
  4049. lt_NL2SP='tr \015\012 \040\040'
  4050. ;;
  4051. *) # EBCDIC based system
  4052. lt_SP2NL='tr \100 \n'
  4053. lt_NL2SP='tr \r\n \100\100'
  4054. ;;
  4055. esac
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4057. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4058. if ${lt_cv_to_host_file_cmd+:} false; then :
  4059. $as_echo_n "(cached) " >&6
  4060. else
  4061. case $host in
  4062. *-*-mingw* )
  4063. case $build in
  4064. *-*-mingw* ) # actually msys
  4065. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4066. ;;
  4067. *-*-cygwin* )
  4068. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4069. ;;
  4070. * ) # otherwise, assume *nix
  4071. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4072. ;;
  4073. esac
  4074. ;;
  4075. *-*-cygwin* )
  4076. case $build in
  4077. *-*-mingw* ) # actually msys
  4078. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4079. ;;
  4080. *-*-cygwin* )
  4081. lt_cv_to_host_file_cmd=func_convert_file_noop
  4082. ;;
  4083. * ) # otherwise, assume *nix
  4084. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4085. ;;
  4086. esac
  4087. ;;
  4088. * ) # unhandled hosts (and "normal" native builds)
  4089. lt_cv_to_host_file_cmd=func_convert_file_noop
  4090. ;;
  4091. esac
  4092. fi
  4093. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4095. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4097. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4098. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4099. $as_echo_n "(cached) " >&6
  4100. else
  4101. #assume ordinary cross tools, or native build.
  4102. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4103. case $host in
  4104. *-*-mingw* )
  4105. case $build in
  4106. *-*-mingw* ) # actually msys
  4107. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4108. ;;
  4109. esac
  4110. ;;
  4111. esac
  4112. fi
  4113. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4115. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4117. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4118. if ${lt_cv_ld_reload_flag+:} false; then :
  4119. $as_echo_n "(cached) " >&6
  4120. else
  4121. lt_cv_ld_reload_flag='-r'
  4122. fi
  4123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4124. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4125. reload_flag=$lt_cv_ld_reload_flag
  4126. case $reload_flag in
  4127. "" | " "*) ;;
  4128. *) reload_flag=" $reload_flag" ;;
  4129. esac
  4130. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4131. case $host_os in
  4132. cygwin* | mingw* | pw32* | cegcc*)
  4133. if test "$GCC" != yes; then
  4134. reload_cmds=false
  4135. fi
  4136. ;;
  4137. darwin*)
  4138. if test "$GCC" = yes; then
  4139. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4140. else
  4141. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4142. fi
  4143. ;;
  4144. esac
  4145. if test -n "$ac_tool_prefix"; then
  4146. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4147. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4149. $as_echo_n "checking for $ac_word... " >&6; }
  4150. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4151. $as_echo_n "(cached) " >&6
  4152. else
  4153. if test -n "$OBJDUMP"; then
  4154. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4155. else
  4156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4157. for as_dir in $PATH
  4158. do
  4159. IFS=$as_save_IFS
  4160. test -z "$as_dir" && as_dir=.
  4161. for ac_exec_ext in '' $ac_executable_extensions; do
  4162. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4163. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4164. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4165. break 2
  4166. fi
  4167. done
  4168. done
  4169. IFS=$as_save_IFS
  4170. fi
  4171. fi
  4172. OBJDUMP=$ac_cv_prog_OBJDUMP
  4173. if test -n "$OBJDUMP"; then
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4175. $as_echo "$OBJDUMP" >&6; }
  4176. else
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4178. $as_echo "no" >&6; }
  4179. fi
  4180. fi
  4181. if test -z "$ac_cv_prog_OBJDUMP"; then
  4182. ac_ct_OBJDUMP=$OBJDUMP
  4183. # Extract the first word of "objdump", so it can be a program name with args.
  4184. set dummy objdump; ac_word=$2
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4186. $as_echo_n "checking for $ac_word... " >&6; }
  4187. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4188. $as_echo_n "(cached) " >&6
  4189. else
  4190. if test -n "$ac_ct_OBJDUMP"; then
  4191. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4192. else
  4193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4194. for as_dir in $PATH
  4195. do
  4196. IFS=$as_save_IFS
  4197. test -z "$as_dir" && as_dir=.
  4198. for ac_exec_ext in '' $ac_executable_extensions; do
  4199. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4200. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4201. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4202. break 2
  4203. fi
  4204. done
  4205. done
  4206. IFS=$as_save_IFS
  4207. fi
  4208. fi
  4209. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4210. if test -n "$ac_ct_OBJDUMP"; then
  4211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4212. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4213. else
  4214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4215. $as_echo "no" >&6; }
  4216. fi
  4217. if test "x$ac_ct_OBJDUMP" = x; then
  4218. OBJDUMP="false"
  4219. else
  4220. case $cross_compiling:$ac_tool_warned in
  4221. yes:)
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4223. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4224. ac_tool_warned=yes ;;
  4225. esac
  4226. OBJDUMP=$ac_ct_OBJDUMP
  4227. fi
  4228. else
  4229. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4230. fi
  4231. test -z "$OBJDUMP" && OBJDUMP=objdump
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4233. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4234. if ${lt_cv_deplibs_check_method+:} false; then :
  4235. $as_echo_n "(cached) " >&6
  4236. else
  4237. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4238. lt_cv_file_magic_test_file=
  4239. lt_cv_deplibs_check_method='unknown'
  4240. # Need to set the preceding variable on all platforms that support
  4241. # interlibrary dependencies.
  4242. # 'none' -- dependencies not supported.
  4243. # `unknown' -- same as none, but documents that we really don't know.
  4244. # 'pass_all' -- all dependencies passed with no checks.
  4245. # 'test_compile' -- check by making test program.
  4246. # 'file_magic [[regex]]' -- check by looking for files in library path
  4247. # which responds to the $file_magic_cmd with a given extended regex.
  4248. # If you have `file' or equivalent on your system and you're not sure
  4249. # whether `pass_all' will *always* work, you probably want this one.
  4250. case $host_os in
  4251. aix[4-9]*)
  4252. lt_cv_deplibs_check_method=pass_all
  4253. ;;
  4254. beos*)
  4255. lt_cv_deplibs_check_method=pass_all
  4256. ;;
  4257. bsdi[45]*)
  4258. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4259. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4260. lt_cv_file_magic_test_file=/shlib/libc.so
  4261. ;;
  4262. cygwin*)
  4263. # func_win32_libid is a shell function defined in ltmain.sh
  4264. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4265. lt_cv_file_magic_cmd='func_win32_libid'
  4266. lt_cv_deplibs_check_method=pass_all
  4267. ;;
  4268. mingw* | pw32*)
  4269. # Base MSYS/MinGW do not provide the 'file' command needed by
  4270. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4271. # unless we find 'file', for example because we are cross-compiling.
  4272. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4273. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4274. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4275. lt_cv_file_magic_cmd='func_win32_libid'
  4276. else
  4277. # Keep this pattern in sync with the one in func_win32_libid.
  4278. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4279. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4280. fi
  4281. lt_cv_deplibs_check_method=pass_all
  4282. ;;
  4283. cegcc*)
  4284. # use the weaker test based on 'objdump'. See mingw*.
  4285. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4286. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4287. ;;
  4288. darwin* | rhapsody*)
  4289. lt_cv_deplibs_check_method=pass_all
  4290. ;;
  4291. freebsd* | dragonfly*)
  4292. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4293. case $host_cpu in
  4294. i*86 )
  4295. # Not sure whether the presence of OpenBSD here was a mistake.
  4296. # Let's accept both of them until this is cleared up.
  4297. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4298. lt_cv_file_magic_cmd=/usr/bin/file
  4299. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4300. ;;
  4301. esac
  4302. else
  4303. lt_cv_deplibs_check_method=pass_all
  4304. fi
  4305. ;;
  4306. gnu*)
  4307. lt_cv_deplibs_check_method=pass_all
  4308. ;;
  4309. haiku*)
  4310. lt_cv_deplibs_check_method=pass_all
  4311. ;;
  4312. hpux10.20* | hpux11*)
  4313. lt_cv_file_magic_cmd=/usr/bin/file
  4314. case $host_cpu in
  4315. ia64*)
  4316. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4317. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4318. ;;
  4319. hppa*64*)
  4320. 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]'
  4321. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4322. ;;
  4323. *)
  4324. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4325. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4326. ;;
  4327. esac
  4328. ;;
  4329. interix[3-9]*)
  4330. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4331. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4332. ;;
  4333. irix5* | irix6* | nonstopux*)
  4334. case $LD in
  4335. *-32|*"-32 ") libmagic=32-bit;;
  4336. *-n32|*"-n32 ") libmagic=N32;;
  4337. *-64|*"-64 ") libmagic=64-bit;;
  4338. *) libmagic=never-match;;
  4339. esac
  4340. lt_cv_deplibs_check_method=pass_all
  4341. ;;
  4342. # This must be glibc/ELF.
  4343. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4344. lt_cv_deplibs_check_method=pass_all
  4345. ;;
  4346. netbsd*)
  4347. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4348. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4349. else
  4350. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4351. fi
  4352. ;;
  4353. newos6*)
  4354. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4355. lt_cv_file_magic_cmd=/usr/bin/file
  4356. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4357. ;;
  4358. *nto* | *qnx*)
  4359. lt_cv_deplibs_check_method=pass_all
  4360. ;;
  4361. openbsd*)
  4362. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4363. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4364. else
  4365. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4366. fi
  4367. ;;
  4368. osf3* | osf4* | osf5*)
  4369. lt_cv_deplibs_check_method=pass_all
  4370. ;;
  4371. rdos*)
  4372. lt_cv_deplibs_check_method=pass_all
  4373. ;;
  4374. solaris*)
  4375. lt_cv_deplibs_check_method=pass_all
  4376. ;;
  4377. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4378. lt_cv_deplibs_check_method=pass_all
  4379. ;;
  4380. sysv4 | sysv4.3*)
  4381. case $host_vendor in
  4382. motorola)
  4383. 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]'
  4384. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4385. ;;
  4386. ncr)
  4387. lt_cv_deplibs_check_method=pass_all
  4388. ;;
  4389. sequent)
  4390. lt_cv_file_magic_cmd='/bin/file'
  4391. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4392. ;;
  4393. sni)
  4394. lt_cv_file_magic_cmd='/bin/file'
  4395. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4396. lt_cv_file_magic_test_file=/lib/libc.so
  4397. ;;
  4398. siemens)
  4399. lt_cv_deplibs_check_method=pass_all
  4400. ;;
  4401. pc)
  4402. lt_cv_deplibs_check_method=pass_all
  4403. ;;
  4404. esac
  4405. ;;
  4406. tpf*)
  4407. lt_cv_deplibs_check_method=pass_all
  4408. ;;
  4409. esac
  4410. fi
  4411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4412. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4413. file_magic_glob=
  4414. want_nocaseglob=no
  4415. if test "$build" = "$host"; then
  4416. case $host_os in
  4417. mingw* | pw32*)
  4418. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4419. want_nocaseglob=yes
  4420. else
  4421. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4422. fi
  4423. ;;
  4424. esac
  4425. fi
  4426. file_magic_cmd=$lt_cv_file_magic_cmd
  4427. deplibs_check_method=$lt_cv_deplibs_check_method
  4428. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4429. if test -n "$ac_tool_prefix"; then
  4430. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4431. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4433. $as_echo_n "checking for $ac_word... " >&6; }
  4434. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4435. $as_echo_n "(cached) " >&6
  4436. else
  4437. if test -n "$DLLTOOL"; then
  4438. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4439. else
  4440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4441. for as_dir in $PATH
  4442. do
  4443. IFS=$as_save_IFS
  4444. test -z "$as_dir" && as_dir=.
  4445. for ac_exec_ext in '' $ac_executable_extensions; do
  4446. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4447. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4448. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4449. break 2
  4450. fi
  4451. done
  4452. done
  4453. IFS=$as_save_IFS
  4454. fi
  4455. fi
  4456. DLLTOOL=$ac_cv_prog_DLLTOOL
  4457. if test -n "$DLLTOOL"; then
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4459. $as_echo "$DLLTOOL" >&6; }
  4460. else
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4462. $as_echo "no" >&6; }
  4463. fi
  4464. fi
  4465. if test -z "$ac_cv_prog_DLLTOOL"; then
  4466. ac_ct_DLLTOOL=$DLLTOOL
  4467. # Extract the first word of "dlltool", so it can be a program name with args.
  4468. set dummy dlltool; ac_word=$2
  4469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4470. $as_echo_n "checking for $ac_word... " >&6; }
  4471. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4472. $as_echo_n "(cached) " >&6
  4473. else
  4474. if test -n "$ac_ct_DLLTOOL"; then
  4475. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4476. else
  4477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4478. for as_dir in $PATH
  4479. do
  4480. IFS=$as_save_IFS
  4481. test -z "$as_dir" && as_dir=.
  4482. for ac_exec_ext in '' $ac_executable_extensions; do
  4483. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4484. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4486. break 2
  4487. fi
  4488. done
  4489. done
  4490. IFS=$as_save_IFS
  4491. fi
  4492. fi
  4493. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4494. if test -n "$ac_ct_DLLTOOL"; then
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4496. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4497. else
  4498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4499. $as_echo "no" >&6; }
  4500. fi
  4501. if test "x$ac_ct_DLLTOOL" = x; then
  4502. DLLTOOL="false"
  4503. else
  4504. case $cross_compiling:$ac_tool_warned in
  4505. yes:)
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4507. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4508. ac_tool_warned=yes ;;
  4509. esac
  4510. DLLTOOL=$ac_ct_DLLTOOL
  4511. fi
  4512. else
  4513. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4514. fi
  4515. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4517. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4518. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4519. $as_echo_n "(cached) " >&6
  4520. else
  4521. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4522. case $host_os in
  4523. cygwin* | mingw* | pw32* | cegcc*)
  4524. # two different shell functions defined in ltmain.sh
  4525. # decide which to use based on capabilities of $DLLTOOL
  4526. case `$DLLTOOL --help 2>&1` in
  4527. *--identify-strict*)
  4528. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4529. ;;
  4530. *)
  4531. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4532. ;;
  4533. esac
  4534. ;;
  4535. *)
  4536. # fallback: assume linklib IS sharedlib
  4537. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4538. ;;
  4539. esac
  4540. fi
  4541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4542. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4543. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4544. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4545. if test -n "$ac_tool_prefix"; then
  4546. for ac_prog in ar
  4547. do
  4548. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4549. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4551. $as_echo_n "checking for $ac_word... " >&6; }
  4552. if ${ac_cv_prog_AR+:} false; then :
  4553. $as_echo_n "(cached) " >&6
  4554. else
  4555. if test -n "$AR"; then
  4556. ac_cv_prog_AR="$AR" # Let the user override the test.
  4557. else
  4558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4559. for as_dir in $PATH
  4560. do
  4561. IFS=$as_save_IFS
  4562. test -z "$as_dir" && as_dir=.
  4563. for ac_exec_ext in '' $ac_executable_extensions; do
  4564. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4565. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4566. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4567. break 2
  4568. fi
  4569. done
  4570. done
  4571. IFS=$as_save_IFS
  4572. fi
  4573. fi
  4574. AR=$ac_cv_prog_AR
  4575. if test -n "$AR"; then
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4577. $as_echo "$AR" >&6; }
  4578. else
  4579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4580. $as_echo "no" >&6; }
  4581. fi
  4582. test -n "$AR" && break
  4583. done
  4584. fi
  4585. if test -z "$AR"; then
  4586. ac_ct_AR=$AR
  4587. for ac_prog in ar
  4588. do
  4589. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4590. set dummy $ac_prog; ac_word=$2
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4592. $as_echo_n "checking for $ac_word... " >&6; }
  4593. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4594. $as_echo_n "(cached) " >&6
  4595. else
  4596. if test -n "$ac_ct_AR"; then
  4597. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4598. else
  4599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4600. for as_dir in $PATH
  4601. do
  4602. IFS=$as_save_IFS
  4603. test -z "$as_dir" && as_dir=.
  4604. for ac_exec_ext in '' $ac_executable_extensions; do
  4605. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4606. ac_cv_prog_ac_ct_AR="$ac_prog"
  4607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4608. break 2
  4609. fi
  4610. done
  4611. done
  4612. IFS=$as_save_IFS
  4613. fi
  4614. fi
  4615. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4616. if test -n "$ac_ct_AR"; then
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4618. $as_echo "$ac_ct_AR" >&6; }
  4619. else
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4621. $as_echo "no" >&6; }
  4622. fi
  4623. test -n "$ac_ct_AR" && break
  4624. done
  4625. if test "x$ac_ct_AR" = x; then
  4626. AR="false"
  4627. else
  4628. case $cross_compiling:$ac_tool_warned in
  4629. yes:)
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4631. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4632. ac_tool_warned=yes ;;
  4633. esac
  4634. AR=$ac_ct_AR
  4635. fi
  4636. fi
  4637. : ${AR=ar}
  4638. : ${AR_FLAGS=cru}
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4640. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4641. if ${lt_cv_ar_at_file+:} false; then :
  4642. $as_echo_n "(cached) " >&6
  4643. else
  4644. lt_cv_ar_at_file=no
  4645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4646. /* end confdefs.h. */
  4647. int
  4648. main ()
  4649. {
  4650. ;
  4651. return 0;
  4652. }
  4653. _ACEOF
  4654. if ac_fn_c_try_compile "$LINENO"; then :
  4655. echo conftest.$ac_objext > conftest.lst
  4656. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4657. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4658. (eval $lt_ar_try) 2>&5
  4659. ac_status=$?
  4660. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4661. test $ac_status = 0; }
  4662. if test "$ac_status" -eq 0; then
  4663. # Ensure the archiver fails upon bogus file names.
  4664. rm -f conftest.$ac_objext libconftest.a
  4665. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4666. (eval $lt_ar_try) 2>&5
  4667. ac_status=$?
  4668. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4669. test $ac_status = 0; }
  4670. if test "$ac_status" -ne 0; then
  4671. lt_cv_ar_at_file=@
  4672. fi
  4673. fi
  4674. rm -f conftest.* libconftest.a
  4675. fi
  4676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4677. fi
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4679. $as_echo "$lt_cv_ar_at_file" >&6; }
  4680. if test "x$lt_cv_ar_at_file" = xno; then
  4681. archiver_list_spec=
  4682. else
  4683. archiver_list_spec=$lt_cv_ar_at_file
  4684. fi
  4685. if test -n "$ac_tool_prefix"; then
  4686. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4687. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4689. $as_echo_n "checking for $ac_word... " >&6; }
  4690. if ${ac_cv_prog_STRIP+:} false; then :
  4691. $as_echo_n "(cached) " >&6
  4692. else
  4693. if test -n "$STRIP"; then
  4694. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4695. else
  4696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4697. for as_dir in $PATH
  4698. do
  4699. IFS=$as_save_IFS
  4700. test -z "$as_dir" && as_dir=.
  4701. for ac_exec_ext in '' $ac_executable_extensions; do
  4702. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4703. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4704. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4705. break 2
  4706. fi
  4707. done
  4708. done
  4709. IFS=$as_save_IFS
  4710. fi
  4711. fi
  4712. STRIP=$ac_cv_prog_STRIP
  4713. if test -n "$STRIP"; then
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4715. $as_echo "$STRIP" >&6; }
  4716. else
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4718. $as_echo "no" >&6; }
  4719. fi
  4720. fi
  4721. if test -z "$ac_cv_prog_STRIP"; then
  4722. ac_ct_STRIP=$STRIP
  4723. # Extract the first word of "strip", so it can be a program name with args.
  4724. set dummy strip; ac_word=$2
  4725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4726. $as_echo_n "checking for $ac_word... " >&6; }
  4727. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4728. $as_echo_n "(cached) " >&6
  4729. else
  4730. if test -n "$ac_ct_STRIP"; then
  4731. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4732. else
  4733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4734. for as_dir in $PATH
  4735. do
  4736. IFS=$as_save_IFS
  4737. test -z "$as_dir" && as_dir=.
  4738. for ac_exec_ext in '' $ac_executable_extensions; do
  4739. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4740. ac_cv_prog_ac_ct_STRIP="strip"
  4741. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4742. break 2
  4743. fi
  4744. done
  4745. done
  4746. IFS=$as_save_IFS
  4747. fi
  4748. fi
  4749. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4750. if test -n "$ac_ct_STRIP"; then
  4751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4752. $as_echo "$ac_ct_STRIP" >&6; }
  4753. else
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4755. $as_echo "no" >&6; }
  4756. fi
  4757. if test "x$ac_ct_STRIP" = x; then
  4758. STRIP=":"
  4759. else
  4760. case $cross_compiling:$ac_tool_warned in
  4761. yes:)
  4762. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4763. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4764. ac_tool_warned=yes ;;
  4765. esac
  4766. STRIP=$ac_ct_STRIP
  4767. fi
  4768. else
  4769. STRIP="$ac_cv_prog_STRIP"
  4770. fi
  4771. test -z "$STRIP" && STRIP=:
  4772. if test -n "$ac_tool_prefix"; then
  4773. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4774. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4776. $as_echo_n "checking for $ac_word... " >&6; }
  4777. if ${ac_cv_prog_RANLIB+:} false; then :
  4778. $as_echo_n "(cached) " >&6
  4779. else
  4780. if test -n "$RANLIB"; then
  4781. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4782. else
  4783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4784. for as_dir in $PATH
  4785. do
  4786. IFS=$as_save_IFS
  4787. test -z "$as_dir" && as_dir=.
  4788. for ac_exec_ext in '' $ac_executable_extensions; do
  4789. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4790. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4792. break 2
  4793. fi
  4794. done
  4795. done
  4796. IFS=$as_save_IFS
  4797. fi
  4798. fi
  4799. RANLIB=$ac_cv_prog_RANLIB
  4800. if test -n "$RANLIB"; then
  4801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4802. $as_echo "$RANLIB" >&6; }
  4803. else
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4805. $as_echo "no" >&6; }
  4806. fi
  4807. fi
  4808. if test -z "$ac_cv_prog_RANLIB"; then
  4809. ac_ct_RANLIB=$RANLIB
  4810. # Extract the first word of "ranlib", so it can be a program name with args.
  4811. set dummy ranlib; ac_word=$2
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4813. $as_echo_n "checking for $ac_word... " >&6; }
  4814. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4815. $as_echo_n "(cached) " >&6
  4816. else
  4817. if test -n "$ac_ct_RANLIB"; then
  4818. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4819. else
  4820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4821. for as_dir in $PATH
  4822. do
  4823. IFS=$as_save_IFS
  4824. test -z "$as_dir" && as_dir=.
  4825. for ac_exec_ext in '' $ac_executable_extensions; do
  4826. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4827. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4829. break 2
  4830. fi
  4831. done
  4832. done
  4833. IFS=$as_save_IFS
  4834. fi
  4835. fi
  4836. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4837. if test -n "$ac_ct_RANLIB"; then
  4838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4839. $as_echo "$ac_ct_RANLIB" >&6; }
  4840. else
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4842. $as_echo "no" >&6; }
  4843. fi
  4844. if test "x$ac_ct_RANLIB" = x; then
  4845. RANLIB=":"
  4846. else
  4847. case $cross_compiling:$ac_tool_warned in
  4848. yes:)
  4849. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4850. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4851. ac_tool_warned=yes ;;
  4852. esac
  4853. RANLIB=$ac_ct_RANLIB
  4854. fi
  4855. else
  4856. RANLIB="$ac_cv_prog_RANLIB"
  4857. fi
  4858. test -z "$RANLIB" && RANLIB=:
  4859. # Determine commands to create old-style static archives.
  4860. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4861. old_postinstall_cmds='chmod 644 $oldlib'
  4862. old_postuninstall_cmds=
  4863. if test -n "$RANLIB"; then
  4864. case $host_os in
  4865. openbsd*)
  4866. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4867. ;;
  4868. *)
  4869. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4870. ;;
  4871. esac
  4872. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4873. fi
  4874. case $host_os in
  4875. darwin*)
  4876. lock_old_archive_extraction=yes ;;
  4877. *)
  4878. lock_old_archive_extraction=no ;;
  4879. esac
  4880. for ac_prog in gawk mawk nawk awk
  4881. do
  4882. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4883. set dummy $ac_prog; ac_word=$2
  4884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4885. $as_echo_n "checking for $ac_word... " >&6; }
  4886. if ${ac_cv_prog_AWK+:} false; then :
  4887. $as_echo_n "(cached) " >&6
  4888. else
  4889. if test -n "$AWK"; then
  4890. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4891. else
  4892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4893. for as_dir in $PATH
  4894. do
  4895. IFS=$as_save_IFS
  4896. test -z "$as_dir" && as_dir=.
  4897. for ac_exec_ext in '' $ac_executable_extensions; do
  4898. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4899. ac_cv_prog_AWK="$ac_prog"
  4900. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4901. break 2
  4902. fi
  4903. done
  4904. done
  4905. IFS=$as_save_IFS
  4906. fi
  4907. fi
  4908. AWK=$ac_cv_prog_AWK
  4909. if test -n "$AWK"; then
  4910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4911. $as_echo "$AWK" >&6; }
  4912. else
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4914. $as_echo "no" >&6; }
  4915. fi
  4916. test -n "$AWK" && break
  4917. done
  4918. # If no C compiler was specified, use CC.
  4919. LTCC=${LTCC-"$CC"}
  4920. # If no C compiler flags were specified, use CFLAGS.
  4921. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4922. # Allow CC to be a program name with arguments.
  4923. compiler=$CC
  4924. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4926. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4927. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4928. $as_echo_n "(cached) " >&6
  4929. else
  4930. # These are sane defaults that work on at least a few old systems.
  4931. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4932. # Character class describing NM global symbol codes.
  4933. symcode='[BCDEGRST]'
  4934. # Regexp to match symbols that can be accessed directly from C.
  4935. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4936. # Define system-specific variables.
  4937. case $host_os in
  4938. aix*)
  4939. symcode='[BCDT]'
  4940. ;;
  4941. cygwin* | mingw* | pw32* | cegcc*)
  4942. symcode='[ABCDGISTW]'
  4943. ;;
  4944. hpux*)
  4945. if test "$host_cpu" = ia64; then
  4946. symcode='[ABCDEGRST]'
  4947. fi
  4948. ;;
  4949. irix* | nonstopux*)
  4950. symcode='[BCDEGRST]'
  4951. ;;
  4952. osf*)
  4953. symcode='[BCDEGQRST]'
  4954. ;;
  4955. solaris*)
  4956. symcode='[BDRT]'
  4957. ;;
  4958. sco3.2v5*)
  4959. symcode='[DT]'
  4960. ;;
  4961. sysv4.2uw2*)
  4962. symcode='[DT]'
  4963. ;;
  4964. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4965. symcode='[ABDT]'
  4966. ;;
  4967. sysv4)
  4968. symcode='[DFNSTU]'
  4969. ;;
  4970. esac
  4971. # If we're using GNU nm, then use its standard symbol codes.
  4972. case `$NM -V 2>&1` in
  4973. *GNU* | *'with BFD'*)
  4974. symcode='[ABCDGIRSTW]' ;;
  4975. esac
  4976. # Transform an extracted symbol line into a proper C declaration.
  4977. # Some systems (esp. on ia64) link data and code symbols differently,
  4978. # so use this general approach.
  4979. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4980. # Transform an extracted symbol line into symbol name and symbol address
  4981. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4982. 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'"
  4983. # Handle CRLF in mingw tool chain
  4984. opt_cr=
  4985. case $build_os in
  4986. mingw*)
  4987. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4988. ;;
  4989. esac
  4990. # Try without a prefix underscore, then with it.
  4991. for ac_symprfx in "" "_"; do
  4992. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4993. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4994. # Write the raw and C identifiers.
  4995. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4996. # Fake it for dumpbin and say T for any non-static function
  4997. # and D for any global variable.
  4998. # Also find C++ and __fastcall symbols from MSVC++,
  4999. # which start with @ or ?.
  5000. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5001. " {last_section=section; section=\$ 3};"\
  5002. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5003. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5004. " \$ 0!~/External *\|/{next};"\
  5005. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5006. " {if(hide[section]) next};"\
  5007. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5008. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5009. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5010. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5011. " ' prfx=^$ac_symprfx"
  5012. else
  5013. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5014. fi
  5015. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5016. # Check to see that the pipe works correctly.
  5017. pipe_works=no
  5018. rm -f conftest*
  5019. cat > conftest.$ac_ext <<_LT_EOF
  5020. #ifdef __cplusplus
  5021. extern "C" {
  5022. #endif
  5023. char nm_test_var;
  5024. void nm_test_func(void);
  5025. void nm_test_func(void){}
  5026. #ifdef __cplusplus
  5027. }
  5028. #endif
  5029. int main(){nm_test_var='a';nm_test_func();return(0);}
  5030. _LT_EOF
  5031. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5032. (eval $ac_compile) 2>&5
  5033. ac_status=$?
  5034. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5035. test $ac_status = 0; }; then
  5036. # Now try to grab the symbols.
  5037. nlist=conftest.nm
  5038. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5039. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5040. ac_status=$?
  5041. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5042. test $ac_status = 0; } && test -s "$nlist"; then
  5043. # Try sorting and uniquifying the output.
  5044. if sort "$nlist" | uniq > "$nlist"T; then
  5045. mv -f "$nlist"T "$nlist"
  5046. else
  5047. rm -f "$nlist"T
  5048. fi
  5049. # Make sure that we snagged all the symbols we need.
  5050. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5051. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5052. cat <<_LT_EOF > conftest.$ac_ext
  5053. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5054. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5055. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5056. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5057. # define LT_DLSYM_CONST
  5058. #elif defined(__osf__)
  5059. /* This system does not cope well with relocations in const data. */
  5060. # define LT_DLSYM_CONST
  5061. #else
  5062. # define LT_DLSYM_CONST const
  5063. #endif
  5064. #ifdef __cplusplus
  5065. extern "C" {
  5066. #endif
  5067. _LT_EOF
  5068. # Now generate the symbol file.
  5069. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5070. cat <<_LT_EOF >> conftest.$ac_ext
  5071. /* The mapping between symbol names and symbols. */
  5072. LT_DLSYM_CONST struct {
  5073. const char *name;
  5074. void *address;
  5075. }
  5076. lt__PROGRAM__LTX_preloaded_symbols[] =
  5077. {
  5078. { "@PROGRAM@", (void *) 0 },
  5079. _LT_EOF
  5080. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5081. cat <<\_LT_EOF >> conftest.$ac_ext
  5082. {0, (void *) 0}
  5083. };
  5084. /* This works around a problem in FreeBSD linker */
  5085. #ifdef FREEBSD_WORKAROUND
  5086. static const void *lt_preloaded_setup() {
  5087. return lt__PROGRAM__LTX_preloaded_symbols;
  5088. }
  5089. #endif
  5090. #ifdef __cplusplus
  5091. }
  5092. #endif
  5093. _LT_EOF
  5094. # Now try linking the two files.
  5095. mv conftest.$ac_objext conftstm.$ac_objext
  5096. lt_globsym_save_LIBS=$LIBS
  5097. lt_globsym_save_CFLAGS=$CFLAGS
  5098. LIBS="conftstm.$ac_objext"
  5099. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5100. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5101. (eval $ac_link) 2>&5
  5102. ac_status=$?
  5103. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5104. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5105. pipe_works=yes
  5106. fi
  5107. LIBS=$lt_globsym_save_LIBS
  5108. CFLAGS=$lt_globsym_save_CFLAGS
  5109. else
  5110. echo "cannot find nm_test_func in $nlist" >&5
  5111. fi
  5112. else
  5113. echo "cannot find nm_test_var in $nlist" >&5
  5114. fi
  5115. else
  5116. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5117. fi
  5118. else
  5119. echo "$progname: failed program was:" >&5
  5120. cat conftest.$ac_ext >&5
  5121. fi
  5122. rm -rf conftest* conftst*
  5123. # Do not use the global_symbol_pipe unless it works.
  5124. if test "$pipe_works" = yes; then
  5125. break
  5126. else
  5127. lt_cv_sys_global_symbol_pipe=
  5128. fi
  5129. done
  5130. fi
  5131. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5132. lt_cv_sys_global_symbol_to_cdecl=
  5133. fi
  5134. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5136. $as_echo "failed" >&6; }
  5137. else
  5138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5139. $as_echo "ok" >&6; }
  5140. fi
  5141. # Response file support.
  5142. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5143. nm_file_list_spec='@'
  5144. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5145. nm_file_list_spec='@'
  5146. fi
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5148. $as_echo_n "checking for sysroot... " >&6; }
  5149. # Check whether --with-sysroot was given.
  5150. if test "${with_sysroot+set}" = set; then :
  5151. withval=$with_sysroot;
  5152. else
  5153. with_sysroot=no
  5154. fi
  5155. lt_sysroot=
  5156. case ${with_sysroot} in #(
  5157. yes)
  5158. if test "$GCC" = yes; then
  5159. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5160. fi
  5161. ;; #(
  5162. /*)
  5163. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5164. ;; #(
  5165. no|'')
  5166. ;; #(
  5167. *)
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5169. $as_echo "${with_sysroot}" >&6; }
  5170. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5171. ;;
  5172. esac
  5173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5174. $as_echo "${lt_sysroot:-no}" >&6; }
  5175. # Check whether --enable-libtool-lock was given.
  5176. if test "${enable_libtool_lock+set}" = set; then :
  5177. enableval=$enable_libtool_lock;
  5178. fi
  5179. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5180. # Some flags need to be propagated to the compiler or linker for good
  5181. # libtool support.
  5182. case $host in
  5183. ia64-*-hpux*)
  5184. # Find out which ABI we are using.
  5185. echo 'int i;' > conftest.$ac_ext
  5186. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5187. (eval $ac_compile) 2>&5
  5188. ac_status=$?
  5189. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5190. test $ac_status = 0; }; then
  5191. case `/usr/bin/file conftest.$ac_objext` in
  5192. *ELF-32*)
  5193. HPUX_IA64_MODE="32"
  5194. ;;
  5195. *ELF-64*)
  5196. HPUX_IA64_MODE="64"
  5197. ;;
  5198. esac
  5199. fi
  5200. rm -rf conftest*
  5201. ;;
  5202. *-*-irix6*)
  5203. # Find out which ABI we are using.
  5204. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5205. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5206. (eval $ac_compile) 2>&5
  5207. ac_status=$?
  5208. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5209. test $ac_status = 0; }; then
  5210. if test "$lt_cv_prog_gnu_ld" = yes; then
  5211. case `/usr/bin/file conftest.$ac_objext` in
  5212. *32-bit*)
  5213. LD="${LD-ld} -melf32bsmip"
  5214. ;;
  5215. *N32*)
  5216. LD="${LD-ld} -melf32bmipn32"
  5217. ;;
  5218. *64-bit*)
  5219. LD="${LD-ld} -melf64bmip"
  5220. ;;
  5221. esac
  5222. else
  5223. case `/usr/bin/file conftest.$ac_objext` in
  5224. *32-bit*)
  5225. LD="${LD-ld} -32"
  5226. ;;
  5227. *N32*)
  5228. LD="${LD-ld} -n32"
  5229. ;;
  5230. *64-bit*)
  5231. LD="${LD-ld} -64"
  5232. ;;
  5233. esac
  5234. fi
  5235. fi
  5236. rm -rf conftest*
  5237. ;;
  5238. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5239. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5240. # Find out which ABI we are using.
  5241. echo 'int i;' > conftest.$ac_ext
  5242. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5243. (eval $ac_compile) 2>&5
  5244. ac_status=$?
  5245. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5246. test $ac_status = 0; }; then
  5247. case `/usr/bin/file conftest.o` in
  5248. *32-bit*)
  5249. case $host in
  5250. x86_64-*kfreebsd*-gnu)
  5251. LD="${LD-ld} -m elf_i386_fbsd"
  5252. ;;
  5253. x86_64-*linux*)
  5254. LD="${LD-ld} -m elf_i386"
  5255. ;;
  5256. ppc64-*linux*|powerpc64-*linux*)
  5257. LD="${LD-ld} -m elf32ppclinux"
  5258. ;;
  5259. s390x-*linux*)
  5260. LD="${LD-ld} -m elf_s390"
  5261. ;;
  5262. sparc64-*linux*)
  5263. LD="${LD-ld} -m elf32_sparc"
  5264. ;;
  5265. esac
  5266. ;;
  5267. *64-bit*)
  5268. case $host in
  5269. x86_64-*kfreebsd*-gnu)
  5270. LD="${LD-ld} -m elf_x86_64_fbsd"
  5271. ;;
  5272. x86_64-*linux*)
  5273. LD="${LD-ld} -m elf_x86_64"
  5274. ;;
  5275. powerpc64le-*linux*)
  5276. LD="${LD-ld} -m elf64lppc"
  5277. ;;
  5278. powerpc64-*linux*)
  5279. LD="${LD-ld} -m elf64ppc"
  5280. ;;
  5281. s390*-*linux*|s390*-*tpf*)
  5282. LD="${LD-ld} -m elf64_s390"
  5283. ;;
  5284. sparc*-*linux*)
  5285. LD="${LD-ld} -m elf64_sparc"
  5286. ;;
  5287. esac
  5288. ;;
  5289. esac
  5290. fi
  5291. rm -rf conftest*
  5292. ;;
  5293. *-*-sco3.2v5*)
  5294. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5295. SAVE_CFLAGS="$CFLAGS"
  5296. CFLAGS="$CFLAGS -belf"
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5298. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5299. if ${lt_cv_cc_needs_belf+:} false; then :
  5300. $as_echo_n "(cached) " >&6
  5301. else
  5302. ac_ext=c
  5303. ac_cpp='$CPP $CPPFLAGS'
  5304. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5305. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5306. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5308. /* end confdefs.h. */
  5309. int
  5310. main ()
  5311. {
  5312. ;
  5313. return 0;
  5314. }
  5315. _ACEOF
  5316. if ac_fn_c_try_link "$LINENO"; then :
  5317. lt_cv_cc_needs_belf=yes
  5318. else
  5319. lt_cv_cc_needs_belf=no
  5320. fi
  5321. rm -f core conftest.err conftest.$ac_objext \
  5322. conftest$ac_exeext conftest.$ac_ext
  5323. ac_ext=c
  5324. ac_cpp='$CPP $CPPFLAGS'
  5325. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5326. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5327. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5328. fi
  5329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5330. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5331. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5332. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5333. CFLAGS="$SAVE_CFLAGS"
  5334. fi
  5335. ;;
  5336. *-*solaris*)
  5337. # Find out which ABI we are using.
  5338. echo 'int i;' > conftest.$ac_ext
  5339. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5340. (eval $ac_compile) 2>&5
  5341. ac_status=$?
  5342. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5343. test $ac_status = 0; }; then
  5344. case `/usr/bin/file conftest.o` in
  5345. *64-bit*)
  5346. case $lt_cv_prog_gnu_ld in
  5347. yes*)
  5348. case $host in
  5349. i?86-*-solaris*)
  5350. LD="${LD-ld} -m elf_x86_64"
  5351. ;;
  5352. sparc*-*-solaris*)
  5353. LD="${LD-ld} -m elf64_sparc"
  5354. ;;
  5355. esac
  5356. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5357. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5358. LD="${LD-ld}_sol2"
  5359. fi
  5360. ;;
  5361. *)
  5362. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5363. LD="${LD-ld} -64"
  5364. fi
  5365. ;;
  5366. esac
  5367. ;;
  5368. esac
  5369. fi
  5370. rm -rf conftest*
  5371. ;;
  5372. esac
  5373. need_locks="$enable_libtool_lock"
  5374. if test -n "$ac_tool_prefix"; then
  5375. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5376. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5378. $as_echo_n "checking for $ac_word... " >&6; }
  5379. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5380. $as_echo_n "(cached) " >&6
  5381. else
  5382. if test -n "$MANIFEST_TOOL"; then
  5383. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5384. else
  5385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5386. for as_dir in $PATH
  5387. do
  5388. IFS=$as_save_IFS
  5389. test -z "$as_dir" && as_dir=.
  5390. for ac_exec_ext in '' $ac_executable_extensions; do
  5391. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5392. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5393. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5394. break 2
  5395. fi
  5396. done
  5397. done
  5398. IFS=$as_save_IFS
  5399. fi
  5400. fi
  5401. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5402. if test -n "$MANIFEST_TOOL"; then
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5404. $as_echo "$MANIFEST_TOOL" >&6; }
  5405. else
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5407. $as_echo "no" >&6; }
  5408. fi
  5409. fi
  5410. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5411. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5412. # Extract the first word of "mt", so it can be a program name with args.
  5413. set dummy mt; ac_word=$2
  5414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5415. $as_echo_n "checking for $ac_word... " >&6; }
  5416. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5417. $as_echo_n "(cached) " >&6
  5418. else
  5419. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5420. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5421. else
  5422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5423. for as_dir in $PATH
  5424. do
  5425. IFS=$as_save_IFS
  5426. test -z "$as_dir" && as_dir=.
  5427. for ac_exec_ext in '' $ac_executable_extensions; do
  5428. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5429. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5430. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5431. break 2
  5432. fi
  5433. done
  5434. done
  5435. IFS=$as_save_IFS
  5436. fi
  5437. fi
  5438. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5439. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5441. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5442. else
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5444. $as_echo "no" >&6; }
  5445. fi
  5446. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5447. MANIFEST_TOOL=":"
  5448. else
  5449. case $cross_compiling:$ac_tool_warned in
  5450. yes:)
  5451. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5452. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5453. ac_tool_warned=yes ;;
  5454. esac
  5455. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5456. fi
  5457. else
  5458. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5459. fi
  5460. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5462. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5463. if ${lt_cv_path_mainfest_tool+:} false; then :
  5464. $as_echo_n "(cached) " >&6
  5465. else
  5466. lt_cv_path_mainfest_tool=no
  5467. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5468. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5469. cat conftest.err >&5
  5470. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5471. lt_cv_path_mainfest_tool=yes
  5472. fi
  5473. rm -f conftest*
  5474. fi
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5476. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5477. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5478. MANIFEST_TOOL=:
  5479. fi
  5480. case $host_os in
  5481. rhapsody* | darwin*)
  5482. if test -n "$ac_tool_prefix"; then
  5483. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5484. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5486. $as_echo_n "checking for $ac_word... " >&6; }
  5487. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5488. $as_echo_n "(cached) " >&6
  5489. else
  5490. if test -n "$DSYMUTIL"; then
  5491. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5492. else
  5493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5494. for as_dir in $PATH
  5495. do
  5496. IFS=$as_save_IFS
  5497. test -z "$as_dir" && as_dir=.
  5498. for ac_exec_ext in '' $ac_executable_extensions; do
  5499. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5500. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5501. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5502. break 2
  5503. fi
  5504. done
  5505. done
  5506. IFS=$as_save_IFS
  5507. fi
  5508. fi
  5509. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5510. if test -n "$DSYMUTIL"; then
  5511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5512. $as_echo "$DSYMUTIL" >&6; }
  5513. else
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5515. $as_echo "no" >&6; }
  5516. fi
  5517. fi
  5518. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5519. ac_ct_DSYMUTIL=$DSYMUTIL
  5520. # Extract the first word of "dsymutil", so it can be a program name with args.
  5521. set dummy dsymutil; ac_word=$2
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5523. $as_echo_n "checking for $ac_word... " >&6; }
  5524. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5525. $as_echo_n "(cached) " >&6
  5526. else
  5527. if test -n "$ac_ct_DSYMUTIL"; then
  5528. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5529. else
  5530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5531. for as_dir in $PATH
  5532. do
  5533. IFS=$as_save_IFS
  5534. test -z "$as_dir" && as_dir=.
  5535. for ac_exec_ext in '' $ac_executable_extensions; do
  5536. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5537. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5538. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5539. break 2
  5540. fi
  5541. done
  5542. done
  5543. IFS=$as_save_IFS
  5544. fi
  5545. fi
  5546. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5547. if test -n "$ac_ct_DSYMUTIL"; then
  5548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5549. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5550. else
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5552. $as_echo "no" >&6; }
  5553. fi
  5554. if test "x$ac_ct_DSYMUTIL" = x; then
  5555. DSYMUTIL=":"
  5556. else
  5557. case $cross_compiling:$ac_tool_warned in
  5558. yes:)
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5560. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5561. ac_tool_warned=yes ;;
  5562. esac
  5563. DSYMUTIL=$ac_ct_DSYMUTIL
  5564. fi
  5565. else
  5566. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5567. fi
  5568. if test -n "$ac_tool_prefix"; then
  5569. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5570. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5572. $as_echo_n "checking for $ac_word... " >&6; }
  5573. if ${ac_cv_prog_NMEDIT+:} false; then :
  5574. $as_echo_n "(cached) " >&6
  5575. else
  5576. if test -n "$NMEDIT"; then
  5577. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5578. else
  5579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5580. for as_dir in $PATH
  5581. do
  5582. IFS=$as_save_IFS
  5583. test -z "$as_dir" && as_dir=.
  5584. for ac_exec_ext in '' $ac_executable_extensions; do
  5585. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5586. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5588. break 2
  5589. fi
  5590. done
  5591. done
  5592. IFS=$as_save_IFS
  5593. fi
  5594. fi
  5595. NMEDIT=$ac_cv_prog_NMEDIT
  5596. if test -n "$NMEDIT"; then
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5598. $as_echo "$NMEDIT" >&6; }
  5599. else
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5601. $as_echo "no" >&6; }
  5602. fi
  5603. fi
  5604. if test -z "$ac_cv_prog_NMEDIT"; then
  5605. ac_ct_NMEDIT=$NMEDIT
  5606. # Extract the first word of "nmedit", so it can be a program name with args.
  5607. set dummy nmedit; ac_word=$2
  5608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5609. $as_echo_n "checking for $ac_word... " >&6; }
  5610. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5611. $as_echo_n "(cached) " >&6
  5612. else
  5613. if test -n "$ac_ct_NMEDIT"; then
  5614. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5615. else
  5616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5617. for as_dir in $PATH
  5618. do
  5619. IFS=$as_save_IFS
  5620. test -z "$as_dir" && as_dir=.
  5621. for ac_exec_ext in '' $ac_executable_extensions; do
  5622. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5623. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5624. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5625. break 2
  5626. fi
  5627. done
  5628. done
  5629. IFS=$as_save_IFS
  5630. fi
  5631. fi
  5632. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5633. if test -n "$ac_ct_NMEDIT"; then
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5635. $as_echo "$ac_ct_NMEDIT" >&6; }
  5636. else
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5638. $as_echo "no" >&6; }
  5639. fi
  5640. if test "x$ac_ct_NMEDIT" = x; then
  5641. NMEDIT=":"
  5642. else
  5643. case $cross_compiling:$ac_tool_warned in
  5644. yes:)
  5645. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5646. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5647. ac_tool_warned=yes ;;
  5648. esac
  5649. NMEDIT=$ac_ct_NMEDIT
  5650. fi
  5651. else
  5652. NMEDIT="$ac_cv_prog_NMEDIT"
  5653. fi
  5654. if test -n "$ac_tool_prefix"; then
  5655. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5656. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5658. $as_echo_n "checking for $ac_word... " >&6; }
  5659. if ${ac_cv_prog_LIPO+:} false; then :
  5660. $as_echo_n "(cached) " >&6
  5661. else
  5662. if test -n "$LIPO"; then
  5663. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5664. else
  5665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5666. for as_dir in $PATH
  5667. do
  5668. IFS=$as_save_IFS
  5669. test -z "$as_dir" && as_dir=.
  5670. for ac_exec_ext in '' $ac_executable_extensions; do
  5671. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5672. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5673. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5674. break 2
  5675. fi
  5676. done
  5677. done
  5678. IFS=$as_save_IFS
  5679. fi
  5680. fi
  5681. LIPO=$ac_cv_prog_LIPO
  5682. if test -n "$LIPO"; then
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5684. $as_echo "$LIPO" >&6; }
  5685. else
  5686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5687. $as_echo "no" >&6; }
  5688. fi
  5689. fi
  5690. if test -z "$ac_cv_prog_LIPO"; then
  5691. ac_ct_LIPO=$LIPO
  5692. # Extract the first word of "lipo", so it can be a program name with args.
  5693. set dummy lipo; ac_word=$2
  5694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5695. $as_echo_n "checking for $ac_word... " >&6; }
  5696. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5697. $as_echo_n "(cached) " >&6
  5698. else
  5699. if test -n "$ac_ct_LIPO"; then
  5700. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5701. else
  5702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5703. for as_dir in $PATH
  5704. do
  5705. IFS=$as_save_IFS
  5706. test -z "$as_dir" && as_dir=.
  5707. for ac_exec_ext in '' $ac_executable_extensions; do
  5708. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5709. ac_cv_prog_ac_ct_LIPO="lipo"
  5710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5711. break 2
  5712. fi
  5713. done
  5714. done
  5715. IFS=$as_save_IFS
  5716. fi
  5717. fi
  5718. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5719. if test -n "$ac_ct_LIPO"; then
  5720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5721. $as_echo "$ac_ct_LIPO" >&6; }
  5722. else
  5723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5724. $as_echo "no" >&6; }
  5725. fi
  5726. if test "x$ac_ct_LIPO" = x; then
  5727. LIPO=":"
  5728. else
  5729. case $cross_compiling:$ac_tool_warned in
  5730. yes:)
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5732. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5733. ac_tool_warned=yes ;;
  5734. esac
  5735. LIPO=$ac_ct_LIPO
  5736. fi
  5737. else
  5738. LIPO="$ac_cv_prog_LIPO"
  5739. fi
  5740. if test -n "$ac_tool_prefix"; then
  5741. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5742. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5744. $as_echo_n "checking for $ac_word... " >&6; }
  5745. if ${ac_cv_prog_OTOOL+:} false; then :
  5746. $as_echo_n "(cached) " >&6
  5747. else
  5748. if test -n "$OTOOL"; then
  5749. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5750. else
  5751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5752. for as_dir in $PATH
  5753. do
  5754. IFS=$as_save_IFS
  5755. test -z "$as_dir" && as_dir=.
  5756. for ac_exec_ext in '' $ac_executable_extensions; do
  5757. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5758. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5759. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5760. break 2
  5761. fi
  5762. done
  5763. done
  5764. IFS=$as_save_IFS
  5765. fi
  5766. fi
  5767. OTOOL=$ac_cv_prog_OTOOL
  5768. if test -n "$OTOOL"; then
  5769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5770. $as_echo "$OTOOL" >&6; }
  5771. else
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5773. $as_echo "no" >&6; }
  5774. fi
  5775. fi
  5776. if test -z "$ac_cv_prog_OTOOL"; then
  5777. ac_ct_OTOOL=$OTOOL
  5778. # Extract the first word of "otool", so it can be a program name with args.
  5779. set dummy otool; ac_word=$2
  5780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5781. $as_echo_n "checking for $ac_word... " >&6; }
  5782. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5783. $as_echo_n "(cached) " >&6
  5784. else
  5785. if test -n "$ac_ct_OTOOL"; then
  5786. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5787. else
  5788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5789. for as_dir in $PATH
  5790. do
  5791. IFS=$as_save_IFS
  5792. test -z "$as_dir" && as_dir=.
  5793. for ac_exec_ext in '' $ac_executable_extensions; do
  5794. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5795. ac_cv_prog_ac_ct_OTOOL="otool"
  5796. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5797. break 2
  5798. fi
  5799. done
  5800. done
  5801. IFS=$as_save_IFS
  5802. fi
  5803. fi
  5804. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5805. if test -n "$ac_ct_OTOOL"; then
  5806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5807. $as_echo "$ac_ct_OTOOL" >&6; }
  5808. else
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5810. $as_echo "no" >&6; }
  5811. fi
  5812. if test "x$ac_ct_OTOOL" = x; then
  5813. OTOOL=":"
  5814. else
  5815. case $cross_compiling:$ac_tool_warned in
  5816. yes:)
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5818. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5819. ac_tool_warned=yes ;;
  5820. esac
  5821. OTOOL=$ac_ct_OTOOL
  5822. fi
  5823. else
  5824. OTOOL="$ac_cv_prog_OTOOL"
  5825. fi
  5826. if test -n "$ac_tool_prefix"; then
  5827. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5828. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5830. $as_echo_n "checking for $ac_word... " >&6; }
  5831. if ${ac_cv_prog_OTOOL64+:} false; then :
  5832. $as_echo_n "(cached) " >&6
  5833. else
  5834. if test -n "$OTOOL64"; then
  5835. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5836. else
  5837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5838. for as_dir in $PATH
  5839. do
  5840. IFS=$as_save_IFS
  5841. test -z "$as_dir" && as_dir=.
  5842. for ac_exec_ext in '' $ac_executable_extensions; do
  5843. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5844. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5845. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5846. break 2
  5847. fi
  5848. done
  5849. done
  5850. IFS=$as_save_IFS
  5851. fi
  5852. fi
  5853. OTOOL64=$ac_cv_prog_OTOOL64
  5854. if test -n "$OTOOL64"; then
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5856. $as_echo "$OTOOL64" >&6; }
  5857. else
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5859. $as_echo "no" >&6; }
  5860. fi
  5861. fi
  5862. if test -z "$ac_cv_prog_OTOOL64"; then
  5863. ac_ct_OTOOL64=$OTOOL64
  5864. # Extract the first word of "otool64", so it can be a program name with args.
  5865. set dummy otool64; ac_word=$2
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5867. $as_echo_n "checking for $ac_word... " >&6; }
  5868. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5869. $as_echo_n "(cached) " >&6
  5870. else
  5871. if test -n "$ac_ct_OTOOL64"; then
  5872. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5873. else
  5874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5875. for as_dir in $PATH
  5876. do
  5877. IFS=$as_save_IFS
  5878. test -z "$as_dir" && as_dir=.
  5879. for ac_exec_ext in '' $ac_executable_extensions; do
  5880. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5881. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5882. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5883. break 2
  5884. fi
  5885. done
  5886. done
  5887. IFS=$as_save_IFS
  5888. fi
  5889. fi
  5890. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5891. if test -n "$ac_ct_OTOOL64"; then
  5892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5893. $as_echo "$ac_ct_OTOOL64" >&6; }
  5894. else
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5896. $as_echo "no" >&6; }
  5897. fi
  5898. if test "x$ac_ct_OTOOL64" = x; then
  5899. OTOOL64=":"
  5900. else
  5901. case $cross_compiling:$ac_tool_warned in
  5902. yes:)
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5904. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5905. ac_tool_warned=yes ;;
  5906. esac
  5907. OTOOL64=$ac_ct_OTOOL64
  5908. fi
  5909. else
  5910. OTOOL64="$ac_cv_prog_OTOOL64"
  5911. fi
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5913. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5914. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5915. $as_echo_n "(cached) " >&6
  5916. else
  5917. lt_cv_apple_cc_single_mod=no
  5918. if test -z "${LT_MULTI_MODULE}"; then
  5919. # By default we will add the -single_module flag. You can override
  5920. # by either setting the environment variable LT_MULTI_MODULE
  5921. # non-empty at configure time, or by adding -multi_module to the
  5922. # link flags.
  5923. rm -rf libconftest.dylib*
  5924. echo "int foo(void){return 1;}" > conftest.c
  5925. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5926. -dynamiclib -Wl,-single_module conftest.c" >&5
  5927. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5928. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5929. _lt_result=$?
  5930. # If there is a non-empty error log, and "single_module"
  5931. # appears in it, assume the flag caused a linker warning
  5932. if test -s conftest.err && $GREP single_module conftest.err; then
  5933. cat conftest.err >&5
  5934. # Otherwise, if the output was created with a 0 exit code from
  5935. # the compiler, it worked.
  5936. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5937. lt_cv_apple_cc_single_mod=yes
  5938. else
  5939. cat conftest.err >&5
  5940. fi
  5941. rm -rf libconftest.dylib*
  5942. rm -f conftest.*
  5943. fi
  5944. fi
  5945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5946. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5948. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5949. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5950. $as_echo_n "(cached) " >&6
  5951. else
  5952. lt_cv_ld_exported_symbols_list=no
  5953. save_LDFLAGS=$LDFLAGS
  5954. echo "_main" > conftest.sym
  5955. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5957. /* end confdefs.h. */
  5958. int
  5959. main ()
  5960. {
  5961. ;
  5962. return 0;
  5963. }
  5964. _ACEOF
  5965. if ac_fn_c_try_link "$LINENO"; then :
  5966. lt_cv_ld_exported_symbols_list=yes
  5967. else
  5968. lt_cv_ld_exported_symbols_list=no
  5969. fi
  5970. rm -f core conftest.err conftest.$ac_objext \
  5971. conftest$ac_exeext conftest.$ac_ext
  5972. LDFLAGS="$save_LDFLAGS"
  5973. fi
  5974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5975. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5977. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5978. if ${lt_cv_ld_force_load+:} false; then :
  5979. $as_echo_n "(cached) " >&6
  5980. else
  5981. lt_cv_ld_force_load=no
  5982. cat > conftest.c << _LT_EOF
  5983. int forced_loaded() { return 2;}
  5984. _LT_EOF
  5985. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5986. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5987. echo "$AR cru libconftest.a conftest.o" >&5
  5988. $AR cru libconftest.a conftest.o 2>&5
  5989. echo "$RANLIB libconftest.a" >&5
  5990. $RANLIB libconftest.a 2>&5
  5991. cat > conftest.c << _LT_EOF
  5992. int main() { return 0;}
  5993. _LT_EOF
  5994. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5995. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5996. _lt_result=$?
  5997. if test -s conftest.err && $GREP force_load conftest.err; then
  5998. cat conftest.err >&5
  5999. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6000. lt_cv_ld_force_load=yes
  6001. else
  6002. cat conftest.err >&5
  6003. fi
  6004. rm -f conftest.err libconftest.a conftest conftest.c
  6005. rm -rf conftest.dSYM
  6006. fi
  6007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6008. $as_echo "$lt_cv_ld_force_load" >&6; }
  6009. case $host_os in
  6010. rhapsody* | darwin1.[012])
  6011. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6012. darwin1.*)
  6013. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6014. darwin*) # darwin 5.x on
  6015. # if running on 10.5 or later, the deployment target defaults
  6016. # to the OS version, if on x86, and 10.4, the deployment
  6017. # target defaults to 10.4. Don't you love it?
  6018. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6019. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6020. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6021. 10.[012]*)
  6022. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6023. 10.*)
  6024. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6025. esac
  6026. ;;
  6027. esac
  6028. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6029. _lt_dar_single_mod='$single_module'
  6030. fi
  6031. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6032. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6033. else
  6034. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6035. fi
  6036. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6037. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6038. else
  6039. _lt_dsymutil=
  6040. fi
  6041. ;;
  6042. esac
  6043. ac_ext=c
  6044. ac_cpp='$CPP $CPPFLAGS'
  6045. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6046. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6047. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6049. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6050. # On Suns, sometimes $CPP names a directory.
  6051. if test -n "$CPP" && test -d "$CPP"; then
  6052. CPP=
  6053. fi
  6054. if test -z "$CPP"; then
  6055. if ${ac_cv_prog_CPP+:} false; then :
  6056. $as_echo_n "(cached) " >&6
  6057. else
  6058. # Double quotes because CPP needs to be expanded
  6059. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6060. do
  6061. ac_preproc_ok=false
  6062. for ac_c_preproc_warn_flag in '' yes
  6063. do
  6064. # Use a header file that comes with gcc, so configuring glibc
  6065. # with a fresh cross-compiler works.
  6066. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6067. # <limits.h> exists even on freestanding compilers.
  6068. # On the NeXT, cc -E runs the code through the compiler's parser,
  6069. # not just through cpp. "Syntax error" is here to catch this case.
  6070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6071. /* end confdefs.h. */
  6072. #ifdef __STDC__
  6073. # include <limits.h>
  6074. #else
  6075. # include <assert.h>
  6076. #endif
  6077. Syntax error
  6078. _ACEOF
  6079. if ac_fn_c_try_cpp "$LINENO"; then :
  6080. else
  6081. # Broken: fails on valid input.
  6082. continue
  6083. fi
  6084. rm -f conftest.err conftest.i conftest.$ac_ext
  6085. # OK, works on sane cases. Now check whether nonexistent headers
  6086. # can be detected and how.
  6087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6088. /* end confdefs.h. */
  6089. #include <ac_nonexistent.h>
  6090. _ACEOF
  6091. if ac_fn_c_try_cpp "$LINENO"; then :
  6092. # Broken: success on invalid input.
  6093. continue
  6094. else
  6095. # Passes both tests.
  6096. ac_preproc_ok=:
  6097. break
  6098. fi
  6099. rm -f conftest.err conftest.i conftest.$ac_ext
  6100. done
  6101. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6102. rm -f conftest.i conftest.err conftest.$ac_ext
  6103. if $ac_preproc_ok; then :
  6104. break
  6105. fi
  6106. done
  6107. ac_cv_prog_CPP=$CPP
  6108. fi
  6109. CPP=$ac_cv_prog_CPP
  6110. else
  6111. ac_cv_prog_CPP=$CPP
  6112. fi
  6113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6114. $as_echo "$CPP" >&6; }
  6115. ac_preproc_ok=false
  6116. for ac_c_preproc_warn_flag in '' yes
  6117. do
  6118. # Use a header file that comes with gcc, so configuring glibc
  6119. # with a fresh cross-compiler works.
  6120. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6121. # <limits.h> exists even on freestanding compilers.
  6122. # On the NeXT, cc -E runs the code through the compiler's parser,
  6123. # not just through cpp. "Syntax error" is here to catch this case.
  6124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6125. /* end confdefs.h. */
  6126. #ifdef __STDC__
  6127. # include <limits.h>
  6128. #else
  6129. # include <assert.h>
  6130. #endif
  6131. Syntax error
  6132. _ACEOF
  6133. if ac_fn_c_try_cpp "$LINENO"; then :
  6134. else
  6135. # Broken: fails on valid input.
  6136. continue
  6137. fi
  6138. rm -f conftest.err conftest.i conftest.$ac_ext
  6139. # OK, works on sane cases. Now check whether nonexistent headers
  6140. # can be detected and how.
  6141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6142. /* end confdefs.h. */
  6143. #include <ac_nonexistent.h>
  6144. _ACEOF
  6145. if ac_fn_c_try_cpp "$LINENO"; then :
  6146. # Broken: success on invalid input.
  6147. continue
  6148. else
  6149. # Passes both tests.
  6150. ac_preproc_ok=:
  6151. break
  6152. fi
  6153. rm -f conftest.err conftest.i conftest.$ac_ext
  6154. done
  6155. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6156. rm -f conftest.i conftest.err conftest.$ac_ext
  6157. if $ac_preproc_ok; then :
  6158. else
  6159. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6160. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6161. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6162. See \`config.log' for more details" "$LINENO" 5; }
  6163. fi
  6164. ac_ext=c
  6165. ac_cpp='$CPP $CPPFLAGS'
  6166. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6167. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6168. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6170. $as_echo_n "checking for ANSI C header files... " >&6; }
  6171. if ${ac_cv_header_stdc+:} false; then :
  6172. $as_echo_n "(cached) " >&6
  6173. else
  6174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6175. /* end confdefs.h. */
  6176. #include <stdlib.h>
  6177. #include <stdarg.h>
  6178. #include <string.h>
  6179. #include <float.h>
  6180. int
  6181. main ()
  6182. {
  6183. ;
  6184. return 0;
  6185. }
  6186. _ACEOF
  6187. if ac_fn_c_try_compile "$LINENO"; then :
  6188. ac_cv_header_stdc=yes
  6189. else
  6190. ac_cv_header_stdc=no
  6191. fi
  6192. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6193. if test $ac_cv_header_stdc = yes; then
  6194. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6196. /* end confdefs.h. */
  6197. #include <string.h>
  6198. _ACEOF
  6199. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6200. $EGREP "memchr" >/dev/null 2>&1; then :
  6201. else
  6202. ac_cv_header_stdc=no
  6203. fi
  6204. rm -f conftest*
  6205. fi
  6206. if test $ac_cv_header_stdc = yes; then
  6207. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6209. /* end confdefs.h. */
  6210. #include <stdlib.h>
  6211. _ACEOF
  6212. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6213. $EGREP "free" >/dev/null 2>&1; then :
  6214. else
  6215. ac_cv_header_stdc=no
  6216. fi
  6217. rm -f conftest*
  6218. fi
  6219. if test $ac_cv_header_stdc = yes; then
  6220. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6221. if test "$cross_compiling" = yes; then :
  6222. :
  6223. else
  6224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6225. /* end confdefs.h. */
  6226. #include <ctype.h>
  6227. #include <stdlib.h>
  6228. #if ((' ' & 0x0FF) == 0x020)
  6229. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6230. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6231. #else
  6232. # define ISLOWER(c) \
  6233. (('a' <= (c) && (c) <= 'i') \
  6234. || ('j' <= (c) && (c) <= 'r') \
  6235. || ('s' <= (c) && (c) <= 'z'))
  6236. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6237. #endif
  6238. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6239. int
  6240. main ()
  6241. {
  6242. int i;
  6243. for (i = 0; i < 256; i++)
  6244. if (XOR (islower (i), ISLOWER (i))
  6245. || toupper (i) != TOUPPER (i))
  6246. return 2;
  6247. return 0;
  6248. }
  6249. _ACEOF
  6250. if ac_fn_c_try_run "$LINENO"; then :
  6251. else
  6252. ac_cv_header_stdc=no
  6253. fi
  6254. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6255. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6256. fi
  6257. fi
  6258. fi
  6259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6260. $as_echo "$ac_cv_header_stdc" >&6; }
  6261. if test $ac_cv_header_stdc = yes; then
  6262. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6263. fi
  6264. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6265. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6266. inttypes.h stdint.h unistd.h
  6267. do :
  6268. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6269. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6270. "
  6271. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6272. cat >>confdefs.h <<_ACEOF
  6273. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6274. _ACEOF
  6275. fi
  6276. done
  6277. for ac_header in dlfcn.h
  6278. do :
  6279. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6280. "
  6281. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6282. cat >>confdefs.h <<_ACEOF
  6283. #define HAVE_DLFCN_H 1
  6284. _ACEOF
  6285. fi
  6286. done
  6287. # Set options
  6288. enable_win32_dll=yes
  6289. case $host in
  6290. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6291. if test -n "$ac_tool_prefix"; then
  6292. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6293. set dummy ${ac_tool_prefix}as; ac_word=$2
  6294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6295. $as_echo_n "checking for $ac_word... " >&6; }
  6296. if ${ac_cv_prog_AS+:} false; then :
  6297. $as_echo_n "(cached) " >&6
  6298. else
  6299. if test -n "$AS"; then
  6300. ac_cv_prog_AS="$AS" # Let the user override the test.
  6301. else
  6302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6303. for as_dir in $PATH
  6304. do
  6305. IFS=$as_save_IFS
  6306. test -z "$as_dir" && as_dir=.
  6307. for ac_exec_ext in '' $ac_executable_extensions; do
  6308. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6309. ac_cv_prog_AS="${ac_tool_prefix}as"
  6310. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6311. break 2
  6312. fi
  6313. done
  6314. done
  6315. IFS=$as_save_IFS
  6316. fi
  6317. fi
  6318. AS=$ac_cv_prog_AS
  6319. if test -n "$AS"; then
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6321. $as_echo "$AS" >&6; }
  6322. else
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6324. $as_echo "no" >&6; }
  6325. fi
  6326. fi
  6327. if test -z "$ac_cv_prog_AS"; then
  6328. ac_ct_AS=$AS
  6329. # Extract the first word of "as", so it can be a program name with args.
  6330. set dummy as; ac_word=$2
  6331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6332. $as_echo_n "checking for $ac_word... " >&6; }
  6333. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6334. $as_echo_n "(cached) " >&6
  6335. else
  6336. if test -n "$ac_ct_AS"; then
  6337. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6338. else
  6339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6340. for as_dir in $PATH
  6341. do
  6342. IFS=$as_save_IFS
  6343. test -z "$as_dir" && as_dir=.
  6344. for ac_exec_ext in '' $ac_executable_extensions; do
  6345. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6346. ac_cv_prog_ac_ct_AS="as"
  6347. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6348. break 2
  6349. fi
  6350. done
  6351. done
  6352. IFS=$as_save_IFS
  6353. fi
  6354. fi
  6355. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6356. if test -n "$ac_ct_AS"; then
  6357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6358. $as_echo "$ac_ct_AS" >&6; }
  6359. else
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6361. $as_echo "no" >&6; }
  6362. fi
  6363. if test "x$ac_ct_AS" = x; then
  6364. AS="false"
  6365. else
  6366. case $cross_compiling:$ac_tool_warned in
  6367. yes:)
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6369. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6370. ac_tool_warned=yes ;;
  6371. esac
  6372. AS=$ac_ct_AS
  6373. fi
  6374. else
  6375. AS="$ac_cv_prog_AS"
  6376. fi
  6377. if test -n "$ac_tool_prefix"; then
  6378. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6379. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6381. $as_echo_n "checking for $ac_word... " >&6; }
  6382. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6383. $as_echo_n "(cached) " >&6
  6384. else
  6385. if test -n "$DLLTOOL"; then
  6386. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6387. else
  6388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6389. for as_dir in $PATH
  6390. do
  6391. IFS=$as_save_IFS
  6392. test -z "$as_dir" && as_dir=.
  6393. for ac_exec_ext in '' $ac_executable_extensions; do
  6394. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6395. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6396. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6397. break 2
  6398. fi
  6399. done
  6400. done
  6401. IFS=$as_save_IFS
  6402. fi
  6403. fi
  6404. DLLTOOL=$ac_cv_prog_DLLTOOL
  6405. if test -n "$DLLTOOL"; then
  6406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6407. $as_echo "$DLLTOOL" >&6; }
  6408. else
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6410. $as_echo "no" >&6; }
  6411. fi
  6412. fi
  6413. if test -z "$ac_cv_prog_DLLTOOL"; then
  6414. ac_ct_DLLTOOL=$DLLTOOL
  6415. # Extract the first word of "dlltool", so it can be a program name with args.
  6416. set dummy dlltool; ac_word=$2
  6417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6418. $as_echo_n "checking for $ac_word... " >&6; }
  6419. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6420. $as_echo_n "(cached) " >&6
  6421. else
  6422. if test -n "$ac_ct_DLLTOOL"; then
  6423. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6424. else
  6425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6426. for as_dir in $PATH
  6427. do
  6428. IFS=$as_save_IFS
  6429. test -z "$as_dir" && as_dir=.
  6430. for ac_exec_ext in '' $ac_executable_extensions; do
  6431. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6432. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6433. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6434. break 2
  6435. fi
  6436. done
  6437. done
  6438. IFS=$as_save_IFS
  6439. fi
  6440. fi
  6441. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6442. if test -n "$ac_ct_DLLTOOL"; then
  6443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6444. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6445. else
  6446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6447. $as_echo "no" >&6; }
  6448. fi
  6449. if test "x$ac_ct_DLLTOOL" = x; then
  6450. DLLTOOL="false"
  6451. else
  6452. case $cross_compiling:$ac_tool_warned in
  6453. yes:)
  6454. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6455. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6456. ac_tool_warned=yes ;;
  6457. esac
  6458. DLLTOOL=$ac_ct_DLLTOOL
  6459. fi
  6460. else
  6461. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6462. fi
  6463. if test -n "$ac_tool_prefix"; then
  6464. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6465. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6467. $as_echo_n "checking for $ac_word... " >&6; }
  6468. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6469. $as_echo_n "(cached) " >&6
  6470. else
  6471. if test -n "$OBJDUMP"; then
  6472. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6473. else
  6474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6475. for as_dir in $PATH
  6476. do
  6477. IFS=$as_save_IFS
  6478. test -z "$as_dir" && as_dir=.
  6479. for ac_exec_ext in '' $ac_executable_extensions; do
  6480. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6481. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6482. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6483. break 2
  6484. fi
  6485. done
  6486. done
  6487. IFS=$as_save_IFS
  6488. fi
  6489. fi
  6490. OBJDUMP=$ac_cv_prog_OBJDUMP
  6491. if test -n "$OBJDUMP"; then
  6492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6493. $as_echo "$OBJDUMP" >&6; }
  6494. else
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6496. $as_echo "no" >&6; }
  6497. fi
  6498. fi
  6499. if test -z "$ac_cv_prog_OBJDUMP"; then
  6500. ac_ct_OBJDUMP=$OBJDUMP
  6501. # Extract the first word of "objdump", so it can be a program name with args.
  6502. set dummy objdump; ac_word=$2
  6503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6504. $as_echo_n "checking for $ac_word... " >&6; }
  6505. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6506. $as_echo_n "(cached) " >&6
  6507. else
  6508. if test -n "$ac_ct_OBJDUMP"; then
  6509. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6510. else
  6511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6512. for as_dir in $PATH
  6513. do
  6514. IFS=$as_save_IFS
  6515. test -z "$as_dir" && as_dir=.
  6516. for ac_exec_ext in '' $ac_executable_extensions; do
  6517. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6518. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6519. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6520. break 2
  6521. fi
  6522. done
  6523. done
  6524. IFS=$as_save_IFS
  6525. fi
  6526. fi
  6527. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6528. if test -n "$ac_ct_OBJDUMP"; then
  6529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6530. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6531. else
  6532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6533. $as_echo "no" >&6; }
  6534. fi
  6535. if test "x$ac_ct_OBJDUMP" = x; then
  6536. OBJDUMP="false"
  6537. else
  6538. case $cross_compiling:$ac_tool_warned in
  6539. yes:)
  6540. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6541. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6542. ac_tool_warned=yes ;;
  6543. esac
  6544. OBJDUMP=$ac_ct_OBJDUMP
  6545. fi
  6546. else
  6547. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6548. fi
  6549. ;;
  6550. esac
  6551. test -z "$AS" && AS=as
  6552. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6553. test -z "$OBJDUMP" && OBJDUMP=objdump
  6554. enable_dlopen=no
  6555. # Check whether --enable-shared was given.
  6556. if test "${enable_shared+set}" = set; then :
  6557. enableval=$enable_shared; p=${PACKAGE-default}
  6558. case $enableval in
  6559. yes) enable_shared=yes ;;
  6560. no) enable_shared=no ;;
  6561. *)
  6562. enable_shared=no
  6563. # Look at the argument we got. We use all the common list separators.
  6564. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6565. for pkg in $enableval; do
  6566. IFS="$lt_save_ifs"
  6567. if test "X$pkg" = "X$p"; then
  6568. enable_shared=yes
  6569. fi
  6570. done
  6571. IFS="$lt_save_ifs"
  6572. ;;
  6573. esac
  6574. else
  6575. enable_shared=yes
  6576. fi
  6577. # Check whether --enable-static was given.
  6578. if test "${enable_static+set}" = set; then :
  6579. enableval=$enable_static; p=${PACKAGE-default}
  6580. case $enableval in
  6581. yes) enable_static=yes ;;
  6582. no) enable_static=no ;;
  6583. *)
  6584. enable_static=no
  6585. # Look at the argument we got. We use all the common list separators.
  6586. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6587. for pkg in $enableval; do
  6588. IFS="$lt_save_ifs"
  6589. if test "X$pkg" = "X$p"; then
  6590. enable_static=yes
  6591. fi
  6592. done
  6593. IFS="$lt_save_ifs"
  6594. ;;
  6595. esac
  6596. else
  6597. enable_static=yes
  6598. fi
  6599. # Check whether --with-pic was given.
  6600. if test "${with_pic+set}" = set; then :
  6601. withval=$with_pic; lt_p=${PACKAGE-default}
  6602. case $withval in
  6603. yes|no) pic_mode=$withval ;;
  6604. *)
  6605. pic_mode=default
  6606. # Look at the argument we got. We use all the common list separators.
  6607. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6608. for lt_pkg in $withval; do
  6609. IFS="$lt_save_ifs"
  6610. if test "X$lt_pkg" = "X$lt_p"; then
  6611. pic_mode=yes
  6612. fi
  6613. done
  6614. IFS="$lt_save_ifs"
  6615. ;;
  6616. esac
  6617. else
  6618. pic_mode=default
  6619. fi
  6620. test -z "$pic_mode" && pic_mode=default
  6621. # Check whether --enable-fast-install was given.
  6622. if test "${enable_fast_install+set}" = set; then :
  6623. enableval=$enable_fast_install; p=${PACKAGE-default}
  6624. case $enableval in
  6625. yes) enable_fast_install=yes ;;
  6626. no) enable_fast_install=no ;;
  6627. *)
  6628. enable_fast_install=no
  6629. # Look at the argument we got. We use all the common list separators.
  6630. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6631. for pkg in $enableval; do
  6632. IFS="$lt_save_ifs"
  6633. if test "X$pkg" = "X$p"; then
  6634. enable_fast_install=yes
  6635. fi
  6636. done
  6637. IFS="$lt_save_ifs"
  6638. ;;
  6639. esac
  6640. else
  6641. enable_fast_install=yes
  6642. fi
  6643. # This can be used to rebuild libtool when needed
  6644. LIBTOOL_DEPS="$ltmain"
  6645. # Always use our own libtool.
  6646. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6647. test -z "$LN_S" && LN_S="ln -s"
  6648. if test -n "${ZSH_VERSION+set}" ; then
  6649. setopt NO_GLOB_SUBST
  6650. fi
  6651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6652. $as_echo_n "checking for objdir... " >&6; }
  6653. if ${lt_cv_objdir+:} false; then :
  6654. $as_echo_n "(cached) " >&6
  6655. else
  6656. rm -f .libs 2>/dev/null
  6657. mkdir .libs 2>/dev/null
  6658. if test -d .libs; then
  6659. lt_cv_objdir=.libs
  6660. else
  6661. # MS-DOS does not allow filenames that begin with a dot.
  6662. lt_cv_objdir=_libs
  6663. fi
  6664. rmdir .libs 2>/dev/null
  6665. fi
  6666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6667. $as_echo "$lt_cv_objdir" >&6; }
  6668. objdir=$lt_cv_objdir
  6669. cat >>confdefs.h <<_ACEOF
  6670. #define LT_OBJDIR "$lt_cv_objdir/"
  6671. _ACEOF
  6672. case $host_os in
  6673. aix3*)
  6674. # AIX sometimes has problems with the GCC collect2 program. For some
  6675. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6676. # vanish in a puff of smoke.
  6677. if test "X${COLLECT_NAMES+set}" != Xset; then
  6678. COLLECT_NAMES=
  6679. export COLLECT_NAMES
  6680. fi
  6681. ;;
  6682. esac
  6683. # Global variables:
  6684. ofile=libtool
  6685. can_build_shared=yes
  6686. # All known linkers require a `.a' archive for static linking (except MSVC,
  6687. # which needs '.lib').
  6688. libext=a
  6689. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6690. old_CC="$CC"
  6691. old_CFLAGS="$CFLAGS"
  6692. # Set sane defaults for various variables
  6693. test -z "$CC" && CC=cc
  6694. test -z "$LTCC" && LTCC=$CC
  6695. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6696. test -z "$LD" && LD=ld
  6697. test -z "$ac_objext" && ac_objext=o
  6698. for cc_temp in $compiler""; do
  6699. case $cc_temp in
  6700. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6701. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6702. \-*) ;;
  6703. *) break;;
  6704. esac
  6705. done
  6706. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6707. # Only perform the check for file, if the check method requires it
  6708. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6709. case $deplibs_check_method in
  6710. file_magic*)
  6711. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6713. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6714. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6715. $as_echo_n "(cached) " >&6
  6716. else
  6717. case $MAGIC_CMD in
  6718. [\\/*] | ?:[\\/]*)
  6719. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6720. ;;
  6721. *)
  6722. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6723. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6724. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6725. for ac_dir in $ac_dummy; do
  6726. IFS="$lt_save_ifs"
  6727. test -z "$ac_dir" && ac_dir=.
  6728. if test -f $ac_dir/${ac_tool_prefix}file; then
  6729. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6730. if test -n "$file_magic_test_file"; then
  6731. case $deplibs_check_method in
  6732. "file_magic "*)
  6733. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6734. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6735. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6736. $EGREP "$file_magic_regex" > /dev/null; then
  6737. :
  6738. else
  6739. cat <<_LT_EOF 1>&2
  6740. *** Warning: the command libtool uses to detect shared libraries,
  6741. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6742. *** The result is that libtool may fail to recognize shared libraries
  6743. *** as such. This will affect the creation of libtool libraries that
  6744. *** depend on shared libraries, but programs linked with such libtool
  6745. *** libraries will work regardless of this problem. Nevertheless, you
  6746. *** may want to report the problem to your system manager and/or to
  6747. *** bug-libtool@gnu.org
  6748. _LT_EOF
  6749. fi ;;
  6750. esac
  6751. fi
  6752. break
  6753. fi
  6754. done
  6755. IFS="$lt_save_ifs"
  6756. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6757. ;;
  6758. esac
  6759. fi
  6760. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6761. if test -n "$MAGIC_CMD"; then
  6762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6763. $as_echo "$MAGIC_CMD" >&6; }
  6764. else
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6766. $as_echo "no" >&6; }
  6767. fi
  6768. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6769. if test -n "$ac_tool_prefix"; then
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6771. $as_echo_n "checking for file... " >&6; }
  6772. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6773. $as_echo_n "(cached) " >&6
  6774. else
  6775. case $MAGIC_CMD in
  6776. [\\/*] | ?:[\\/]*)
  6777. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6778. ;;
  6779. *)
  6780. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6781. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6782. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6783. for ac_dir in $ac_dummy; do
  6784. IFS="$lt_save_ifs"
  6785. test -z "$ac_dir" && ac_dir=.
  6786. if test -f $ac_dir/file; then
  6787. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6788. if test -n "$file_magic_test_file"; then
  6789. case $deplibs_check_method in
  6790. "file_magic "*)
  6791. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6792. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6793. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6794. $EGREP "$file_magic_regex" > /dev/null; then
  6795. :
  6796. else
  6797. cat <<_LT_EOF 1>&2
  6798. *** Warning: the command libtool uses to detect shared libraries,
  6799. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6800. *** The result is that libtool may fail to recognize shared libraries
  6801. *** as such. This will affect the creation of libtool libraries that
  6802. *** depend on shared libraries, but programs linked with such libtool
  6803. *** libraries will work regardless of this problem. Nevertheless, you
  6804. *** may want to report the problem to your system manager and/or to
  6805. *** bug-libtool@gnu.org
  6806. _LT_EOF
  6807. fi ;;
  6808. esac
  6809. fi
  6810. break
  6811. fi
  6812. done
  6813. IFS="$lt_save_ifs"
  6814. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6815. ;;
  6816. esac
  6817. fi
  6818. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6819. if test -n "$MAGIC_CMD"; then
  6820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6821. $as_echo "$MAGIC_CMD" >&6; }
  6822. else
  6823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6824. $as_echo "no" >&6; }
  6825. fi
  6826. else
  6827. MAGIC_CMD=:
  6828. fi
  6829. fi
  6830. fi
  6831. ;;
  6832. esac
  6833. # Use C for the default configuration in the libtool script
  6834. lt_save_CC="$CC"
  6835. ac_ext=c
  6836. ac_cpp='$CPP $CPPFLAGS'
  6837. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6838. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6839. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6840. # Source file extension for C test sources.
  6841. ac_ext=c
  6842. # Object file extension for compiled C test sources.
  6843. objext=o
  6844. objext=$objext
  6845. # Code to be used in simple compile tests
  6846. lt_simple_compile_test_code="int some_variable = 0;"
  6847. # Code to be used in simple link tests
  6848. lt_simple_link_test_code='int main(){return(0);}'
  6849. # If no C compiler was specified, use CC.
  6850. LTCC=${LTCC-"$CC"}
  6851. # If no C compiler flags were specified, use CFLAGS.
  6852. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6853. # Allow CC to be a program name with arguments.
  6854. compiler=$CC
  6855. # Save the default compiler, since it gets overwritten when the other
  6856. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6857. compiler_DEFAULT=$CC
  6858. # save warnings/boilerplate of simple test code
  6859. ac_outfile=conftest.$ac_objext
  6860. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6861. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6862. _lt_compiler_boilerplate=`cat conftest.err`
  6863. $RM conftest*
  6864. ac_outfile=conftest.$ac_objext
  6865. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6866. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6867. _lt_linker_boilerplate=`cat conftest.err`
  6868. $RM -r conftest*
  6869. ## CAVEAT EMPTOR:
  6870. ## There is no encapsulation within the following macros, do not change
  6871. ## the running order or otherwise move them around unless you know exactly
  6872. ## what you are doing...
  6873. if test -n "$compiler"; then
  6874. lt_prog_compiler_no_builtin_flag=
  6875. if test "$GCC" = yes; then
  6876. case $cc_basename in
  6877. nvcc*)
  6878. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6879. *)
  6880. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6881. esac
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6883. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6884. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6885. $as_echo_n "(cached) " >&6
  6886. else
  6887. lt_cv_prog_compiler_rtti_exceptions=no
  6888. ac_outfile=conftest.$ac_objext
  6889. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6890. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6891. # Insert the option either (1) after the last *FLAGS variable, or
  6892. # (2) before a word containing "conftest.", or (3) at the end.
  6893. # Note that $ac_compile itself does not contain backslashes and begins
  6894. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6895. # The option is referenced via a variable to avoid confusing sed.
  6896. lt_compile=`echo "$ac_compile" | $SED \
  6897. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6898. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6899. -e 's:$: $lt_compiler_flag:'`
  6900. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6901. (eval "$lt_compile" 2>conftest.err)
  6902. ac_status=$?
  6903. cat conftest.err >&5
  6904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6905. if (exit $ac_status) && test -s "$ac_outfile"; then
  6906. # The compiler can only warn and ignore the option if not recognized
  6907. # So say no if there are warnings other than the usual output.
  6908. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6909. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6910. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6911. lt_cv_prog_compiler_rtti_exceptions=yes
  6912. fi
  6913. fi
  6914. $RM conftest*
  6915. fi
  6916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6917. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6918. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6919. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6920. else
  6921. :
  6922. fi
  6923. fi
  6924. lt_prog_compiler_wl=
  6925. lt_prog_compiler_pic=
  6926. lt_prog_compiler_static=
  6927. if test "$GCC" = yes; then
  6928. lt_prog_compiler_wl='-Wl,'
  6929. lt_prog_compiler_static='-static'
  6930. case $host_os in
  6931. aix*)
  6932. # All AIX code is PIC.
  6933. if test "$host_cpu" = ia64; then
  6934. # AIX 5 now supports IA64 processor
  6935. lt_prog_compiler_static='-Bstatic'
  6936. fi
  6937. ;;
  6938. amigaos*)
  6939. case $host_cpu in
  6940. powerpc)
  6941. # see comment about AmigaOS4 .so support
  6942. lt_prog_compiler_pic='-fPIC'
  6943. ;;
  6944. m68k)
  6945. # FIXME: we need at least 68020 code to build shared libraries, but
  6946. # adding the `-m68020' flag to GCC prevents building anything better,
  6947. # like `-m68040'.
  6948. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6949. ;;
  6950. esac
  6951. ;;
  6952. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6953. # PIC is the default for these OSes.
  6954. ;;
  6955. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6956. # This hack is so that the source file can tell whether it is being
  6957. # built for inclusion in a dll (and should export symbols for example).
  6958. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6959. # (--disable-auto-import) libraries
  6960. lt_prog_compiler_pic='-DDLL_EXPORT'
  6961. ;;
  6962. darwin* | rhapsody*)
  6963. # PIC is the default on this platform
  6964. # Common symbols not allowed in MH_DYLIB files
  6965. lt_prog_compiler_pic='-fno-common'
  6966. ;;
  6967. haiku*)
  6968. # PIC is the default for Haiku.
  6969. # The "-static" flag exists, but is broken.
  6970. lt_prog_compiler_static=
  6971. ;;
  6972. hpux*)
  6973. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6974. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6975. # sets the default TLS model and affects inlining.
  6976. case $host_cpu in
  6977. hppa*64*)
  6978. # +Z the default
  6979. ;;
  6980. *)
  6981. lt_prog_compiler_pic='-fPIC'
  6982. ;;
  6983. esac
  6984. ;;
  6985. interix[3-9]*)
  6986. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6987. # Instead, we relocate shared libraries at runtime.
  6988. ;;
  6989. msdosdjgpp*)
  6990. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6991. # on systems that don't support them.
  6992. lt_prog_compiler_can_build_shared=no
  6993. enable_shared=no
  6994. ;;
  6995. *nto* | *qnx*)
  6996. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6997. # it will coredump.
  6998. lt_prog_compiler_pic='-fPIC -shared'
  6999. ;;
  7000. sysv4*MP*)
  7001. if test -d /usr/nec; then
  7002. lt_prog_compiler_pic=-Kconform_pic
  7003. fi
  7004. ;;
  7005. *)
  7006. lt_prog_compiler_pic='-fPIC'
  7007. ;;
  7008. esac
  7009. case $cc_basename in
  7010. nvcc*) # Cuda Compiler Driver 2.2
  7011. lt_prog_compiler_wl='-Xlinker '
  7012. if test -n "$lt_prog_compiler_pic"; then
  7013. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7014. fi
  7015. ;;
  7016. esac
  7017. else
  7018. # PORTME Check for flag to pass linker flags through the system compiler.
  7019. case $host_os in
  7020. aix*)
  7021. lt_prog_compiler_wl='-Wl,'
  7022. if test "$host_cpu" = ia64; then
  7023. # AIX 5 now supports IA64 processor
  7024. lt_prog_compiler_static='-Bstatic'
  7025. else
  7026. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7027. fi
  7028. ;;
  7029. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7030. # This hack is so that the source file can tell whether it is being
  7031. # built for inclusion in a dll (and should export symbols for example).
  7032. lt_prog_compiler_pic='-DDLL_EXPORT'
  7033. ;;
  7034. hpux9* | hpux10* | hpux11*)
  7035. lt_prog_compiler_wl='-Wl,'
  7036. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7037. # not for PA HP-UX.
  7038. case $host_cpu in
  7039. hppa*64*|ia64*)
  7040. # +Z the default
  7041. ;;
  7042. *)
  7043. lt_prog_compiler_pic='+Z'
  7044. ;;
  7045. esac
  7046. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7047. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7048. ;;
  7049. irix5* | irix6* | nonstopux*)
  7050. lt_prog_compiler_wl='-Wl,'
  7051. # PIC (with -KPIC) is the default.
  7052. lt_prog_compiler_static='-non_shared'
  7053. ;;
  7054. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7055. case $cc_basename in
  7056. # old Intel for x86_64 which still supported -KPIC.
  7057. ecc*)
  7058. lt_prog_compiler_wl='-Wl,'
  7059. lt_prog_compiler_pic='-KPIC'
  7060. lt_prog_compiler_static='-static'
  7061. ;;
  7062. # icc used to be incompatible with GCC.
  7063. # ICC 10 doesn't accept -KPIC any more.
  7064. icc* | ifort*)
  7065. lt_prog_compiler_wl='-Wl,'
  7066. lt_prog_compiler_pic='-fPIC'
  7067. lt_prog_compiler_static='-static'
  7068. ;;
  7069. # Lahey Fortran 8.1.
  7070. lf95*)
  7071. lt_prog_compiler_wl='-Wl,'
  7072. lt_prog_compiler_pic='--shared'
  7073. lt_prog_compiler_static='--static'
  7074. ;;
  7075. nagfor*)
  7076. # NAG Fortran compiler
  7077. lt_prog_compiler_wl='-Wl,-Wl,,'
  7078. lt_prog_compiler_pic='-PIC'
  7079. lt_prog_compiler_static='-Bstatic'
  7080. ;;
  7081. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7082. # Portland Group compilers (*not* the Pentium gcc compiler,
  7083. # which looks to be a dead project)
  7084. lt_prog_compiler_wl='-Wl,'
  7085. lt_prog_compiler_pic='-fpic'
  7086. lt_prog_compiler_static='-Bstatic'
  7087. ;;
  7088. ccc*)
  7089. lt_prog_compiler_wl='-Wl,'
  7090. # All Alpha code is PIC.
  7091. lt_prog_compiler_static='-non_shared'
  7092. ;;
  7093. xl* | bgxl* | bgf* | mpixl*)
  7094. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7095. lt_prog_compiler_wl='-Wl,'
  7096. lt_prog_compiler_pic='-qpic'
  7097. lt_prog_compiler_static='-qstaticlink'
  7098. ;;
  7099. *)
  7100. case `$CC -V 2>&1 | sed 5q` in
  7101. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7102. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7103. lt_prog_compiler_pic='-KPIC'
  7104. lt_prog_compiler_static='-Bstatic'
  7105. lt_prog_compiler_wl=''
  7106. ;;
  7107. *Sun\ F* | *Sun*Fortran*)
  7108. lt_prog_compiler_pic='-KPIC'
  7109. lt_prog_compiler_static='-Bstatic'
  7110. lt_prog_compiler_wl='-Qoption ld '
  7111. ;;
  7112. *Sun\ C*)
  7113. # Sun C 5.9
  7114. lt_prog_compiler_pic='-KPIC'
  7115. lt_prog_compiler_static='-Bstatic'
  7116. lt_prog_compiler_wl='-Wl,'
  7117. ;;
  7118. *Intel*\ [CF]*Compiler*)
  7119. lt_prog_compiler_wl='-Wl,'
  7120. lt_prog_compiler_pic='-fPIC'
  7121. lt_prog_compiler_static='-static'
  7122. ;;
  7123. *Portland\ Group*)
  7124. lt_prog_compiler_wl='-Wl,'
  7125. lt_prog_compiler_pic='-fpic'
  7126. lt_prog_compiler_static='-Bstatic'
  7127. ;;
  7128. esac
  7129. ;;
  7130. esac
  7131. ;;
  7132. newsos6)
  7133. lt_prog_compiler_pic='-KPIC'
  7134. lt_prog_compiler_static='-Bstatic'
  7135. ;;
  7136. *nto* | *qnx*)
  7137. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7138. # it will coredump.
  7139. lt_prog_compiler_pic='-fPIC -shared'
  7140. ;;
  7141. osf3* | osf4* | osf5*)
  7142. lt_prog_compiler_wl='-Wl,'
  7143. # All OSF/1 code is PIC.
  7144. lt_prog_compiler_static='-non_shared'
  7145. ;;
  7146. rdos*)
  7147. lt_prog_compiler_static='-non_shared'
  7148. ;;
  7149. solaris*)
  7150. lt_prog_compiler_pic='-KPIC'
  7151. lt_prog_compiler_static='-Bstatic'
  7152. case $cc_basename in
  7153. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7154. lt_prog_compiler_wl='-Qoption ld ';;
  7155. *)
  7156. lt_prog_compiler_wl='-Wl,';;
  7157. esac
  7158. ;;
  7159. sunos4*)
  7160. lt_prog_compiler_wl='-Qoption ld '
  7161. lt_prog_compiler_pic='-PIC'
  7162. lt_prog_compiler_static='-Bstatic'
  7163. ;;
  7164. sysv4 | sysv4.2uw2* | sysv4.3*)
  7165. lt_prog_compiler_wl='-Wl,'
  7166. lt_prog_compiler_pic='-KPIC'
  7167. lt_prog_compiler_static='-Bstatic'
  7168. ;;
  7169. sysv4*MP*)
  7170. if test -d /usr/nec ;then
  7171. lt_prog_compiler_pic='-Kconform_pic'
  7172. lt_prog_compiler_static='-Bstatic'
  7173. fi
  7174. ;;
  7175. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7176. lt_prog_compiler_wl='-Wl,'
  7177. lt_prog_compiler_pic='-KPIC'
  7178. lt_prog_compiler_static='-Bstatic'
  7179. ;;
  7180. unicos*)
  7181. lt_prog_compiler_wl='-Wl,'
  7182. lt_prog_compiler_can_build_shared=no
  7183. ;;
  7184. uts4*)
  7185. lt_prog_compiler_pic='-pic'
  7186. lt_prog_compiler_static='-Bstatic'
  7187. ;;
  7188. *)
  7189. lt_prog_compiler_can_build_shared=no
  7190. ;;
  7191. esac
  7192. fi
  7193. case $host_os in
  7194. # For platforms which do not support PIC, -DPIC is meaningless:
  7195. *djgpp*)
  7196. lt_prog_compiler_pic=
  7197. ;;
  7198. *)
  7199. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7200. ;;
  7201. esac
  7202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7203. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7204. if ${lt_cv_prog_compiler_pic+:} false; then :
  7205. $as_echo_n "(cached) " >&6
  7206. else
  7207. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7208. fi
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7210. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7211. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7212. #
  7213. # Check to make sure the PIC flag actually works.
  7214. #
  7215. if test -n "$lt_prog_compiler_pic"; then
  7216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7217. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7218. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7219. $as_echo_n "(cached) " >&6
  7220. else
  7221. lt_cv_prog_compiler_pic_works=no
  7222. ac_outfile=conftest.$ac_objext
  7223. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7224. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7225. # Insert the option either (1) after the last *FLAGS variable, or
  7226. # (2) before a word containing "conftest.", or (3) at the end.
  7227. # Note that $ac_compile itself does not contain backslashes and begins
  7228. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7229. # The option is referenced via a variable to avoid confusing sed.
  7230. lt_compile=`echo "$ac_compile" | $SED \
  7231. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7232. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7233. -e 's:$: $lt_compiler_flag:'`
  7234. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7235. (eval "$lt_compile" 2>conftest.err)
  7236. ac_status=$?
  7237. cat conftest.err >&5
  7238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7239. if (exit $ac_status) && test -s "$ac_outfile"; then
  7240. # The compiler can only warn and ignore the option if not recognized
  7241. # So say no if there are warnings other than the usual output.
  7242. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7243. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7244. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7245. lt_cv_prog_compiler_pic_works=yes
  7246. fi
  7247. fi
  7248. $RM conftest*
  7249. fi
  7250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7251. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7252. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7253. case $lt_prog_compiler_pic in
  7254. "" | " "*) ;;
  7255. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7256. esac
  7257. else
  7258. lt_prog_compiler_pic=
  7259. lt_prog_compiler_can_build_shared=no
  7260. fi
  7261. fi
  7262. #
  7263. # Check to make sure the static flag actually works.
  7264. #
  7265. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7267. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7268. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7269. $as_echo_n "(cached) " >&6
  7270. else
  7271. lt_cv_prog_compiler_static_works=no
  7272. save_LDFLAGS="$LDFLAGS"
  7273. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7274. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7275. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7276. # The linker can only warn and ignore the option if not recognized
  7277. # So say no if there are warnings
  7278. if test -s conftest.err; then
  7279. # Append any errors to the config.log.
  7280. cat conftest.err 1>&5
  7281. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7282. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7283. if diff conftest.exp conftest.er2 >/dev/null; then
  7284. lt_cv_prog_compiler_static_works=yes
  7285. fi
  7286. else
  7287. lt_cv_prog_compiler_static_works=yes
  7288. fi
  7289. fi
  7290. $RM -r conftest*
  7291. LDFLAGS="$save_LDFLAGS"
  7292. fi
  7293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7294. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7295. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7296. :
  7297. else
  7298. lt_prog_compiler_static=
  7299. fi
  7300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7301. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7302. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7303. $as_echo_n "(cached) " >&6
  7304. else
  7305. lt_cv_prog_compiler_c_o=no
  7306. $RM -r conftest 2>/dev/null
  7307. mkdir conftest
  7308. cd conftest
  7309. mkdir out
  7310. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7311. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7312. # Insert the option either (1) after the last *FLAGS variable, or
  7313. # (2) before a word containing "conftest.", or (3) at the end.
  7314. # Note that $ac_compile itself does not contain backslashes and begins
  7315. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7316. lt_compile=`echo "$ac_compile" | $SED \
  7317. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7318. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7319. -e 's:$: $lt_compiler_flag:'`
  7320. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7321. (eval "$lt_compile" 2>out/conftest.err)
  7322. ac_status=$?
  7323. cat out/conftest.err >&5
  7324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7325. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7326. then
  7327. # The compiler can only warn and ignore the option if not recognized
  7328. # So say no if there are warnings
  7329. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7330. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7331. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7332. lt_cv_prog_compiler_c_o=yes
  7333. fi
  7334. fi
  7335. chmod u+w . 2>&5
  7336. $RM conftest*
  7337. # SGI C++ compiler will create directory out/ii_files/ for
  7338. # template instantiation
  7339. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7340. $RM out/* && rmdir out
  7341. cd ..
  7342. $RM -r conftest
  7343. $RM conftest*
  7344. fi
  7345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7346. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7348. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7349. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7350. $as_echo_n "(cached) " >&6
  7351. else
  7352. lt_cv_prog_compiler_c_o=no
  7353. $RM -r conftest 2>/dev/null
  7354. mkdir conftest
  7355. cd conftest
  7356. mkdir out
  7357. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7358. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7359. # Insert the option either (1) after the last *FLAGS variable, or
  7360. # (2) before a word containing "conftest.", or (3) at the end.
  7361. # Note that $ac_compile itself does not contain backslashes and begins
  7362. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7363. lt_compile=`echo "$ac_compile" | $SED \
  7364. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7365. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7366. -e 's:$: $lt_compiler_flag:'`
  7367. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7368. (eval "$lt_compile" 2>out/conftest.err)
  7369. ac_status=$?
  7370. cat out/conftest.err >&5
  7371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7372. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7373. then
  7374. # The compiler can only warn and ignore the option if not recognized
  7375. # So say no if there are warnings
  7376. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7377. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7378. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7379. lt_cv_prog_compiler_c_o=yes
  7380. fi
  7381. fi
  7382. chmod u+w . 2>&5
  7383. $RM conftest*
  7384. # SGI C++ compiler will create directory out/ii_files/ for
  7385. # template instantiation
  7386. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7387. $RM out/* && rmdir out
  7388. cd ..
  7389. $RM -r conftest
  7390. $RM conftest*
  7391. fi
  7392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7393. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7394. hard_links="nottested"
  7395. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7396. # do not overwrite the value of need_locks provided by the user
  7397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7398. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7399. hard_links=yes
  7400. $RM conftest*
  7401. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7402. touch conftest.a
  7403. ln conftest.a conftest.b 2>&5 || hard_links=no
  7404. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7406. $as_echo "$hard_links" >&6; }
  7407. if test "$hard_links" = no; then
  7408. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7409. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7410. need_locks=warn
  7411. fi
  7412. else
  7413. need_locks=no
  7414. fi
  7415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7416. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7417. runpath_var=
  7418. allow_undefined_flag=
  7419. always_export_symbols=no
  7420. archive_cmds=
  7421. archive_expsym_cmds=
  7422. compiler_needs_object=no
  7423. enable_shared_with_static_runtimes=no
  7424. export_dynamic_flag_spec=
  7425. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7426. hardcode_automatic=no
  7427. hardcode_direct=no
  7428. hardcode_direct_absolute=no
  7429. hardcode_libdir_flag_spec=
  7430. hardcode_libdir_separator=
  7431. hardcode_minus_L=no
  7432. hardcode_shlibpath_var=unsupported
  7433. inherit_rpath=no
  7434. link_all_deplibs=unknown
  7435. module_cmds=
  7436. module_expsym_cmds=
  7437. old_archive_from_new_cmds=
  7438. old_archive_from_expsyms_cmds=
  7439. thread_safe_flag_spec=
  7440. whole_archive_flag_spec=
  7441. # include_expsyms should be a list of space-separated symbols to be *always*
  7442. # included in the symbol list
  7443. include_expsyms=
  7444. # exclude_expsyms can be an extended regexp of symbols to exclude
  7445. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7446. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7447. # as well as any symbol that contains `d'.
  7448. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7449. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7450. # platforms (ab)use it in PIC code, but their linkers get confused if
  7451. # the symbol is explicitly referenced. Since portable code cannot
  7452. # rely on this symbol name, it's probably fine to never include it in
  7453. # preloaded symbol tables.
  7454. # Exclude shared library initialization/finalization symbols.
  7455. extract_expsyms_cmds=
  7456. case $host_os in
  7457. cygwin* | mingw* | pw32* | cegcc*)
  7458. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7459. # When not using gcc, we currently assume that we are using
  7460. # Microsoft Visual C++.
  7461. if test "$GCC" != yes; then
  7462. with_gnu_ld=no
  7463. fi
  7464. ;;
  7465. interix*)
  7466. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7467. with_gnu_ld=yes
  7468. ;;
  7469. openbsd*)
  7470. with_gnu_ld=no
  7471. ;;
  7472. esac
  7473. ld_shlibs=yes
  7474. # On some targets, GNU ld is compatible enough with the native linker
  7475. # that we're better off using the native interface for both.
  7476. lt_use_gnu_ld_interface=no
  7477. if test "$with_gnu_ld" = yes; then
  7478. case $host_os in
  7479. aix*)
  7480. # The AIX port of GNU ld has always aspired to compatibility
  7481. # with the native linker. However, as the warning in the GNU ld
  7482. # block says, versions before 2.19.5* couldn't really create working
  7483. # shared libraries, regardless of the interface used.
  7484. case `$LD -v 2>&1` in
  7485. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7486. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7487. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7488. *)
  7489. lt_use_gnu_ld_interface=yes
  7490. ;;
  7491. esac
  7492. ;;
  7493. *)
  7494. lt_use_gnu_ld_interface=yes
  7495. ;;
  7496. esac
  7497. fi
  7498. if test "$lt_use_gnu_ld_interface" = yes; then
  7499. # If archive_cmds runs LD, not CC, wlarc should be empty
  7500. wlarc='${wl}'
  7501. # Set some defaults for GNU ld with shared library support. These
  7502. # are reset later if shared libraries are not supported. Putting them
  7503. # here allows them to be overridden if necessary.
  7504. runpath_var=LD_RUN_PATH
  7505. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7506. export_dynamic_flag_spec='${wl}--export-dynamic'
  7507. # ancient GNU ld didn't support --whole-archive et. al.
  7508. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7509. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7510. else
  7511. whole_archive_flag_spec=
  7512. fi
  7513. supports_anon_versioning=no
  7514. case `$LD -v 2>&1` in
  7515. *GNU\ gold*) supports_anon_versioning=yes ;;
  7516. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7517. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7518. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7519. *\ 2.11.*) ;; # other 2.11 versions
  7520. *) supports_anon_versioning=yes ;;
  7521. esac
  7522. # See if GNU ld supports shared libraries.
  7523. case $host_os in
  7524. aix[3-9]*)
  7525. # On AIX/PPC, the GNU linker is very broken
  7526. if test "$host_cpu" != ia64; then
  7527. ld_shlibs=no
  7528. cat <<_LT_EOF 1>&2
  7529. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7530. *** to be unable to reliably create shared libraries on AIX.
  7531. *** Therefore, libtool is disabling shared libraries support. If you
  7532. *** really care for shared libraries, you may want to install binutils
  7533. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7534. *** You will then need to restart the configuration process.
  7535. _LT_EOF
  7536. fi
  7537. ;;
  7538. amigaos*)
  7539. case $host_cpu in
  7540. powerpc)
  7541. # see comment about AmigaOS4 .so support
  7542. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7543. archive_expsym_cmds=''
  7544. ;;
  7545. m68k)
  7546. 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)'
  7547. hardcode_libdir_flag_spec='-L$libdir'
  7548. hardcode_minus_L=yes
  7549. ;;
  7550. esac
  7551. ;;
  7552. beos*)
  7553. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7554. allow_undefined_flag=unsupported
  7555. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7556. # support --undefined. This deserves some investigation. FIXME
  7557. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7558. else
  7559. ld_shlibs=no
  7560. fi
  7561. ;;
  7562. cygwin* | mingw* | pw32* | cegcc*)
  7563. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7564. # as there is no search path for DLLs.
  7565. hardcode_libdir_flag_spec='-L$libdir'
  7566. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7567. allow_undefined_flag=unsupported
  7568. always_export_symbols=no
  7569. enable_shared_with_static_runtimes=yes
  7570. 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'
  7571. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7572. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7573. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7574. # If the export-symbols file already is a .def file (1st line
  7575. # is EXPORTS), use it as is; otherwise, prepend...
  7576. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7577. cp $export_symbols $output_objdir/$soname.def;
  7578. else
  7579. echo EXPORTS > $output_objdir/$soname.def;
  7580. cat $export_symbols >> $output_objdir/$soname.def;
  7581. fi~
  7582. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7583. else
  7584. ld_shlibs=no
  7585. fi
  7586. ;;
  7587. haiku*)
  7588. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7589. link_all_deplibs=yes
  7590. ;;
  7591. interix[3-9]*)
  7592. hardcode_direct=no
  7593. hardcode_shlibpath_var=no
  7594. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7595. export_dynamic_flag_spec='${wl}-E'
  7596. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7597. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7598. # default) and relocated if they conflict, which is a slow very memory
  7599. # consuming and fragmenting process. To avoid this, we pick a random,
  7600. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7601. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7602. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7603. 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'
  7604. ;;
  7605. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7606. tmp_diet=no
  7607. if test "$host_os" = linux-dietlibc; then
  7608. case $cc_basename in
  7609. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7610. esac
  7611. fi
  7612. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7613. && test "$tmp_diet" = no
  7614. then
  7615. tmp_addflag=' $pic_flag'
  7616. tmp_sharedflag='-shared'
  7617. case $cc_basename,$host_cpu in
  7618. pgcc*) # Portland Group C compiler
  7619. 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'
  7620. tmp_addflag=' $pic_flag'
  7621. ;;
  7622. pgf77* | pgf90* | pgf95* | pgfortran*)
  7623. # Portland Group f77 and f90 compilers
  7624. 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'
  7625. tmp_addflag=' $pic_flag -Mnomain' ;;
  7626. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7627. tmp_addflag=' -i_dynamic' ;;
  7628. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7629. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7630. ifc* | ifort*) # Intel Fortran compiler
  7631. tmp_addflag=' -nofor_main' ;;
  7632. lf95*) # Lahey Fortran 8.1
  7633. whole_archive_flag_spec=
  7634. tmp_sharedflag='--shared' ;;
  7635. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7636. tmp_sharedflag='-qmkshrobj'
  7637. tmp_addflag= ;;
  7638. nvcc*) # Cuda Compiler Driver 2.2
  7639. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7640. compiler_needs_object=yes
  7641. ;;
  7642. esac
  7643. case `$CC -V 2>&1 | sed 5q` in
  7644. *Sun\ C*) # Sun C 5.9
  7645. 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'
  7646. compiler_needs_object=yes
  7647. tmp_sharedflag='-G' ;;
  7648. *Sun\ F*) # Sun Fortran 8.3
  7649. tmp_sharedflag='-G' ;;
  7650. esac
  7651. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7652. if test "x$supports_anon_versioning" = xyes; then
  7653. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7654. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7655. echo "local: *; };" >> $output_objdir/$libname.ver~
  7656. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7657. fi
  7658. case $cc_basename in
  7659. xlf* | bgf* | bgxlf* | mpixlf*)
  7660. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7661. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7662. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7663. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7664. if test "x$supports_anon_versioning" = xyes; then
  7665. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7666. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7667. echo "local: *; };" >> $output_objdir/$libname.ver~
  7668. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7669. fi
  7670. ;;
  7671. esac
  7672. else
  7673. ld_shlibs=no
  7674. fi
  7675. ;;
  7676. netbsd*)
  7677. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7678. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7679. wlarc=
  7680. else
  7681. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7682. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7683. fi
  7684. ;;
  7685. solaris*)
  7686. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7687. ld_shlibs=no
  7688. cat <<_LT_EOF 1>&2
  7689. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7690. *** create shared libraries on Solaris systems. Therefore, libtool
  7691. *** is disabling shared libraries support. We urge you to upgrade GNU
  7692. *** binutils to release 2.9.1 or newer. Another option is to modify
  7693. *** your PATH or compiler configuration so that the native linker is
  7694. *** used, and then restart.
  7695. _LT_EOF
  7696. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7697. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7698. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7699. else
  7700. ld_shlibs=no
  7701. fi
  7702. ;;
  7703. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7704. case `$LD -v 2>&1` in
  7705. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7706. ld_shlibs=no
  7707. cat <<_LT_EOF 1>&2
  7708. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7709. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7710. *** is disabling shared libraries support. We urge you to upgrade GNU
  7711. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7712. *** your PATH or compiler configuration so that the native linker is
  7713. *** used, and then restart.
  7714. _LT_EOF
  7715. ;;
  7716. *)
  7717. # For security reasons, it is highly recommended that you always
  7718. # use absolute paths for naming shared libraries, and exclude the
  7719. # DT_RUNPATH tag from executables and libraries. But doing so
  7720. # requires that you compile everything twice, which is a pain.
  7721. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7722. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7723. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7724. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7725. else
  7726. ld_shlibs=no
  7727. fi
  7728. ;;
  7729. esac
  7730. ;;
  7731. sunos4*)
  7732. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7733. wlarc=
  7734. hardcode_direct=yes
  7735. hardcode_shlibpath_var=no
  7736. ;;
  7737. *)
  7738. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7739. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7740. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7741. else
  7742. ld_shlibs=no
  7743. fi
  7744. ;;
  7745. esac
  7746. if test "$ld_shlibs" = no; then
  7747. runpath_var=
  7748. hardcode_libdir_flag_spec=
  7749. export_dynamic_flag_spec=
  7750. whole_archive_flag_spec=
  7751. fi
  7752. else
  7753. # PORTME fill in a description of your system's linker (not GNU ld)
  7754. case $host_os in
  7755. aix3*)
  7756. allow_undefined_flag=unsupported
  7757. always_export_symbols=yes
  7758. 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'
  7759. # Note: this linker hardcodes the directories in LIBPATH if there
  7760. # are no directories specified by -L.
  7761. hardcode_minus_L=yes
  7762. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7763. # Neither direct hardcoding nor static linking is supported with a
  7764. # broken collect2.
  7765. hardcode_direct=unsupported
  7766. fi
  7767. ;;
  7768. aix[4-9]*)
  7769. if test "$host_cpu" = ia64; then
  7770. # On IA64, the linker does run time linking by default, so we don't
  7771. # have to do anything special.
  7772. aix_use_runtimelinking=no
  7773. exp_sym_flag='-Bexport'
  7774. no_entry_flag=""
  7775. else
  7776. # If we're using GNU nm, then we don't want the "-C" option.
  7777. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7778. # Also, AIX nm treats weak defined symbols like other global
  7779. # defined symbols, whereas GNU nm marks them as "W".
  7780. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7781. 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'
  7782. else
  7783. 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'
  7784. fi
  7785. aix_use_runtimelinking=no
  7786. # Test if we are trying to use run time linking or normal
  7787. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7788. # need to do runtime linking.
  7789. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7790. for ld_flag in $LDFLAGS; do
  7791. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7792. aix_use_runtimelinking=yes
  7793. break
  7794. fi
  7795. done
  7796. ;;
  7797. esac
  7798. exp_sym_flag='-bexport'
  7799. no_entry_flag='-bnoentry'
  7800. fi
  7801. # When large executables or shared objects are built, AIX ld can
  7802. # have problems creating the table of contents. If linking a library
  7803. # or program results in "error TOC overflow" add -mminimal-toc to
  7804. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7805. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7806. archive_cmds=''
  7807. hardcode_direct=yes
  7808. hardcode_direct_absolute=yes
  7809. hardcode_libdir_separator=':'
  7810. link_all_deplibs=yes
  7811. file_list_spec='${wl}-f,'
  7812. if test "$GCC" = yes; then
  7813. case $host_os in aix4.[012]|aix4.[012].*)
  7814. # We only want to do this on AIX 4.2 and lower, the check
  7815. # below for broken collect2 doesn't work under 4.3+
  7816. collect2name=`${CC} -print-prog-name=collect2`
  7817. if test -f "$collect2name" &&
  7818. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7819. then
  7820. # We have reworked collect2
  7821. :
  7822. else
  7823. # We have old collect2
  7824. hardcode_direct=unsupported
  7825. # It fails to find uninstalled libraries when the uninstalled
  7826. # path is not listed in the libpath. Setting hardcode_minus_L
  7827. # to unsupported forces relinking
  7828. hardcode_minus_L=yes
  7829. hardcode_libdir_flag_spec='-L$libdir'
  7830. hardcode_libdir_separator=
  7831. fi
  7832. ;;
  7833. esac
  7834. shared_flag='-shared'
  7835. if test "$aix_use_runtimelinking" = yes; then
  7836. shared_flag="$shared_flag "'${wl}-G'
  7837. fi
  7838. else
  7839. # not using gcc
  7840. if test "$host_cpu" = ia64; then
  7841. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7842. # chokes on -Wl,-G. The following line is correct:
  7843. shared_flag='-G'
  7844. else
  7845. if test "$aix_use_runtimelinking" = yes; then
  7846. shared_flag='${wl}-G'
  7847. else
  7848. shared_flag='${wl}-bM:SRE'
  7849. fi
  7850. fi
  7851. fi
  7852. export_dynamic_flag_spec='${wl}-bexpall'
  7853. # It seems that -bexpall does not export symbols beginning with
  7854. # underscore (_), so it is better to generate a list of symbols to export.
  7855. always_export_symbols=yes
  7856. if test "$aix_use_runtimelinking" = yes; then
  7857. # Warning - without using the other runtime loading flags (-brtl),
  7858. # -berok will link without error, but may produce a broken library.
  7859. allow_undefined_flag='-berok'
  7860. # Determine the default libpath from the value encoded in an
  7861. # empty executable.
  7862. if test "${lt_cv_aix_libpath+set}" = set; then
  7863. aix_libpath=$lt_cv_aix_libpath
  7864. else
  7865. if ${lt_cv_aix_libpath_+:} false; then :
  7866. $as_echo_n "(cached) " >&6
  7867. else
  7868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7869. /* end confdefs.h. */
  7870. int
  7871. main ()
  7872. {
  7873. ;
  7874. return 0;
  7875. }
  7876. _ACEOF
  7877. if ac_fn_c_try_link "$LINENO"; then :
  7878. lt_aix_libpath_sed='
  7879. /Import File Strings/,/^$/ {
  7880. /^0/ {
  7881. s/^0 *\([^ ]*\) *$/\1/
  7882. p
  7883. }
  7884. }'
  7885. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7886. # Check for a 64-bit object if we didn't find anything.
  7887. if test -z "$lt_cv_aix_libpath_"; then
  7888. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7889. fi
  7890. fi
  7891. rm -f core conftest.err conftest.$ac_objext \
  7892. conftest$ac_exeext conftest.$ac_ext
  7893. if test -z "$lt_cv_aix_libpath_"; then
  7894. lt_cv_aix_libpath_="/usr/lib:/lib"
  7895. fi
  7896. fi
  7897. aix_libpath=$lt_cv_aix_libpath_
  7898. fi
  7899. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7900. 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"
  7901. else
  7902. if test "$host_cpu" = ia64; then
  7903. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7904. allow_undefined_flag="-z nodefs"
  7905. 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"
  7906. else
  7907. # Determine the default libpath from the value encoded in an
  7908. # empty executable.
  7909. if test "${lt_cv_aix_libpath+set}" = set; then
  7910. aix_libpath=$lt_cv_aix_libpath
  7911. else
  7912. if ${lt_cv_aix_libpath_+:} false; then :
  7913. $as_echo_n "(cached) " >&6
  7914. else
  7915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7916. /* end confdefs.h. */
  7917. int
  7918. main ()
  7919. {
  7920. ;
  7921. return 0;
  7922. }
  7923. _ACEOF
  7924. if ac_fn_c_try_link "$LINENO"; then :
  7925. lt_aix_libpath_sed='
  7926. /Import File Strings/,/^$/ {
  7927. /^0/ {
  7928. s/^0 *\([^ ]*\) *$/\1/
  7929. p
  7930. }
  7931. }'
  7932. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7933. # Check for a 64-bit object if we didn't find anything.
  7934. if test -z "$lt_cv_aix_libpath_"; then
  7935. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7936. fi
  7937. fi
  7938. rm -f core conftest.err conftest.$ac_objext \
  7939. conftest$ac_exeext conftest.$ac_ext
  7940. if test -z "$lt_cv_aix_libpath_"; then
  7941. lt_cv_aix_libpath_="/usr/lib:/lib"
  7942. fi
  7943. fi
  7944. aix_libpath=$lt_cv_aix_libpath_
  7945. fi
  7946. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7947. # Warning - without using the other run time loading flags,
  7948. # -berok will link without error, but may produce a broken library.
  7949. no_undefined_flag=' ${wl}-bernotok'
  7950. allow_undefined_flag=' ${wl}-berok'
  7951. if test "$with_gnu_ld" = yes; then
  7952. # We only use this code for GNU lds that support --whole-archive.
  7953. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7954. else
  7955. # Exported symbols can be pulled into shared objects from archives
  7956. whole_archive_flag_spec='$convenience'
  7957. fi
  7958. archive_cmds_need_lc=yes
  7959. # This is similar to how AIX traditionally builds its shared libraries.
  7960. 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'
  7961. fi
  7962. fi
  7963. ;;
  7964. amigaos*)
  7965. case $host_cpu in
  7966. powerpc)
  7967. # see comment about AmigaOS4 .so support
  7968. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7969. archive_expsym_cmds=''
  7970. ;;
  7971. m68k)
  7972. 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)'
  7973. hardcode_libdir_flag_spec='-L$libdir'
  7974. hardcode_minus_L=yes
  7975. ;;
  7976. esac
  7977. ;;
  7978. bsdi[45]*)
  7979. export_dynamic_flag_spec=-rdynamic
  7980. ;;
  7981. cygwin* | mingw* | pw32* | cegcc*)
  7982. # When not using gcc, we currently assume that we are using
  7983. # Microsoft Visual C++.
  7984. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7985. # no search path for DLLs.
  7986. case $cc_basename in
  7987. cl*)
  7988. # Native MSVC
  7989. hardcode_libdir_flag_spec=' '
  7990. allow_undefined_flag=unsupported
  7991. always_export_symbols=yes
  7992. file_list_spec='@'
  7993. # Tell ltmain to make .lib files, not .a files.
  7994. libext=lib
  7995. # Tell ltmain to make .dll files, not .so files.
  7996. shrext_cmds=".dll"
  7997. # FIXME: Setting linknames here is a bad hack.
  7998. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7999. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8000. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8001. else
  8002. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8003. fi~
  8004. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8005. linknames='
  8006. # The linker will not automatically build a static lib if we build a DLL.
  8007. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8008. enable_shared_with_static_runtimes=yes
  8009. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8010. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8011. # Don't use ranlib
  8012. old_postinstall_cmds='chmod 644 $oldlib'
  8013. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8014. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8015. case $lt_outputfile in
  8016. *.exe|*.EXE) ;;
  8017. *)
  8018. lt_outputfile="$lt_outputfile.exe"
  8019. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8020. ;;
  8021. esac~
  8022. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8023. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8024. $RM "$lt_outputfile.manifest";
  8025. fi'
  8026. ;;
  8027. *)
  8028. # Assume MSVC wrapper
  8029. hardcode_libdir_flag_spec=' '
  8030. allow_undefined_flag=unsupported
  8031. # Tell ltmain to make .lib files, not .a files.
  8032. libext=lib
  8033. # Tell ltmain to make .dll files, not .so files.
  8034. shrext_cmds=".dll"
  8035. # FIXME: Setting linknames here is a bad hack.
  8036. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8037. # The linker will automatically build a .lib file if we build a DLL.
  8038. old_archive_from_new_cmds='true'
  8039. # FIXME: Should let the user specify the lib program.
  8040. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8041. enable_shared_with_static_runtimes=yes
  8042. ;;
  8043. esac
  8044. ;;
  8045. darwin* | rhapsody*)
  8046. archive_cmds_need_lc=no
  8047. hardcode_direct=no
  8048. hardcode_automatic=yes
  8049. hardcode_shlibpath_var=unsupported
  8050. if test "$lt_cv_ld_force_load" = "yes"; then
  8051. 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\"`'
  8052. else
  8053. whole_archive_flag_spec=''
  8054. fi
  8055. link_all_deplibs=yes
  8056. allow_undefined_flag="$_lt_dar_allow_undefined"
  8057. case $cc_basename in
  8058. ifort*) _lt_dar_can_shared=yes ;;
  8059. *) _lt_dar_can_shared=$GCC ;;
  8060. esac
  8061. if test "$_lt_dar_can_shared" = "yes"; then
  8062. output_verbose_link_cmd=func_echo_all
  8063. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8064. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8065. 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}"
  8066. 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}"
  8067. else
  8068. ld_shlibs=no
  8069. fi
  8070. ;;
  8071. dgux*)
  8072. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8073. hardcode_libdir_flag_spec='-L$libdir'
  8074. hardcode_shlibpath_var=no
  8075. ;;
  8076. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8077. # support. Future versions do this automatically, but an explicit c++rt0.o
  8078. # does not break anything, and helps significantly (at the cost of a little
  8079. # extra space).
  8080. freebsd2.2*)
  8081. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8082. hardcode_libdir_flag_spec='-R$libdir'
  8083. hardcode_direct=yes
  8084. hardcode_shlibpath_var=no
  8085. ;;
  8086. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8087. freebsd2.*)
  8088. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8089. hardcode_direct=yes
  8090. hardcode_minus_L=yes
  8091. hardcode_shlibpath_var=no
  8092. ;;
  8093. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8094. freebsd* | dragonfly*)
  8095. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8096. hardcode_libdir_flag_spec='-R$libdir'
  8097. hardcode_direct=yes
  8098. hardcode_shlibpath_var=no
  8099. ;;
  8100. hpux9*)
  8101. if test "$GCC" = yes; then
  8102. 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'
  8103. else
  8104. 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'
  8105. fi
  8106. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8107. hardcode_libdir_separator=:
  8108. hardcode_direct=yes
  8109. # hardcode_minus_L: Not really in the search PATH,
  8110. # but as the default location of the library.
  8111. hardcode_minus_L=yes
  8112. export_dynamic_flag_spec='${wl}-E'
  8113. ;;
  8114. hpux10*)
  8115. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8116. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8117. else
  8118. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8119. fi
  8120. if test "$with_gnu_ld" = no; then
  8121. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8122. hardcode_libdir_separator=:
  8123. hardcode_direct=yes
  8124. hardcode_direct_absolute=yes
  8125. export_dynamic_flag_spec='${wl}-E'
  8126. # hardcode_minus_L: Not really in the search PATH,
  8127. # but as the default location of the library.
  8128. hardcode_minus_L=yes
  8129. fi
  8130. ;;
  8131. hpux11*)
  8132. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8133. case $host_cpu in
  8134. hppa*64*)
  8135. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8136. ;;
  8137. ia64*)
  8138. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8139. ;;
  8140. *)
  8141. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8142. ;;
  8143. esac
  8144. else
  8145. case $host_cpu in
  8146. hppa*64*)
  8147. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8148. ;;
  8149. ia64*)
  8150. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8151. ;;
  8152. *)
  8153. # Older versions of the 11.00 compiler do not understand -b yet
  8154. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8156. $as_echo_n "checking if $CC understands -b... " >&6; }
  8157. if ${lt_cv_prog_compiler__b+:} false; then :
  8158. $as_echo_n "(cached) " >&6
  8159. else
  8160. lt_cv_prog_compiler__b=no
  8161. save_LDFLAGS="$LDFLAGS"
  8162. LDFLAGS="$LDFLAGS -b"
  8163. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8164. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8165. # The linker can only warn and ignore the option if not recognized
  8166. # So say no if there are warnings
  8167. if test -s conftest.err; then
  8168. # Append any errors to the config.log.
  8169. cat conftest.err 1>&5
  8170. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8171. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8172. if diff conftest.exp conftest.er2 >/dev/null; then
  8173. lt_cv_prog_compiler__b=yes
  8174. fi
  8175. else
  8176. lt_cv_prog_compiler__b=yes
  8177. fi
  8178. fi
  8179. $RM -r conftest*
  8180. LDFLAGS="$save_LDFLAGS"
  8181. fi
  8182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8183. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8184. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8185. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8186. else
  8187. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8188. fi
  8189. ;;
  8190. esac
  8191. fi
  8192. if test "$with_gnu_ld" = no; then
  8193. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8194. hardcode_libdir_separator=:
  8195. case $host_cpu in
  8196. hppa*64*|ia64*)
  8197. hardcode_direct=no
  8198. hardcode_shlibpath_var=no
  8199. ;;
  8200. *)
  8201. hardcode_direct=yes
  8202. hardcode_direct_absolute=yes
  8203. export_dynamic_flag_spec='${wl}-E'
  8204. # hardcode_minus_L: Not really in the search PATH,
  8205. # but as the default location of the library.
  8206. hardcode_minus_L=yes
  8207. ;;
  8208. esac
  8209. fi
  8210. ;;
  8211. irix5* | irix6* | nonstopux*)
  8212. if test "$GCC" = yes; then
  8213. 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'
  8214. # Try to use the -exported_symbol ld option, if it does not
  8215. # work, assume that -exports_file does not work either and
  8216. # implicitly export all symbols.
  8217. # This should be the same for all languages, so no per-tag cache variable.
  8218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8219. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8220. if ${lt_cv_irix_exported_symbol+:} false; then :
  8221. $as_echo_n "(cached) " >&6
  8222. else
  8223. save_LDFLAGS="$LDFLAGS"
  8224. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8226. /* end confdefs.h. */
  8227. int foo (void) { return 0; }
  8228. _ACEOF
  8229. if ac_fn_c_try_link "$LINENO"; then :
  8230. lt_cv_irix_exported_symbol=yes
  8231. else
  8232. lt_cv_irix_exported_symbol=no
  8233. fi
  8234. rm -f core conftest.err conftest.$ac_objext \
  8235. conftest$ac_exeext conftest.$ac_ext
  8236. LDFLAGS="$save_LDFLAGS"
  8237. fi
  8238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8239. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8240. if test "$lt_cv_irix_exported_symbol" = yes; then
  8241. 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'
  8242. fi
  8243. else
  8244. 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'
  8245. 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'
  8246. fi
  8247. archive_cmds_need_lc='no'
  8248. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8249. hardcode_libdir_separator=:
  8250. inherit_rpath=yes
  8251. link_all_deplibs=yes
  8252. ;;
  8253. netbsd*)
  8254. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8255. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8256. else
  8257. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8258. fi
  8259. hardcode_libdir_flag_spec='-R$libdir'
  8260. hardcode_direct=yes
  8261. hardcode_shlibpath_var=no
  8262. ;;
  8263. newsos6)
  8264. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8265. hardcode_direct=yes
  8266. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8267. hardcode_libdir_separator=:
  8268. hardcode_shlibpath_var=no
  8269. ;;
  8270. *nto* | *qnx*)
  8271. ;;
  8272. openbsd*)
  8273. if test -f /usr/libexec/ld.so; then
  8274. hardcode_direct=yes
  8275. hardcode_shlibpath_var=no
  8276. hardcode_direct_absolute=yes
  8277. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8278. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8279. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8280. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8281. export_dynamic_flag_spec='${wl}-E'
  8282. else
  8283. case $host_os in
  8284. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8285. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8286. hardcode_libdir_flag_spec='-R$libdir'
  8287. ;;
  8288. *)
  8289. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8290. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8291. ;;
  8292. esac
  8293. fi
  8294. else
  8295. ld_shlibs=no
  8296. fi
  8297. ;;
  8298. os2*)
  8299. hardcode_libdir_flag_spec='-L$libdir'
  8300. hardcode_minus_L=yes
  8301. allow_undefined_flag=unsupported
  8302. 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'
  8303. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8304. ;;
  8305. osf3*)
  8306. if test "$GCC" = yes; then
  8307. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8308. 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'
  8309. else
  8310. allow_undefined_flag=' -expect_unresolved \*'
  8311. 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'
  8312. fi
  8313. archive_cmds_need_lc='no'
  8314. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8315. hardcode_libdir_separator=:
  8316. ;;
  8317. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8318. if test "$GCC" = yes; then
  8319. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8320. 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'
  8321. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8322. else
  8323. allow_undefined_flag=' -expect_unresolved \*'
  8324. 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'
  8325. 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~
  8326. $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'
  8327. # Both c and cxx compiler support -rpath directly
  8328. hardcode_libdir_flag_spec='-rpath $libdir'
  8329. fi
  8330. archive_cmds_need_lc='no'
  8331. hardcode_libdir_separator=:
  8332. ;;
  8333. solaris*)
  8334. no_undefined_flag=' -z defs'
  8335. if test "$GCC" = yes; then
  8336. wlarc='${wl}'
  8337. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8338. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8339. $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'
  8340. else
  8341. case `$CC -V 2>&1` in
  8342. *"Compilers 5.0"*)
  8343. wlarc=''
  8344. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8345. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8346. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8347. ;;
  8348. *)
  8349. wlarc='${wl}'
  8350. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8351. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8352. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8353. ;;
  8354. esac
  8355. fi
  8356. hardcode_libdir_flag_spec='-R$libdir'
  8357. hardcode_shlibpath_var=no
  8358. case $host_os in
  8359. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8360. *)
  8361. # The compiler driver will combine and reorder linker options,
  8362. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8363. # but is careful enough not to reorder.
  8364. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8365. if test "$GCC" = yes; then
  8366. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8367. else
  8368. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8369. fi
  8370. ;;
  8371. esac
  8372. link_all_deplibs=yes
  8373. ;;
  8374. sunos4*)
  8375. if test "x$host_vendor" = xsequent; then
  8376. # Use $CC to link under sequent, because it throws in some extra .o
  8377. # files that make .init and .fini sections work.
  8378. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8379. else
  8380. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8381. fi
  8382. hardcode_libdir_flag_spec='-L$libdir'
  8383. hardcode_direct=yes
  8384. hardcode_minus_L=yes
  8385. hardcode_shlibpath_var=no
  8386. ;;
  8387. sysv4)
  8388. case $host_vendor in
  8389. sni)
  8390. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8391. hardcode_direct=yes # is this really true???
  8392. ;;
  8393. siemens)
  8394. ## LD is ld it makes a PLAMLIB
  8395. ## CC just makes a GrossModule.
  8396. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8397. reload_cmds='$CC -r -o $output$reload_objs'
  8398. hardcode_direct=no
  8399. ;;
  8400. motorola)
  8401. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8402. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8403. ;;
  8404. esac
  8405. runpath_var='LD_RUN_PATH'
  8406. hardcode_shlibpath_var=no
  8407. ;;
  8408. sysv4.3*)
  8409. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8410. hardcode_shlibpath_var=no
  8411. export_dynamic_flag_spec='-Bexport'
  8412. ;;
  8413. sysv4*MP*)
  8414. if test -d /usr/nec; then
  8415. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8416. hardcode_shlibpath_var=no
  8417. runpath_var=LD_RUN_PATH
  8418. hardcode_runpath_var=yes
  8419. ld_shlibs=yes
  8420. fi
  8421. ;;
  8422. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8423. no_undefined_flag='${wl}-z,text'
  8424. archive_cmds_need_lc=no
  8425. hardcode_shlibpath_var=no
  8426. runpath_var='LD_RUN_PATH'
  8427. if test "$GCC" = yes; then
  8428. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8429. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8430. else
  8431. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8432. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8433. fi
  8434. ;;
  8435. sysv5* | sco3.2v5* | sco5v6*)
  8436. # Note: We can NOT use -z defs as we might desire, because we do not
  8437. # link with -lc, and that would cause any symbols used from libc to
  8438. # always be unresolved, which means just about no library would
  8439. # ever link correctly. If we're not using GNU ld we use -z text
  8440. # though, which does catch some bad symbols but isn't as heavy-handed
  8441. # as -z defs.
  8442. no_undefined_flag='${wl}-z,text'
  8443. allow_undefined_flag='${wl}-z,nodefs'
  8444. archive_cmds_need_lc=no
  8445. hardcode_shlibpath_var=no
  8446. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8447. hardcode_libdir_separator=':'
  8448. link_all_deplibs=yes
  8449. export_dynamic_flag_spec='${wl}-Bexport'
  8450. runpath_var='LD_RUN_PATH'
  8451. if test "$GCC" = yes; then
  8452. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8453. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8454. else
  8455. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8456. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8457. fi
  8458. ;;
  8459. uts4*)
  8460. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8461. hardcode_libdir_flag_spec='-L$libdir'
  8462. hardcode_shlibpath_var=no
  8463. ;;
  8464. *)
  8465. ld_shlibs=no
  8466. ;;
  8467. esac
  8468. if test x$host_vendor = xsni; then
  8469. case $host in
  8470. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8471. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8472. ;;
  8473. esac
  8474. fi
  8475. fi
  8476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8477. $as_echo "$ld_shlibs" >&6; }
  8478. test "$ld_shlibs" = no && can_build_shared=no
  8479. with_gnu_ld=$with_gnu_ld
  8480. #
  8481. # Do we need to explicitly link libc?
  8482. #
  8483. case "x$archive_cmds_need_lc" in
  8484. x|xyes)
  8485. # Assume -lc should be added
  8486. archive_cmds_need_lc=yes
  8487. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8488. case $archive_cmds in
  8489. *'~'*)
  8490. # FIXME: we may have to deal with multi-command sequences.
  8491. ;;
  8492. '$CC '*)
  8493. # Test whether the compiler implicitly links with -lc since on some
  8494. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8495. # to ld, don't add -lc before -lgcc.
  8496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8497. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8498. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8499. $as_echo_n "(cached) " >&6
  8500. else
  8501. $RM conftest*
  8502. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8503. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8504. (eval $ac_compile) 2>&5
  8505. ac_status=$?
  8506. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8507. test $ac_status = 0; } 2>conftest.err; then
  8508. soname=conftest
  8509. lib=conftest
  8510. libobjs=conftest.$ac_objext
  8511. deplibs=
  8512. wl=$lt_prog_compiler_wl
  8513. pic_flag=$lt_prog_compiler_pic
  8514. compiler_flags=-v
  8515. linker_flags=-v
  8516. verstring=
  8517. output_objdir=.
  8518. libname=conftest
  8519. lt_save_allow_undefined_flag=$allow_undefined_flag
  8520. allow_undefined_flag=
  8521. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8522. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8523. ac_status=$?
  8524. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8525. test $ac_status = 0; }
  8526. then
  8527. lt_cv_archive_cmds_need_lc=no
  8528. else
  8529. lt_cv_archive_cmds_need_lc=yes
  8530. fi
  8531. allow_undefined_flag=$lt_save_allow_undefined_flag
  8532. else
  8533. cat conftest.err 1>&5
  8534. fi
  8535. $RM conftest*
  8536. fi
  8537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8538. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8539. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8540. ;;
  8541. esac
  8542. fi
  8543. ;;
  8544. esac
  8545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8546. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8547. if test "$GCC" = yes; then
  8548. case $host_os in
  8549. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8550. *) lt_awk_arg="/^libraries:/" ;;
  8551. esac
  8552. case $host_os in
  8553. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8554. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8555. esac
  8556. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8557. case $lt_search_path_spec in
  8558. *\;*)
  8559. # if the path contains ";" then we assume it to be the separator
  8560. # otherwise default to the standard path separator (i.e. ":") - it is
  8561. # assumed that no part of a normal pathname contains ";" but that should
  8562. # okay in the real world where ";" in dirpaths is itself problematic.
  8563. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8564. ;;
  8565. *)
  8566. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8567. ;;
  8568. esac
  8569. # Ok, now we have the path, separated by spaces, we can step through it
  8570. # and add multilib dir if necessary...
  8571. lt_tmp_lt_search_path_spec=
  8572. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8573. # ...but if some path already ends with the multilib dir we assume
  8574. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8575. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8576. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8577. lt_multi_os_dir=
  8578. ;;
  8579. esac
  8580. for lt_sys_path in $lt_search_path_spec; do
  8581. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8582. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8583. elif test -n "$lt_multi_os_dir"; then
  8584. test -d "$lt_sys_path" && \
  8585. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8586. fi
  8587. done
  8588. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8589. BEGIN {RS=" "; FS="/|\n";} {
  8590. lt_foo="";
  8591. lt_count=0;
  8592. for (lt_i = NF; lt_i > 0; lt_i--) {
  8593. if ($lt_i != "" && $lt_i != ".") {
  8594. if ($lt_i == "..") {
  8595. lt_count++;
  8596. } else {
  8597. if (lt_count == 0) {
  8598. lt_foo="/" $lt_i lt_foo;
  8599. } else {
  8600. lt_count--;
  8601. }
  8602. }
  8603. }
  8604. }
  8605. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8606. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8607. }'`
  8608. # AWK program above erroneously prepends '/' to C:/dos/paths
  8609. # for these hosts.
  8610. case $host_os in
  8611. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8612. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8613. esac
  8614. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8615. else
  8616. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8617. fi
  8618. library_names_spec=
  8619. libname_spec='lib$name'
  8620. soname_spec=
  8621. shrext_cmds=".so"
  8622. postinstall_cmds=
  8623. postuninstall_cmds=
  8624. finish_cmds=
  8625. finish_eval=
  8626. shlibpath_var=
  8627. shlibpath_overrides_runpath=unknown
  8628. version_type=none
  8629. dynamic_linker="$host_os ld.so"
  8630. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8631. need_lib_prefix=unknown
  8632. hardcode_into_libs=no
  8633. # when you set need_version to no, make sure it does not cause -set_version
  8634. # flags to be left without arguments
  8635. need_version=unknown
  8636. case $host_os in
  8637. aix3*)
  8638. version_type=linux # correct to gnu/linux during the next big refactor
  8639. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8640. shlibpath_var=LIBPATH
  8641. # AIX 3 has no versioning support, so we append a major version to the name.
  8642. soname_spec='${libname}${release}${shared_ext}$major'
  8643. ;;
  8644. aix[4-9]*)
  8645. version_type=linux # correct to gnu/linux during the next big refactor
  8646. need_lib_prefix=no
  8647. need_version=no
  8648. hardcode_into_libs=yes
  8649. if test "$host_cpu" = ia64; then
  8650. # AIX 5 supports IA64
  8651. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8652. shlibpath_var=LD_LIBRARY_PATH
  8653. else
  8654. # With GCC up to 2.95.x, collect2 would create an import file
  8655. # for dependence libraries. The import file would start with
  8656. # the line `#! .'. This would cause the generated library to
  8657. # depend on `.', always an invalid library. This was fixed in
  8658. # development snapshots of GCC prior to 3.0.
  8659. case $host_os in
  8660. aix4 | aix4.[01] | aix4.[01].*)
  8661. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8662. echo ' yes '
  8663. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8664. :
  8665. else
  8666. can_build_shared=no
  8667. fi
  8668. ;;
  8669. esac
  8670. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8671. # soname into executable. Probably we can add versioning support to
  8672. # collect2, so additional links can be useful in future.
  8673. if test "$aix_use_runtimelinking" = yes; then
  8674. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8675. # instead of lib<name>.a to let people know that these are not
  8676. # typical AIX shared libraries.
  8677. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8678. else
  8679. # We preserve .a as extension for shared libraries through AIX4.2
  8680. # and later when we are not doing run time linking.
  8681. library_names_spec='${libname}${release}.a $libname.a'
  8682. soname_spec='${libname}${release}${shared_ext}$major'
  8683. fi
  8684. shlibpath_var=LIBPATH
  8685. fi
  8686. ;;
  8687. amigaos*)
  8688. case $host_cpu in
  8689. powerpc)
  8690. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8691. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8692. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8693. ;;
  8694. m68k)
  8695. library_names_spec='$libname.ixlibrary $libname.a'
  8696. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8697. 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'
  8698. ;;
  8699. esac
  8700. ;;
  8701. beos*)
  8702. library_names_spec='${libname}${shared_ext}'
  8703. dynamic_linker="$host_os ld.so"
  8704. shlibpath_var=LIBRARY_PATH
  8705. ;;
  8706. bsdi[45]*)
  8707. version_type=linux # correct to gnu/linux during the next big refactor
  8708. need_version=no
  8709. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8710. soname_spec='${libname}${release}${shared_ext}$major'
  8711. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8712. shlibpath_var=LD_LIBRARY_PATH
  8713. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8714. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8715. # the default ld.so.conf also contains /usr/contrib/lib and
  8716. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8717. # libtool to hard-code these into programs
  8718. ;;
  8719. cygwin* | mingw* | pw32* | cegcc*)
  8720. version_type=windows
  8721. shrext_cmds=".dll"
  8722. need_version=no
  8723. need_lib_prefix=no
  8724. case $GCC,$cc_basename in
  8725. yes,*)
  8726. # gcc
  8727. library_names_spec='$libname.dll.a'
  8728. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8729. postinstall_cmds='base_file=`basename \${file}`~
  8730. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8731. dldir=$destdir/`dirname \$dlpath`~
  8732. test -d \$dldir || mkdir -p \$dldir~
  8733. $install_prog $dir/$dlname \$dldir/$dlname~
  8734. chmod a+x \$dldir/$dlname~
  8735. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8736. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8737. fi'
  8738. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8739. dlpath=$dir/\$dldll~
  8740. $RM \$dlpath'
  8741. shlibpath_overrides_runpath=yes
  8742. case $host_os in
  8743. cygwin*)
  8744. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8745. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8746. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8747. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8748. ;;
  8749. mingw* | cegcc*)
  8750. # MinGW DLLs use traditional 'lib' prefix
  8751. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8752. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8753. ;;
  8754. pw32*)
  8755. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8756. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8757. ;;
  8758. esac
  8759. dynamic_linker='Win32 ld.exe'
  8760. ;;
  8761. *,cl*)
  8762. # Native MSVC
  8763. libname_spec='$name'
  8764. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8765. library_names_spec='${libname}.dll.lib'
  8766. case $build_os in
  8767. mingw*)
  8768. sys_lib_search_path_spec=
  8769. lt_save_ifs=$IFS
  8770. IFS=';'
  8771. for lt_path in $LIB
  8772. do
  8773. IFS=$lt_save_ifs
  8774. # Let DOS variable expansion print the short 8.3 style file name.
  8775. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8776. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8777. done
  8778. IFS=$lt_save_ifs
  8779. # Convert to MSYS style.
  8780. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8781. ;;
  8782. cygwin*)
  8783. # Convert to unix form, then to dos form, then back to unix form
  8784. # but this time dos style (no spaces!) so that the unix form looks
  8785. # like /cygdrive/c/PROGRA~1:/cygdr...
  8786. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8787. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8788. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8789. ;;
  8790. *)
  8791. sys_lib_search_path_spec="$LIB"
  8792. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8793. # It is most probably a Windows format PATH.
  8794. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8795. else
  8796. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8797. fi
  8798. # FIXME: find the short name or the path components, as spaces are
  8799. # common. (e.g. "Program Files" -> "PROGRA~1")
  8800. ;;
  8801. esac
  8802. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8803. postinstall_cmds='base_file=`basename \${file}`~
  8804. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8805. dldir=$destdir/`dirname \$dlpath`~
  8806. test -d \$dldir || mkdir -p \$dldir~
  8807. $install_prog $dir/$dlname \$dldir/$dlname'
  8808. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8809. dlpath=$dir/\$dldll~
  8810. $RM \$dlpath'
  8811. shlibpath_overrides_runpath=yes
  8812. dynamic_linker='Win32 link.exe'
  8813. ;;
  8814. *)
  8815. # Assume MSVC wrapper
  8816. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8817. dynamic_linker='Win32 ld.exe'
  8818. ;;
  8819. esac
  8820. # FIXME: first we should search . and the directory the executable is in
  8821. shlibpath_var=PATH
  8822. ;;
  8823. darwin* | rhapsody*)
  8824. dynamic_linker="$host_os dyld"
  8825. version_type=darwin
  8826. need_lib_prefix=no
  8827. need_version=no
  8828. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8829. soname_spec='${libname}${release}${major}$shared_ext'
  8830. shlibpath_overrides_runpath=yes
  8831. shlibpath_var=DYLD_LIBRARY_PATH
  8832. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8833. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8834. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8835. ;;
  8836. dgux*)
  8837. version_type=linux # correct to gnu/linux during the next big refactor
  8838. need_lib_prefix=no
  8839. need_version=no
  8840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8841. soname_spec='${libname}${release}${shared_ext}$major'
  8842. shlibpath_var=LD_LIBRARY_PATH
  8843. ;;
  8844. freebsd* | dragonfly*)
  8845. # DragonFly does not have aout. When/if they implement a new
  8846. # versioning mechanism, adjust this.
  8847. if test -x /usr/bin/objformat; then
  8848. objformat=`/usr/bin/objformat`
  8849. else
  8850. case $host_os in
  8851. freebsd[23].*) objformat=aout ;;
  8852. *) objformat=elf ;;
  8853. esac
  8854. fi
  8855. version_type=freebsd-$objformat
  8856. case $version_type in
  8857. freebsd-elf*)
  8858. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8859. need_version=no
  8860. need_lib_prefix=no
  8861. ;;
  8862. freebsd-*)
  8863. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8864. need_version=yes
  8865. ;;
  8866. esac
  8867. shlibpath_var=LD_LIBRARY_PATH
  8868. case $host_os in
  8869. freebsd2.*)
  8870. shlibpath_overrides_runpath=yes
  8871. ;;
  8872. freebsd3.[01]* | freebsdelf3.[01]*)
  8873. shlibpath_overrides_runpath=yes
  8874. hardcode_into_libs=yes
  8875. ;;
  8876. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8877. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8878. shlibpath_overrides_runpath=no
  8879. hardcode_into_libs=yes
  8880. ;;
  8881. *) # from 4.6 on, and DragonFly
  8882. shlibpath_overrides_runpath=yes
  8883. hardcode_into_libs=yes
  8884. ;;
  8885. esac
  8886. ;;
  8887. gnu*)
  8888. version_type=linux # correct to gnu/linux during the next big refactor
  8889. need_lib_prefix=no
  8890. need_version=no
  8891. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8892. soname_spec='${libname}${release}${shared_ext}$major'
  8893. shlibpath_var=LD_LIBRARY_PATH
  8894. shlibpath_overrides_runpath=no
  8895. hardcode_into_libs=yes
  8896. ;;
  8897. haiku*)
  8898. version_type=linux # correct to gnu/linux during the next big refactor
  8899. need_lib_prefix=no
  8900. need_version=no
  8901. dynamic_linker="$host_os runtime_loader"
  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=LIBRARY_PATH
  8905. shlibpath_overrides_runpath=yes
  8906. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8907. hardcode_into_libs=yes
  8908. ;;
  8909. hpux9* | hpux10* | hpux11*)
  8910. # Give a soname corresponding to the major version so that dld.sl refuses to
  8911. # link against other versions.
  8912. version_type=sunos
  8913. need_lib_prefix=no
  8914. need_version=no
  8915. case $host_cpu in
  8916. ia64*)
  8917. shrext_cmds='.so'
  8918. hardcode_into_libs=yes
  8919. dynamic_linker="$host_os dld.so"
  8920. shlibpath_var=LD_LIBRARY_PATH
  8921. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8922. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8923. soname_spec='${libname}${release}${shared_ext}$major'
  8924. if test "X$HPUX_IA64_MODE" = X32; then
  8925. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8926. else
  8927. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8928. fi
  8929. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8930. ;;
  8931. hppa*64*)
  8932. shrext_cmds='.sl'
  8933. hardcode_into_libs=yes
  8934. dynamic_linker="$host_os dld.sl"
  8935. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8936. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8937. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8938. soname_spec='${libname}${release}${shared_ext}$major'
  8939. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8940. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8941. ;;
  8942. *)
  8943. shrext_cmds='.sl'
  8944. dynamic_linker="$host_os dld.sl"
  8945. shlibpath_var=SHLIB_PATH
  8946. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8947. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8948. soname_spec='${libname}${release}${shared_ext}$major'
  8949. ;;
  8950. esac
  8951. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8952. postinstall_cmds='chmod 555 $lib'
  8953. # or fails outright, so override atomically:
  8954. install_override_mode=555
  8955. ;;
  8956. interix[3-9]*)
  8957. version_type=linux # correct to gnu/linux during the next big refactor
  8958. need_lib_prefix=no
  8959. need_version=no
  8960. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8961. soname_spec='${libname}${release}${shared_ext}$major'
  8962. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8963. shlibpath_var=LD_LIBRARY_PATH
  8964. shlibpath_overrides_runpath=no
  8965. hardcode_into_libs=yes
  8966. ;;
  8967. irix5* | irix6* | nonstopux*)
  8968. case $host_os in
  8969. nonstopux*) version_type=nonstopux ;;
  8970. *)
  8971. if test "$lt_cv_prog_gnu_ld" = yes; then
  8972. version_type=linux # correct to gnu/linux during the next big refactor
  8973. else
  8974. version_type=irix
  8975. fi ;;
  8976. esac
  8977. need_lib_prefix=no
  8978. need_version=no
  8979. soname_spec='${libname}${release}${shared_ext}$major'
  8980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8981. case $host_os in
  8982. irix5* | nonstopux*)
  8983. libsuff= shlibsuff=
  8984. ;;
  8985. *)
  8986. case $LD in # libtool.m4 will add one of these switches to LD
  8987. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8988. libsuff= shlibsuff= libmagic=32-bit;;
  8989. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8990. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8991. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8992. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8993. *) libsuff= shlibsuff= libmagic=never-match;;
  8994. esac
  8995. ;;
  8996. esac
  8997. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8998. shlibpath_overrides_runpath=no
  8999. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9000. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9001. hardcode_into_libs=yes
  9002. ;;
  9003. # No shared lib support for Linux oldld, aout, or coff.
  9004. linux*oldld* | linux*aout* | linux*coff*)
  9005. dynamic_linker=no
  9006. ;;
  9007. # This must be glibc/ELF.
  9008. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9009. version_type=linux # correct to gnu/linux during the next big refactor
  9010. need_lib_prefix=no
  9011. need_version=no
  9012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9013. soname_spec='${libname}${release}${shared_ext}$major'
  9014. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9015. shlibpath_var=LD_LIBRARY_PATH
  9016. shlibpath_overrides_runpath=no
  9017. # Some binutils ld are patched to set DT_RUNPATH
  9018. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9019. $as_echo_n "(cached) " >&6
  9020. else
  9021. lt_cv_shlibpath_overrides_runpath=no
  9022. save_LDFLAGS=$LDFLAGS
  9023. save_libdir=$libdir
  9024. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9025. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9027. /* end confdefs.h. */
  9028. int
  9029. main ()
  9030. {
  9031. ;
  9032. return 0;
  9033. }
  9034. _ACEOF
  9035. if ac_fn_c_try_link "$LINENO"; then :
  9036. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9037. lt_cv_shlibpath_overrides_runpath=yes
  9038. fi
  9039. fi
  9040. rm -f core conftest.err conftest.$ac_objext \
  9041. conftest$ac_exeext conftest.$ac_ext
  9042. LDFLAGS=$save_LDFLAGS
  9043. libdir=$save_libdir
  9044. fi
  9045. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9046. # This implies no fast_install, which is unacceptable.
  9047. # Some rework will be needed to allow for fast_install
  9048. # before this can be enabled.
  9049. hardcode_into_libs=yes
  9050. # Append ld.so.conf contents to the search path
  9051. if test -f /etc/ld.so.conf; then
  9052. 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' ' '`
  9053. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9054. fi
  9055. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9056. # powerpc, because MkLinux only supported shared libraries with the
  9057. # GNU dynamic linker. Since this was broken with cross compilers,
  9058. # most powerpc-linux boxes support dynamic linking these days and
  9059. # people can always --disable-shared, the test was removed, and we
  9060. # assume the GNU/Linux dynamic linker is in use.
  9061. dynamic_linker='GNU/Linux ld.so'
  9062. ;;
  9063. netbsd*)
  9064. version_type=sunos
  9065. need_lib_prefix=no
  9066. need_version=no
  9067. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9069. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9070. dynamic_linker='NetBSD (a.out) ld.so'
  9071. else
  9072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9073. soname_spec='${libname}${release}${shared_ext}$major'
  9074. dynamic_linker='NetBSD ld.elf_so'
  9075. fi
  9076. shlibpath_var=LD_LIBRARY_PATH
  9077. shlibpath_overrides_runpath=yes
  9078. hardcode_into_libs=yes
  9079. ;;
  9080. newsos6)
  9081. version_type=linux # correct to gnu/linux during the next big refactor
  9082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9083. shlibpath_var=LD_LIBRARY_PATH
  9084. shlibpath_overrides_runpath=yes
  9085. ;;
  9086. *nto* | *qnx*)
  9087. version_type=qnx
  9088. need_lib_prefix=no
  9089. need_version=no
  9090. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9091. soname_spec='${libname}${release}${shared_ext}$major'
  9092. shlibpath_var=LD_LIBRARY_PATH
  9093. shlibpath_overrides_runpath=no
  9094. hardcode_into_libs=yes
  9095. dynamic_linker='ldqnx.so'
  9096. ;;
  9097. openbsd*)
  9098. version_type=sunos
  9099. sys_lib_dlsearch_path_spec="/usr/lib"
  9100. need_lib_prefix=no
  9101. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9102. case $host_os in
  9103. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9104. *) need_version=no ;;
  9105. esac
  9106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9107. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9108. shlibpath_var=LD_LIBRARY_PATH
  9109. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9110. case $host_os in
  9111. openbsd2.[89] | openbsd2.[89].*)
  9112. shlibpath_overrides_runpath=no
  9113. ;;
  9114. *)
  9115. shlibpath_overrides_runpath=yes
  9116. ;;
  9117. esac
  9118. else
  9119. shlibpath_overrides_runpath=yes
  9120. fi
  9121. ;;
  9122. os2*)
  9123. libname_spec='$name'
  9124. shrext_cmds=".dll"
  9125. need_lib_prefix=no
  9126. library_names_spec='$libname${shared_ext} $libname.a'
  9127. dynamic_linker='OS/2 ld.exe'
  9128. shlibpath_var=LIBPATH
  9129. ;;
  9130. osf3* | osf4* | osf5*)
  9131. version_type=osf
  9132. need_lib_prefix=no
  9133. need_version=no
  9134. soname_spec='${libname}${release}${shared_ext}$major'
  9135. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9136. shlibpath_var=LD_LIBRARY_PATH
  9137. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9138. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9139. ;;
  9140. rdos*)
  9141. dynamic_linker=no
  9142. ;;
  9143. solaris*)
  9144. version_type=linux # correct to gnu/linux during the next big refactor
  9145. need_lib_prefix=no
  9146. need_version=no
  9147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9148. soname_spec='${libname}${release}${shared_ext}$major'
  9149. shlibpath_var=LD_LIBRARY_PATH
  9150. shlibpath_overrides_runpath=yes
  9151. hardcode_into_libs=yes
  9152. # ldd complains unless libraries are executable
  9153. postinstall_cmds='chmod +x $lib'
  9154. ;;
  9155. sunos4*)
  9156. version_type=sunos
  9157. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9158. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9159. shlibpath_var=LD_LIBRARY_PATH
  9160. shlibpath_overrides_runpath=yes
  9161. if test "$with_gnu_ld" = yes; then
  9162. need_lib_prefix=no
  9163. fi
  9164. need_version=yes
  9165. ;;
  9166. sysv4 | sysv4.3*)
  9167. version_type=linux # correct to gnu/linux during the next big refactor
  9168. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9169. soname_spec='${libname}${release}${shared_ext}$major'
  9170. shlibpath_var=LD_LIBRARY_PATH
  9171. case $host_vendor in
  9172. sni)
  9173. shlibpath_overrides_runpath=no
  9174. need_lib_prefix=no
  9175. runpath_var=LD_RUN_PATH
  9176. ;;
  9177. siemens)
  9178. need_lib_prefix=no
  9179. ;;
  9180. motorola)
  9181. need_lib_prefix=no
  9182. need_version=no
  9183. shlibpath_overrides_runpath=no
  9184. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9185. ;;
  9186. esac
  9187. ;;
  9188. sysv4*MP*)
  9189. if test -d /usr/nec ;then
  9190. version_type=linux # correct to gnu/linux during the next big refactor
  9191. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9192. soname_spec='$libname${shared_ext}.$major'
  9193. shlibpath_var=LD_LIBRARY_PATH
  9194. fi
  9195. ;;
  9196. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9197. version_type=freebsd-elf
  9198. need_lib_prefix=no
  9199. need_version=no
  9200. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9201. soname_spec='${libname}${release}${shared_ext}$major'
  9202. shlibpath_var=LD_LIBRARY_PATH
  9203. shlibpath_overrides_runpath=yes
  9204. hardcode_into_libs=yes
  9205. if test "$with_gnu_ld" = yes; then
  9206. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9207. else
  9208. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9209. case $host_os in
  9210. sco3.2v5*)
  9211. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9212. ;;
  9213. esac
  9214. fi
  9215. sys_lib_dlsearch_path_spec='/usr/lib'
  9216. ;;
  9217. tpf*)
  9218. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9219. version_type=linux # correct to gnu/linux during the next big refactor
  9220. need_lib_prefix=no
  9221. need_version=no
  9222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9223. shlibpath_var=LD_LIBRARY_PATH
  9224. shlibpath_overrides_runpath=no
  9225. hardcode_into_libs=yes
  9226. ;;
  9227. uts4*)
  9228. version_type=linux # correct to gnu/linux during the next big refactor
  9229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9230. soname_spec='${libname}${release}${shared_ext}$major'
  9231. shlibpath_var=LD_LIBRARY_PATH
  9232. ;;
  9233. *)
  9234. dynamic_linker=no
  9235. ;;
  9236. esac
  9237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9238. $as_echo "$dynamic_linker" >&6; }
  9239. test "$dynamic_linker" = no && can_build_shared=no
  9240. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9241. if test "$GCC" = yes; then
  9242. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9243. fi
  9244. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9245. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9246. fi
  9247. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9248. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9249. fi
  9250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9251. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9252. hardcode_action=
  9253. if test -n "$hardcode_libdir_flag_spec" ||
  9254. test -n "$runpath_var" ||
  9255. test "X$hardcode_automatic" = "Xyes" ; then
  9256. # We can hardcode non-existent directories.
  9257. if test "$hardcode_direct" != no &&
  9258. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9259. # have to relink, otherwise we might link with an installed library
  9260. # when we should be linking with a yet-to-be-installed one
  9261. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9262. test "$hardcode_minus_L" != no; then
  9263. # Linking always hardcodes the temporary library directory.
  9264. hardcode_action=relink
  9265. else
  9266. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9267. hardcode_action=immediate
  9268. fi
  9269. else
  9270. # We cannot hardcode anything, or else we can only hardcode existing
  9271. # directories.
  9272. hardcode_action=unsupported
  9273. fi
  9274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9275. $as_echo "$hardcode_action" >&6; }
  9276. if test "$hardcode_action" = relink ||
  9277. test "$inherit_rpath" = yes; then
  9278. # Fast installation is not supported
  9279. enable_fast_install=no
  9280. elif test "$shlibpath_overrides_runpath" = yes ||
  9281. test "$enable_shared" = no; then
  9282. # Fast installation is not necessary
  9283. enable_fast_install=needless
  9284. fi
  9285. if test "x$enable_dlopen" != xyes; then
  9286. enable_dlopen=unknown
  9287. enable_dlopen_self=unknown
  9288. enable_dlopen_self_static=unknown
  9289. else
  9290. lt_cv_dlopen=no
  9291. lt_cv_dlopen_libs=
  9292. case $host_os in
  9293. beos*)
  9294. lt_cv_dlopen="load_add_on"
  9295. lt_cv_dlopen_libs=
  9296. lt_cv_dlopen_self=yes
  9297. ;;
  9298. mingw* | pw32* | cegcc*)
  9299. lt_cv_dlopen="LoadLibrary"
  9300. lt_cv_dlopen_libs=
  9301. ;;
  9302. cygwin*)
  9303. lt_cv_dlopen="dlopen"
  9304. lt_cv_dlopen_libs=
  9305. ;;
  9306. darwin*)
  9307. # if libdl is installed we need to link against it
  9308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9309. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9310. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9311. $as_echo_n "(cached) " >&6
  9312. else
  9313. ac_check_lib_save_LIBS=$LIBS
  9314. LIBS="-ldl $LIBS"
  9315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9316. /* end confdefs.h. */
  9317. /* Override any GCC internal prototype to avoid an error.
  9318. Use char because int might match the return type of a GCC
  9319. builtin and then its argument prototype would still apply. */
  9320. #ifdef __cplusplus
  9321. extern "C"
  9322. #endif
  9323. char dlopen ();
  9324. int
  9325. main ()
  9326. {
  9327. return dlopen ();
  9328. ;
  9329. return 0;
  9330. }
  9331. _ACEOF
  9332. if ac_fn_c_try_link "$LINENO"; then :
  9333. ac_cv_lib_dl_dlopen=yes
  9334. else
  9335. ac_cv_lib_dl_dlopen=no
  9336. fi
  9337. rm -f core conftest.err conftest.$ac_objext \
  9338. conftest$ac_exeext conftest.$ac_ext
  9339. LIBS=$ac_check_lib_save_LIBS
  9340. fi
  9341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9342. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9343. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9344. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9345. else
  9346. lt_cv_dlopen="dyld"
  9347. lt_cv_dlopen_libs=
  9348. lt_cv_dlopen_self=yes
  9349. fi
  9350. ;;
  9351. *)
  9352. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9353. if test "x$ac_cv_func_shl_load" = xyes; then :
  9354. lt_cv_dlopen="shl_load"
  9355. else
  9356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9357. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9358. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9359. $as_echo_n "(cached) " >&6
  9360. else
  9361. ac_check_lib_save_LIBS=$LIBS
  9362. LIBS="-ldld $LIBS"
  9363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9364. /* end confdefs.h. */
  9365. /* Override any GCC internal prototype to avoid an error.
  9366. Use char because int might match the return type of a GCC
  9367. builtin and then its argument prototype would still apply. */
  9368. #ifdef __cplusplus
  9369. extern "C"
  9370. #endif
  9371. char shl_load ();
  9372. int
  9373. main ()
  9374. {
  9375. return shl_load ();
  9376. ;
  9377. return 0;
  9378. }
  9379. _ACEOF
  9380. if ac_fn_c_try_link "$LINENO"; then :
  9381. ac_cv_lib_dld_shl_load=yes
  9382. else
  9383. ac_cv_lib_dld_shl_load=no
  9384. fi
  9385. rm -f core conftest.err conftest.$ac_objext \
  9386. conftest$ac_exeext conftest.$ac_ext
  9387. LIBS=$ac_check_lib_save_LIBS
  9388. fi
  9389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9390. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9391. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9392. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9393. else
  9394. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9395. if test "x$ac_cv_func_dlopen" = xyes; then :
  9396. lt_cv_dlopen="dlopen"
  9397. else
  9398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9399. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9400. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9401. $as_echo_n "(cached) " >&6
  9402. else
  9403. ac_check_lib_save_LIBS=$LIBS
  9404. LIBS="-ldl $LIBS"
  9405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9406. /* end confdefs.h. */
  9407. /* Override any GCC internal prototype to avoid an error.
  9408. Use char because int might match the return type of a GCC
  9409. builtin and then its argument prototype would still apply. */
  9410. #ifdef __cplusplus
  9411. extern "C"
  9412. #endif
  9413. char dlopen ();
  9414. int
  9415. main ()
  9416. {
  9417. return dlopen ();
  9418. ;
  9419. return 0;
  9420. }
  9421. _ACEOF
  9422. if ac_fn_c_try_link "$LINENO"; then :
  9423. ac_cv_lib_dl_dlopen=yes
  9424. else
  9425. ac_cv_lib_dl_dlopen=no
  9426. fi
  9427. rm -f core conftest.err conftest.$ac_objext \
  9428. conftest$ac_exeext conftest.$ac_ext
  9429. LIBS=$ac_check_lib_save_LIBS
  9430. fi
  9431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9432. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9433. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9434. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9435. else
  9436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9437. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9438. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9439. $as_echo_n "(cached) " >&6
  9440. else
  9441. ac_check_lib_save_LIBS=$LIBS
  9442. LIBS="-lsvld $LIBS"
  9443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9444. /* end confdefs.h. */
  9445. /* Override any GCC internal prototype to avoid an error.
  9446. Use char because int might match the return type of a GCC
  9447. builtin and then its argument prototype would still apply. */
  9448. #ifdef __cplusplus
  9449. extern "C"
  9450. #endif
  9451. char dlopen ();
  9452. int
  9453. main ()
  9454. {
  9455. return dlopen ();
  9456. ;
  9457. return 0;
  9458. }
  9459. _ACEOF
  9460. if ac_fn_c_try_link "$LINENO"; then :
  9461. ac_cv_lib_svld_dlopen=yes
  9462. else
  9463. ac_cv_lib_svld_dlopen=no
  9464. fi
  9465. rm -f core conftest.err conftest.$ac_objext \
  9466. conftest$ac_exeext conftest.$ac_ext
  9467. LIBS=$ac_check_lib_save_LIBS
  9468. fi
  9469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9470. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9471. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9472. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9473. else
  9474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9475. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9476. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9477. $as_echo_n "(cached) " >&6
  9478. else
  9479. ac_check_lib_save_LIBS=$LIBS
  9480. LIBS="-ldld $LIBS"
  9481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9482. /* end confdefs.h. */
  9483. /* Override any GCC internal prototype to avoid an error.
  9484. Use char because int might match the return type of a GCC
  9485. builtin and then its argument prototype would still apply. */
  9486. #ifdef __cplusplus
  9487. extern "C"
  9488. #endif
  9489. char dld_link ();
  9490. int
  9491. main ()
  9492. {
  9493. return dld_link ();
  9494. ;
  9495. return 0;
  9496. }
  9497. _ACEOF
  9498. if ac_fn_c_try_link "$LINENO"; then :
  9499. ac_cv_lib_dld_dld_link=yes
  9500. else
  9501. ac_cv_lib_dld_dld_link=no
  9502. fi
  9503. rm -f core conftest.err conftest.$ac_objext \
  9504. conftest$ac_exeext conftest.$ac_ext
  9505. LIBS=$ac_check_lib_save_LIBS
  9506. fi
  9507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9508. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9509. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9510. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9511. fi
  9512. fi
  9513. fi
  9514. fi
  9515. fi
  9516. fi
  9517. ;;
  9518. esac
  9519. if test "x$lt_cv_dlopen" != xno; then
  9520. enable_dlopen=yes
  9521. else
  9522. enable_dlopen=no
  9523. fi
  9524. case $lt_cv_dlopen in
  9525. dlopen)
  9526. save_CPPFLAGS="$CPPFLAGS"
  9527. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9528. save_LDFLAGS="$LDFLAGS"
  9529. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9530. save_LIBS="$LIBS"
  9531. LIBS="$lt_cv_dlopen_libs $LIBS"
  9532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9533. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9534. if ${lt_cv_dlopen_self+:} false; then :
  9535. $as_echo_n "(cached) " >&6
  9536. else
  9537. if test "$cross_compiling" = yes; then :
  9538. lt_cv_dlopen_self=cross
  9539. else
  9540. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9541. lt_status=$lt_dlunknown
  9542. cat > conftest.$ac_ext <<_LT_EOF
  9543. #line $LINENO "configure"
  9544. #include "confdefs.h"
  9545. #if HAVE_DLFCN_H
  9546. #include <dlfcn.h>
  9547. #endif
  9548. #include <stdio.h>
  9549. #ifdef RTLD_GLOBAL
  9550. # define LT_DLGLOBAL RTLD_GLOBAL
  9551. #else
  9552. # ifdef DL_GLOBAL
  9553. # define LT_DLGLOBAL DL_GLOBAL
  9554. # else
  9555. # define LT_DLGLOBAL 0
  9556. # endif
  9557. #endif
  9558. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9559. find out it does not work in some platform. */
  9560. #ifndef LT_DLLAZY_OR_NOW
  9561. # ifdef RTLD_LAZY
  9562. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9563. # else
  9564. # ifdef DL_LAZY
  9565. # define LT_DLLAZY_OR_NOW DL_LAZY
  9566. # else
  9567. # ifdef RTLD_NOW
  9568. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9569. # else
  9570. # ifdef DL_NOW
  9571. # define LT_DLLAZY_OR_NOW DL_NOW
  9572. # else
  9573. # define LT_DLLAZY_OR_NOW 0
  9574. # endif
  9575. # endif
  9576. # endif
  9577. # endif
  9578. #endif
  9579. /* When -fvisbility=hidden is used, assume the code has been annotated
  9580. correspondingly for the symbols needed. */
  9581. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9582. int fnord () __attribute__((visibility("default")));
  9583. #endif
  9584. int fnord () { return 42; }
  9585. int main ()
  9586. {
  9587. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9588. int status = $lt_dlunknown;
  9589. if (self)
  9590. {
  9591. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9592. else
  9593. {
  9594. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9595. else puts (dlerror ());
  9596. }
  9597. /* dlclose (self); */
  9598. }
  9599. else
  9600. puts (dlerror ());
  9601. return status;
  9602. }
  9603. _LT_EOF
  9604. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9605. (eval $ac_link) 2>&5
  9606. ac_status=$?
  9607. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9608. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9609. (./conftest; exit; ) >&5 2>/dev/null
  9610. lt_status=$?
  9611. case x$lt_status in
  9612. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9613. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9614. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9615. esac
  9616. else :
  9617. # compilation failed
  9618. lt_cv_dlopen_self=no
  9619. fi
  9620. fi
  9621. rm -fr conftest*
  9622. fi
  9623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9624. $as_echo "$lt_cv_dlopen_self" >&6; }
  9625. if test "x$lt_cv_dlopen_self" = xyes; then
  9626. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9628. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9629. if ${lt_cv_dlopen_self_static+:} false; then :
  9630. $as_echo_n "(cached) " >&6
  9631. else
  9632. if test "$cross_compiling" = yes; then :
  9633. lt_cv_dlopen_self_static=cross
  9634. else
  9635. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9636. lt_status=$lt_dlunknown
  9637. cat > conftest.$ac_ext <<_LT_EOF
  9638. #line $LINENO "configure"
  9639. #include "confdefs.h"
  9640. #if HAVE_DLFCN_H
  9641. #include <dlfcn.h>
  9642. #endif
  9643. #include <stdio.h>
  9644. #ifdef RTLD_GLOBAL
  9645. # define LT_DLGLOBAL RTLD_GLOBAL
  9646. #else
  9647. # ifdef DL_GLOBAL
  9648. # define LT_DLGLOBAL DL_GLOBAL
  9649. # else
  9650. # define LT_DLGLOBAL 0
  9651. # endif
  9652. #endif
  9653. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9654. find out it does not work in some platform. */
  9655. #ifndef LT_DLLAZY_OR_NOW
  9656. # ifdef RTLD_LAZY
  9657. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9658. # else
  9659. # ifdef DL_LAZY
  9660. # define LT_DLLAZY_OR_NOW DL_LAZY
  9661. # else
  9662. # ifdef RTLD_NOW
  9663. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9664. # else
  9665. # ifdef DL_NOW
  9666. # define LT_DLLAZY_OR_NOW DL_NOW
  9667. # else
  9668. # define LT_DLLAZY_OR_NOW 0
  9669. # endif
  9670. # endif
  9671. # endif
  9672. # endif
  9673. #endif
  9674. /* When -fvisbility=hidden is used, assume the code has been annotated
  9675. correspondingly for the symbols needed. */
  9676. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9677. int fnord () __attribute__((visibility("default")));
  9678. #endif
  9679. int fnord () { return 42; }
  9680. int main ()
  9681. {
  9682. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9683. int status = $lt_dlunknown;
  9684. if (self)
  9685. {
  9686. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9687. else
  9688. {
  9689. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9690. else puts (dlerror ());
  9691. }
  9692. /* dlclose (self); */
  9693. }
  9694. else
  9695. puts (dlerror ());
  9696. return status;
  9697. }
  9698. _LT_EOF
  9699. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9700. (eval $ac_link) 2>&5
  9701. ac_status=$?
  9702. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9703. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9704. (./conftest; exit; ) >&5 2>/dev/null
  9705. lt_status=$?
  9706. case x$lt_status in
  9707. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9708. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9709. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9710. esac
  9711. else :
  9712. # compilation failed
  9713. lt_cv_dlopen_self_static=no
  9714. fi
  9715. fi
  9716. rm -fr conftest*
  9717. fi
  9718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9719. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9720. fi
  9721. CPPFLAGS="$save_CPPFLAGS"
  9722. LDFLAGS="$save_LDFLAGS"
  9723. LIBS="$save_LIBS"
  9724. ;;
  9725. esac
  9726. case $lt_cv_dlopen_self in
  9727. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9728. *) enable_dlopen_self=unknown ;;
  9729. esac
  9730. case $lt_cv_dlopen_self_static in
  9731. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9732. *) enable_dlopen_self_static=unknown ;;
  9733. esac
  9734. fi
  9735. striplib=
  9736. old_striplib=
  9737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9738. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9739. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9740. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9741. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9743. $as_echo "yes" >&6; }
  9744. else
  9745. # FIXME - insert some real tests, host_os isn't really good enough
  9746. case $host_os in
  9747. darwin*)
  9748. if test -n "$STRIP" ; then
  9749. striplib="$STRIP -x"
  9750. old_striplib="$STRIP -S"
  9751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9752. $as_echo "yes" >&6; }
  9753. else
  9754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9755. $as_echo "no" >&6; }
  9756. fi
  9757. ;;
  9758. *)
  9759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9760. $as_echo "no" >&6; }
  9761. ;;
  9762. esac
  9763. fi
  9764. # Report which library types will actually be built
  9765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9766. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9768. $as_echo "$can_build_shared" >&6; }
  9769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9770. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9771. test "$can_build_shared" = "no" && enable_shared=no
  9772. # On AIX, shared libraries and static libraries use the same namespace, and
  9773. # are all built from PIC.
  9774. case $host_os in
  9775. aix3*)
  9776. test "$enable_shared" = yes && enable_static=no
  9777. if test -n "$RANLIB"; then
  9778. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9779. postinstall_cmds='$RANLIB $lib'
  9780. fi
  9781. ;;
  9782. aix[4-9]*)
  9783. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9784. test "$enable_shared" = yes && enable_static=no
  9785. fi
  9786. ;;
  9787. esac
  9788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9789. $as_echo "$enable_shared" >&6; }
  9790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9791. $as_echo_n "checking whether to build static libraries... " >&6; }
  9792. # Make sure either enable_shared or enable_static is yes.
  9793. test "$enable_shared" = yes || enable_static=yes
  9794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9795. $as_echo "$enable_static" >&6; }
  9796. fi
  9797. ac_ext=c
  9798. ac_cpp='$CPP $CPPFLAGS'
  9799. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9800. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9801. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9802. CC="$lt_save_CC"
  9803. ac_config_commands="$ac_config_commands libtool"
  9804. # Only expand once:
  9805. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9806. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9807. LT_REVISION=$SDL_INTERFACE_AGE
  9808. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9809. ac_ext=c
  9810. ac_cpp='$CPP $CPPFLAGS'
  9811. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9812. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9813. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9814. if test -n "$ac_tool_prefix"; then
  9815. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9816. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9818. $as_echo_n "checking for $ac_word... " >&6; }
  9819. if ${ac_cv_prog_CC+:} false; then :
  9820. $as_echo_n "(cached) " >&6
  9821. else
  9822. if test -n "$CC"; then
  9823. ac_cv_prog_CC="$CC" # Let the user override the test.
  9824. else
  9825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9826. for as_dir in $PATH
  9827. do
  9828. IFS=$as_save_IFS
  9829. test -z "$as_dir" && as_dir=.
  9830. for ac_exec_ext in '' $ac_executable_extensions; do
  9831. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9832. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9833. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9834. break 2
  9835. fi
  9836. done
  9837. done
  9838. IFS=$as_save_IFS
  9839. fi
  9840. fi
  9841. CC=$ac_cv_prog_CC
  9842. if test -n "$CC"; then
  9843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9844. $as_echo "$CC" >&6; }
  9845. else
  9846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9847. $as_echo "no" >&6; }
  9848. fi
  9849. fi
  9850. if test -z "$ac_cv_prog_CC"; then
  9851. ac_ct_CC=$CC
  9852. # Extract the first word of "gcc", so it can be a program name with args.
  9853. set dummy gcc; ac_word=$2
  9854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9855. $as_echo_n "checking for $ac_word... " >&6; }
  9856. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9857. $as_echo_n "(cached) " >&6
  9858. else
  9859. if test -n "$ac_ct_CC"; then
  9860. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9861. else
  9862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9863. for as_dir in $PATH
  9864. do
  9865. IFS=$as_save_IFS
  9866. test -z "$as_dir" && as_dir=.
  9867. for ac_exec_ext in '' $ac_executable_extensions; do
  9868. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9869. ac_cv_prog_ac_ct_CC="gcc"
  9870. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9871. break 2
  9872. fi
  9873. done
  9874. done
  9875. IFS=$as_save_IFS
  9876. fi
  9877. fi
  9878. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9879. if test -n "$ac_ct_CC"; then
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9881. $as_echo "$ac_ct_CC" >&6; }
  9882. else
  9883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9884. $as_echo "no" >&6; }
  9885. fi
  9886. if test "x$ac_ct_CC" = x; then
  9887. CC=""
  9888. else
  9889. case $cross_compiling:$ac_tool_warned in
  9890. yes:)
  9891. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9892. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9893. ac_tool_warned=yes ;;
  9894. esac
  9895. CC=$ac_ct_CC
  9896. fi
  9897. else
  9898. CC="$ac_cv_prog_CC"
  9899. fi
  9900. if test -z "$CC"; then
  9901. if test -n "$ac_tool_prefix"; then
  9902. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9903. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9905. $as_echo_n "checking for $ac_word... " >&6; }
  9906. if ${ac_cv_prog_CC+:} false; then :
  9907. $as_echo_n "(cached) " >&6
  9908. else
  9909. if test -n "$CC"; then
  9910. ac_cv_prog_CC="$CC" # Let the user override the test.
  9911. else
  9912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9913. for as_dir in $PATH
  9914. do
  9915. IFS=$as_save_IFS
  9916. test -z "$as_dir" && as_dir=.
  9917. for ac_exec_ext in '' $ac_executable_extensions; do
  9918. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9919. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9921. break 2
  9922. fi
  9923. done
  9924. done
  9925. IFS=$as_save_IFS
  9926. fi
  9927. fi
  9928. CC=$ac_cv_prog_CC
  9929. if test -n "$CC"; then
  9930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9931. $as_echo "$CC" >&6; }
  9932. else
  9933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9934. $as_echo "no" >&6; }
  9935. fi
  9936. fi
  9937. fi
  9938. if test -z "$CC"; then
  9939. # Extract the first word of "cc", so it can be a program name with args.
  9940. set dummy cc; ac_word=$2
  9941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9942. $as_echo_n "checking for $ac_word... " >&6; }
  9943. if ${ac_cv_prog_CC+:} false; then :
  9944. $as_echo_n "(cached) " >&6
  9945. else
  9946. if test -n "$CC"; then
  9947. ac_cv_prog_CC="$CC" # Let the user override the test.
  9948. else
  9949. ac_prog_rejected=no
  9950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9951. for as_dir in $PATH
  9952. do
  9953. IFS=$as_save_IFS
  9954. test -z "$as_dir" && as_dir=.
  9955. for ac_exec_ext in '' $ac_executable_extensions; do
  9956. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9957. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9958. ac_prog_rejected=yes
  9959. continue
  9960. fi
  9961. ac_cv_prog_CC="cc"
  9962. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9963. break 2
  9964. fi
  9965. done
  9966. done
  9967. IFS=$as_save_IFS
  9968. if test $ac_prog_rejected = yes; then
  9969. # We found a bogon in the path, so make sure we never use it.
  9970. set dummy $ac_cv_prog_CC
  9971. shift
  9972. if test $# != 0; then
  9973. # We chose a different compiler from the bogus one.
  9974. # However, it has the same basename, so the bogon will be chosen
  9975. # first if we set CC to just the basename; use the full file name.
  9976. shift
  9977. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9978. fi
  9979. fi
  9980. fi
  9981. fi
  9982. CC=$ac_cv_prog_CC
  9983. if test -n "$CC"; then
  9984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9985. $as_echo "$CC" >&6; }
  9986. else
  9987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9988. $as_echo "no" >&6; }
  9989. fi
  9990. fi
  9991. if test -z "$CC"; then
  9992. if test -n "$ac_tool_prefix"; then
  9993. for ac_prog in cl.exe
  9994. do
  9995. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9996. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9998. $as_echo_n "checking for $ac_word... " >&6; }
  9999. if ${ac_cv_prog_CC+:} false; then :
  10000. $as_echo_n "(cached) " >&6
  10001. else
  10002. if test -n "$CC"; then
  10003. ac_cv_prog_CC="$CC" # Let the user override the test.
  10004. else
  10005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10006. for as_dir in $PATH
  10007. do
  10008. IFS=$as_save_IFS
  10009. test -z "$as_dir" && as_dir=.
  10010. for ac_exec_ext in '' $ac_executable_extensions; do
  10011. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10012. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10013. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10014. break 2
  10015. fi
  10016. done
  10017. done
  10018. IFS=$as_save_IFS
  10019. fi
  10020. fi
  10021. CC=$ac_cv_prog_CC
  10022. if test -n "$CC"; then
  10023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10024. $as_echo "$CC" >&6; }
  10025. else
  10026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10027. $as_echo "no" >&6; }
  10028. fi
  10029. test -n "$CC" && break
  10030. done
  10031. fi
  10032. if test -z "$CC"; then
  10033. ac_ct_CC=$CC
  10034. for ac_prog in cl.exe
  10035. do
  10036. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10037. set dummy $ac_prog; ac_word=$2
  10038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10039. $as_echo_n "checking for $ac_word... " >&6; }
  10040. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10041. $as_echo_n "(cached) " >&6
  10042. else
  10043. if test -n "$ac_ct_CC"; then
  10044. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10045. else
  10046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10047. for as_dir in $PATH
  10048. do
  10049. IFS=$as_save_IFS
  10050. test -z "$as_dir" && as_dir=.
  10051. for ac_exec_ext in '' $ac_executable_extensions; do
  10052. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10053. ac_cv_prog_ac_ct_CC="$ac_prog"
  10054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10055. break 2
  10056. fi
  10057. done
  10058. done
  10059. IFS=$as_save_IFS
  10060. fi
  10061. fi
  10062. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10063. if test -n "$ac_ct_CC"; then
  10064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10065. $as_echo "$ac_ct_CC" >&6; }
  10066. else
  10067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10068. $as_echo "no" >&6; }
  10069. fi
  10070. test -n "$ac_ct_CC" && break
  10071. done
  10072. if test "x$ac_ct_CC" = x; then
  10073. CC=""
  10074. else
  10075. case $cross_compiling:$ac_tool_warned in
  10076. yes:)
  10077. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10078. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10079. ac_tool_warned=yes ;;
  10080. esac
  10081. CC=$ac_ct_CC
  10082. fi
  10083. fi
  10084. fi
  10085. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10086. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10087. as_fn_error $? "no acceptable C compiler found in \$PATH
  10088. See \`config.log' for more details" "$LINENO" 5; }
  10089. # Provide some information about the compiler.
  10090. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10091. set X $ac_compile
  10092. ac_compiler=$2
  10093. for ac_option in --version -v -V -qversion; do
  10094. { { ac_try="$ac_compiler $ac_option >&5"
  10095. case "(($ac_try" in
  10096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10097. *) ac_try_echo=$ac_try;;
  10098. esac
  10099. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10100. $as_echo "$ac_try_echo"; } >&5
  10101. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10102. ac_status=$?
  10103. if test -s conftest.err; then
  10104. sed '10a\
  10105. ... rest of stderr output deleted ...
  10106. 10q' conftest.err >conftest.er1
  10107. cat conftest.er1 >&5
  10108. fi
  10109. rm -f conftest.er1 conftest.err
  10110. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10111. test $ac_status = 0; }
  10112. done
  10113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10114. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10115. if ${ac_cv_c_compiler_gnu+:} false; then :
  10116. $as_echo_n "(cached) " >&6
  10117. else
  10118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10119. /* end confdefs.h. */
  10120. int
  10121. main ()
  10122. {
  10123. #ifndef __GNUC__
  10124. choke me
  10125. #endif
  10126. ;
  10127. return 0;
  10128. }
  10129. _ACEOF
  10130. if ac_fn_c_try_compile "$LINENO"; then :
  10131. ac_compiler_gnu=yes
  10132. else
  10133. ac_compiler_gnu=no
  10134. fi
  10135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10136. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10137. fi
  10138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10139. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10140. if test $ac_compiler_gnu = yes; then
  10141. GCC=yes
  10142. else
  10143. GCC=
  10144. fi
  10145. ac_test_CFLAGS=${CFLAGS+set}
  10146. ac_save_CFLAGS=$CFLAGS
  10147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10148. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10149. if ${ac_cv_prog_cc_g+:} false; then :
  10150. $as_echo_n "(cached) " >&6
  10151. else
  10152. ac_save_c_werror_flag=$ac_c_werror_flag
  10153. ac_c_werror_flag=yes
  10154. ac_cv_prog_cc_g=no
  10155. CFLAGS="-g"
  10156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10157. /* end confdefs.h. */
  10158. int
  10159. main ()
  10160. {
  10161. ;
  10162. return 0;
  10163. }
  10164. _ACEOF
  10165. if ac_fn_c_try_compile "$LINENO"; then :
  10166. ac_cv_prog_cc_g=yes
  10167. else
  10168. CFLAGS=""
  10169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10170. /* end confdefs.h. */
  10171. int
  10172. main ()
  10173. {
  10174. ;
  10175. return 0;
  10176. }
  10177. _ACEOF
  10178. if ac_fn_c_try_compile "$LINENO"; then :
  10179. else
  10180. ac_c_werror_flag=$ac_save_c_werror_flag
  10181. CFLAGS="-g"
  10182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10183. /* end confdefs.h. */
  10184. int
  10185. main ()
  10186. {
  10187. ;
  10188. return 0;
  10189. }
  10190. _ACEOF
  10191. if ac_fn_c_try_compile "$LINENO"; then :
  10192. ac_cv_prog_cc_g=yes
  10193. fi
  10194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10195. fi
  10196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10197. fi
  10198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10199. ac_c_werror_flag=$ac_save_c_werror_flag
  10200. fi
  10201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10202. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10203. if test "$ac_test_CFLAGS" = set; then
  10204. CFLAGS=$ac_save_CFLAGS
  10205. elif test $ac_cv_prog_cc_g = yes; then
  10206. if test "$GCC" = yes; then
  10207. CFLAGS="-g -O2"
  10208. else
  10209. CFLAGS="-g"
  10210. fi
  10211. else
  10212. if test "$GCC" = yes; then
  10213. CFLAGS="-O2"
  10214. else
  10215. CFLAGS=
  10216. fi
  10217. fi
  10218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10219. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10220. if ${ac_cv_prog_cc_c89+:} false; then :
  10221. $as_echo_n "(cached) " >&6
  10222. else
  10223. ac_cv_prog_cc_c89=no
  10224. ac_save_CC=$CC
  10225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10226. /* end confdefs.h. */
  10227. #include <stdarg.h>
  10228. #include <stdio.h>
  10229. struct stat;
  10230. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10231. struct buf { int x; };
  10232. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10233. static char *e (p, i)
  10234. char **p;
  10235. int i;
  10236. {
  10237. return p[i];
  10238. }
  10239. static char *f (char * (*g) (char **, int), char **p, ...)
  10240. {
  10241. char *s;
  10242. va_list v;
  10243. va_start (v,p);
  10244. s = g (p, va_arg (v,int));
  10245. va_end (v);
  10246. return s;
  10247. }
  10248. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10249. function prototypes and stuff, but not '\xHH' hex character constants.
  10250. These don't provoke an error unfortunately, instead are silently treated
  10251. as 'x'. The following induces an error, until -std is added to get
  10252. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10253. array size at least. It's necessary to write '\x00'==0 to get something
  10254. that's true only with -std. */
  10255. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10256. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10257. inside strings and character constants. */
  10258. #define FOO(x) 'x'
  10259. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10260. int test (int i, double x);
  10261. struct s1 {int (*f) (int a);};
  10262. struct s2 {int (*f) (double a);};
  10263. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10264. int argc;
  10265. char **argv;
  10266. int
  10267. main ()
  10268. {
  10269. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10270. ;
  10271. return 0;
  10272. }
  10273. _ACEOF
  10274. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10275. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10276. do
  10277. CC="$ac_save_CC $ac_arg"
  10278. if ac_fn_c_try_compile "$LINENO"; then :
  10279. ac_cv_prog_cc_c89=$ac_arg
  10280. fi
  10281. rm -f core conftest.err conftest.$ac_objext
  10282. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10283. done
  10284. rm -f conftest.$ac_ext
  10285. CC=$ac_save_CC
  10286. fi
  10287. # AC_CACHE_VAL
  10288. case "x$ac_cv_prog_cc_c89" in
  10289. x)
  10290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10291. $as_echo "none needed" >&6; } ;;
  10292. xno)
  10293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10294. $as_echo "unsupported" >&6; } ;;
  10295. *)
  10296. CC="$CC $ac_cv_prog_cc_c89"
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10298. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10299. esac
  10300. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10301. fi
  10302. ac_ext=c
  10303. ac_cpp='$CPP $CPPFLAGS'
  10304. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10305. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10306. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10307. ac_ext=cpp
  10308. ac_cpp='$CXXCPP $CPPFLAGS'
  10309. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10310. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10311. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10312. if test -z "$CXX"; then
  10313. if test -n "$CCC"; then
  10314. CXX=$CCC
  10315. else
  10316. if test -n "$ac_tool_prefix"; then
  10317. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10318. do
  10319. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10320. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10322. $as_echo_n "checking for $ac_word... " >&6; }
  10323. if ${ac_cv_prog_CXX+:} false; then :
  10324. $as_echo_n "(cached) " >&6
  10325. else
  10326. if test -n "$CXX"; then
  10327. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10328. else
  10329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10330. for as_dir in $PATH
  10331. do
  10332. IFS=$as_save_IFS
  10333. test -z "$as_dir" && as_dir=.
  10334. for ac_exec_ext in '' $ac_executable_extensions; do
  10335. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10336. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10338. break 2
  10339. fi
  10340. done
  10341. done
  10342. IFS=$as_save_IFS
  10343. fi
  10344. fi
  10345. CXX=$ac_cv_prog_CXX
  10346. if test -n "$CXX"; then
  10347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10348. $as_echo "$CXX" >&6; }
  10349. else
  10350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10351. $as_echo "no" >&6; }
  10352. fi
  10353. test -n "$CXX" && break
  10354. done
  10355. fi
  10356. if test -z "$CXX"; then
  10357. ac_ct_CXX=$CXX
  10358. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10359. do
  10360. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10361. set dummy $ac_prog; ac_word=$2
  10362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10363. $as_echo_n "checking for $ac_word... " >&6; }
  10364. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10365. $as_echo_n "(cached) " >&6
  10366. else
  10367. if test -n "$ac_ct_CXX"; then
  10368. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10369. else
  10370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10371. for as_dir in $PATH
  10372. do
  10373. IFS=$as_save_IFS
  10374. test -z "$as_dir" && as_dir=.
  10375. for ac_exec_ext in '' $ac_executable_extensions; do
  10376. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10377. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10378. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10379. break 2
  10380. fi
  10381. done
  10382. done
  10383. IFS=$as_save_IFS
  10384. fi
  10385. fi
  10386. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10387. if test -n "$ac_ct_CXX"; then
  10388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10389. $as_echo "$ac_ct_CXX" >&6; }
  10390. else
  10391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10392. $as_echo "no" >&6; }
  10393. fi
  10394. test -n "$ac_ct_CXX" && break
  10395. done
  10396. if test "x$ac_ct_CXX" = x; then
  10397. CXX="g++"
  10398. else
  10399. case $cross_compiling:$ac_tool_warned in
  10400. yes:)
  10401. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10402. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10403. ac_tool_warned=yes ;;
  10404. esac
  10405. CXX=$ac_ct_CXX
  10406. fi
  10407. fi
  10408. fi
  10409. fi
  10410. # Provide some information about the compiler.
  10411. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10412. set X $ac_compile
  10413. ac_compiler=$2
  10414. for ac_option in --version -v -V -qversion; do
  10415. { { ac_try="$ac_compiler $ac_option >&5"
  10416. case "(($ac_try" in
  10417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10418. *) ac_try_echo=$ac_try;;
  10419. esac
  10420. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10421. $as_echo "$ac_try_echo"; } >&5
  10422. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10423. ac_status=$?
  10424. if test -s conftest.err; then
  10425. sed '10a\
  10426. ... rest of stderr output deleted ...
  10427. 10q' conftest.err >conftest.er1
  10428. cat conftest.er1 >&5
  10429. fi
  10430. rm -f conftest.er1 conftest.err
  10431. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10432. test $ac_status = 0; }
  10433. done
  10434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10435. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10436. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10437. $as_echo_n "(cached) " >&6
  10438. else
  10439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10440. /* end confdefs.h. */
  10441. int
  10442. main ()
  10443. {
  10444. #ifndef __GNUC__
  10445. choke me
  10446. #endif
  10447. ;
  10448. return 0;
  10449. }
  10450. _ACEOF
  10451. if ac_fn_cxx_try_compile "$LINENO"; then :
  10452. ac_compiler_gnu=yes
  10453. else
  10454. ac_compiler_gnu=no
  10455. fi
  10456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10457. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10458. fi
  10459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10460. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10461. if test $ac_compiler_gnu = yes; then
  10462. GXX=yes
  10463. else
  10464. GXX=
  10465. fi
  10466. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10467. ac_save_CXXFLAGS=$CXXFLAGS
  10468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10469. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10470. if ${ac_cv_prog_cxx_g+:} false; then :
  10471. $as_echo_n "(cached) " >&6
  10472. else
  10473. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10474. ac_cxx_werror_flag=yes
  10475. ac_cv_prog_cxx_g=no
  10476. CXXFLAGS="-g"
  10477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10478. /* end confdefs.h. */
  10479. int
  10480. main ()
  10481. {
  10482. ;
  10483. return 0;
  10484. }
  10485. _ACEOF
  10486. if ac_fn_cxx_try_compile "$LINENO"; then :
  10487. ac_cv_prog_cxx_g=yes
  10488. else
  10489. CXXFLAGS=""
  10490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10491. /* end confdefs.h. */
  10492. int
  10493. main ()
  10494. {
  10495. ;
  10496. return 0;
  10497. }
  10498. _ACEOF
  10499. if ac_fn_cxx_try_compile "$LINENO"; then :
  10500. else
  10501. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10502. CXXFLAGS="-g"
  10503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10504. /* end confdefs.h. */
  10505. int
  10506. main ()
  10507. {
  10508. ;
  10509. return 0;
  10510. }
  10511. _ACEOF
  10512. if ac_fn_cxx_try_compile "$LINENO"; then :
  10513. ac_cv_prog_cxx_g=yes
  10514. fi
  10515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10516. fi
  10517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10518. fi
  10519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10520. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10521. fi
  10522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10523. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10524. if test "$ac_test_CXXFLAGS" = set; then
  10525. CXXFLAGS=$ac_save_CXXFLAGS
  10526. elif test $ac_cv_prog_cxx_g = yes; then
  10527. if test "$GXX" = yes; then
  10528. CXXFLAGS="-g -O2"
  10529. else
  10530. CXXFLAGS="-g"
  10531. fi
  10532. else
  10533. if test "$GXX" = yes; then
  10534. CXXFLAGS="-O2"
  10535. else
  10536. CXXFLAGS=
  10537. fi
  10538. fi
  10539. ac_ext=c
  10540. ac_cpp='$CPP $CPPFLAGS'
  10541. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10542. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10543. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10544. func_stripname_cnf ()
  10545. {
  10546. case ${2} in
  10547. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10548. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10549. esac
  10550. } # func_stripname_cnf
  10551. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10552. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10553. (test "X$CXX" != "Xg++"))) ; then
  10554. ac_ext=cpp
  10555. ac_cpp='$CXXCPP $CPPFLAGS'
  10556. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10557. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10558. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10560. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10561. if test -z "$CXXCPP"; then
  10562. if ${ac_cv_prog_CXXCPP+:} false; then :
  10563. $as_echo_n "(cached) " >&6
  10564. else
  10565. # Double quotes because CXXCPP needs to be expanded
  10566. for CXXCPP in "$CXX -E" "/lib/cpp"
  10567. do
  10568. ac_preproc_ok=false
  10569. for ac_cxx_preproc_warn_flag in '' yes
  10570. do
  10571. # Use a header file that comes with gcc, so configuring glibc
  10572. # with a fresh cross-compiler works.
  10573. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10574. # <limits.h> exists even on freestanding compilers.
  10575. # On the NeXT, cc -E runs the code through the compiler's parser,
  10576. # not just through cpp. "Syntax error" is here to catch this case.
  10577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10578. /* end confdefs.h. */
  10579. #ifdef __STDC__
  10580. # include <limits.h>
  10581. #else
  10582. # include <assert.h>
  10583. #endif
  10584. Syntax error
  10585. _ACEOF
  10586. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10587. else
  10588. # Broken: fails on valid input.
  10589. continue
  10590. fi
  10591. rm -f conftest.err conftest.i conftest.$ac_ext
  10592. # OK, works on sane cases. Now check whether nonexistent headers
  10593. # can be detected and how.
  10594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10595. /* end confdefs.h. */
  10596. #include <ac_nonexistent.h>
  10597. _ACEOF
  10598. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10599. # Broken: success on invalid input.
  10600. continue
  10601. else
  10602. # Passes both tests.
  10603. ac_preproc_ok=:
  10604. break
  10605. fi
  10606. rm -f conftest.err conftest.i conftest.$ac_ext
  10607. done
  10608. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10609. rm -f conftest.i conftest.err conftest.$ac_ext
  10610. if $ac_preproc_ok; then :
  10611. break
  10612. fi
  10613. done
  10614. ac_cv_prog_CXXCPP=$CXXCPP
  10615. fi
  10616. CXXCPP=$ac_cv_prog_CXXCPP
  10617. else
  10618. ac_cv_prog_CXXCPP=$CXXCPP
  10619. fi
  10620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10621. $as_echo "$CXXCPP" >&6; }
  10622. ac_preproc_ok=false
  10623. for ac_cxx_preproc_warn_flag in '' yes
  10624. do
  10625. # Use a header file that comes with gcc, so configuring glibc
  10626. # with a fresh cross-compiler works.
  10627. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10628. # <limits.h> exists even on freestanding compilers.
  10629. # On the NeXT, cc -E runs the code through the compiler's parser,
  10630. # not just through cpp. "Syntax error" is here to catch this case.
  10631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10632. /* end confdefs.h. */
  10633. #ifdef __STDC__
  10634. # include <limits.h>
  10635. #else
  10636. # include <assert.h>
  10637. #endif
  10638. Syntax error
  10639. _ACEOF
  10640. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10641. else
  10642. # Broken: fails on valid input.
  10643. continue
  10644. fi
  10645. rm -f conftest.err conftest.i conftest.$ac_ext
  10646. # OK, works on sane cases. Now check whether nonexistent headers
  10647. # can be detected and how.
  10648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10649. /* end confdefs.h. */
  10650. #include <ac_nonexistent.h>
  10651. _ACEOF
  10652. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10653. # Broken: success on invalid input.
  10654. continue
  10655. else
  10656. # Passes both tests.
  10657. ac_preproc_ok=:
  10658. break
  10659. fi
  10660. rm -f conftest.err conftest.i conftest.$ac_ext
  10661. done
  10662. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10663. rm -f conftest.i conftest.err conftest.$ac_ext
  10664. if $ac_preproc_ok; then :
  10665. else
  10666. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10667. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10668. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10669. See \`config.log' for more details" "$LINENO" 5; }
  10670. fi
  10671. ac_ext=c
  10672. ac_cpp='$CPP $CPPFLAGS'
  10673. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10674. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10675. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10676. else
  10677. _lt_caught_CXX_error=yes
  10678. fi
  10679. ac_ext=cpp
  10680. ac_cpp='$CXXCPP $CPPFLAGS'
  10681. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10682. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10683. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10684. archive_cmds_need_lc_CXX=no
  10685. allow_undefined_flag_CXX=
  10686. always_export_symbols_CXX=no
  10687. archive_expsym_cmds_CXX=
  10688. compiler_needs_object_CXX=no
  10689. export_dynamic_flag_spec_CXX=
  10690. hardcode_direct_CXX=no
  10691. hardcode_direct_absolute_CXX=no
  10692. hardcode_libdir_flag_spec_CXX=
  10693. hardcode_libdir_separator_CXX=
  10694. hardcode_minus_L_CXX=no
  10695. hardcode_shlibpath_var_CXX=unsupported
  10696. hardcode_automatic_CXX=no
  10697. inherit_rpath_CXX=no
  10698. module_cmds_CXX=
  10699. module_expsym_cmds_CXX=
  10700. link_all_deplibs_CXX=unknown
  10701. old_archive_cmds_CXX=$old_archive_cmds
  10702. reload_flag_CXX=$reload_flag
  10703. reload_cmds_CXX=$reload_cmds
  10704. no_undefined_flag_CXX=
  10705. whole_archive_flag_spec_CXX=
  10706. enable_shared_with_static_runtimes_CXX=no
  10707. # Source file extension for C++ test sources.
  10708. ac_ext=cpp
  10709. # Object file extension for compiled C++ test sources.
  10710. objext=o
  10711. objext_CXX=$objext
  10712. # No sense in running all these tests if we already determined that
  10713. # the CXX compiler isn't working. Some variables (like enable_shared)
  10714. # are currently assumed to apply to all compilers on this platform,
  10715. # and will be corrupted by setting them based on a non-working compiler.
  10716. if test "$_lt_caught_CXX_error" != yes; then
  10717. # Code to be used in simple compile tests
  10718. lt_simple_compile_test_code="int some_variable = 0;"
  10719. # Code to be used in simple link tests
  10720. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10721. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10722. # If no C compiler was specified, use CC.
  10723. LTCC=${LTCC-"$CC"}
  10724. # If no C compiler flags were specified, use CFLAGS.
  10725. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10726. # Allow CC to be a program name with arguments.
  10727. compiler=$CC
  10728. # save warnings/boilerplate of simple test code
  10729. ac_outfile=conftest.$ac_objext
  10730. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10731. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10732. _lt_compiler_boilerplate=`cat conftest.err`
  10733. $RM conftest*
  10734. ac_outfile=conftest.$ac_objext
  10735. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10736. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10737. _lt_linker_boilerplate=`cat conftest.err`
  10738. $RM -r conftest*
  10739. # Allow CC to be a program name with arguments.
  10740. lt_save_CC=$CC
  10741. lt_save_CFLAGS=$CFLAGS
  10742. lt_save_LD=$LD
  10743. lt_save_GCC=$GCC
  10744. GCC=$GXX
  10745. lt_save_with_gnu_ld=$with_gnu_ld
  10746. lt_save_path_LD=$lt_cv_path_LD
  10747. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10748. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10749. else
  10750. $as_unset lt_cv_prog_gnu_ld
  10751. fi
  10752. if test -n "${lt_cv_path_LDCXX+set}"; then
  10753. lt_cv_path_LD=$lt_cv_path_LDCXX
  10754. else
  10755. $as_unset lt_cv_path_LD
  10756. fi
  10757. test -z "${LDCXX+set}" || LD=$LDCXX
  10758. CC=${CXX-"c++"}
  10759. CFLAGS=$CXXFLAGS
  10760. compiler=$CC
  10761. compiler_CXX=$CC
  10762. for cc_temp in $compiler""; do
  10763. case $cc_temp in
  10764. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10765. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10766. \-*) ;;
  10767. *) break;;
  10768. esac
  10769. done
  10770. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10771. if test -n "$compiler"; then
  10772. # We don't want -fno-exception when compiling C++ code, so set the
  10773. # no_builtin_flag separately
  10774. if test "$GXX" = yes; then
  10775. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10776. else
  10777. lt_prog_compiler_no_builtin_flag_CXX=
  10778. fi
  10779. if test "$GXX" = yes; then
  10780. # Set up default GNU C++ configuration
  10781. # Check whether --with-gnu-ld was given.
  10782. if test "${with_gnu_ld+set}" = set; then :
  10783. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10784. else
  10785. with_gnu_ld=no
  10786. fi
  10787. ac_prog=ld
  10788. if test "$GCC" = yes; then
  10789. # Check if gcc -print-prog-name=ld gives a path.
  10790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10791. $as_echo_n "checking for ld used by $CC... " >&6; }
  10792. case $host in
  10793. *-*-mingw*)
  10794. # gcc leaves a trailing carriage return which upsets mingw
  10795. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10796. *)
  10797. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10798. esac
  10799. case $ac_prog in
  10800. # Accept absolute paths.
  10801. [\\/]* | ?:[\\/]*)
  10802. re_direlt='/[^/][^/]*/\.\./'
  10803. # Canonicalize the pathname of ld
  10804. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10805. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10806. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10807. done
  10808. test -z "$LD" && LD="$ac_prog"
  10809. ;;
  10810. "")
  10811. # If it fails, then pretend we aren't using GCC.
  10812. ac_prog=ld
  10813. ;;
  10814. *)
  10815. # If it is relative, then search for the first ld in PATH.
  10816. with_gnu_ld=unknown
  10817. ;;
  10818. esac
  10819. elif test "$with_gnu_ld" = yes; then
  10820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10821. $as_echo_n "checking for GNU ld... " >&6; }
  10822. else
  10823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10824. $as_echo_n "checking for non-GNU ld... " >&6; }
  10825. fi
  10826. if ${lt_cv_path_LD+:} false; then :
  10827. $as_echo_n "(cached) " >&6
  10828. else
  10829. if test -z "$LD"; then
  10830. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10831. for ac_dir in $PATH; do
  10832. IFS="$lt_save_ifs"
  10833. test -z "$ac_dir" && ac_dir=.
  10834. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10835. lt_cv_path_LD="$ac_dir/$ac_prog"
  10836. # Check to see if the program is GNU ld. I'd rather use --version,
  10837. # but apparently some variants of GNU ld only accept -v.
  10838. # Break only if it was the GNU/non-GNU ld that we prefer.
  10839. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10840. *GNU* | *'with BFD'*)
  10841. test "$with_gnu_ld" != no && break
  10842. ;;
  10843. *)
  10844. test "$with_gnu_ld" != yes && break
  10845. ;;
  10846. esac
  10847. fi
  10848. done
  10849. IFS="$lt_save_ifs"
  10850. else
  10851. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10852. fi
  10853. fi
  10854. LD="$lt_cv_path_LD"
  10855. if test -n "$LD"; then
  10856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10857. $as_echo "$LD" >&6; }
  10858. else
  10859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10860. $as_echo "no" >&6; }
  10861. fi
  10862. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10864. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10865. if ${lt_cv_prog_gnu_ld+:} false; then :
  10866. $as_echo_n "(cached) " >&6
  10867. else
  10868. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10869. case `$LD -v 2>&1 </dev/null` in
  10870. *GNU* | *'with BFD'*)
  10871. lt_cv_prog_gnu_ld=yes
  10872. ;;
  10873. *)
  10874. lt_cv_prog_gnu_ld=no
  10875. ;;
  10876. esac
  10877. fi
  10878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10879. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10880. with_gnu_ld=$lt_cv_prog_gnu_ld
  10881. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10882. # archiving commands below assume that GNU ld is being used.
  10883. if test "$with_gnu_ld" = yes; then
  10884. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10885. 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'
  10886. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10887. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10888. # If archive_cmds runs LD, not CC, wlarc should be empty
  10889. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10890. # investigate it a little bit more. (MM)
  10891. wlarc='${wl}'
  10892. # ancient GNU ld didn't support --whole-archive et. al.
  10893. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10894. $GREP 'no-whole-archive' > /dev/null; then
  10895. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10896. else
  10897. whole_archive_flag_spec_CXX=
  10898. fi
  10899. else
  10900. with_gnu_ld=no
  10901. wlarc=
  10902. # A generic and very simple default shared library creation
  10903. # command for GNU C++ for the case where it uses the native
  10904. # linker, instead of GNU ld. If possible, this setting should
  10905. # overridden to take advantage of the native linker features on
  10906. # the platform it is being used on.
  10907. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10908. fi
  10909. # Commands to make compiler produce verbose output that lists
  10910. # what "hidden" libraries, object files and flags are used when
  10911. # linking a shared library.
  10912. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10913. else
  10914. GXX=no
  10915. with_gnu_ld=no
  10916. wlarc=
  10917. fi
  10918. # PORTME: fill in a description of your system's C++ link characteristics
  10919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10920. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10921. ld_shlibs_CXX=yes
  10922. case $host_os in
  10923. aix3*)
  10924. # FIXME: insert proper C++ library support
  10925. ld_shlibs_CXX=no
  10926. ;;
  10927. aix[4-9]*)
  10928. if test "$host_cpu" = ia64; then
  10929. # On IA64, the linker does run time linking by default, so we don't
  10930. # have to do anything special.
  10931. aix_use_runtimelinking=no
  10932. exp_sym_flag='-Bexport'
  10933. no_entry_flag=""
  10934. else
  10935. aix_use_runtimelinking=no
  10936. # Test if we are trying to use run time linking or normal
  10937. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10938. # need to do runtime linking.
  10939. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10940. for ld_flag in $LDFLAGS; do
  10941. case $ld_flag in
  10942. *-brtl*)
  10943. aix_use_runtimelinking=yes
  10944. break
  10945. ;;
  10946. esac
  10947. done
  10948. ;;
  10949. esac
  10950. exp_sym_flag='-bexport'
  10951. no_entry_flag='-bnoentry'
  10952. fi
  10953. # When large executables or shared objects are built, AIX ld can
  10954. # have problems creating the table of contents. If linking a library
  10955. # or program results in "error TOC overflow" add -mminimal-toc to
  10956. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10957. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10958. archive_cmds_CXX=''
  10959. hardcode_direct_CXX=yes
  10960. hardcode_direct_absolute_CXX=yes
  10961. hardcode_libdir_separator_CXX=':'
  10962. link_all_deplibs_CXX=yes
  10963. file_list_spec_CXX='${wl}-f,'
  10964. if test "$GXX" = yes; then
  10965. case $host_os in aix4.[012]|aix4.[012].*)
  10966. # We only want to do this on AIX 4.2 and lower, the check
  10967. # below for broken collect2 doesn't work under 4.3+
  10968. collect2name=`${CC} -print-prog-name=collect2`
  10969. if test -f "$collect2name" &&
  10970. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10971. then
  10972. # We have reworked collect2
  10973. :
  10974. else
  10975. # We have old collect2
  10976. hardcode_direct_CXX=unsupported
  10977. # It fails to find uninstalled libraries when the uninstalled
  10978. # path is not listed in the libpath. Setting hardcode_minus_L
  10979. # to unsupported forces relinking
  10980. hardcode_minus_L_CXX=yes
  10981. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10982. hardcode_libdir_separator_CXX=
  10983. fi
  10984. esac
  10985. shared_flag='-shared'
  10986. if test "$aix_use_runtimelinking" = yes; then
  10987. shared_flag="$shared_flag "'${wl}-G'
  10988. fi
  10989. else
  10990. # not using gcc
  10991. if test "$host_cpu" = ia64; then
  10992. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10993. # chokes on -Wl,-G. The following line is correct:
  10994. shared_flag='-G'
  10995. else
  10996. if test "$aix_use_runtimelinking" = yes; then
  10997. shared_flag='${wl}-G'
  10998. else
  10999. shared_flag='${wl}-bM:SRE'
  11000. fi
  11001. fi
  11002. fi
  11003. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11004. # It seems that -bexpall does not export symbols beginning with
  11005. # underscore (_), so it is better to generate a list of symbols to
  11006. # export.
  11007. always_export_symbols_CXX=yes
  11008. if test "$aix_use_runtimelinking" = yes; then
  11009. # Warning - without using the other runtime loading flags (-brtl),
  11010. # -berok will link without error, but may produce a broken library.
  11011. allow_undefined_flag_CXX='-berok'
  11012. # Determine the default libpath from the value encoded in an empty
  11013. # executable.
  11014. if test "${lt_cv_aix_libpath+set}" = set; then
  11015. aix_libpath=$lt_cv_aix_libpath
  11016. else
  11017. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11018. $as_echo_n "(cached) " >&6
  11019. else
  11020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11021. /* end confdefs.h. */
  11022. int
  11023. main ()
  11024. {
  11025. ;
  11026. return 0;
  11027. }
  11028. _ACEOF
  11029. if ac_fn_cxx_try_link "$LINENO"; then :
  11030. lt_aix_libpath_sed='
  11031. /Import File Strings/,/^$/ {
  11032. /^0/ {
  11033. s/^0 *\([^ ]*\) *$/\1/
  11034. p
  11035. }
  11036. }'
  11037. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11038. # Check for a 64-bit object if we didn't find anything.
  11039. if test -z "$lt_cv_aix_libpath__CXX"; then
  11040. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11041. fi
  11042. fi
  11043. rm -f core conftest.err conftest.$ac_objext \
  11044. conftest$ac_exeext conftest.$ac_ext
  11045. if test -z "$lt_cv_aix_libpath__CXX"; then
  11046. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11047. fi
  11048. fi
  11049. aix_libpath=$lt_cv_aix_libpath__CXX
  11050. fi
  11051. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11052. 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"
  11053. else
  11054. if test "$host_cpu" = ia64; then
  11055. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11056. allow_undefined_flag_CXX="-z nodefs"
  11057. 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"
  11058. else
  11059. # Determine the default libpath from the value encoded in an
  11060. # empty executable.
  11061. if test "${lt_cv_aix_libpath+set}" = set; then
  11062. aix_libpath=$lt_cv_aix_libpath
  11063. else
  11064. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11065. $as_echo_n "(cached) " >&6
  11066. else
  11067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11068. /* end confdefs.h. */
  11069. int
  11070. main ()
  11071. {
  11072. ;
  11073. return 0;
  11074. }
  11075. _ACEOF
  11076. if ac_fn_cxx_try_link "$LINENO"; then :
  11077. lt_aix_libpath_sed='
  11078. /Import File Strings/,/^$/ {
  11079. /^0/ {
  11080. s/^0 *\([^ ]*\) *$/\1/
  11081. p
  11082. }
  11083. }'
  11084. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11085. # Check for a 64-bit object if we didn't find anything.
  11086. if test -z "$lt_cv_aix_libpath__CXX"; then
  11087. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11088. fi
  11089. fi
  11090. rm -f core conftest.err conftest.$ac_objext \
  11091. conftest$ac_exeext conftest.$ac_ext
  11092. if test -z "$lt_cv_aix_libpath__CXX"; then
  11093. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11094. fi
  11095. fi
  11096. aix_libpath=$lt_cv_aix_libpath__CXX
  11097. fi
  11098. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11099. # Warning - without using the other run time loading flags,
  11100. # -berok will link without error, but may produce a broken library.
  11101. no_undefined_flag_CXX=' ${wl}-bernotok'
  11102. allow_undefined_flag_CXX=' ${wl}-berok'
  11103. if test "$with_gnu_ld" = yes; then
  11104. # We only use this code for GNU lds that support --whole-archive.
  11105. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11106. else
  11107. # Exported symbols can be pulled into shared objects from archives
  11108. whole_archive_flag_spec_CXX='$convenience'
  11109. fi
  11110. archive_cmds_need_lc_CXX=yes
  11111. # This is similar to how AIX traditionally builds its shared
  11112. # libraries.
  11113. 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'
  11114. fi
  11115. fi
  11116. ;;
  11117. beos*)
  11118. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11119. allow_undefined_flag_CXX=unsupported
  11120. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11121. # support --undefined. This deserves some investigation. FIXME
  11122. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11123. else
  11124. ld_shlibs_CXX=no
  11125. fi
  11126. ;;
  11127. chorus*)
  11128. case $cc_basename in
  11129. *)
  11130. # FIXME: insert proper C++ library support
  11131. ld_shlibs_CXX=no
  11132. ;;
  11133. esac
  11134. ;;
  11135. cygwin* | mingw* | pw32* | cegcc*)
  11136. case $GXX,$cc_basename in
  11137. ,cl* | no,cl*)
  11138. # Native MSVC
  11139. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11140. # no search path for DLLs.
  11141. hardcode_libdir_flag_spec_CXX=' '
  11142. allow_undefined_flag_CXX=unsupported
  11143. always_export_symbols_CXX=yes
  11144. file_list_spec_CXX='@'
  11145. # Tell ltmain to make .lib files, not .a files.
  11146. libext=lib
  11147. # Tell ltmain to make .dll files, not .so files.
  11148. shrext_cmds=".dll"
  11149. # FIXME: Setting linknames here is a bad hack.
  11150. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11151. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11152. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11153. else
  11154. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11155. fi~
  11156. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11157. linknames='
  11158. # The linker will not automatically build a static lib if we build a DLL.
  11159. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11160. enable_shared_with_static_runtimes_CXX=yes
  11161. # Don't use ranlib
  11162. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11163. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11164. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11165. case $lt_outputfile in
  11166. *.exe|*.EXE) ;;
  11167. *)
  11168. lt_outputfile="$lt_outputfile.exe"
  11169. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11170. ;;
  11171. esac~
  11172. func_to_tool_file "$lt_outputfile"~
  11173. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11174. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11175. $RM "$lt_outputfile.manifest";
  11176. fi'
  11177. ;;
  11178. *)
  11179. # g++
  11180. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11181. # as there is no search path for DLLs.
  11182. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11183. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11184. allow_undefined_flag_CXX=unsupported
  11185. always_export_symbols_CXX=no
  11186. enable_shared_with_static_runtimes_CXX=yes
  11187. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11188. 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'
  11189. # If the export-symbols file already is a .def file (1st line
  11190. # is EXPORTS), use it as is; otherwise, prepend...
  11191. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11192. cp $export_symbols $output_objdir/$soname.def;
  11193. else
  11194. echo EXPORTS > $output_objdir/$soname.def;
  11195. cat $export_symbols >> $output_objdir/$soname.def;
  11196. fi~
  11197. $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'
  11198. else
  11199. ld_shlibs_CXX=no
  11200. fi
  11201. ;;
  11202. esac
  11203. ;;
  11204. darwin* | rhapsody*)
  11205. archive_cmds_need_lc_CXX=no
  11206. hardcode_direct_CXX=no
  11207. hardcode_automatic_CXX=yes
  11208. hardcode_shlibpath_var_CXX=unsupported
  11209. if test "$lt_cv_ld_force_load" = "yes"; then
  11210. 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\"`'
  11211. else
  11212. whole_archive_flag_spec_CXX=''
  11213. fi
  11214. link_all_deplibs_CXX=yes
  11215. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11216. case $cc_basename in
  11217. ifort*) _lt_dar_can_shared=yes ;;
  11218. *) _lt_dar_can_shared=$GCC ;;
  11219. esac
  11220. if test "$_lt_dar_can_shared" = "yes"; then
  11221. output_verbose_link_cmd=func_echo_all
  11222. 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}"
  11223. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11224. 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}"
  11225. 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}"
  11226. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11227. 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}"
  11228. 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}"
  11229. fi
  11230. else
  11231. ld_shlibs_CXX=no
  11232. fi
  11233. ;;
  11234. dgux*)
  11235. case $cc_basename in
  11236. ec++*)
  11237. # FIXME: insert proper C++ library support
  11238. ld_shlibs_CXX=no
  11239. ;;
  11240. ghcx*)
  11241. # Green Hills C++ Compiler
  11242. # FIXME: insert proper C++ library support
  11243. ld_shlibs_CXX=no
  11244. ;;
  11245. *)
  11246. # FIXME: insert proper C++ library support
  11247. ld_shlibs_CXX=no
  11248. ;;
  11249. esac
  11250. ;;
  11251. freebsd2.*)
  11252. # C++ shared libraries reported to be fairly broken before
  11253. # switch to ELF
  11254. ld_shlibs_CXX=no
  11255. ;;
  11256. freebsd-elf*)
  11257. archive_cmds_need_lc_CXX=no
  11258. ;;
  11259. freebsd* | dragonfly*)
  11260. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11261. # conventions
  11262. ld_shlibs_CXX=yes
  11263. ;;
  11264. gnu*)
  11265. ;;
  11266. haiku*)
  11267. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11268. link_all_deplibs_CXX=yes
  11269. ;;
  11270. hpux9*)
  11271. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11272. hardcode_libdir_separator_CXX=:
  11273. export_dynamic_flag_spec_CXX='${wl}-E'
  11274. hardcode_direct_CXX=yes
  11275. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11276. # but as the default
  11277. # location of the library.
  11278. case $cc_basename in
  11279. CC*)
  11280. # FIXME: insert proper C++ library support
  11281. ld_shlibs_CXX=no
  11282. ;;
  11283. aCC*)
  11284. 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'
  11285. # Commands to make compiler produce verbose output that lists
  11286. # what "hidden" libraries, object files and flags are used when
  11287. # linking a shared library.
  11288. #
  11289. # There doesn't appear to be a way to prevent this compiler from
  11290. # explicitly linking system object files so we need to strip them
  11291. # from the output so that they don't get included in the library
  11292. # dependencies.
  11293. 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"'
  11294. ;;
  11295. *)
  11296. if test "$GXX" = yes; then
  11297. 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'
  11298. else
  11299. # FIXME: insert proper C++ library support
  11300. ld_shlibs_CXX=no
  11301. fi
  11302. ;;
  11303. esac
  11304. ;;
  11305. hpux10*|hpux11*)
  11306. if test $with_gnu_ld = no; then
  11307. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11308. hardcode_libdir_separator_CXX=:
  11309. case $host_cpu in
  11310. hppa*64*|ia64*)
  11311. ;;
  11312. *)
  11313. export_dynamic_flag_spec_CXX='${wl}-E'
  11314. ;;
  11315. esac
  11316. fi
  11317. case $host_cpu in
  11318. hppa*64*|ia64*)
  11319. hardcode_direct_CXX=no
  11320. hardcode_shlibpath_var_CXX=no
  11321. ;;
  11322. *)
  11323. hardcode_direct_CXX=yes
  11324. hardcode_direct_absolute_CXX=yes
  11325. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11326. # but as the default
  11327. # location of the library.
  11328. ;;
  11329. esac
  11330. case $cc_basename in
  11331. CC*)
  11332. # FIXME: insert proper C++ library support
  11333. ld_shlibs_CXX=no
  11334. ;;
  11335. aCC*)
  11336. case $host_cpu in
  11337. hppa*64*)
  11338. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11339. ;;
  11340. ia64*)
  11341. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11342. ;;
  11343. *)
  11344. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11345. ;;
  11346. esac
  11347. # Commands to make compiler produce verbose output that lists
  11348. # what "hidden" libraries, object files and flags are used when
  11349. # linking a shared library.
  11350. #
  11351. # There doesn't appear to be a way to prevent this compiler from
  11352. # explicitly linking system object files so we need to strip them
  11353. # from the output so that they don't get included in the library
  11354. # dependencies.
  11355. 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"'
  11356. ;;
  11357. *)
  11358. if test "$GXX" = yes; then
  11359. if test $with_gnu_ld = no; then
  11360. case $host_cpu in
  11361. hppa*64*)
  11362. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11363. ;;
  11364. ia64*)
  11365. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11366. ;;
  11367. *)
  11368. 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'
  11369. ;;
  11370. esac
  11371. fi
  11372. else
  11373. # FIXME: insert proper C++ library support
  11374. ld_shlibs_CXX=no
  11375. fi
  11376. ;;
  11377. esac
  11378. ;;
  11379. interix[3-9]*)
  11380. hardcode_direct_CXX=no
  11381. hardcode_shlibpath_var_CXX=no
  11382. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11383. export_dynamic_flag_spec_CXX='${wl}-E'
  11384. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11385. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11386. # default) and relocated if they conflict, which is a slow very memory
  11387. # consuming and fragmenting process. To avoid this, we pick a random,
  11388. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11389. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11390. 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'
  11391. 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'
  11392. ;;
  11393. irix5* | irix6*)
  11394. case $cc_basename in
  11395. CC*)
  11396. # SGI C++
  11397. 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'
  11398. # Archives containing C++ object files must be created using
  11399. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11400. # necessary to make sure instantiated templates are included
  11401. # in the archive.
  11402. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11403. ;;
  11404. *)
  11405. if test "$GXX" = yes; then
  11406. if test "$with_gnu_ld" = no; then
  11407. 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'
  11408. else
  11409. 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'
  11410. fi
  11411. fi
  11412. link_all_deplibs_CXX=yes
  11413. ;;
  11414. esac
  11415. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11416. hardcode_libdir_separator_CXX=:
  11417. inherit_rpath_CXX=yes
  11418. ;;
  11419. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11420. case $cc_basename in
  11421. KCC*)
  11422. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11423. # KCC will only create a shared library if the output file
  11424. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11425. # to its proper name (with version) after linking.
  11426. 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'
  11427. 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'
  11428. # Commands to make compiler produce verbose output that lists
  11429. # what "hidden" libraries, object files and flags are used when
  11430. # linking a shared library.
  11431. #
  11432. # There doesn't appear to be a way to prevent this compiler from
  11433. # explicitly linking system object files so we need to strip them
  11434. # from the output so that they don't get included in the library
  11435. # dependencies.
  11436. 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"'
  11437. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11438. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11439. # Archives containing C++ object files must be created using
  11440. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11441. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11442. ;;
  11443. icpc* | ecpc* )
  11444. # Intel C++
  11445. with_gnu_ld=yes
  11446. # version 8.0 and above of icpc choke on multiply defined symbols
  11447. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11448. # earlier do not add the objects themselves.
  11449. case `$CC -V 2>&1` in
  11450. *"Version 7."*)
  11451. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11452. 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'
  11453. ;;
  11454. *) # Version 8.0 or newer
  11455. tmp_idyn=
  11456. case $host_cpu in
  11457. ia64*) tmp_idyn=' -i_dynamic';;
  11458. esac
  11459. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11460. 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'
  11461. ;;
  11462. esac
  11463. archive_cmds_need_lc_CXX=no
  11464. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11465. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11466. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11467. ;;
  11468. pgCC* | pgcpp*)
  11469. # Portland Group C++ compiler
  11470. case `$CC -V` in
  11471. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11472. prelink_cmds_CXX='tpldir=Template.dir~
  11473. rm -rf $tpldir~
  11474. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11475. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11476. old_archive_cmds_CXX='tpldir=Template.dir~
  11477. rm -rf $tpldir~
  11478. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11479. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11480. $RANLIB $oldlib'
  11481. archive_cmds_CXX='tpldir=Template.dir~
  11482. rm -rf $tpldir~
  11483. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11484. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11485. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11486. rm -rf $tpldir~
  11487. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11488. $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'
  11489. ;;
  11490. *) # Version 6 and above use weak symbols
  11491. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11492. 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'
  11493. ;;
  11494. esac
  11495. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11496. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11497. 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'
  11498. ;;
  11499. cxx*)
  11500. # Compaq C++
  11501. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11502. 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'
  11503. runpath_var=LD_RUN_PATH
  11504. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11505. hardcode_libdir_separator_CXX=:
  11506. # Commands to make compiler produce verbose output that lists
  11507. # what "hidden" libraries, object files and flags are used when
  11508. # linking a shared library.
  11509. #
  11510. # There doesn't appear to be a way to prevent this compiler from
  11511. # explicitly linking system object files so we need to strip them
  11512. # from the output so that they don't get included in the library
  11513. # dependencies.
  11514. 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'
  11515. ;;
  11516. xl* | mpixl* | bgxl*)
  11517. # IBM XL 8.0 on PPC, with GNU ld
  11518. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11519. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11520. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11521. if test "x$supports_anon_versioning" = xyes; then
  11522. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11523. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11524. echo "local: *; };" >> $output_objdir/$libname.ver~
  11525. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11526. fi
  11527. ;;
  11528. *)
  11529. case `$CC -V 2>&1 | sed 5q` in
  11530. *Sun\ C*)
  11531. # Sun C++ 5.9
  11532. no_undefined_flag_CXX=' -zdefs'
  11533. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11534. 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'
  11535. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11536. 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'
  11537. compiler_needs_object_CXX=yes
  11538. # Not sure whether something based on
  11539. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11540. # would be better.
  11541. output_verbose_link_cmd='func_echo_all'
  11542. # Archives containing C++ object files must be created using
  11543. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11544. # necessary to make sure instantiated templates are included
  11545. # in the archive.
  11546. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11547. ;;
  11548. esac
  11549. ;;
  11550. esac
  11551. ;;
  11552. lynxos*)
  11553. # FIXME: insert proper C++ library support
  11554. ld_shlibs_CXX=no
  11555. ;;
  11556. m88k*)
  11557. # FIXME: insert proper C++ library support
  11558. ld_shlibs_CXX=no
  11559. ;;
  11560. mvs*)
  11561. case $cc_basename in
  11562. cxx*)
  11563. # FIXME: insert proper C++ library support
  11564. ld_shlibs_CXX=no
  11565. ;;
  11566. *)
  11567. # FIXME: insert proper C++ library support
  11568. ld_shlibs_CXX=no
  11569. ;;
  11570. esac
  11571. ;;
  11572. netbsd*)
  11573. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11574. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11575. wlarc=
  11576. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11577. hardcode_direct_CXX=yes
  11578. hardcode_shlibpath_var_CXX=no
  11579. fi
  11580. # Workaround some broken pre-1.5 toolchains
  11581. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11582. ;;
  11583. *nto* | *qnx*)
  11584. ld_shlibs_CXX=yes
  11585. ;;
  11586. openbsd2*)
  11587. # C++ shared libraries are fairly broken
  11588. ld_shlibs_CXX=no
  11589. ;;
  11590. openbsd*)
  11591. if test -f /usr/libexec/ld.so; then
  11592. hardcode_direct_CXX=yes
  11593. hardcode_shlibpath_var_CXX=no
  11594. hardcode_direct_absolute_CXX=yes
  11595. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11596. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11597. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11598. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11599. export_dynamic_flag_spec_CXX='${wl}-E'
  11600. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11601. fi
  11602. output_verbose_link_cmd=func_echo_all
  11603. else
  11604. ld_shlibs_CXX=no
  11605. fi
  11606. ;;
  11607. osf3* | osf4* | osf5*)
  11608. case $cc_basename in
  11609. KCC*)
  11610. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11611. # KCC will only create a shared library if the output file
  11612. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11613. # to its proper name (with version) after linking.
  11614. 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'
  11615. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11616. hardcode_libdir_separator_CXX=:
  11617. # Archives containing C++ object files must be created using
  11618. # the KAI C++ compiler.
  11619. case $host in
  11620. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11621. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11622. esac
  11623. ;;
  11624. RCC*)
  11625. # Rational C++ 2.4.1
  11626. # FIXME: insert proper C++ library support
  11627. ld_shlibs_CXX=no
  11628. ;;
  11629. cxx*)
  11630. case $host in
  11631. osf3*)
  11632. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11633. 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'
  11634. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11635. ;;
  11636. *)
  11637. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11638. 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'
  11639. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11640. echo "-hidden">> $lib.exp~
  11641. $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~
  11642. $RM $lib.exp'
  11643. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11644. ;;
  11645. esac
  11646. hardcode_libdir_separator_CXX=:
  11647. # Commands to make compiler produce verbose output that lists
  11648. # what "hidden" libraries, object files and flags are used when
  11649. # linking a shared library.
  11650. #
  11651. # There doesn't appear to be a way to prevent this compiler from
  11652. # explicitly linking system object files so we need to strip them
  11653. # from the output so that they don't get included in the library
  11654. # dependencies.
  11655. 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"'
  11656. ;;
  11657. *)
  11658. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11659. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11660. case $host in
  11661. osf3*)
  11662. 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'
  11663. ;;
  11664. *)
  11665. 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'
  11666. ;;
  11667. esac
  11668. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11669. hardcode_libdir_separator_CXX=:
  11670. # Commands to make compiler produce verbose output that lists
  11671. # what "hidden" libraries, object files and flags are used when
  11672. # linking a shared library.
  11673. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11674. else
  11675. # FIXME: insert proper C++ library support
  11676. ld_shlibs_CXX=no
  11677. fi
  11678. ;;
  11679. esac
  11680. ;;
  11681. psos*)
  11682. # FIXME: insert proper C++ library support
  11683. ld_shlibs_CXX=no
  11684. ;;
  11685. sunos4*)
  11686. case $cc_basename in
  11687. CC*)
  11688. # Sun C++ 4.x
  11689. # FIXME: insert proper C++ library support
  11690. ld_shlibs_CXX=no
  11691. ;;
  11692. lcc*)
  11693. # Lucid
  11694. # FIXME: insert proper C++ library support
  11695. ld_shlibs_CXX=no
  11696. ;;
  11697. *)
  11698. # FIXME: insert proper C++ library support
  11699. ld_shlibs_CXX=no
  11700. ;;
  11701. esac
  11702. ;;
  11703. solaris*)
  11704. case $cc_basename in
  11705. CC* | sunCC*)
  11706. # Sun C++ 4.2, 5.x and Centerline C++
  11707. archive_cmds_need_lc_CXX=yes
  11708. no_undefined_flag_CXX=' -zdefs'
  11709. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11710. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11711. $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'
  11712. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11713. hardcode_shlibpath_var_CXX=no
  11714. case $host_os in
  11715. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11716. *)
  11717. # The compiler driver will combine and reorder linker options,
  11718. # but understands `-z linker_flag'.
  11719. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11720. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11721. ;;
  11722. esac
  11723. link_all_deplibs_CXX=yes
  11724. output_verbose_link_cmd='func_echo_all'
  11725. # Archives containing C++ object files must be created using
  11726. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11727. # necessary to make sure instantiated templates are included
  11728. # in the archive.
  11729. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11730. ;;
  11731. gcx*)
  11732. # Green Hills C++ Compiler
  11733. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11734. # The C++ compiler must be used to create the archive.
  11735. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11736. ;;
  11737. *)
  11738. # GNU C++ compiler with Solaris linker
  11739. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11740. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11741. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11742. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11743. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11744. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11745. # Commands to make compiler produce verbose output that lists
  11746. # what "hidden" libraries, object files and flags are used when
  11747. # linking a shared library.
  11748. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11749. else
  11750. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11751. # platform.
  11752. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11753. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11754. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11755. # Commands to make compiler produce verbose output that lists
  11756. # what "hidden" libraries, object files and flags are used when
  11757. # linking a shared library.
  11758. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11759. fi
  11760. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11761. case $host_os in
  11762. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11763. *)
  11764. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11765. ;;
  11766. esac
  11767. fi
  11768. ;;
  11769. esac
  11770. ;;
  11771. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11772. no_undefined_flag_CXX='${wl}-z,text'
  11773. archive_cmds_need_lc_CXX=no
  11774. hardcode_shlibpath_var_CXX=no
  11775. runpath_var='LD_RUN_PATH'
  11776. case $cc_basename in
  11777. CC*)
  11778. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11779. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11780. ;;
  11781. *)
  11782. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11783. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11784. ;;
  11785. esac
  11786. ;;
  11787. sysv5* | sco3.2v5* | sco5v6*)
  11788. # Note: We can NOT use -z defs as we might desire, because we do not
  11789. # link with -lc, and that would cause any symbols used from libc to
  11790. # always be unresolved, which means just about no library would
  11791. # ever link correctly. If we're not using GNU ld we use -z text
  11792. # though, which does catch some bad symbols but isn't as heavy-handed
  11793. # as -z defs.
  11794. no_undefined_flag_CXX='${wl}-z,text'
  11795. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11796. archive_cmds_need_lc_CXX=no
  11797. hardcode_shlibpath_var_CXX=no
  11798. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11799. hardcode_libdir_separator_CXX=':'
  11800. link_all_deplibs_CXX=yes
  11801. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11802. runpath_var='LD_RUN_PATH'
  11803. case $cc_basename in
  11804. CC*)
  11805. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11806. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11807. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11808. '"$old_archive_cmds_CXX"
  11809. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11810. '"$reload_cmds_CXX"
  11811. ;;
  11812. *)
  11813. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11814. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11815. ;;
  11816. esac
  11817. ;;
  11818. tandem*)
  11819. case $cc_basename in
  11820. NCC*)
  11821. # NonStop-UX NCC 3.20
  11822. # FIXME: insert proper C++ library support
  11823. ld_shlibs_CXX=no
  11824. ;;
  11825. *)
  11826. # FIXME: insert proper C++ library support
  11827. ld_shlibs_CXX=no
  11828. ;;
  11829. esac
  11830. ;;
  11831. vxworks*)
  11832. # FIXME: insert proper C++ library support
  11833. ld_shlibs_CXX=no
  11834. ;;
  11835. *)
  11836. # FIXME: insert proper C++ library support
  11837. ld_shlibs_CXX=no
  11838. ;;
  11839. esac
  11840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11841. $as_echo "$ld_shlibs_CXX" >&6; }
  11842. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11843. GCC_CXX="$GXX"
  11844. LD_CXX="$LD"
  11845. ## CAVEAT EMPTOR:
  11846. ## There is no encapsulation within the following macros, do not change
  11847. ## the running order or otherwise move them around unless you know exactly
  11848. ## what you are doing...
  11849. # Dependencies to place before and after the object being linked:
  11850. predep_objects_CXX=
  11851. postdep_objects_CXX=
  11852. predeps_CXX=
  11853. postdeps_CXX=
  11854. compiler_lib_search_path_CXX=
  11855. cat > conftest.$ac_ext <<_LT_EOF
  11856. class Foo
  11857. {
  11858. public:
  11859. Foo (void) { a = 0; }
  11860. private:
  11861. int a;
  11862. };
  11863. _LT_EOF
  11864. _lt_libdeps_save_CFLAGS=$CFLAGS
  11865. case "$CC $CFLAGS " in #(
  11866. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11867. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11868. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11869. esac
  11870. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11871. (eval $ac_compile) 2>&5
  11872. ac_status=$?
  11873. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11874. test $ac_status = 0; }; then
  11875. # Parse the compiler output and extract the necessary
  11876. # objects, libraries and library flags.
  11877. # Sentinel used to keep track of whether or not we are before
  11878. # the conftest object file.
  11879. pre_test_object_deps_done=no
  11880. for p in `eval "$output_verbose_link_cmd"`; do
  11881. case ${prev}${p} in
  11882. -L* | -R* | -l*)
  11883. # Some compilers place space between "-{L,R}" and the path.
  11884. # Remove the space.
  11885. if test $p = "-L" ||
  11886. test $p = "-R"; then
  11887. prev=$p
  11888. continue
  11889. fi
  11890. # Expand the sysroot to ease extracting the directories later.
  11891. if test -z "$prev"; then
  11892. case $p in
  11893. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11894. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11895. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11896. esac
  11897. fi
  11898. case $p in
  11899. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11900. esac
  11901. if test "$pre_test_object_deps_done" = no; then
  11902. case ${prev} in
  11903. -L | -R)
  11904. # Internal compiler library paths should come after those
  11905. # provided the user. The postdeps already come after the
  11906. # user supplied libs so there is no need to process them.
  11907. if test -z "$compiler_lib_search_path_CXX"; then
  11908. compiler_lib_search_path_CXX="${prev}${p}"
  11909. else
  11910. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11911. fi
  11912. ;;
  11913. # The "-l" case would never come before the object being
  11914. # linked, so don't bother handling this case.
  11915. esac
  11916. else
  11917. if test -z "$postdeps_CXX"; then
  11918. postdeps_CXX="${prev}${p}"
  11919. else
  11920. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11921. fi
  11922. fi
  11923. prev=
  11924. ;;
  11925. *.lto.$objext) ;; # Ignore GCC LTO objects
  11926. *.$objext)
  11927. # This assumes that the test object file only shows up
  11928. # once in the compiler output.
  11929. if test "$p" = "conftest.$objext"; then
  11930. pre_test_object_deps_done=yes
  11931. continue
  11932. fi
  11933. if test "$pre_test_object_deps_done" = no; then
  11934. if test -z "$predep_objects_CXX"; then
  11935. predep_objects_CXX="$p"
  11936. else
  11937. predep_objects_CXX="$predep_objects_CXX $p"
  11938. fi
  11939. else
  11940. if test -z "$postdep_objects_CXX"; then
  11941. postdep_objects_CXX="$p"
  11942. else
  11943. postdep_objects_CXX="$postdep_objects_CXX $p"
  11944. fi
  11945. fi
  11946. ;;
  11947. *) ;; # Ignore the rest.
  11948. esac
  11949. done
  11950. # Clean up.
  11951. rm -f a.out a.exe
  11952. else
  11953. echo "libtool.m4: error: problem compiling CXX test program"
  11954. fi
  11955. $RM -f confest.$objext
  11956. CFLAGS=$_lt_libdeps_save_CFLAGS
  11957. # PORTME: override above test on systems where it is broken
  11958. case $host_os in
  11959. interix[3-9]*)
  11960. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11961. # hack all around it, let's just trust "g++" to DTRT.
  11962. predep_objects_CXX=
  11963. postdep_objects_CXX=
  11964. postdeps_CXX=
  11965. ;;
  11966. linux*)
  11967. case `$CC -V 2>&1 | sed 5q` in
  11968. *Sun\ C*)
  11969. # Sun C++ 5.9
  11970. # The more standards-conforming stlport4 library is
  11971. # incompatible with the Cstd library. Avoid specifying
  11972. # it if it's in CXXFLAGS. Ignore libCrun as
  11973. # -library=stlport4 depends on it.
  11974. case " $CXX $CXXFLAGS " in
  11975. *" -library=stlport4 "*)
  11976. solaris_use_stlport4=yes
  11977. ;;
  11978. esac
  11979. if test "$solaris_use_stlport4" != yes; then
  11980. postdeps_CXX='-library=Cstd -library=Crun'
  11981. fi
  11982. ;;
  11983. esac
  11984. ;;
  11985. solaris*)
  11986. case $cc_basename in
  11987. CC* | sunCC*)
  11988. # The more standards-conforming stlport4 library is
  11989. # incompatible with the Cstd library. Avoid specifying
  11990. # it if it's in CXXFLAGS. Ignore libCrun as
  11991. # -library=stlport4 depends on it.
  11992. case " $CXX $CXXFLAGS " in
  11993. *" -library=stlport4 "*)
  11994. solaris_use_stlport4=yes
  11995. ;;
  11996. esac
  11997. # Adding this requires a known-good setup of shared libraries for
  11998. # Sun compiler versions before 5.6, else PIC objects from an old
  11999. # archive will be linked into the output, leading to subtle bugs.
  12000. if test "$solaris_use_stlport4" != yes; then
  12001. postdeps_CXX='-library=Cstd -library=Crun'
  12002. fi
  12003. ;;
  12004. esac
  12005. ;;
  12006. esac
  12007. case " $postdeps_CXX " in
  12008. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12009. esac
  12010. compiler_lib_search_dirs_CXX=
  12011. if test -n "${compiler_lib_search_path_CXX}"; then
  12012. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12013. fi
  12014. lt_prog_compiler_wl_CXX=
  12015. lt_prog_compiler_pic_CXX=
  12016. lt_prog_compiler_static_CXX=
  12017. # C++ specific cases for pic, static, wl, etc.
  12018. if test "$GXX" = yes; then
  12019. lt_prog_compiler_wl_CXX='-Wl,'
  12020. lt_prog_compiler_static_CXX='-static'
  12021. case $host_os in
  12022. aix*)
  12023. # All AIX code is PIC.
  12024. if test "$host_cpu" = ia64; then
  12025. # AIX 5 now supports IA64 processor
  12026. lt_prog_compiler_static_CXX='-Bstatic'
  12027. fi
  12028. ;;
  12029. amigaos*)
  12030. case $host_cpu in
  12031. powerpc)
  12032. # see comment about AmigaOS4 .so support
  12033. lt_prog_compiler_pic_CXX='-fPIC'
  12034. ;;
  12035. m68k)
  12036. # FIXME: we need at least 68020 code to build shared libraries, but
  12037. # adding the `-m68020' flag to GCC prevents building anything better,
  12038. # like `-m68040'.
  12039. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12040. ;;
  12041. esac
  12042. ;;
  12043. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12044. # PIC is the default for these OSes.
  12045. ;;
  12046. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12047. # This hack is so that the source file can tell whether it is being
  12048. # built for inclusion in a dll (and should export symbols for example).
  12049. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12050. # (--disable-auto-import) libraries
  12051. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12052. ;;
  12053. darwin* | rhapsody*)
  12054. # PIC is the default on this platform
  12055. # Common symbols not allowed in MH_DYLIB files
  12056. lt_prog_compiler_pic_CXX='-fno-common'
  12057. ;;
  12058. *djgpp*)
  12059. # DJGPP does not support shared libraries at all
  12060. lt_prog_compiler_pic_CXX=
  12061. ;;
  12062. haiku*)
  12063. # PIC is the default for Haiku.
  12064. # The "-static" flag exists, but is broken.
  12065. lt_prog_compiler_static_CXX=
  12066. ;;
  12067. interix[3-9]*)
  12068. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12069. # Instead, we relocate shared libraries at runtime.
  12070. ;;
  12071. sysv4*MP*)
  12072. if test -d /usr/nec; then
  12073. lt_prog_compiler_pic_CXX=-Kconform_pic
  12074. fi
  12075. ;;
  12076. hpux*)
  12077. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12078. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12079. # sets the default TLS model and affects inlining.
  12080. case $host_cpu in
  12081. hppa*64*)
  12082. ;;
  12083. *)
  12084. lt_prog_compiler_pic_CXX='-fPIC'
  12085. ;;
  12086. esac
  12087. ;;
  12088. *qnx* | *nto*)
  12089. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12090. # it will coredump.
  12091. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12092. ;;
  12093. *)
  12094. lt_prog_compiler_pic_CXX='-fPIC'
  12095. ;;
  12096. esac
  12097. else
  12098. case $host_os in
  12099. aix[4-9]*)
  12100. # All AIX code is PIC.
  12101. if test "$host_cpu" = ia64; then
  12102. # AIX 5 now supports IA64 processor
  12103. lt_prog_compiler_static_CXX='-Bstatic'
  12104. else
  12105. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12106. fi
  12107. ;;
  12108. chorus*)
  12109. case $cc_basename in
  12110. cxch68*)
  12111. # Green Hills C++ Compiler
  12112. # _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"
  12113. ;;
  12114. esac
  12115. ;;
  12116. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12117. # This hack is so that the source file can tell whether it is being
  12118. # built for inclusion in a dll (and should export symbols for example).
  12119. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12120. ;;
  12121. dgux*)
  12122. case $cc_basename in
  12123. ec++*)
  12124. lt_prog_compiler_pic_CXX='-KPIC'
  12125. ;;
  12126. ghcx*)
  12127. # Green Hills C++ Compiler
  12128. lt_prog_compiler_pic_CXX='-pic'
  12129. ;;
  12130. *)
  12131. ;;
  12132. esac
  12133. ;;
  12134. freebsd* | dragonfly*)
  12135. # FreeBSD uses GNU C++
  12136. ;;
  12137. hpux9* | hpux10* | hpux11*)
  12138. case $cc_basename in
  12139. CC*)
  12140. lt_prog_compiler_wl_CXX='-Wl,'
  12141. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12142. if test "$host_cpu" != ia64; then
  12143. lt_prog_compiler_pic_CXX='+Z'
  12144. fi
  12145. ;;
  12146. aCC*)
  12147. lt_prog_compiler_wl_CXX='-Wl,'
  12148. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12149. case $host_cpu in
  12150. hppa*64*|ia64*)
  12151. # +Z the default
  12152. ;;
  12153. *)
  12154. lt_prog_compiler_pic_CXX='+Z'
  12155. ;;
  12156. esac
  12157. ;;
  12158. *)
  12159. ;;
  12160. esac
  12161. ;;
  12162. interix*)
  12163. # This is c89, which is MS Visual C++ (no shared libs)
  12164. # Anyone wants to do a port?
  12165. ;;
  12166. irix5* | irix6* | nonstopux*)
  12167. case $cc_basename in
  12168. CC*)
  12169. lt_prog_compiler_wl_CXX='-Wl,'
  12170. lt_prog_compiler_static_CXX='-non_shared'
  12171. # CC pic flag -KPIC is the default.
  12172. ;;
  12173. *)
  12174. ;;
  12175. esac
  12176. ;;
  12177. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12178. case $cc_basename in
  12179. KCC*)
  12180. # KAI C++ Compiler
  12181. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12182. lt_prog_compiler_pic_CXX='-fPIC'
  12183. ;;
  12184. ecpc* )
  12185. # old Intel C++ for x86_64 which still supported -KPIC.
  12186. lt_prog_compiler_wl_CXX='-Wl,'
  12187. lt_prog_compiler_pic_CXX='-KPIC'
  12188. lt_prog_compiler_static_CXX='-static'
  12189. ;;
  12190. icpc* )
  12191. # Intel C++, used to be incompatible with GCC.
  12192. # ICC 10 doesn't accept -KPIC any more.
  12193. lt_prog_compiler_wl_CXX='-Wl,'
  12194. lt_prog_compiler_pic_CXX='-fPIC'
  12195. lt_prog_compiler_static_CXX='-static'
  12196. ;;
  12197. pgCC* | pgcpp*)
  12198. # Portland Group C++ compiler
  12199. lt_prog_compiler_wl_CXX='-Wl,'
  12200. lt_prog_compiler_pic_CXX='-fpic'
  12201. lt_prog_compiler_static_CXX='-Bstatic'
  12202. ;;
  12203. cxx*)
  12204. # Compaq C++
  12205. # Make sure the PIC flag is empty. It appears that all Alpha
  12206. # Linux and Compaq Tru64 Unix objects are PIC.
  12207. lt_prog_compiler_pic_CXX=
  12208. lt_prog_compiler_static_CXX='-non_shared'
  12209. ;;
  12210. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12211. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12212. lt_prog_compiler_wl_CXX='-Wl,'
  12213. lt_prog_compiler_pic_CXX='-qpic'
  12214. lt_prog_compiler_static_CXX='-qstaticlink'
  12215. ;;
  12216. *)
  12217. case `$CC -V 2>&1 | sed 5q` in
  12218. *Sun\ C*)
  12219. # Sun C++ 5.9
  12220. lt_prog_compiler_pic_CXX='-KPIC'
  12221. lt_prog_compiler_static_CXX='-Bstatic'
  12222. lt_prog_compiler_wl_CXX='-Qoption ld '
  12223. ;;
  12224. esac
  12225. ;;
  12226. esac
  12227. ;;
  12228. lynxos*)
  12229. ;;
  12230. m88k*)
  12231. ;;
  12232. mvs*)
  12233. case $cc_basename in
  12234. cxx*)
  12235. lt_prog_compiler_pic_CXX='-W c,exportall'
  12236. ;;
  12237. *)
  12238. ;;
  12239. esac
  12240. ;;
  12241. netbsd*)
  12242. ;;
  12243. *qnx* | *nto*)
  12244. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12245. # it will coredump.
  12246. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12247. ;;
  12248. osf3* | osf4* | osf5*)
  12249. case $cc_basename in
  12250. KCC*)
  12251. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12252. ;;
  12253. RCC*)
  12254. # Rational C++ 2.4.1
  12255. lt_prog_compiler_pic_CXX='-pic'
  12256. ;;
  12257. cxx*)
  12258. # Digital/Compaq C++
  12259. lt_prog_compiler_wl_CXX='-Wl,'
  12260. # Make sure the PIC flag is empty. It appears that all Alpha
  12261. # Linux and Compaq Tru64 Unix objects are PIC.
  12262. lt_prog_compiler_pic_CXX=
  12263. lt_prog_compiler_static_CXX='-non_shared'
  12264. ;;
  12265. *)
  12266. ;;
  12267. esac
  12268. ;;
  12269. psos*)
  12270. ;;
  12271. solaris*)
  12272. case $cc_basename in
  12273. CC* | sunCC*)
  12274. # Sun C++ 4.2, 5.x and Centerline C++
  12275. lt_prog_compiler_pic_CXX='-KPIC'
  12276. lt_prog_compiler_static_CXX='-Bstatic'
  12277. lt_prog_compiler_wl_CXX='-Qoption ld '
  12278. ;;
  12279. gcx*)
  12280. # Green Hills C++ Compiler
  12281. lt_prog_compiler_pic_CXX='-PIC'
  12282. ;;
  12283. *)
  12284. ;;
  12285. esac
  12286. ;;
  12287. sunos4*)
  12288. case $cc_basename in
  12289. CC*)
  12290. # Sun C++ 4.x
  12291. lt_prog_compiler_pic_CXX='-pic'
  12292. lt_prog_compiler_static_CXX='-Bstatic'
  12293. ;;
  12294. lcc*)
  12295. # Lucid
  12296. lt_prog_compiler_pic_CXX='-pic'
  12297. ;;
  12298. *)
  12299. ;;
  12300. esac
  12301. ;;
  12302. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12303. case $cc_basename in
  12304. CC*)
  12305. lt_prog_compiler_wl_CXX='-Wl,'
  12306. lt_prog_compiler_pic_CXX='-KPIC'
  12307. lt_prog_compiler_static_CXX='-Bstatic'
  12308. ;;
  12309. esac
  12310. ;;
  12311. tandem*)
  12312. case $cc_basename in
  12313. NCC*)
  12314. # NonStop-UX NCC 3.20
  12315. lt_prog_compiler_pic_CXX='-KPIC'
  12316. ;;
  12317. *)
  12318. ;;
  12319. esac
  12320. ;;
  12321. vxworks*)
  12322. ;;
  12323. *)
  12324. lt_prog_compiler_can_build_shared_CXX=no
  12325. ;;
  12326. esac
  12327. fi
  12328. case $host_os in
  12329. # For platforms which do not support PIC, -DPIC is meaningless:
  12330. *djgpp*)
  12331. lt_prog_compiler_pic_CXX=
  12332. ;;
  12333. *)
  12334. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12335. ;;
  12336. esac
  12337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12338. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12339. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12340. $as_echo_n "(cached) " >&6
  12341. else
  12342. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12343. fi
  12344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12345. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12346. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12347. #
  12348. # Check to make sure the PIC flag actually works.
  12349. #
  12350. if test -n "$lt_prog_compiler_pic_CXX"; then
  12351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12352. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12353. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12354. $as_echo_n "(cached) " >&6
  12355. else
  12356. lt_cv_prog_compiler_pic_works_CXX=no
  12357. ac_outfile=conftest.$ac_objext
  12358. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12359. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12360. # Insert the option either (1) after the last *FLAGS variable, or
  12361. # (2) before a word containing "conftest.", or (3) at the end.
  12362. # Note that $ac_compile itself does not contain backslashes and begins
  12363. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12364. # The option is referenced via a variable to avoid confusing sed.
  12365. lt_compile=`echo "$ac_compile" | $SED \
  12366. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12367. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12368. -e 's:$: $lt_compiler_flag:'`
  12369. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12370. (eval "$lt_compile" 2>conftest.err)
  12371. ac_status=$?
  12372. cat conftest.err >&5
  12373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12374. if (exit $ac_status) && test -s "$ac_outfile"; then
  12375. # The compiler can only warn and ignore the option if not recognized
  12376. # So say no if there are warnings other than the usual output.
  12377. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12378. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12379. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12380. lt_cv_prog_compiler_pic_works_CXX=yes
  12381. fi
  12382. fi
  12383. $RM conftest*
  12384. fi
  12385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12386. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12387. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12388. case $lt_prog_compiler_pic_CXX in
  12389. "" | " "*) ;;
  12390. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12391. esac
  12392. else
  12393. lt_prog_compiler_pic_CXX=
  12394. lt_prog_compiler_can_build_shared_CXX=no
  12395. fi
  12396. fi
  12397. #
  12398. # Check to make sure the static flag actually works.
  12399. #
  12400. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12402. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12403. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12404. $as_echo_n "(cached) " >&6
  12405. else
  12406. lt_cv_prog_compiler_static_works_CXX=no
  12407. save_LDFLAGS="$LDFLAGS"
  12408. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12409. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12410. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12411. # The linker can only warn and ignore the option if not recognized
  12412. # So say no if there are warnings
  12413. if test -s conftest.err; then
  12414. # Append any errors to the config.log.
  12415. cat conftest.err 1>&5
  12416. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12417. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12418. if diff conftest.exp conftest.er2 >/dev/null; then
  12419. lt_cv_prog_compiler_static_works_CXX=yes
  12420. fi
  12421. else
  12422. lt_cv_prog_compiler_static_works_CXX=yes
  12423. fi
  12424. fi
  12425. $RM -r conftest*
  12426. LDFLAGS="$save_LDFLAGS"
  12427. fi
  12428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12429. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12430. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12431. :
  12432. else
  12433. lt_prog_compiler_static_CXX=
  12434. fi
  12435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12436. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12437. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12438. $as_echo_n "(cached) " >&6
  12439. else
  12440. lt_cv_prog_compiler_c_o_CXX=no
  12441. $RM -r conftest 2>/dev/null
  12442. mkdir conftest
  12443. cd conftest
  12444. mkdir out
  12445. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12446. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12447. # Insert the option either (1) after the last *FLAGS variable, or
  12448. # (2) before a word containing "conftest.", or (3) at the end.
  12449. # Note that $ac_compile itself does not contain backslashes and begins
  12450. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12451. lt_compile=`echo "$ac_compile" | $SED \
  12452. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12453. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12454. -e 's:$: $lt_compiler_flag:'`
  12455. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12456. (eval "$lt_compile" 2>out/conftest.err)
  12457. ac_status=$?
  12458. cat out/conftest.err >&5
  12459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12460. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12461. then
  12462. # The compiler can only warn and ignore the option if not recognized
  12463. # So say no if there are warnings
  12464. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12465. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12466. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12467. lt_cv_prog_compiler_c_o_CXX=yes
  12468. fi
  12469. fi
  12470. chmod u+w . 2>&5
  12471. $RM conftest*
  12472. # SGI C++ compiler will create directory out/ii_files/ for
  12473. # template instantiation
  12474. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12475. $RM out/* && rmdir out
  12476. cd ..
  12477. $RM -r conftest
  12478. $RM conftest*
  12479. fi
  12480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12481. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12483. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12484. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12485. $as_echo_n "(cached) " >&6
  12486. else
  12487. lt_cv_prog_compiler_c_o_CXX=no
  12488. $RM -r conftest 2>/dev/null
  12489. mkdir conftest
  12490. cd conftest
  12491. mkdir out
  12492. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12493. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12494. # Insert the option either (1) after the last *FLAGS variable, or
  12495. # (2) before a word containing "conftest.", or (3) at the end.
  12496. # Note that $ac_compile itself does not contain backslashes and begins
  12497. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12498. lt_compile=`echo "$ac_compile" | $SED \
  12499. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12500. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12501. -e 's:$: $lt_compiler_flag:'`
  12502. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12503. (eval "$lt_compile" 2>out/conftest.err)
  12504. ac_status=$?
  12505. cat out/conftest.err >&5
  12506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12507. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12508. then
  12509. # The compiler can only warn and ignore the option if not recognized
  12510. # So say no if there are warnings
  12511. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12512. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12513. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12514. lt_cv_prog_compiler_c_o_CXX=yes
  12515. fi
  12516. fi
  12517. chmod u+w . 2>&5
  12518. $RM conftest*
  12519. # SGI C++ compiler will create directory out/ii_files/ for
  12520. # template instantiation
  12521. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12522. $RM out/* && rmdir out
  12523. cd ..
  12524. $RM -r conftest
  12525. $RM conftest*
  12526. fi
  12527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12528. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12529. hard_links="nottested"
  12530. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12531. # do not overwrite the value of need_locks provided by the user
  12532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12533. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12534. hard_links=yes
  12535. $RM conftest*
  12536. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12537. touch conftest.a
  12538. ln conftest.a conftest.b 2>&5 || hard_links=no
  12539. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12541. $as_echo "$hard_links" >&6; }
  12542. if test "$hard_links" = no; then
  12543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12544. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12545. need_locks=warn
  12546. fi
  12547. else
  12548. need_locks=no
  12549. fi
  12550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12551. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12552. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12553. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12554. case $host_os in
  12555. aix[4-9]*)
  12556. # If we're using GNU nm, then we don't want the "-C" option.
  12557. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12558. # Also, AIX nm treats weak defined symbols like other global defined
  12559. # symbols, whereas GNU nm marks them as "W".
  12560. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12561. 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'
  12562. else
  12563. 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'
  12564. fi
  12565. ;;
  12566. pw32*)
  12567. export_symbols_cmds_CXX="$ltdll_cmds"
  12568. ;;
  12569. cygwin* | mingw* | cegcc*)
  12570. case $cc_basename in
  12571. cl*)
  12572. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12573. ;;
  12574. *)
  12575. 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'
  12576. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12577. ;;
  12578. esac
  12579. ;;
  12580. *)
  12581. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12582. ;;
  12583. esac
  12584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12585. $as_echo "$ld_shlibs_CXX" >&6; }
  12586. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12587. with_gnu_ld_CXX=$with_gnu_ld
  12588. #
  12589. # Do we need to explicitly link libc?
  12590. #
  12591. case "x$archive_cmds_need_lc_CXX" in
  12592. x|xyes)
  12593. # Assume -lc should be added
  12594. archive_cmds_need_lc_CXX=yes
  12595. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12596. case $archive_cmds_CXX in
  12597. *'~'*)
  12598. # FIXME: we may have to deal with multi-command sequences.
  12599. ;;
  12600. '$CC '*)
  12601. # Test whether the compiler implicitly links with -lc since on some
  12602. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12603. # to ld, don't add -lc before -lgcc.
  12604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12605. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12606. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12607. $as_echo_n "(cached) " >&6
  12608. else
  12609. $RM conftest*
  12610. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12611. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12612. (eval $ac_compile) 2>&5
  12613. ac_status=$?
  12614. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12615. test $ac_status = 0; } 2>conftest.err; then
  12616. soname=conftest
  12617. lib=conftest
  12618. libobjs=conftest.$ac_objext
  12619. deplibs=
  12620. wl=$lt_prog_compiler_wl_CXX
  12621. pic_flag=$lt_prog_compiler_pic_CXX
  12622. compiler_flags=-v
  12623. linker_flags=-v
  12624. verstring=
  12625. output_objdir=.
  12626. libname=conftest
  12627. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12628. allow_undefined_flag_CXX=
  12629. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12630. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12631. ac_status=$?
  12632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12633. test $ac_status = 0; }
  12634. then
  12635. lt_cv_archive_cmds_need_lc_CXX=no
  12636. else
  12637. lt_cv_archive_cmds_need_lc_CXX=yes
  12638. fi
  12639. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12640. else
  12641. cat conftest.err 1>&5
  12642. fi
  12643. $RM conftest*
  12644. fi
  12645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12646. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12647. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12648. ;;
  12649. esac
  12650. fi
  12651. ;;
  12652. esac
  12653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12654. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12655. library_names_spec=
  12656. libname_spec='lib$name'
  12657. soname_spec=
  12658. shrext_cmds=".so"
  12659. postinstall_cmds=
  12660. postuninstall_cmds=
  12661. finish_cmds=
  12662. finish_eval=
  12663. shlibpath_var=
  12664. shlibpath_overrides_runpath=unknown
  12665. version_type=none
  12666. dynamic_linker="$host_os ld.so"
  12667. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12668. need_lib_prefix=unknown
  12669. hardcode_into_libs=no
  12670. # when you set need_version to no, make sure it does not cause -set_version
  12671. # flags to be left without arguments
  12672. need_version=unknown
  12673. case $host_os in
  12674. aix3*)
  12675. version_type=linux # correct to gnu/linux during the next big refactor
  12676. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12677. shlibpath_var=LIBPATH
  12678. # AIX 3 has no versioning support, so we append a major version to the name.
  12679. soname_spec='${libname}${release}${shared_ext}$major'
  12680. ;;
  12681. aix[4-9]*)
  12682. version_type=linux # correct to gnu/linux during the next big refactor
  12683. need_lib_prefix=no
  12684. need_version=no
  12685. hardcode_into_libs=yes
  12686. if test "$host_cpu" = ia64; then
  12687. # AIX 5 supports IA64
  12688. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12689. shlibpath_var=LD_LIBRARY_PATH
  12690. else
  12691. # With GCC up to 2.95.x, collect2 would create an import file
  12692. # for dependence libraries. The import file would start with
  12693. # the line `#! .'. This would cause the generated library to
  12694. # depend on `.', always an invalid library. This was fixed in
  12695. # development snapshots of GCC prior to 3.0.
  12696. case $host_os in
  12697. aix4 | aix4.[01] | aix4.[01].*)
  12698. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12699. echo ' yes '
  12700. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12701. :
  12702. else
  12703. can_build_shared=no
  12704. fi
  12705. ;;
  12706. esac
  12707. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12708. # soname into executable. Probably we can add versioning support to
  12709. # collect2, so additional links can be useful in future.
  12710. if test "$aix_use_runtimelinking" = yes; then
  12711. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12712. # instead of lib<name>.a to let people know that these are not
  12713. # typical AIX shared libraries.
  12714. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12715. else
  12716. # We preserve .a as extension for shared libraries through AIX4.2
  12717. # and later when we are not doing run time linking.
  12718. library_names_spec='${libname}${release}.a $libname.a'
  12719. soname_spec='${libname}${release}${shared_ext}$major'
  12720. fi
  12721. shlibpath_var=LIBPATH
  12722. fi
  12723. ;;
  12724. amigaos*)
  12725. case $host_cpu in
  12726. powerpc)
  12727. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12728. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12729. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12730. ;;
  12731. m68k)
  12732. library_names_spec='$libname.ixlibrary $libname.a'
  12733. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12734. 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'
  12735. ;;
  12736. esac
  12737. ;;
  12738. beos*)
  12739. library_names_spec='${libname}${shared_ext}'
  12740. dynamic_linker="$host_os ld.so"
  12741. shlibpath_var=LIBRARY_PATH
  12742. ;;
  12743. bsdi[45]*)
  12744. version_type=linux # correct to gnu/linux during the next big refactor
  12745. need_version=no
  12746. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12747. soname_spec='${libname}${release}${shared_ext}$major'
  12748. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12749. shlibpath_var=LD_LIBRARY_PATH
  12750. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12751. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12752. # the default ld.so.conf also contains /usr/contrib/lib and
  12753. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12754. # libtool to hard-code these into programs
  12755. ;;
  12756. cygwin* | mingw* | pw32* | cegcc*)
  12757. version_type=windows
  12758. shrext_cmds=".dll"
  12759. need_version=no
  12760. need_lib_prefix=no
  12761. case $GCC,$cc_basename in
  12762. yes,*)
  12763. # gcc
  12764. library_names_spec='$libname.dll.a'
  12765. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12766. postinstall_cmds='base_file=`basename \${file}`~
  12767. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12768. dldir=$destdir/`dirname \$dlpath`~
  12769. test -d \$dldir || mkdir -p \$dldir~
  12770. $install_prog $dir/$dlname \$dldir/$dlname~
  12771. chmod a+x \$dldir/$dlname~
  12772. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12773. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12774. fi'
  12775. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12776. dlpath=$dir/\$dldll~
  12777. $RM \$dlpath'
  12778. shlibpath_overrides_runpath=yes
  12779. case $host_os in
  12780. cygwin*)
  12781. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12782. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12783. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12784. ;;
  12785. mingw* | cegcc*)
  12786. # MinGW DLLs use traditional 'lib' prefix
  12787. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12788. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12789. ;;
  12790. pw32*)
  12791. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12792. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12793. ;;
  12794. esac
  12795. dynamic_linker='Win32 ld.exe'
  12796. ;;
  12797. *,cl*)
  12798. # Native MSVC
  12799. libname_spec='$name'
  12800. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12801. library_names_spec='${libname}.dll.lib'
  12802. case $build_os in
  12803. mingw*)
  12804. sys_lib_search_path_spec=
  12805. lt_save_ifs=$IFS
  12806. IFS=';'
  12807. for lt_path in $LIB
  12808. do
  12809. IFS=$lt_save_ifs
  12810. # Let DOS variable expansion print the short 8.3 style file name.
  12811. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12812. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12813. done
  12814. IFS=$lt_save_ifs
  12815. # Convert to MSYS style.
  12816. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12817. ;;
  12818. cygwin*)
  12819. # Convert to unix form, then to dos form, then back to unix form
  12820. # but this time dos style (no spaces!) so that the unix form looks
  12821. # like /cygdrive/c/PROGRA~1:/cygdr...
  12822. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12823. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12824. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12825. ;;
  12826. *)
  12827. sys_lib_search_path_spec="$LIB"
  12828. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12829. # It is most probably a Windows format PATH.
  12830. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12831. else
  12832. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12833. fi
  12834. # FIXME: find the short name or the path components, as spaces are
  12835. # common. (e.g. "Program Files" -> "PROGRA~1")
  12836. ;;
  12837. esac
  12838. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12839. postinstall_cmds='base_file=`basename \${file}`~
  12840. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12841. dldir=$destdir/`dirname \$dlpath`~
  12842. test -d \$dldir || mkdir -p \$dldir~
  12843. $install_prog $dir/$dlname \$dldir/$dlname'
  12844. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12845. dlpath=$dir/\$dldll~
  12846. $RM \$dlpath'
  12847. shlibpath_overrides_runpath=yes
  12848. dynamic_linker='Win32 link.exe'
  12849. ;;
  12850. *)
  12851. # Assume MSVC wrapper
  12852. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12853. dynamic_linker='Win32 ld.exe'
  12854. ;;
  12855. esac
  12856. # FIXME: first we should search . and the directory the executable is in
  12857. shlibpath_var=PATH
  12858. ;;
  12859. darwin* | rhapsody*)
  12860. dynamic_linker="$host_os dyld"
  12861. version_type=darwin
  12862. need_lib_prefix=no
  12863. need_version=no
  12864. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12865. soname_spec='${libname}${release}${major}$shared_ext'
  12866. shlibpath_overrides_runpath=yes
  12867. shlibpath_var=DYLD_LIBRARY_PATH
  12868. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12869. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12870. ;;
  12871. dgux*)
  12872. version_type=linux # correct to gnu/linux during the next big refactor
  12873. need_lib_prefix=no
  12874. need_version=no
  12875. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12876. soname_spec='${libname}${release}${shared_ext}$major'
  12877. shlibpath_var=LD_LIBRARY_PATH
  12878. ;;
  12879. freebsd* | dragonfly*)
  12880. # DragonFly does not have aout. When/if they implement a new
  12881. # versioning mechanism, adjust this.
  12882. if test -x /usr/bin/objformat; then
  12883. objformat=`/usr/bin/objformat`
  12884. else
  12885. case $host_os in
  12886. freebsd[23].*) objformat=aout ;;
  12887. *) objformat=elf ;;
  12888. esac
  12889. fi
  12890. version_type=freebsd-$objformat
  12891. case $version_type in
  12892. freebsd-elf*)
  12893. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12894. need_version=no
  12895. need_lib_prefix=no
  12896. ;;
  12897. freebsd-*)
  12898. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12899. need_version=yes
  12900. ;;
  12901. esac
  12902. shlibpath_var=LD_LIBRARY_PATH
  12903. case $host_os in
  12904. freebsd2.*)
  12905. shlibpath_overrides_runpath=yes
  12906. ;;
  12907. freebsd3.[01]* | freebsdelf3.[01]*)
  12908. shlibpath_overrides_runpath=yes
  12909. hardcode_into_libs=yes
  12910. ;;
  12911. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12912. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12913. shlibpath_overrides_runpath=no
  12914. hardcode_into_libs=yes
  12915. ;;
  12916. *) # from 4.6 on, and DragonFly
  12917. shlibpath_overrides_runpath=yes
  12918. hardcode_into_libs=yes
  12919. ;;
  12920. esac
  12921. ;;
  12922. gnu*)
  12923. version_type=linux # correct to gnu/linux during the next big refactor
  12924. need_lib_prefix=no
  12925. need_version=no
  12926. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12927. soname_spec='${libname}${release}${shared_ext}$major'
  12928. shlibpath_var=LD_LIBRARY_PATH
  12929. shlibpath_overrides_runpath=no
  12930. hardcode_into_libs=yes
  12931. ;;
  12932. haiku*)
  12933. version_type=linux # correct to gnu/linux during the next big refactor
  12934. need_lib_prefix=no
  12935. need_version=no
  12936. dynamic_linker="$host_os runtime_loader"
  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=LIBRARY_PATH
  12940. shlibpath_overrides_runpath=yes
  12941. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12942. hardcode_into_libs=yes
  12943. ;;
  12944. hpux9* | hpux10* | hpux11*)
  12945. # Give a soname corresponding to the major version so that dld.sl refuses to
  12946. # link against other versions.
  12947. version_type=sunos
  12948. need_lib_prefix=no
  12949. need_version=no
  12950. case $host_cpu in
  12951. ia64*)
  12952. shrext_cmds='.so'
  12953. hardcode_into_libs=yes
  12954. dynamic_linker="$host_os dld.so"
  12955. shlibpath_var=LD_LIBRARY_PATH
  12956. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12957. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12958. soname_spec='${libname}${release}${shared_ext}$major'
  12959. if test "X$HPUX_IA64_MODE" = X32; then
  12960. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12961. else
  12962. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12963. fi
  12964. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12965. ;;
  12966. hppa*64*)
  12967. shrext_cmds='.sl'
  12968. hardcode_into_libs=yes
  12969. dynamic_linker="$host_os dld.sl"
  12970. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12971. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12973. soname_spec='${libname}${release}${shared_ext}$major'
  12974. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12975. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12976. ;;
  12977. *)
  12978. shrext_cmds='.sl'
  12979. dynamic_linker="$host_os dld.sl"
  12980. shlibpath_var=SHLIB_PATH
  12981. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12982. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12983. soname_spec='${libname}${release}${shared_ext}$major'
  12984. ;;
  12985. esac
  12986. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12987. postinstall_cmds='chmod 555 $lib'
  12988. # or fails outright, so override atomically:
  12989. install_override_mode=555
  12990. ;;
  12991. interix[3-9]*)
  12992. version_type=linux # correct to gnu/linux during the next big refactor
  12993. need_lib_prefix=no
  12994. need_version=no
  12995. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12996. soname_spec='${libname}${release}${shared_ext}$major'
  12997. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12998. shlibpath_var=LD_LIBRARY_PATH
  12999. shlibpath_overrides_runpath=no
  13000. hardcode_into_libs=yes
  13001. ;;
  13002. irix5* | irix6* | nonstopux*)
  13003. case $host_os in
  13004. nonstopux*) version_type=nonstopux ;;
  13005. *)
  13006. if test "$lt_cv_prog_gnu_ld" = yes; then
  13007. version_type=linux # correct to gnu/linux during the next big refactor
  13008. else
  13009. version_type=irix
  13010. fi ;;
  13011. esac
  13012. need_lib_prefix=no
  13013. need_version=no
  13014. soname_spec='${libname}${release}${shared_ext}$major'
  13015. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13016. case $host_os in
  13017. irix5* | nonstopux*)
  13018. libsuff= shlibsuff=
  13019. ;;
  13020. *)
  13021. case $LD in # libtool.m4 will add one of these switches to LD
  13022. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13023. libsuff= shlibsuff= libmagic=32-bit;;
  13024. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13025. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13026. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13027. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13028. *) libsuff= shlibsuff= libmagic=never-match;;
  13029. esac
  13030. ;;
  13031. esac
  13032. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13033. shlibpath_overrides_runpath=no
  13034. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13035. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13036. hardcode_into_libs=yes
  13037. ;;
  13038. # No shared lib support for Linux oldld, aout, or coff.
  13039. linux*oldld* | linux*aout* | linux*coff*)
  13040. dynamic_linker=no
  13041. ;;
  13042. # This must be glibc/ELF.
  13043. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13044. version_type=linux # correct to gnu/linux during the next big refactor
  13045. need_lib_prefix=no
  13046. need_version=no
  13047. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13048. soname_spec='${libname}${release}${shared_ext}$major'
  13049. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13050. shlibpath_var=LD_LIBRARY_PATH
  13051. shlibpath_overrides_runpath=no
  13052. # Some binutils ld are patched to set DT_RUNPATH
  13053. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13054. $as_echo_n "(cached) " >&6
  13055. else
  13056. lt_cv_shlibpath_overrides_runpath=no
  13057. save_LDFLAGS=$LDFLAGS
  13058. save_libdir=$libdir
  13059. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13060. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13062. /* end confdefs.h. */
  13063. int
  13064. main ()
  13065. {
  13066. ;
  13067. return 0;
  13068. }
  13069. _ACEOF
  13070. if ac_fn_cxx_try_link "$LINENO"; then :
  13071. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13072. lt_cv_shlibpath_overrides_runpath=yes
  13073. fi
  13074. fi
  13075. rm -f core conftest.err conftest.$ac_objext \
  13076. conftest$ac_exeext conftest.$ac_ext
  13077. LDFLAGS=$save_LDFLAGS
  13078. libdir=$save_libdir
  13079. fi
  13080. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13081. # This implies no fast_install, which is unacceptable.
  13082. # Some rework will be needed to allow for fast_install
  13083. # before this can be enabled.
  13084. hardcode_into_libs=yes
  13085. # Append ld.so.conf contents to the search path
  13086. if test -f /etc/ld.so.conf; then
  13087. 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' ' '`
  13088. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13089. fi
  13090. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13091. # powerpc, because MkLinux only supported shared libraries with the
  13092. # GNU dynamic linker. Since this was broken with cross compilers,
  13093. # most powerpc-linux boxes support dynamic linking these days and
  13094. # people can always --disable-shared, the test was removed, and we
  13095. # assume the GNU/Linux dynamic linker is in use.
  13096. dynamic_linker='GNU/Linux ld.so'
  13097. ;;
  13098. netbsd*)
  13099. version_type=sunos
  13100. need_lib_prefix=no
  13101. need_version=no
  13102. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13103. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13104. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13105. dynamic_linker='NetBSD (a.out) ld.so'
  13106. else
  13107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13108. soname_spec='${libname}${release}${shared_ext}$major'
  13109. dynamic_linker='NetBSD ld.elf_so'
  13110. fi
  13111. shlibpath_var=LD_LIBRARY_PATH
  13112. shlibpath_overrides_runpath=yes
  13113. hardcode_into_libs=yes
  13114. ;;
  13115. newsos6)
  13116. version_type=linux # correct to gnu/linux during the next big refactor
  13117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13118. shlibpath_var=LD_LIBRARY_PATH
  13119. shlibpath_overrides_runpath=yes
  13120. ;;
  13121. *nto* | *qnx*)
  13122. version_type=qnx
  13123. need_lib_prefix=no
  13124. need_version=no
  13125. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13126. soname_spec='${libname}${release}${shared_ext}$major'
  13127. shlibpath_var=LD_LIBRARY_PATH
  13128. shlibpath_overrides_runpath=no
  13129. hardcode_into_libs=yes
  13130. dynamic_linker='ldqnx.so'
  13131. ;;
  13132. openbsd*)
  13133. version_type=sunos
  13134. sys_lib_dlsearch_path_spec="/usr/lib"
  13135. need_lib_prefix=no
  13136. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13137. case $host_os in
  13138. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13139. *) need_version=no ;;
  13140. esac
  13141. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13142. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13143. shlibpath_var=LD_LIBRARY_PATH
  13144. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13145. case $host_os in
  13146. openbsd2.[89] | openbsd2.[89].*)
  13147. shlibpath_overrides_runpath=no
  13148. ;;
  13149. *)
  13150. shlibpath_overrides_runpath=yes
  13151. ;;
  13152. esac
  13153. else
  13154. shlibpath_overrides_runpath=yes
  13155. fi
  13156. ;;
  13157. os2*)
  13158. libname_spec='$name'
  13159. shrext_cmds=".dll"
  13160. need_lib_prefix=no
  13161. library_names_spec='$libname${shared_ext} $libname.a'
  13162. dynamic_linker='OS/2 ld.exe'
  13163. shlibpath_var=LIBPATH
  13164. ;;
  13165. osf3* | osf4* | osf5*)
  13166. version_type=osf
  13167. need_lib_prefix=no
  13168. need_version=no
  13169. soname_spec='${libname}${release}${shared_ext}$major'
  13170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13171. shlibpath_var=LD_LIBRARY_PATH
  13172. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13173. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13174. ;;
  13175. rdos*)
  13176. dynamic_linker=no
  13177. ;;
  13178. solaris*)
  13179. version_type=linux # correct to gnu/linux during the next big refactor
  13180. need_lib_prefix=no
  13181. need_version=no
  13182. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13183. soname_spec='${libname}${release}${shared_ext}$major'
  13184. shlibpath_var=LD_LIBRARY_PATH
  13185. shlibpath_overrides_runpath=yes
  13186. hardcode_into_libs=yes
  13187. # ldd complains unless libraries are executable
  13188. postinstall_cmds='chmod +x $lib'
  13189. ;;
  13190. sunos4*)
  13191. version_type=sunos
  13192. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13193. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13194. shlibpath_var=LD_LIBRARY_PATH
  13195. shlibpath_overrides_runpath=yes
  13196. if test "$with_gnu_ld" = yes; then
  13197. need_lib_prefix=no
  13198. fi
  13199. need_version=yes
  13200. ;;
  13201. sysv4 | sysv4.3*)
  13202. version_type=linux # correct to gnu/linux during the next big refactor
  13203. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13204. soname_spec='${libname}${release}${shared_ext}$major'
  13205. shlibpath_var=LD_LIBRARY_PATH
  13206. case $host_vendor in
  13207. sni)
  13208. shlibpath_overrides_runpath=no
  13209. need_lib_prefix=no
  13210. runpath_var=LD_RUN_PATH
  13211. ;;
  13212. siemens)
  13213. need_lib_prefix=no
  13214. ;;
  13215. motorola)
  13216. need_lib_prefix=no
  13217. need_version=no
  13218. shlibpath_overrides_runpath=no
  13219. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13220. ;;
  13221. esac
  13222. ;;
  13223. sysv4*MP*)
  13224. if test -d /usr/nec ;then
  13225. version_type=linux # correct to gnu/linux during the next big refactor
  13226. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13227. soname_spec='$libname${shared_ext}.$major'
  13228. shlibpath_var=LD_LIBRARY_PATH
  13229. fi
  13230. ;;
  13231. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13232. version_type=freebsd-elf
  13233. need_lib_prefix=no
  13234. need_version=no
  13235. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13236. soname_spec='${libname}${release}${shared_ext}$major'
  13237. shlibpath_var=LD_LIBRARY_PATH
  13238. shlibpath_overrides_runpath=yes
  13239. hardcode_into_libs=yes
  13240. if test "$with_gnu_ld" = yes; then
  13241. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13242. else
  13243. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13244. case $host_os in
  13245. sco3.2v5*)
  13246. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13247. ;;
  13248. esac
  13249. fi
  13250. sys_lib_dlsearch_path_spec='/usr/lib'
  13251. ;;
  13252. tpf*)
  13253. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13254. version_type=linux # correct to gnu/linux during the next big refactor
  13255. need_lib_prefix=no
  13256. need_version=no
  13257. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13258. shlibpath_var=LD_LIBRARY_PATH
  13259. shlibpath_overrides_runpath=no
  13260. hardcode_into_libs=yes
  13261. ;;
  13262. uts4*)
  13263. version_type=linux # correct to gnu/linux during the next big refactor
  13264. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13265. soname_spec='${libname}${release}${shared_ext}$major'
  13266. shlibpath_var=LD_LIBRARY_PATH
  13267. ;;
  13268. *)
  13269. dynamic_linker=no
  13270. ;;
  13271. esac
  13272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13273. $as_echo "$dynamic_linker" >&6; }
  13274. test "$dynamic_linker" = no && can_build_shared=no
  13275. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13276. if test "$GCC" = yes; then
  13277. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13278. fi
  13279. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13280. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13281. fi
  13282. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13283. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13284. fi
  13285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13286. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13287. hardcode_action_CXX=
  13288. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13289. test -n "$runpath_var_CXX" ||
  13290. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13291. # We can hardcode non-existent directories.
  13292. if test "$hardcode_direct_CXX" != no &&
  13293. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13294. # have to relink, otherwise we might link with an installed library
  13295. # when we should be linking with a yet-to-be-installed one
  13296. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13297. test "$hardcode_minus_L_CXX" != no; then
  13298. # Linking always hardcodes the temporary library directory.
  13299. hardcode_action_CXX=relink
  13300. else
  13301. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13302. hardcode_action_CXX=immediate
  13303. fi
  13304. else
  13305. # We cannot hardcode anything, or else we can only hardcode existing
  13306. # directories.
  13307. hardcode_action_CXX=unsupported
  13308. fi
  13309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13310. $as_echo "$hardcode_action_CXX" >&6; }
  13311. if test "$hardcode_action_CXX" = relink ||
  13312. test "$inherit_rpath_CXX" = yes; then
  13313. # Fast installation is not supported
  13314. enable_fast_install=no
  13315. elif test "$shlibpath_overrides_runpath" = yes ||
  13316. test "$enable_shared" = no; then
  13317. # Fast installation is not necessary
  13318. enable_fast_install=needless
  13319. fi
  13320. fi # test -n "$compiler"
  13321. CC=$lt_save_CC
  13322. CFLAGS=$lt_save_CFLAGS
  13323. LDCXX=$LD
  13324. LD=$lt_save_LD
  13325. GCC=$lt_save_GCC
  13326. with_gnu_ld=$lt_save_with_gnu_ld
  13327. lt_cv_path_LDCXX=$lt_cv_path_LD
  13328. lt_cv_path_LD=$lt_save_path_LD
  13329. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13330. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13331. fi # test "$_lt_caught_CXX_error" != yes
  13332. ac_ext=c
  13333. ac_cpp='$CPP $CPPFLAGS'
  13334. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13335. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13336. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13337. # Find a good install program. We prefer a C program (faster),
  13338. # so one script is as good as another. But avoid the broken or
  13339. # incompatible versions:
  13340. # SysV /etc/install, /usr/sbin/install
  13341. # SunOS /usr/etc/install
  13342. # IRIX /sbin/install
  13343. # AIX /bin/install
  13344. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13345. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13346. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13347. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13348. # OS/2's system install, which has a completely different semantic
  13349. # ./install, which can be erroneously created by make from ./install.sh.
  13350. # Reject install programs that cannot install multiple files.
  13351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13352. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13353. if test -z "$INSTALL"; then
  13354. if ${ac_cv_path_install+:} false; then :
  13355. $as_echo_n "(cached) " >&6
  13356. else
  13357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13358. for as_dir in $PATH
  13359. do
  13360. IFS=$as_save_IFS
  13361. test -z "$as_dir" && as_dir=.
  13362. # Account for people who put trailing slashes in PATH elements.
  13363. case $as_dir/ in #((
  13364. ./ | .// | /[cC]/* | \
  13365. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13366. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13367. /usr/ucb/* ) ;;
  13368. *)
  13369. # OSF1 and SCO ODT 3.0 have their own names for install.
  13370. # Don't use installbsd from OSF since it installs stuff as root
  13371. # by default.
  13372. for ac_prog in ginstall scoinst install; do
  13373. for ac_exec_ext in '' $ac_executable_extensions; do
  13374. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13375. if test $ac_prog = install &&
  13376. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13377. # AIX install. It has an incompatible calling convention.
  13378. :
  13379. elif test $ac_prog = install &&
  13380. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13381. # program-specific install script used by HP pwplus--don't use.
  13382. :
  13383. else
  13384. rm -rf conftest.one conftest.two conftest.dir
  13385. echo one > conftest.one
  13386. echo two > conftest.two
  13387. mkdir conftest.dir
  13388. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13389. test -s conftest.one && test -s conftest.two &&
  13390. test -s conftest.dir/conftest.one &&
  13391. test -s conftest.dir/conftest.two
  13392. then
  13393. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13394. break 3
  13395. fi
  13396. fi
  13397. fi
  13398. done
  13399. done
  13400. ;;
  13401. esac
  13402. done
  13403. IFS=$as_save_IFS
  13404. rm -rf conftest.one conftest.two conftest.dir
  13405. fi
  13406. if test "${ac_cv_path_install+set}" = set; then
  13407. INSTALL=$ac_cv_path_install
  13408. else
  13409. # As a last resort, use the slow shell script. Don't cache a
  13410. # value for INSTALL within a source directory, because that will
  13411. # break other packages using the cache if that directory is
  13412. # removed, or if the value is a relative name.
  13413. INSTALL=$ac_install_sh
  13414. fi
  13415. fi
  13416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13417. $as_echo "$INSTALL" >&6; }
  13418. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13419. # It thinks the first close brace ends the variable substitution.
  13420. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13421. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13422. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13424. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13425. set x ${MAKE-make}
  13426. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13427. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13428. $as_echo_n "(cached) " >&6
  13429. else
  13430. cat >conftest.make <<\_ACEOF
  13431. SHELL = /bin/sh
  13432. all:
  13433. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13434. _ACEOF
  13435. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13436. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13437. *@@@%%%=?*=@@@%%%*)
  13438. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13439. *)
  13440. eval ac_cv_prog_make_${ac_make}_set=no;;
  13441. esac
  13442. rm -f conftest.make
  13443. fi
  13444. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13446. $as_echo "yes" >&6; }
  13447. SET_MAKE=
  13448. else
  13449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13450. $as_echo "no" >&6; }
  13451. SET_MAKE="MAKE=${MAKE-make}"
  13452. fi
  13453. if test -n "$ac_tool_prefix"; then
  13454. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13455. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13457. $as_echo_n "checking for $ac_word... " >&6; }
  13458. if ${ac_cv_prog_WINDRES+:} false; then :
  13459. $as_echo_n "(cached) " >&6
  13460. else
  13461. if test -n "$WINDRES"; then
  13462. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13463. else
  13464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13465. for as_dir in $PATH
  13466. do
  13467. IFS=$as_save_IFS
  13468. test -z "$as_dir" && as_dir=.
  13469. for ac_exec_ext in '' $ac_executable_extensions; do
  13470. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13471. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13472. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13473. break 2
  13474. fi
  13475. done
  13476. done
  13477. IFS=$as_save_IFS
  13478. fi
  13479. fi
  13480. WINDRES=$ac_cv_prog_WINDRES
  13481. if test -n "$WINDRES"; then
  13482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13483. $as_echo "$WINDRES" >&6; }
  13484. else
  13485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13486. $as_echo "no" >&6; }
  13487. fi
  13488. fi
  13489. if test -z "$ac_cv_prog_WINDRES"; then
  13490. ac_ct_WINDRES=$WINDRES
  13491. # Extract the first word of "windres", so it can be a program name with args.
  13492. set dummy windres; ac_word=$2
  13493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13494. $as_echo_n "checking for $ac_word... " >&6; }
  13495. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13496. $as_echo_n "(cached) " >&6
  13497. else
  13498. if test -n "$ac_ct_WINDRES"; then
  13499. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13500. else
  13501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13502. for as_dir in $PATH
  13503. do
  13504. IFS=$as_save_IFS
  13505. test -z "$as_dir" && as_dir=.
  13506. for ac_exec_ext in '' $ac_executable_extensions; do
  13507. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13508. ac_cv_prog_ac_ct_WINDRES="windres"
  13509. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13510. break 2
  13511. fi
  13512. done
  13513. done
  13514. IFS=$as_save_IFS
  13515. fi
  13516. fi
  13517. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13518. if test -n "$ac_ct_WINDRES"; then
  13519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13520. $as_echo "$ac_ct_WINDRES" >&6; }
  13521. else
  13522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13523. $as_echo "no" >&6; }
  13524. fi
  13525. if test "x$ac_ct_WINDRES" = x; then
  13526. WINDRES=":"
  13527. else
  13528. case $cross_compiling:$ac_tool_warned in
  13529. yes:)
  13530. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13531. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13532. ac_tool_warned=yes ;;
  13533. esac
  13534. WINDRES=$ac_ct_WINDRES
  13535. fi
  13536. else
  13537. WINDRES="$ac_cv_prog_WINDRES"
  13538. fi
  13539. case "$host" in
  13540. *-*-mingw32*)
  13541. # Except on msys, where make can't handle full pathnames (bug 1972)
  13542. ;;
  13543. *)
  13544. srcdir=`cd $srcdir && pwd`
  13545. ;;
  13546. esac
  13547. INCLUDE="-I$srcdir/include"
  13548. if test x$srcdir != x.; then
  13549. INCLUDE="-Iinclude $INCLUDE"
  13550. elif test -d .hg; then
  13551. as_fn_error $? "
  13552. *** When building from Mercurial you should configure and build in a
  13553. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13554. " "$LINENO" 5
  13555. fi
  13556. BASE_CFLAGS=""
  13557. BASE_LDFLAGS=""
  13558. case "$host" in
  13559. *-*-cygwin*)
  13560. # We build SDL on cygwin without the UNIX emulation layer
  13561. save_CFLAGS="$CFLAGS"
  13562. have_no_cygwin=no
  13563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13564. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13565. CFLAGS="$save_CFLAGS -mno-cygwin"
  13566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13567. /* end confdefs.h. */
  13568. int
  13569. main ()
  13570. {
  13571. ;
  13572. return 0;
  13573. }
  13574. _ACEOF
  13575. if ac_fn_c_try_compile "$LINENO"; then :
  13576. have_no_cygwin=yes
  13577. fi
  13578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13580. $as_echo "$have_no_cygwin" >&6; }
  13581. CFLAGS="$save_CFLAGS"
  13582. if test x$have_no_cygwin = xyes; then
  13583. BASE_CFLAGS="-mno-cygwin"
  13584. BASE_LDFLAGS="-mno-cygwin"
  13585. fi
  13586. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13587. ;;
  13588. esac
  13589. # Uncomment the following line if you want to force SDL and applications
  13590. # built with it to be compiled for a particular architecture.
  13591. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13592. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13593. # The default optimization for SDL is -O3 (Bug #31)
  13594. if test "x$orig_CFLAGS" = x; then
  13595. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13596. fi
  13597. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13598. BUILD_LDFLAGS="$LDFLAGS"
  13599. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13600. ## These are common directories to find software packages
  13601. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13602. # if test -d $path/include; then
  13603. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13604. # fi
  13605. # if test -d $path/lib; then
  13606. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13607. # fi
  13608. #done
  13609. SDL_CFLAGS="$BASE_CFLAGS"
  13610. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13611. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13612. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13613. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13614. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13615. find_lib()
  13616. {
  13617. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13618. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13619. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13620. if test "$cross_compiling" = yes; then
  13621. host_lib_path=""
  13622. else
  13623. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13624. fi
  13625. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13626. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13627. if test x$lib != x; then
  13628. echo $lib
  13629. return
  13630. fi
  13631. done
  13632. }
  13633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13634. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13635. if ${ac_cv_c_const+:} false; then :
  13636. $as_echo_n "(cached) " >&6
  13637. else
  13638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13639. /* end confdefs.h. */
  13640. int
  13641. main ()
  13642. {
  13643. #ifndef __cplusplus
  13644. /* Ultrix mips cc rejects this sort of thing. */
  13645. typedef int charset[2];
  13646. const charset cs = { 0, 0 };
  13647. /* SunOS 4.1.1 cc rejects this. */
  13648. char const *const *pcpcc;
  13649. char **ppc;
  13650. /* NEC SVR4.0.2 mips cc rejects this. */
  13651. struct point {int x, y;};
  13652. static struct point const zero = {0,0};
  13653. /* AIX XL C 1.02.0.0 rejects this.
  13654. It does not let you subtract one const X* pointer from another in
  13655. an arm of an if-expression whose if-part is not a constant
  13656. expression */
  13657. const char *g = "string";
  13658. pcpcc = &g + (g ? g-g : 0);
  13659. /* HPUX 7.0 cc rejects these. */
  13660. ++pcpcc;
  13661. ppc = (char**) pcpcc;
  13662. pcpcc = (char const *const *) ppc;
  13663. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13664. char tx;
  13665. char *t = &tx;
  13666. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13667. *t++ = 0;
  13668. if (s) return 0;
  13669. }
  13670. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13671. int x[] = {25, 17};
  13672. const int *foo = &x[0];
  13673. ++foo;
  13674. }
  13675. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13676. typedef const int *iptr;
  13677. iptr p = 0;
  13678. ++p;
  13679. }
  13680. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13681. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13682. struct s { int j; const int *ap[3]; } bx;
  13683. struct s *b = &bx; b->j = 5;
  13684. }
  13685. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13686. const int foo = 10;
  13687. if (!foo) return 0;
  13688. }
  13689. return !cs[0] && !zero.x;
  13690. #endif
  13691. ;
  13692. return 0;
  13693. }
  13694. _ACEOF
  13695. if ac_fn_c_try_compile "$LINENO"; then :
  13696. ac_cv_c_const=yes
  13697. else
  13698. ac_cv_c_const=no
  13699. fi
  13700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13701. fi
  13702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13703. $as_echo "$ac_cv_c_const" >&6; }
  13704. if test $ac_cv_c_const = no; then
  13705. $as_echo "#define const /**/" >>confdefs.h
  13706. fi
  13707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13708. $as_echo_n "checking for inline... " >&6; }
  13709. if ${ac_cv_c_inline+:} false; then :
  13710. $as_echo_n "(cached) " >&6
  13711. else
  13712. ac_cv_c_inline=no
  13713. for ac_kw in inline __inline__ __inline; do
  13714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13715. /* end confdefs.h. */
  13716. #ifndef __cplusplus
  13717. typedef int foo_t;
  13718. static $ac_kw foo_t static_foo () {return 0; }
  13719. $ac_kw foo_t foo () {return 0; }
  13720. #endif
  13721. _ACEOF
  13722. if ac_fn_c_try_compile "$LINENO"; then :
  13723. ac_cv_c_inline=$ac_kw
  13724. fi
  13725. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13726. test "$ac_cv_c_inline" != no && break
  13727. done
  13728. fi
  13729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13730. $as_echo "$ac_cv_c_inline" >&6; }
  13731. case $ac_cv_c_inline in
  13732. inline | yes) ;;
  13733. *)
  13734. case $ac_cv_c_inline in
  13735. no) ac_val=;;
  13736. *) ac_val=$ac_cv_c_inline;;
  13737. esac
  13738. cat >>confdefs.h <<_ACEOF
  13739. #ifndef __cplusplus
  13740. #define inline $ac_val
  13741. #endif
  13742. _ACEOF
  13743. ;;
  13744. esac
  13745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13746. $as_echo_n "checking for working volatile... " >&6; }
  13747. if ${ac_cv_c_volatile+:} false; then :
  13748. $as_echo_n "(cached) " >&6
  13749. else
  13750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13751. /* end confdefs.h. */
  13752. int
  13753. main ()
  13754. {
  13755. volatile int x;
  13756. int * volatile y = (int *) 0;
  13757. return !x && !y;
  13758. ;
  13759. return 0;
  13760. }
  13761. _ACEOF
  13762. if ac_fn_c_try_compile "$LINENO"; then :
  13763. ac_cv_c_volatile=yes
  13764. else
  13765. ac_cv_c_volatile=no
  13766. fi
  13767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13768. fi
  13769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13770. $as_echo "$ac_cv_c_volatile" >&6; }
  13771. if test $ac_cv_c_volatile = no; then
  13772. $as_echo "#define volatile /**/" >>confdefs.h
  13773. fi
  13774. # Check whether --enable-assertions was given.
  13775. if test "${enable_assertions+set}" = set; then :
  13776. enableval=$enable_assertions;
  13777. else
  13778. enable_assertions=auto
  13779. fi
  13780. case "$enable_assertions" in
  13781. auto) # Use optimization settings to determine assertion level
  13782. ;;
  13783. disabled)
  13784. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13785. ;;
  13786. release)
  13787. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13788. ;;
  13789. enabled)
  13790. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13791. ;;
  13792. paranoid)
  13793. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13794. ;;
  13795. *)
  13796. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13797. ;;
  13798. esac
  13799. # Check whether --enable-dependency-tracking was given.
  13800. if test "${enable_dependency_tracking+set}" = set; then :
  13801. enableval=$enable_dependency_tracking;
  13802. else
  13803. enable_dependency_tracking=yes
  13804. fi
  13805. if test x$enable_dependency_tracking = xyes; then
  13806. have_gcc_mmd_mt=no
  13807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13808. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13810. /* end confdefs.h. */
  13811. #if !defined(__GNUC__) || __GNUC__ < 3
  13812. #error Dependency tracking requires GCC 3.0 or newer
  13813. #endif
  13814. int
  13815. main ()
  13816. {
  13817. ;
  13818. return 0;
  13819. }
  13820. _ACEOF
  13821. if ac_fn_c_try_compile "$LINENO"; then :
  13822. have_gcc_mmd_mt=yes
  13823. fi
  13824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13826. $as_echo "$have_gcc_mmd_mt" >&6; }
  13827. if test x$have_gcc_mmd_mt = xyes; then
  13828. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13829. fi
  13830. fi
  13831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13832. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13833. have_no_undefined=no
  13834. case "$host" in
  13835. *-*-openbsd*)
  13836. ;;
  13837. *)
  13838. save_LDFLAGS="$LDFLAGS"
  13839. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13841. /* end confdefs.h. */
  13842. int
  13843. main ()
  13844. {
  13845. ;
  13846. return 0;
  13847. }
  13848. _ACEOF
  13849. if ac_fn_c_try_link "$LINENO"; then :
  13850. have_no_undefined=yes
  13851. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13852. fi
  13853. rm -f core conftest.err conftest.$ac_objext \
  13854. conftest$ac_exeext conftest.$ac_ext
  13855. LDFLAGS="$save_LDFLAGS"
  13856. ;;
  13857. esac
  13858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13859. $as_echo "$have_no_undefined" >&6; }
  13860. # Check whether --enable-libc was given.
  13861. if test "${enable_libc+set}" = set; then :
  13862. enableval=$enable_libc;
  13863. else
  13864. enable_libc=yes
  13865. fi
  13866. if test x$enable_libc = xyes; then
  13867. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13869. $as_echo_n "checking for ANSI C header files... " >&6; }
  13870. if ${ac_cv_header_stdc+:} false; then :
  13871. $as_echo_n "(cached) " >&6
  13872. else
  13873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13874. /* end confdefs.h. */
  13875. #include <stdlib.h>
  13876. #include <stdarg.h>
  13877. #include <string.h>
  13878. #include <float.h>
  13879. int
  13880. main ()
  13881. {
  13882. ;
  13883. return 0;
  13884. }
  13885. _ACEOF
  13886. if ac_fn_c_try_compile "$LINENO"; then :
  13887. ac_cv_header_stdc=yes
  13888. else
  13889. ac_cv_header_stdc=no
  13890. fi
  13891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13892. if test $ac_cv_header_stdc = yes; then
  13893. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13895. /* end confdefs.h. */
  13896. #include <string.h>
  13897. _ACEOF
  13898. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13899. $EGREP "memchr" >/dev/null 2>&1; then :
  13900. else
  13901. ac_cv_header_stdc=no
  13902. fi
  13903. rm -f conftest*
  13904. fi
  13905. if test $ac_cv_header_stdc = yes; then
  13906. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13908. /* end confdefs.h. */
  13909. #include <stdlib.h>
  13910. _ACEOF
  13911. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13912. $EGREP "free" >/dev/null 2>&1; then :
  13913. else
  13914. ac_cv_header_stdc=no
  13915. fi
  13916. rm -f conftest*
  13917. fi
  13918. if test $ac_cv_header_stdc = yes; then
  13919. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13920. if test "$cross_compiling" = yes; then :
  13921. :
  13922. else
  13923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13924. /* end confdefs.h. */
  13925. #include <ctype.h>
  13926. #include <stdlib.h>
  13927. #if ((' ' & 0x0FF) == 0x020)
  13928. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13929. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13930. #else
  13931. # define ISLOWER(c) \
  13932. (('a' <= (c) && (c) <= 'i') \
  13933. || ('j' <= (c) && (c) <= 'r') \
  13934. || ('s' <= (c) && (c) <= 'z'))
  13935. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13936. #endif
  13937. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13938. int
  13939. main ()
  13940. {
  13941. int i;
  13942. for (i = 0; i < 256; i++)
  13943. if (XOR (islower (i), ISLOWER (i))
  13944. || toupper (i) != TOUPPER (i))
  13945. return 2;
  13946. return 0;
  13947. }
  13948. _ACEOF
  13949. if ac_fn_c_try_run "$LINENO"; then :
  13950. else
  13951. ac_cv_header_stdc=no
  13952. fi
  13953. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13954. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13955. fi
  13956. fi
  13957. fi
  13958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13959. $as_echo "$ac_cv_header_stdc" >&6; }
  13960. if test $ac_cv_header_stdc = yes; then
  13961. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13962. fi
  13963. 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 ctype.h math.h iconv.h signal.h
  13964. do :
  13965. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13966. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13967. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13968. cat >>confdefs.h <<_ACEOF
  13969. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13970. _ACEOF
  13971. fi
  13972. done
  13973. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13974. if test "x$ac_cv_type_size_t" = xyes; then :
  13975. else
  13976. cat >>confdefs.h <<_ACEOF
  13977. #define size_t unsigned int
  13978. _ACEOF
  13979. fi
  13980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13981. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13982. if ${ac_cv_define_M_PI+:} false; then :
  13983. $as_echo_n "(cached) " >&6
  13984. else
  13985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13986. /* end confdefs.h. */
  13987. #include <math.h>
  13988. #ifdef M_PI
  13989. YES_IS_DEFINED
  13990. #endif
  13991. _ACEOF
  13992. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13993. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13994. ac_cv_define_M_PI=yes
  13995. else
  13996. ac_cv_define_M_PI=no
  13997. fi
  13998. rm -f conftest*
  13999. fi
  14000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14001. $as_echo "$ac_cv_define_M_PI" >&6; }
  14002. if test "$ac_cv_define_M_PI" = "yes" ; then
  14003. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14004. fi
  14005. case "$host" in
  14006. *-*-cygwin* | *-*-mingw32*)
  14007. ;;
  14008. *)
  14009. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14010. # for constant arguments. Useless!
  14011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14012. $as_echo_n "checking for working alloca.h... " >&6; }
  14013. if ${ac_cv_working_alloca_h+:} false; then :
  14014. $as_echo_n "(cached) " >&6
  14015. else
  14016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14017. /* end confdefs.h. */
  14018. #include <alloca.h>
  14019. int
  14020. main ()
  14021. {
  14022. char *p = (char *) alloca (2 * sizeof (int));
  14023. if (p) return 0;
  14024. ;
  14025. return 0;
  14026. }
  14027. _ACEOF
  14028. if ac_fn_c_try_link "$LINENO"; then :
  14029. ac_cv_working_alloca_h=yes
  14030. else
  14031. ac_cv_working_alloca_h=no
  14032. fi
  14033. rm -f core conftest.err conftest.$ac_objext \
  14034. conftest$ac_exeext conftest.$ac_ext
  14035. fi
  14036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14037. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14038. if test $ac_cv_working_alloca_h = yes; then
  14039. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14040. fi
  14041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14042. $as_echo_n "checking for alloca... " >&6; }
  14043. if ${ac_cv_func_alloca_works+:} false; then :
  14044. $as_echo_n "(cached) " >&6
  14045. else
  14046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14047. /* end confdefs.h. */
  14048. #ifdef __GNUC__
  14049. # define alloca __builtin_alloca
  14050. #else
  14051. # ifdef _MSC_VER
  14052. # include <malloc.h>
  14053. # define alloca _alloca
  14054. # else
  14055. # ifdef HAVE_ALLOCA_H
  14056. # include <alloca.h>
  14057. # else
  14058. # ifdef _AIX
  14059. #pragma alloca
  14060. # else
  14061. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14062. void *alloca (size_t);
  14063. # endif
  14064. # endif
  14065. # endif
  14066. # endif
  14067. #endif
  14068. int
  14069. main ()
  14070. {
  14071. char *p = (char *) alloca (1);
  14072. if (p) return 0;
  14073. ;
  14074. return 0;
  14075. }
  14076. _ACEOF
  14077. if ac_fn_c_try_link "$LINENO"; then :
  14078. ac_cv_func_alloca_works=yes
  14079. else
  14080. ac_cv_func_alloca_works=no
  14081. fi
  14082. rm -f core conftest.err conftest.$ac_objext \
  14083. conftest$ac_exeext conftest.$ac_ext
  14084. fi
  14085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14086. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14087. if test $ac_cv_func_alloca_works = yes; then
  14088. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14089. else
  14090. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14091. # that cause trouble. Some versions do not even contain alloca or
  14092. # contain a buggy version. If you still want to use their alloca,
  14093. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14094. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14095. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14097. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14098. if ${ac_cv_os_cray+:} false; then :
  14099. $as_echo_n "(cached) " >&6
  14100. else
  14101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14102. /* end confdefs.h. */
  14103. #if defined CRAY && ! defined CRAY2
  14104. webecray
  14105. #else
  14106. wenotbecray
  14107. #endif
  14108. _ACEOF
  14109. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14110. $EGREP "webecray" >/dev/null 2>&1; then :
  14111. ac_cv_os_cray=yes
  14112. else
  14113. ac_cv_os_cray=no
  14114. fi
  14115. rm -f conftest*
  14116. fi
  14117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14118. $as_echo "$ac_cv_os_cray" >&6; }
  14119. if test $ac_cv_os_cray = yes; then
  14120. for ac_func in _getb67 GETB67 getb67; do
  14121. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14122. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14123. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14124. cat >>confdefs.h <<_ACEOF
  14125. #define CRAY_STACKSEG_END $ac_func
  14126. _ACEOF
  14127. break
  14128. fi
  14129. done
  14130. fi
  14131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14132. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14133. if ${ac_cv_c_stack_direction+:} false; then :
  14134. $as_echo_n "(cached) " >&6
  14135. else
  14136. if test "$cross_compiling" = yes; then :
  14137. ac_cv_c_stack_direction=0
  14138. else
  14139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14140. /* end confdefs.h. */
  14141. $ac_includes_default
  14142. int
  14143. find_stack_direction (int *addr, int depth)
  14144. {
  14145. int dir, dummy = 0;
  14146. if (! addr)
  14147. addr = &dummy;
  14148. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14149. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14150. return dir + dummy;
  14151. }
  14152. int
  14153. main (int argc, char **argv)
  14154. {
  14155. return find_stack_direction (0, argc + !argv + 20) < 0;
  14156. }
  14157. _ACEOF
  14158. if ac_fn_c_try_run "$LINENO"; then :
  14159. ac_cv_c_stack_direction=1
  14160. else
  14161. ac_cv_c_stack_direction=-1
  14162. fi
  14163. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14164. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14165. fi
  14166. fi
  14167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14168. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14169. cat >>confdefs.h <<_ACEOF
  14170. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14171. _ACEOF
  14172. fi
  14173. ;;
  14174. esac
  14175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14176. $as_echo_n "checking for working memcmp... " >&6; }
  14177. if ${ac_cv_func_memcmp_working+:} false; then :
  14178. $as_echo_n "(cached) " >&6
  14179. else
  14180. if test "$cross_compiling" = yes; then :
  14181. ac_cv_func_memcmp_working=no
  14182. else
  14183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14184. /* end confdefs.h. */
  14185. $ac_includes_default
  14186. int
  14187. main ()
  14188. {
  14189. /* Some versions of memcmp are not 8-bit clean. */
  14190. char c0 = '\100', c1 = '\200', c2 = '\201';
  14191. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14192. return 1;
  14193. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14194. or more and with at least one buffer not starting on a 4-byte boundary.
  14195. William Lewis provided this test program. */
  14196. {
  14197. char foo[21];
  14198. char bar[21];
  14199. int i;
  14200. for (i = 0; i < 4; i++)
  14201. {
  14202. char *a = foo + i;
  14203. char *b = bar + i;
  14204. strcpy (a, "--------01111111");
  14205. strcpy (b, "--------10000000");
  14206. if (memcmp (a, b, 16) >= 0)
  14207. return 1;
  14208. }
  14209. return 0;
  14210. }
  14211. ;
  14212. return 0;
  14213. }
  14214. _ACEOF
  14215. if ac_fn_c_try_run "$LINENO"; then :
  14216. ac_cv_func_memcmp_working=yes
  14217. else
  14218. ac_cv_func_memcmp_working=no
  14219. fi
  14220. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14221. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14222. fi
  14223. fi
  14224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14225. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14226. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14227. *" memcmp.$ac_objext "* ) ;;
  14228. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14229. ;;
  14230. esac
  14231. if test x$ac_cv_func_memcmp_working = xyes; then
  14232. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14233. fi
  14234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14235. $as_echo_n "checking for working strtod... " >&6; }
  14236. if ${ac_cv_func_strtod+:} false; then :
  14237. $as_echo_n "(cached) " >&6
  14238. else
  14239. if test "$cross_compiling" = yes; then :
  14240. ac_cv_func_strtod=no
  14241. else
  14242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14243. /* end confdefs.h. */
  14244. $ac_includes_default
  14245. #ifndef strtod
  14246. double strtod ();
  14247. #endif
  14248. int
  14249. main()
  14250. {
  14251. {
  14252. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14253. char *string = " +69";
  14254. char *term;
  14255. double value;
  14256. value = strtod (string, &term);
  14257. if (value != 69 || term != (string + 4))
  14258. return 1;
  14259. }
  14260. {
  14261. /* Under Solaris 2.4, strtod returns the wrong value for the
  14262. terminating character under some conditions. */
  14263. char *string = "NaN";
  14264. char *term;
  14265. strtod (string, &term);
  14266. if (term != string && *(term - 1) == 0)
  14267. return 1;
  14268. }
  14269. return 0;
  14270. }
  14271. _ACEOF
  14272. if ac_fn_c_try_run "$LINENO"; then :
  14273. ac_cv_func_strtod=yes
  14274. else
  14275. ac_cv_func_strtod=no
  14276. fi
  14277. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14278. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14279. fi
  14280. fi
  14281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14282. $as_echo "$ac_cv_func_strtod" >&6; }
  14283. if test $ac_cv_func_strtod = no; then
  14284. case " $LIBOBJS " in
  14285. *" strtod.$ac_objext "* ) ;;
  14286. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14287. ;;
  14288. esac
  14289. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14290. if test "x$ac_cv_func_pow" = xyes; then :
  14291. fi
  14292. if test $ac_cv_func_pow = no; then
  14293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14294. $as_echo_n "checking for pow in -lm... " >&6; }
  14295. if ${ac_cv_lib_m_pow+:} false; then :
  14296. $as_echo_n "(cached) " >&6
  14297. else
  14298. ac_check_lib_save_LIBS=$LIBS
  14299. LIBS="-lm $LIBS"
  14300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14301. /* end confdefs.h. */
  14302. /* Override any GCC internal prototype to avoid an error.
  14303. Use char because int might match the return type of a GCC
  14304. builtin and then its argument prototype would still apply. */
  14305. #ifdef __cplusplus
  14306. extern "C"
  14307. #endif
  14308. char pow ();
  14309. int
  14310. main ()
  14311. {
  14312. return pow ();
  14313. ;
  14314. return 0;
  14315. }
  14316. _ACEOF
  14317. if ac_fn_c_try_link "$LINENO"; then :
  14318. ac_cv_lib_m_pow=yes
  14319. else
  14320. ac_cv_lib_m_pow=no
  14321. fi
  14322. rm -f core conftest.err conftest.$ac_objext \
  14323. conftest$ac_exeext conftest.$ac_ext
  14324. LIBS=$ac_check_lib_save_LIBS
  14325. fi
  14326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14327. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14328. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14329. POW_LIB=-lm
  14330. else
  14331. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14332. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14333. fi
  14334. fi
  14335. fi
  14336. if test x$ac_cv_func_strtod = xyes; then
  14337. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14338. fi
  14339. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14340. if test "x$ac_cv_func_mprotect" = xyes; then :
  14341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14342. /* end confdefs.h. */
  14343. #include <sys/types.h>
  14344. #include <sys/mman.h>
  14345. int
  14346. main ()
  14347. {
  14348. ;
  14349. return 0;
  14350. }
  14351. _ACEOF
  14352. if ac_fn_c_try_compile "$LINENO"; then :
  14353. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14354. fi
  14355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14356. fi
  14357. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat wcscmp strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll
  14358. do :
  14359. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14360. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14361. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14362. cat >>confdefs.h <<_ACEOF
  14363. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14364. _ACEOF
  14365. fi
  14366. done
  14367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14368. $as_echo_n "checking for pow in -lm... " >&6; }
  14369. if ${ac_cv_lib_m_pow+:} false; then :
  14370. $as_echo_n "(cached) " >&6
  14371. else
  14372. ac_check_lib_save_LIBS=$LIBS
  14373. LIBS="-lm $LIBS"
  14374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14375. /* end confdefs.h. */
  14376. /* Override any GCC internal prototype to avoid an error.
  14377. Use char because int might match the return type of a GCC
  14378. builtin and then its argument prototype would still apply. */
  14379. #ifdef __cplusplus
  14380. extern "C"
  14381. #endif
  14382. char pow ();
  14383. int
  14384. main ()
  14385. {
  14386. return pow ();
  14387. ;
  14388. return 0;
  14389. }
  14390. _ACEOF
  14391. if ac_fn_c_try_link "$LINENO"; then :
  14392. ac_cv_lib_m_pow=yes
  14393. else
  14394. ac_cv_lib_m_pow=no
  14395. fi
  14396. rm -f core conftest.err conftest.$ac_objext \
  14397. conftest$ac_exeext conftest.$ac_ext
  14398. LIBS=$ac_check_lib_save_LIBS
  14399. fi
  14400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14401. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14402. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14403. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14404. fi
  14405. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
  14406. do :
  14407. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14408. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14409. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14410. cat >>confdefs.h <<_ACEOF
  14411. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14412. _ACEOF
  14413. fi
  14414. done
  14415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14416. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14417. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14418. $as_echo_n "(cached) " >&6
  14419. else
  14420. ac_check_lib_save_LIBS=$LIBS
  14421. LIBS="-liconv $LIBS"
  14422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14423. /* end confdefs.h. */
  14424. /* Override any GCC internal prototype to avoid an error.
  14425. Use char because int might match the return type of a GCC
  14426. builtin and then its argument prototype would still apply. */
  14427. #ifdef __cplusplus
  14428. extern "C"
  14429. #endif
  14430. char iconv_open ();
  14431. int
  14432. main ()
  14433. {
  14434. return iconv_open ();
  14435. ;
  14436. return 0;
  14437. }
  14438. _ACEOF
  14439. if ac_fn_c_try_link "$LINENO"; then :
  14440. ac_cv_lib_iconv_iconv_open=yes
  14441. else
  14442. ac_cv_lib_iconv_iconv_open=no
  14443. fi
  14444. rm -f core conftest.err conftest.$ac_objext \
  14445. conftest$ac_exeext conftest.$ac_ext
  14446. LIBS=$ac_check_lib_save_LIBS
  14447. fi
  14448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14449. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14450. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14451. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14452. fi
  14453. for ac_func in iconv
  14454. do :
  14455. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14456. if test "x$ac_cv_func_iconv" = xyes; then :
  14457. cat >>confdefs.h <<_ACEOF
  14458. #define HAVE_ICONV 1
  14459. _ACEOF
  14460. fi
  14461. done
  14462. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14463. "
  14464. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14465. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14466. fi
  14467. fi
  14468. # Check whether --enable-gcc-atomics was given.
  14469. if test "${enable_gcc_atomics+set}" = set; then :
  14470. enableval=$enable_gcc_atomics;
  14471. else
  14472. enable_gcc_atomics=yes
  14473. fi
  14474. if test x$enable_gcc_atomics = xyes; then
  14475. have_gcc_atomics=no
  14476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14477. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14479. /* end confdefs.h. */
  14480. int
  14481. main ()
  14482. {
  14483. int a;
  14484. void *x, *y, *z;
  14485. __sync_lock_test_and_set(&a, 4);
  14486. __sync_lock_test_and_set(&x, y);
  14487. __sync_fetch_and_add(&a, 1);
  14488. __sync_bool_compare_and_swap(&a, 5, 10);
  14489. __sync_bool_compare_and_swap(&x, y, z);
  14490. ;
  14491. return 0;
  14492. }
  14493. _ACEOF
  14494. if ac_fn_c_try_link "$LINENO"; then :
  14495. have_gcc_atomics=yes
  14496. fi
  14497. rm -f core conftest.err conftest.$ac_objext \
  14498. conftest$ac_exeext conftest.$ac_ext
  14499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14500. $as_echo "$have_gcc_atomics" >&6; }
  14501. if test x$have_gcc_atomics = xyes; then
  14502. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14503. else
  14504. # See if we have the minimum operation needed for GCC atomics
  14505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14506. /* end confdefs.h. */
  14507. int
  14508. main ()
  14509. {
  14510. int a;
  14511. __sync_lock_test_and_set(&a, 1);
  14512. __sync_lock_release(&a);
  14513. ;
  14514. return 0;
  14515. }
  14516. _ACEOF
  14517. if ac_fn_c_try_link "$LINENO"; then :
  14518. have_gcc_sync_lock_test_and_set=yes
  14519. fi
  14520. rm -f core conftest.err conftest.$ac_objext \
  14521. conftest$ac_exeext conftest.$ac_ext
  14522. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14523. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14524. fi
  14525. fi
  14526. fi
  14527. # Standard C sources
  14528. SOURCES="$SOURCES $srcdir/src/*.c"
  14529. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14530. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14531. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14532. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14533. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14534. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14535. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14536. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14537. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14538. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14539. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14540. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14541. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14542. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14543. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14544. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14545. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14546. # Check whether --enable-atomic was given.
  14547. if test "${enable_atomic+set}" = set; then :
  14548. enableval=$enable_atomic;
  14549. else
  14550. enable_atomic=yes
  14551. fi
  14552. if test x$enable_atomic != xyes; then
  14553. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14554. else
  14555. SUMMARY_modules="${SUMMARY_modules} atomic"
  14556. fi
  14557. # Check whether --enable-audio was given.
  14558. if test "${enable_audio+set}" = set; then :
  14559. enableval=$enable_audio;
  14560. else
  14561. enable_audio=yes
  14562. fi
  14563. if test x$enable_audio != xyes; then
  14564. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14565. else
  14566. SUMMARY_modules="${SUMMARY_modules} audio"
  14567. fi
  14568. # Check whether --enable-video was given.
  14569. if test "${enable_video+set}" = set; then :
  14570. enableval=$enable_video;
  14571. else
  14572. enable_video=yes
  14573. fi
  14574. if test x$enable_video != xyes; then
  14575. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14576. else
  14577. SUMMARY_modules="${SUMMARY_modules} video"
  14578. fi
  14579. # Check whether --enable-render was given.
  14580. if test "${enable_render+set}" = set; then :
  14581. enableval=$enable_render;
  14582. else
  14583. enable_render=yes
  14584. fi
  14585. if test x$enable_render != xyes; then
  14586. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14587. else
  14588. SUMMARY_modules="${SUMMARY_modules} render"
  14589. fi
  14590. # Check whether --enable-events was given.
  14591. if test "${enable_events+set}" = set; then :
  14592. enableval=$enable_events;
  14593. else
  14594. enable_events=yes
  14595. fi
  14596. if test x$enable_events != xyes; then
  14597. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14598. else
  14599. SUMMARY_modules="${SUMMARY_modules} events"
  14600. fi
  14601. # Check whether --enable-joystick was given.
  14602. if test "${enable_joystick+set}" = set; then :
  14603. enableval=$enable_joystick;
  14604. else
  14605. enable_joystick=yes
  14606. fi
  14607. if test x$enable_joystick != xyes; then
  14608. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14609. else
  14610. SUMMARY_modules="${SUMMARY_modules} joystick"
  14611. fi
  14612. # Check whether --enable-haptic was given.
  14613. if test "${enable_haptic+set}" = set; then :
  14614. enableval=$enable_haptic;
  14615. else
  14616. enable_haptic=yes
  14617. fi
  14618. if test x$enable_haptic != xyes; then
  14619. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14620. else
  14621. SUMMARY_modules="${SUMMARY_modules} haptic"
  14622. fi
  14623. # Check whether --enable-power was given.
  14624. if test "${enable_power+set}" = set; then :
  14625. enableval=$enable_power;
  14626. else
  14627. enable_power=yes
  14628. fi
  14629. if test x$enable_power != xyes; then
  14630. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14631. else
  14632. SUMMARY_modules="${SUMMARY_modules} power"
  14633. fi
  14634. # Check whether --enable-filesystem was given.
  14635. if test "${enable_filesystem+set}" = set; then :
  14636. enableval=$enable_filesystem;
  14637. else
  14638. enable_filesystem=yes
  14639. fi
  14640. if test x$enable_filesystem != xyes; then
  14641. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14642. else
  14643. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14644. fi
  14645. # Check whether --enable-threads was given.
  14646. if test "${enable_threads+set}" = set; then :
  14647. enableval=$enable_threads;
  14648. else
  14649. enable_threads=yes
  14650. fi
  14651. if test x$enable_threads != xyes; then
  14652. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14653. else
  14654. SUMMARY_modules="${SUMMARY_modules} threads"
  14655. fi
  14656. # Check whether --enable-timers was given.
  14657. if test "${enable_timers+set}" = set; then :
  14658. enableval=$enable_timers;
  14659. else
  14660. enable_timers=yes
  14661. fi
  14662. if test x$enable_timers != xyes; then
  14663. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14664. else
  14665. SUMMARY_modules="${SUMMARY_modules} timers"
  14666. fi
  14667. # Check whether --enable-file was given.
  14668. if test "${enable_file+set}" = set; then :
  14669. enableval=$enable_file;
  14670. else
  14671. enable_file=yes
  14672. fi
  14673. if test x$enable_file != xyes; then
  14674. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14675. else
  14676. SUMMARY_modules="${SUMMARY_modules} file"
  14677. fi
  14678. # Check whether --enable-loadso was given.
  14679. if test "${enable_loadso+set}" = set; then :
  14680. enableval=$enable_loadso;
  14681. else
  14682. enable_loadso=yes
  14683. fi
  14684. if test x$enable_loadso != xyes; then
  14685. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14686. else
  14687. SUMMARY_modules="${SUMMARY_modules} loadso"
  14688. fi
  14689. # Check whether --enable-cpuinfo was given.
  14690. if test "${enable_cpuinfo+set}" = set; then :
  14691. enableval=$enable_cpuinfo;
  14692. else
  14693. enable_cpuinfo=yes
  14694. fi
  14695. if test x$enable_cpuinfo != xyes; then
  14696. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14697. else
  14698. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14699. fi
  14700. # Check whether --enable-assembly was given.
  14701. if test "${enable_assembly+set}" = set; then :
  14702. enableval=$enable_assembly;
  14703. else
  14704. enable_assembly=yes
  14705. fi
  14706. if test x$enable_assembly = xyes; then
  14707. SUMMARY_modules="${SUMMARY_modules} assembly"
  14708. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14709. # Make sure that we don't generate floating point code that would
  14710. # cause illegal instruction exceptions on older processors
  14711. case "$host" in
  14712. *-*-darwin*)
  14713. # Don't need to worry about Apple hardware, it's all SSE capable
  14714. default_ssemath=yes
  14715. ;;
  14716. *64-*-*)
  14717. # x86 64-bit architectures all have SSE instructions
  14718. default_ssemath=yes
  14719. ;;
  14720. *)
  14721. default_ssemath=no
  14722. ;;
  14723. esac
  14724. # Check whether --enable-ssemath was given.
  14725. if test "${enable_ssemath+set}" = set; then :
  14726. enableval=$enable_ssemath;
  14727. else
  14728. enable_ssemath=$default_ssemath
  14729. fi
  14730. if test x$enable_ssemath = xno; then
  14731. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  14732. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14733. fi
  14734. fi
  14735. # Check whether --enable-mmx was given.
  14736. if test "${enable_mmx+set}" = set; then :
  14737. enableval=$enable_mmx;
  14738. else
  14739. enable_mmx=yes
  14740. fi
  14741. if test x$enable_mmx = xyes; then
  14742. save_CFLAGS="$CFLAGS"
  14743. have_gcc_mmx=no
  14744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14745. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14746. mmx_CFLAGS="-mmmx"
  14747. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14749. /* end confdefs.h. */
  14750. #ifdef __MINGW32__
  14751. #include <_mingw.h>
  14752. #ifdef __MINGW64_VERSION_MAJOR
  14753. #include <intrin.h>
  14754. #else
  14755. #include <mmintrin.h>
  14756. #endif
  14757. #else
  14758. #include <mmintrin.h>
  14759. #endif
  14760. #ifndef __MMX__
  14761. #error Assembler CPP flag not enabled
  14762. #endif
  14763. int
  14764. main ()
  14765. {
  14766. ;
  14767. return 0;
  14768. }
  14769. _ACEOF
  14770. if ac_fn_c_try_compile "$LINENO"; then :
  14771. have_gcc_mmx=yes
  14772. fi
  14773. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14775. $as_echo "$have_gcc_mmx" >&6; }
  14776. CFLAGS="$save_CFLAGS"
  14777. if test x$have_gcc_mmx = xyes; then
  14778. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14779. SUMMARY_math="${SUMMARY_math} mmx"
  14780. fi
  14781. fi
  14782. # Check whether --enable-3dnow was given.
  14783. if test "${enable_3dnow+set}" = set; then :
  14784. enableval=$enable_3dnow;
  14785. else
  14786. enable_3dnow=yes
  14787. fi
  14788. if test x$enable_3dnow = xyes; then
  14789. save_CFLAGS="$CFLAGS"
  14790. have_gcc_3dnow=no
  14791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14792. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14793. amd3dnow_CFLAGS="-m3dnow"
  14794. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14796. /* end confdefs.h. */
  14797. #include <mm3dnow.h>
  14798. #ifndef __3dNOW__
  14799. #error Assembler CPP flag not enabled
  14800. #endif
  14801. int
  14802. main ()
  14803. {
  14804. void *p = 0;
  14805. _m_prefetch(p);
  14806. ;
  14807. return 0;
  14808. }
  14809. _ACEOF
  14810. if ac_fn_c_try_link "$LINENO"; then :
  14811. have_gcc_3dnow=yes
  14812. fi
  14813. rm -f core conftest.err conftest.$ac_objext \
  14814. conftest$ac_exeext conftest.$ac_ext
  14815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14816. $as_echo "$have_gcc_3dnow" >&6; }
  14817. CFLAGS="$save_CFLAGS"
  14818. if test x$have_gcc_3dnow = xyes; then
  14819. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14820. SUMMARY_math="${SUMMARY_math} 3dnow"
  14821. fi
  14822. fi
  14823. # Check whether --enable-sse was given.
  14824. if test "${enable_sse+set}" = set; then :
  14825. enableval=$enable_sse;
  14826. else
  14827. enable_sse=yes
  14828. fi
  14829. if test x$enable_sse = xyes; then
  14830. save_CFLAGS="$CFLAGS"
  14831. have_gcc_sse=no
  14832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14833. $as_echo_n "checking for GCC -msse option... " >&6; }
  14834. sse_CFLAGS="-msse"
  14835. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14837. /* end confdefs.h. */
  14838. #ifdef __MINGW32__
  14839. #include <_mingw.h>
  14840. #ifdef __MINGW64_VERSION_MAJOR
  14841. #include <intrin.h>
  14842. #else
  14843. #include <xmmintrin.h>
  14844. #endif
  14845. #else
  14846. #include <xmmintrin.h>
  14847. #endif
  14848. #ifndef __SSE__
  14849. #error Assembler CPP flag not enabled
  14850. #endif
  14851. int
  14852. main ()
  14853. {
  14854. ;
  14855. return 0;
  14856. }
  14857. _ACEOF
  14858. if ac_fn_c_try_compile "$LINENO"; then :
  14859. have_gcc_sse=yes
  14860. fi
  14861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14863. $as_echo "$have_gcc_sse" >&6; }
  14864. CFLAGS="$save_CFLAGS"
  14865. if test x$have_gcc_sse = xyes; then
  14866. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14867. SUMMARY_math="${SUMMARY_math} sse"
  14868. fi
  14869. fi
  14870. # Check whether --enable-sse2 was given.
  14871. if test "${enable_sse2+set}" = set; then :
  14872. enableval=$enable_sse2;
  14873. else
  14874. enable_sse2=$default_ssemath
  14875. fi
  14876. if test x$enable_sse2 = xyes; then
  14877. save_CFLAGS="$CFLAGS"
  14878. have_gcc_sse2=no
  14879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14880. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14881. sse2_CFLAGS="-msse2"
  14882. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14884. /* end confdefs.h. */
  14885. #ifdef __MINGW32__
  14886. #include <_mingw.h>
  14887. #ifdef __MINGW64_VERSION_MAJOR
  14888. #include <intrin.h>
  14889. #else
  14890. #include <emmintrin.h>
  14891. #endif
  14892. #else
  14893. #include <emmintrin.h>
  14894. #endif
  14895. #ifndef __SSE2__
  14896. #error Assembler CPP flag not enabled
  14897. #endif
  14898. int
  14899. main ()
  14900. {
  14901. ;
  14902. return 0;
  14903. }
  14904. _ACEOF
  14905. if ac_fn_c_try_compile "$LINENO"; then :
  14906. have_gcc_sse2=yes
  14907. fi
  14908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14910. $as_echo "$have_gcc_sse2" >&6; }
  14911. CFLAGS="$save_CFLAGS"
  14912. if test x$have_gcc_sse2 = xyes; then
  14913. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14914. SUMMARY_math="${SUMMARY_math} sse2"
  14915. fi
  14916. fi
  14917. # Check whether --enable-sse3 was given.
  14918. if test "${enable_sse3+set}" = set; then :
  14919. enableval=$enable_sse3;
  14920. else
  14921. enable_sse3=$default_ssemath
  14922. fi
  14923. if test x$enable_sse3 = xyes; then
  14924. save_CFLAGS="$CFLAGS"
  14925. have_gcc_sse3=no
  14926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  14927. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  14928. sse3_CFLAGS="-msse3"
  14929. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  14930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14931. /* end confdefs.h. */
  14932. #ifdef __MINGW32__
  14933. #include <_mingw.h>
  14934. #ifdef __MINGW64_VERSION_MAJOR
  14935. #include <intrin.h>
  14936. #else
  14937. #include <pmmintrin.h>
  14938. #endif
  14939. #else
  14940. #include <pmmintrin.h>
  14941. #endif
  14942. #ifndef __SSE2__
  14943. #error Assembler CPP flag not enabled
  14944. #endif
  14945. int
  14946. main ()
  14947. {
  14948. ;
  14949. return 0;
  14950. }
  14951. _ACEOF
  14952. if ac_fn_c_try_compile "$LINENO"; then :
  14953. have_gcc_sse3=yes
  14954. fi
  14955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  14957. $as_echo "$have_gcc_sse3" >&6; }
  14958. CFLAGS="$save_CFLAGS"
  14959. if test x$have_gcc_sse3 = xyes; then
  14960. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  14961. SUMMARY_math="${SUMMARY_math} sse3"
  14962. fi
  14963. fi
  14964. # Check whether --enable-altivec was given.
  14965. if test "${enable_altivec+set}" = set; then :
  14966. enableval=$enable_altivec;
  14967. else
  14968. enable_altivec=yes
  14969. fi
  14970. if test x$enable_altivec = xyes; then
  14971. save_CFLAGS="$CFLAGS"
  14972. have_gcc_altivec=no
  14973. have_altivec_h_hdr=no
  14974. altivec_CFLAGS="-maltivec"
  14975. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14977. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14979. /* end confdefs.h. */
  14980. #include <altivec.h>
  14981. vector unsigned int vzero() {
  14982. return vec_splat_u32(0);
  14983. }
  14984. int
  14985. main ()
  14986. {
  14987. ;
  14988. return 0;
  14989. }
  14990. _ACEOF
  14991. if ac_fn_c_try_compile "$LINENO"; then :
  14992. have_gcc_altivec=yes
  14993. have_altivec_h_hdr=yes
  14994. fi
  14995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14997. $as_echo "$have_gcc_altivec" >&6; }
  14998. if test x$have_gcc_altivec = xno; then
  14999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15000. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15002. /* end confdefs.h. */
  15003. vector unsigned int vzero() {
  15004. return vec_splat_u32(0);
  15005. }
  15006. int
  15007. main ()
  15008. {
  15009. ;
  15010. return 0;
  15011. }
  15012. _ACEOF
  15013. if ac_fn_c_try_compile "$LINENO"; then :
  15014. have_gcc_altivec=yes
  15015. fi
  15016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15018. $as_echo "$have_gcc_altivec" >&6; }
  15019. fi
  15020. if test x$have_gcc_altivec = xno; then
  15021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15022. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15023. altivec_CFLAGS="-faltivec"
  15024. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15026. /* end confdefs.h. */
  15027. #include <altivec.h>
  15028. vector unsigned int vzero() {
  15029. return vec_splat_u32(0);
  15030. }
  15031. int
  15032. main ()
  15033. {
  15034. ;
  15035. return 0;
  15036. }
  15037. _ACEOF
  15038. if ac_fn_c_try_compile "$LINENO"; then :
  15039. have_gcc_altivec=yes
  15040. have_altivec_h_hdr=yes
  15041. fi
  15042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15044. $as_echo "$have_gcc_altivec" >&6; }
  15045. fi
  15046. if test x$have_gcc_altivec = xno; then
  15047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15048. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15050. /* end confdefs.h. */
  15051. vector unsigned int vzero() {
  15052. return vec_splat_u32(0);
  15053. }
  15054. int
  15055. main ()
  15056. {
  15057. ;
  15058. return 0;
  15059. }
  15060. _ACEOF
  15061. if ac_fn_c_try_compile "$LINENO"; then :
  15062. have_gcc_altivec=yes
  15063. fi
  15064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15066. $as_echo "$have_gcc_altivec" >&6; }
  15067. fi
  15068. CFLAGS="$save_CFLAGS"
  15069. if test x$have_gcc_altivec = xyes; then
  15070. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15071. if test x$have_altivec_h_hdr = xyes; then
  15072. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15073. fi
  15074. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15075. SUMMARY_math="${SUMMARY_math} altivec"
  15076. fi
  15077. fi
  15078. fi
  15079. CheckOSS()
  15080. {
  15081. # Check whether --enable-oss was given.
  15082. if test "${enable_oss+set}" = set; then :
  15083. enableval=$enable_oss;
  15084. else
  15085. enable_oss=maybe
  15086. fi
  15087. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15088. # use sndio instead. So on there, we default to disabled. You can force
  15089. # it on if you really want, though.
  15090. if test x$enable_oss = xmaybe; then
  15091. enable_oss=yes
  15092. case "$host" in
  15093. *-*-openbsd*)
  15094. enable_oss=no;;
  15095. esac
  15096. fi
  15097. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15099. $as_echo_n "checking for OSS audio support... " >&6; }
  15100. have_oss=no
  15101. if test x$have_oss != xyes; then
  15102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15103. /* end confdefs.h. */
  15104. #include <sys/soundcard.h>
  15105. int
  15106. main ()
  15107. {
  15108. int arg = SNDCTL_DSP_SETFRAGMENT;
  15109. ;
  15110. return 0;
  15111. }
  15112. _ACEOF
  15113. if ac_fn_c_try_compile "$LINENO"; then :
  15114. have_oss=yes
  15115. fi
  15116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15117. fi
  15118. if test x$have_oss != xyes; then
  15119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15120. /* end confdefs.h. */
  15121. #include <soundcard.h>
  15122. int
  15123. main ()
  15124. {
  15125. int arg = SNDCTL_DSP_SETFRAGMENT;
  15126. ;
  15127. return 0;
  15128. }
  15129. _ACEOF
  15130. if ac_fn_c_try_compile "$LINENO"; then :
  15131. have_oss=yes
  15132. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15133. fi
  15134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15135. fi
  15136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15137. $as_echo "$have_oss" >&6; }
  15138. if test x$have_oss = xyes; then
  15139. SUMMARY_audio="${SUMMARY_audio} oss"
  15140. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15141. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15142. have_audio=yes
  15143. # We may need to link with ossaudio emulation library
  15144. case "$host" in
  15145. *-*-openbsd*|*-*-netbsd*)
  15146. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15147. esac
  15148. fi
  15149. fi
  15150. }
  15151. CheckALSA()
  15152. {
  15153. # Check whether --enable-alsa was given.
  15154. if test "${enable_alsa+set}" = set; then :
  15155. enableval=$enable_alsa;
  15156. else
  15157. enable_alsa=yes
  15158. fi
  15159. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15160. alsa_save_CFLAGS="$CFLAGS"
  15161. alsa_save_LDFLAGS="$LDFLAGS"
  15162. alsa_save_LIBS="$LIBS"
  15163. alsa_found=yes
  15164. # Check whether --with-alsa-prefix was given.
  15165. if test "${with_alsa_prefix+set}" = set; then :
  15166. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15167. else
  15168. alsa_prefix=""
  15169. fi
  15170. # Check whether --with-alsa-inc-prefix was given.
  15171. if test "${with_alsa_inc_prefix+set}" = set; then :
  15172. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15173. else
  15174. alsa_inc_prefix=""
  15175. fi
  15176. # Check whether --enable-alsatest was given.
  15177. if test "${enable_alsatest+set}" = set; then :
  15178. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15179. else
  15180. enable_alsatest=yes
  15181. fi
  15182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15183. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15184. if test "$alsa_inc_prefix" != "" ; then
  15185. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15186. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15187. fi
  15188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15189. $as_echo "$ALSA_CFLAGS" >&6; }
  15190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15191. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15192. if test "$alsa_prefix" != "" ; then
  15193. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15194. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15195. fi
  15196. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15197. LIBS=`echo $LIBS | sed 's/-lm//'`
  15198. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15199. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15200. LIBS=`echo $LIBS | sed 's/ //'`
  15201. LIBS="$ALSA_LIBS $LIBS"
  15202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15203. $as_echo "$ALSA_LIBS" >&6; }
  15204. min_alsa_version=1.0.11
  15205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15206. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15207. no_alsa=""
  15208. alsa_min_major_version=`echo $min_alsa_version | \
  15209. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15210. alsa_min_minor_version=`echo $min_alsa_version | \
  15211. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15212. alsa_min_micro_version=`echo $min_alsa_version | \
  15213. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15214. ac_ext=c
  15215. ac_cpp='$CPP $CPPFLAGS'
  15216. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15217. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15220. /* end confdefs.h. */
  15221. #include <alsa/asoundlib.h>
  15222. int
  15223. main ()
  15224. {
  15225. /* ensure backward compatibility */
  15226. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15227. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15228. #endif
  15229. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15230. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15231. #endif
  15232. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15233. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15234. #endif
  15235. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15236. exit(0);
  15237. # else
  15238. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15239. # error not present
  15240. # endif
  15241. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15242. exit(0);
  15243. # else
  15244. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15245. # error not present
  15246. # endif
  15247. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15248. # error not present
  15249. # endif
  15250. # endif
  15251. # endif
  15252. exit(0);
  15253. ;
  15254. return 0;
  15255. }
  15256. _ACEOF
  15257. if ac_fn_c_try_compile "$LINENO"; then :
  15258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15259. $as_echo "found." >&6; }
  15260. else
  15261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15262. $as_echo "not present." >&6; }
  15263. alsa_found=no
  15264. fi
  15265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15266. ac_ext=c
  15267. ac_cpp='$CPP $CPPFLAGS'
  15268. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15269. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15270. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15271. if test "x$enable_alsatest" = "xyes"; then
  15272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15273. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15274. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15275. $as_echo_n "(cached) " >&6
  15276. else
  15277. ac_check_lib_save_LIBS=$LIBS
  15278. LIBS="-lasound $LIBS"
  15279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15280. /* end confdefs.h. */
  15281. /* Override any GCC internal prototype to avoid an error.
  15282. Use char because int might match the return type of a GCC
  15283. builtin and then its argument prototype would still apply. */
  15284. #ifdef __cplusplus
  15285. extern "C"
  15286. #endif
  15287. char snd_ctl_open ();
  15288. int
  15289. main ()
  15290. {
  15291. return snd_ctl_open ();
  15292. ;
  15293. return 0;
  15294. }
  15295. _ACEOF
  15296. if ac_fn_c_try_link "$LINENO"; then :
  15297. ac_cv_lib_asound_snd_ctl_open=yes
  15298. else
  15299. ac_cv_lib_asound_snd_ctl_open=no
  15300. fi
  15301. rm -f core conftest.err conftest.$ac_objext \
  15302. conftest$ac_exeext conftest.$ac_ext
  15303. LIBS=$ac_check_lib_save_LIBS
  15304. fi
  15305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15306. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15307. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15308. cat >>confdefs.h <<_ACEOF
  15309. #define HAVE_LIBASOUND 1
  15310. _ACEOF
  15311. LIBS="-lasound $LIBS"
  15312. else
  15313. alsa_found=no
  15314. fi
  15315. fi
  15316. if test "x$alsa_found" = "xyes" ; then
  15317. have_alsa=yes
  15318. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15319. LIBS=`echo $LIBS | sed 's/ //'`
  15320. LIBS="-lasound $LIBS"
  15321. fi
  15322. if test "x$alsa_found" = "xno" ; then
  15323. have_alsa=no
  15324. CFLAGS="$alsa_save_CFLAGS"
  15325. LDFLAGS="$alsa_save_LDFLAGS"
  15326. LIBS="$alsa_save_LIBS"
  15327. ALSA_CFLAGS=""
  15328. ALSA_LIBS=""
  15329. fi
  15330. # Restore all flags from before the ALSA detection runs
  15331. CFLAGS="$alsa_save_CFLAGS"
  15332. LDFLAGS="$alsa_save_LDFLAGS"
  15333. LIBS="$alsa_save_LIBS"
  15334. if test x$have_alsa = xyes; then
  15335. # Check whether --enable-alsa-shared was given.
  15336. if test "${enable_alsa_shared+set}" = set; then :
  15337. enableval=$enable_alsa_shared;
  15338. else
  15339. enable_alsa_shared=yes
  15340. fi
  15341. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15342. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15343. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15344. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15345. if test x$have_loadso != xyes && \
  15346. test x$enable_alsa_shared = xyes; then
  15347. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15348. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15349. fi
  15350. if test x$have_loadso = xyes && \
  15351. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15352. echo "-- dynamic libasound -> $alsa_lib"
  15353. cat >>confdefs.h <<_ACEOF
  15354. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15355. _ACEOF
  15356. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15357. else
  15358. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15359. SUMMARY_audio="${SUMMARY_audio} alsa"
  15360. fi
  15361. have_audio=yes
  15362. fi
  15363. fi
  15364. }
  15365. CheckJACK()
  15366. {
  15367. # Check whether --enable-jack was given.
  15368. if test "${enable_jack+set}" = set; then :
  15369. enableval=$enable_jack;
  15370. else
  15371. enable_jack=yes
  15372. fi
  15373. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15374. audio_jack=no
  15375. JACK_REQUIRED_VERSION=0.125
  15376. # Extract the first word of "pkg-config", so it can be a program name with args.
  15377. set dummy pkg-config; ac_word=$2
  15378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15379. $as_echo_n "checking for $ac_word... " >&6; }
  15380. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15381. $as_echo_n "(cached) " >&6
  15382. else
  15383. case $PKG_CONFIG in
  15384. [\\/]* | ?:[\\/]*)
  15385. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15386. ;;
  15387. *)
  15388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15389. for as_dir in $PATH
  15390. do
  15391. IFS=$as_save_IFS
  15392. test -z "$as_dir" && as_dir=.
  15393. for ac_exec_ext in '' $ac_executable_extensions; do
  15394. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15395. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15396. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15397. break 2
  15398. fi
  15399. done
  15400. done
  15401. IFS=$as_save_IFS
  15402. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15403. ;;
  15404. esac
  15405. fi
  15406. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15407. if test -n "$PKG_CONFIG"; then
  15408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15409. $as_echo "$PKG_CONFIG" >&6; }
  15410. else
  15411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15412. $as_echo "no" >&6; }
  15413. fi
  15414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK $JACK_REQUIRED_VERSION support" >&5
  15415. $as_echo_n "checking for JACK $JACK_REQUIRED_VERSION support... " >&6; }
  15416. if test x$PKG_CONFIG != xno; then
  15417. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then
  15418. JACK_CFLAGS=`$PKG_CONFIG --cflags jack`
  15419. JACK_LIBS=`$PKG_CONFIG --libs jack`
  15420. audio_jack=yes
  15421. fi
  15422. fi
  15423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_jack" >&5
  15424. $as_echo "$audio_jack" >&6; }
  15425. if test x$audio_jack = xyes; then
  15426. # Check whether --enable-jack-shared was given.
  15427. if test "${enable_jack_shared+set}" = set; then :
  15428. enableval=$enable_jack_shared;
  15429. else
  15430. enable_jack_shared=yes
  15431. fi
  15432. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15433. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15434. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15435. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15436. if test x$have_loadso != xyes && \
  15437. test x$enable_jack_shared = xyes; then
  15438. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15439. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15440. fi
  15441. if test x$have_loadso = xyes && \
  15442. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15443. echo "-- dynamic libjack -> $jack_lib"
  15444. cat >>confdefs.h <<_ACEOF
  15445. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15446. _ACEOF
  15447. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15448. case "$host" in
  15449. # On Solaris, jack must be linked deferred explicitly
  15450. # to prevent undefined symbol failures.
  15451. *-*-solaris*)
  15452. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15453. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15454. esac
  15455. else
  15456. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15457. SUMMARY_audio="${SUMMARY_audio} jack"
  15458. fi
  15459. have_audio=yes
  15460. fi
  15461. fi
  15462. }
  15463. CheckESD()
  15464. {
  15465. # Check whether --enable-esd was given.
  15466. if test "${enable_esd+set}" = set; then :
  15467. enableval=$enable_esd;
  15468. else
  15469. enable_esd=yes
  15470. fi
  15471. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15472. # Check whether --with-esd-prefix was given.
  15473. if test "${with_esd_prefix+set}" = set; then :
  15474. withval=$with_esd_prefix; esd_prefix="$withval"
  15475. else
  15476. esd_prefix=""
  15477. fi
  15478. # Check whether --with-esd-exec-prefix was given.
  15479. if test "${with_esd_exec_prefix+set}" = set; then :
  15480. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15481. else
  15482. esd_exec_prefix=""
  15483. fi
  15484. # Check whether --enable-esdtest was given.
  15485. if test "${enable_esdtest+set}" = set; then :
  15486. enableval=$enable_esdtest;
  15487. else
  15488. enable_esdtest=yes
  15489. fi
  15490. if test x$esd_exec_prefix != x ; then
  15491. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15492. if test x${ESD_CONFIG+set} != xset ; then
  15493. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15494. fi
  15495. fi
  15496. if test x$esd_prefix != x ; then
  15497. esd_args="$esd_args --prefix=$esd_prefix"
  15498. if test x${ESD_CONFIG+set} != xset ; then
  15499. ESD_CONFIG=$esd_prefix/bin/esd-config
  15500. fi
  15501. fi
  15502. # Extract the first word of "esd-config", so it can be a program name with args.
  15503. set dummy esd-config; ac_word=$2
  15504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15505. $as_echo_n "checking for $ac_word... " >&6; }
  15506. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15507. $as_echo_n "(cached) " >&6
  15508. else
  15509. case $ESD_CONFIG in
  15510. [\\/]* | ?:[\\/]*)
  15511. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15512. ;;
  15513. *)
  15514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15515. for as_dir in $PATH
  15516. do
  15517. IFS=$as_save_IFS
  15518. test -z "$as_dir" && as_dir=.
  15519. for ac_exec_ext in '' $ac_executable_extensions; do
  15520. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15521. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15523. break 2
  15524. fi
  15525. done
  15526. done
  15527. IFS=$as_save_IFS
  15528. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15529. ;;
  15530. esac
  15531. fi
  15532. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15533. if test -n "$ESD_CONFIG"; then
  15534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15535. $as_echo "$ESD_CONFIG" >&6; }
  15536. else
  15537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15538. $as_echo "no" >&6; }
  15539. fi
  15540. min_esd_version=0.2.8
  15541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15542. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15543. no_esd=""
  15544. if test "$ESD_CONFIG" = "no" ; then
  15545. no_esd=yes
  15546. else
  15547. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15548. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15549. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15550. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15551. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15552. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15553. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15554. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15555. if test "x$enable_esdtest" = "xyes" ; then
  15556. ac_save_CFLAGS="$CFLAGS"
  15557. ac_save_LIBS="$LIBS"
  15558. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15559. LIBS="$LIBS $ESD_LIBS"
  15560. rm -f conf.esdtest
  15561. if test "$cross_compiling" = yes; then :
  15562. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15563. else
  15564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15565. /* end confdefs.h. */
  15566. #include <stdio.h>
  15567. #include <stdlib.h>
  15568. #include <string.h>
  15569. #include <esd.h>
  15570. char*
  15571. my_strdup (char *str)
  15572. {
  15573. char *new_str;
  15574. if (str)
  15575. {
  15576. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15577. strcpy (new_str, str);
  15578. }
  15579. else
  15580. new_str = NULL;
  15581. return new_str;
  15582. }
  15583. int main ()
  15584. {
  15585. int major, minor, micro;
  15586. char *tmp_version;
  15587. system ("touch conf.esdtest");
  15588. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15589. tmp_version = my_strdup("$min_esd_version");
  15590. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15591. printf("%s, bad version string\n", "$min_esd_version");
  15592. exit(1);
  15593. }
  15594. if (($esd_major_version > major) ||
  15595. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15596. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15597. {
  15598. return 0;
  15599. }
  15600. else
  15601. {
  15602. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15603. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15604. printf("*** best to upgrade to the required version.\n");
  15605. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15606. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15607. printf("*** config.cache before re-running configure\n");
  15608. return 1;
  15609. }
  15610. }
  15611. _ACEOF
  15612. if ac_fn_c_try_run "$LINENO"; then :
  15613. else
  15614. no_esd=yes
  15615. fi
  15616. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15617. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15618. fi
  15619. CFLAGS="$ac_save_CFLAGS"
  15620. LIBS="$ac_save_LIBS"
  15621. fi
  15622. fi
  15623. if test "x$no_esd" = x ; then
  15624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15625. $as_echo "yes" >&6; }
  15626. have_esd=yes
  15627. else
  15628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15629. $as_echo "no" >&6; }
  15630. if test "$ESD_CONFIG" = "no" ; then
  15631. echo "*** The esd-config script installed by ESD could not be found"
  15632. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15633. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15634. echo "*** full path to esd-config."
  15635. else
  15636. if test -f conf.esdtest ; then
  15637. :
  15638. else
  15639. echo "*** Could not run ESD test program, checking why..."
  15640. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15641. LIBS="$LIBS $ESD_LIBS"
  15642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15643. /* end confdefs.h. */
  15644. #include <stdio.h>
  15645. #include <esd.h>
  15646. int
  15647. main ()
  15648. {
  15649. return 0;
  15650. ;
  15651. return 0;
  15652. }
  15653. _ACEOF
  15654. if ac_fn_c_try_link "$LINENO"; then :
  15655. echo "*** The test program compiled, but did not run. This usually means"
  15656. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15657. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15658. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15659. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15660. echo "*** is required on your system"
  15661. echo "***"
  15662. echo "*** If you have an old version installed, it is best to remove it, although"
  15663. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15664. else
  15665. echo "*** The test program failed to compile or link. See the file config.log for the"
  15666. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15667. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15668. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15669. fi
  15670. rm -f core conftest.err conftest.$ac_objext \
  15671. conftest$ac_exeext conftest.$ac_ext
  15672. CFLAGS="$ac_save_CFLAGS"
  15673. LIBS="$ac_save_LIBS"
  15674. fi
  15675. fi
  15676. ESD_CFLAGS=""
  15677. ESD_LIBS=""
  15678. have_esd=no
  15679. fi
  15680. rm -f conf.esdtest
  15681. if test x$have_esd = xyes; then
  15682. # Check whether --enable-esd-shared was given.
  15683. if test "${enable_esd_shared+set}" = set; then :
  15684. enableval=$enable_esd_shared;
  15685. else
  15686. enable_esd_shared=yes
  15687. fi
  15688. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15689. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15690. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15691. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15692. if test x$have_loadso != xyes && \
  15693. test x$enable_esd_shared = xyes; then
  15694. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15695. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15696. fi
  15697. if test x$have_loadso = xyes && \
  15698. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15699. echo "-- dynamic libesd -> $esd_lib"
  15700. cat >>confdefs.h <<_ACEOF
  15701. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15702. _ACEOF
  15703. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15704. else
  15705. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15706. SUMMARY_audio="${SUMMARY_audio} esd"
  15707. fi
  15708. have_audio=yes
  15709. fi
  15710. fi
  15711. }
  15712. CheckPulseAudio()
  15713. {
  15714. # Check whether --enable-pulseaudio was given.
  15715. if test "${enable_pulseaudio+set}" = set; then :
  15716. enableval=$enable_pulseaudio;
  15717. else
  15718. enable_pulseaudio=yes
  15719. fi
  15720. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15721. audio_pulseaudio=no
  15722. PULSEAUDIO_REQUIRED_VERSION=0.9
  15723. # Extract the first word of "pkg-config", so it can be a program name with args.
  15724. set dummy pkg-config; ac_word=$2
  15725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15726. $as_echo_n "checking for $ac_word... " >&6; }
  15727. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15728. $as_echo_n "(cached) " >&6
  15729. else
  15730. case $PKG_CONFIG in
  15731. [\\/]* | ?:[\\/]*)
  15732. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15733. ;;
  15734. *)
  15735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15736. for as_dir in $PATH
  15737. do
  15738. IFS=$as_save_IFS
  15739. test -z "$as_dir" && as_dir=.
  15740. for ac_exec_ext in '' $ac_executable_extensions; do
  15741. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15742. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15744. break 2
  15745. fi
  15746. done
  15747. done
  15748. IFS=$as_save_IFS
  15749. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15750. ;;
  15751. esac
  15752. fi
  15753. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15754. if test -n "$PKG_CONFIG"; then
  15755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15756. $as_echo "$PKG_CONFIG" >&6; }
  15757. else
  15758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15759. $as_echo "no" >&6; }
  15760. fi
  15761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15762. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15763. if test x$PKG_CONFIG != xno; then
  15764. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15765. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15766. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15767. audio_pulseaudio=yes
  15768. fi
  15769. fi
  15770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15771. $as_echo "$audio_pulseaudio" >&6; }
  15772. if test x$audio_pulseaudio = xyes; then
  15773. # Check whether --enable-pulseaudio-shared was given.
  15774. if test "${enable_pulseaudio_shared+set}" = set; then :
  15775. enableval=$enable_pulseaudio_shared;
  15776. else
  15777. enable_pulseaudio_shared=yes
  15778. fi
  15779. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15780. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15781. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15782. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15783. if test x$have_loadso != xyes && \
  15784. test x$enable_pulseaudio_shared = xyes; then
  15785. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15786. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15787. fi
  15788. if test x$have_loadso = xyes && \
  15789. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15790. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15791. cat >>confdefs.h <<_ACEOF
  15792. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15793. _ACEOF
  15794. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15795. case "$host" in
  15796. # On Solaris, pulseaudio must be linked deferred explicitly
  15797. # to prevent undefined symbol failures.
  15798. *-*-solaris*)
  15799. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15800. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15801. esac
  15802. else
  15803. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15804. SUMMARY_audio="${SUMMARY_audio} pulse"
  15805. fi
  15806. have_audio=yes
  15807. fi
  15808. fi
  15809. }
  15810. CheckARTSC()
  15811. {
  15812. # Check whether --enable-arts was given.
  15813. if test "${enable_arts+set}" = set; then :
  15814. enableval=$enable_arts;
  15815. else
  15816. enable_arts=yes
  15817. fi
  15818. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15819. # Extract the first word of "artsc-config", so it can be a program name with args.
  15820. set dummy artsc-config; ac_word=$2
  15821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15822. $as_echo_n "checking for $ac_word... " >&6; }
  15823. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15824. $as_echo_n "(cached) " >&6
  15825. else
  15826. case $ARTSCONFIG in
  15827. [\\/]* | ?:[\\/]*)
  15828. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15829. ;;
  15830. *)
  15831. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15832. for as_dir in $PATH
  15833. do
  15834. IFS=$as_save_IFS
  15835. test -z "$as_dir" && as_dir=.
  15836. for ac_exec_ext in '' $ac_executable_extensions; do
  15837. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15838. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15839. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15840. break 2
  15841. fi
  15842. done
  15843. done
  15844. IFS=$as_save_IFS
  15845. ;;
  15846. esac
  15847. fi
  15848. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15849. if test -n "$ARTSCONFIG"; then
  15850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15851. $as_echo "$ARTSCONFIG" >&6; }
  15852. else
  15853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15854. $as_echo "no" >&6; }
  15855. fi
  15856. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15857. : # arts isn't installed
  15858. else
  15859. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15860. ARTS_LIBS=`$ARTSCONFIG --libs`
  15861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15862. $as_echo_n "checking for aRts development environment... " >&6; }
  15863. audio_arts=no
  15864. save_CFLAGS="$CFLAGS"
  15865. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15867. /* end confdefs.h. */
  15868. #include <artsc.h>
  15869. int
  15870. main ()
  15871. {
  15872. arts_stream_t stream;
  15873. ;
  15874. return 0;
  15875. }
  15876. _ACEOF
  15877. if ac_fn_c_try_compile "$LINENO"; then :
  15878. audio_arts=yes
  15879. fi
  15880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15881. CFLAGS="$save_CFLAGS"
  15882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15883. $as_echo "$audio_arts" >&6; }
  15884. if test x$audio_arts = xyes; then
  15885. # Check whether --enable-arts-shared was given.
  15886. if test "${enable_arts_shared+set}" = set; then :
  15887. enableval=$enable_arts_shared;
  15888. else
  15889. enable_arts_shared=yes
  15890. fi
  15891. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15892. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15893. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15894. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15895. if test x$have_loadso != xyes && \
  15896. test x$enable_arts_shared = xyes; then
  15897. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15898. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15899. fi
  15900. if test x$have_loadso = xyes && \
  15901. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15902. echo "-- dynamic libartsc -> $arts_lib"
  15903. cat >>confdefs.h <<_ACEOF
  15904. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15905. _ACEOF
  15906. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15907. else
  15908. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15909. SUMMARY_audio="${SUMMARY_audio} arts"
  15910. fi
  15911. have_audio=yes
  15912. fi
  15913. fi
  15914. fi
  15915. }
  15916. CheckNAS()
  15917. {
  15918. # Check whether --enable-nas was given.
  15919. if test "${enable_nas+set}" = set; then :
  15920. enableval=$enable_nas;
  15921. else
  15922. enable_nas=yes
  15923. fi
  15924. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15925. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15926. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15927. have_nas_hdr=yes
  15928. fi
  15929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15930. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15931. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15932. $as_echo_n "(cached) " >&6
  15933. else
  15934. ac_check_lib_save_LIBS=$LIBS
  15935. LIBS="-laudio $LIBS"
  15936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15937. /* end confdefs.h. */
  15938. /* Override any GCC internal prototype to avoid an error.
  15939. Use char because int might match the return type of a GCC
  15940. builtin and then its argument prototype would still apply. */
  15941. #ifdef __cplusplus
  15942. extern "C"
  15943. #endif
  15944. char AuOpenServer ();
  15945. int
  15946. main ()
  15947. {
  15948. return AuOpenServer ();
  15949. ;
  15950. return 0;
  15951. }
  15952. _ACEOF
  15953. if ac_fn_c_try_link "$LINENO"; then :
  15954. ac_cv_lib_audio_AuOpenServer=yes
  15955. else
  15956. ac_cv_lib_audio_AuOpenServer=no
  15957. fi
  15958. rm -f core conftest.err conftest.$ac_objext \
  15959. conftest$ac_exeext conftest.$ac_ext
  15960. LIBS=$ac_check_lib_save_LIBS
  15961. fi
  15962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15963. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15964. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15965. have_nas_lib=yes
  15966. fi
  15967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15968. $as_echo_n "checking for NAS audio support... " >&6; }
  15969. have_nas=no
  15970. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15971. have_nas=yes
  15972. NAS_LIBS="-laudio"
  15973. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15974. have_nas=yes
  15975. NAS_CFLAGS="-I/usr/X11R6/include/"
  15976. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15977. fi
  15978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15979. $as_echo "$have_nas" >&6; }
  15980. if test x$have_nas = xyes; then
  15981. # Check whether --enable-nas-shared was given.
  15982. if test "${enable_nas_shared+set}" = set; then :
  15983. enableval=$enable_nas_shared;
  15984. else
  15985. enable_nas_shared=yes
  15986. fi
  15987. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15988. if test x$have_loadso != xyes && \
  15989. test x$enable_nas_shared = xyes; then
  15990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15991. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15992. fi
  15993. if test x$have_loadso = xyes && \
  15994. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15995. echo "-- dynamic libaudio -> $nas_lib"
  15996. cat >>confdefs.h <<_ACEOF
  15997. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15998. _ACEOF
  15999. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16000. else
  16001. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16002. SUMMARY_audio="${SUMMARY_audio} nas"
  16003. fi
  16004. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16005. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16006. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16007. have_audio=yes
  16008. fi
  16009. fi
  16010. }
  16011. CheckSNDIO()
  16012. {
  16013. # Check whether --enable-sndio was given.
  16014. if test "${enable_sndio+set}" = set; then :
  16015. enableval=$enable_sndio;
  16016. else
  16017. enable_sndio=yes
  16018. fi
  16019. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16020. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16021. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16022. have_sndio_hdr=yes
  16023. fi
  16024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16025. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16026. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16027. $as_echo_n "(cached) " >&6
  16028. else
  16029. ac_check_lib_save_LIBS=$LIBS
  16030. LIBS="-lsndio $LIBS"
  16031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16032. /* end confdefs.h. */
  16033. /* Override any GCC internal prototype to avoid an error.
  16034. Use char because int might match the return type of a GCC
  16035. builtin and then its argument prototype would still apply. */
  16036. #ifdef __cplusplus
  16037. extern "C"
  16038. #endif
  16039. char sio_open ();
  16040. int
  16041. main ()
  16042. {
  16043. return sio_open ();
  16044. ;
  16045. return 0;
  16046. }
  16047. _ACEOF
  16048. if ac_fn_c_try_link "$LINENO"; then :
  16049. ac_cv_lib_sndio_sio_open=yes
  16050. else
  16051. ac_cv_lib_sndio_sio_open=no
  16052. fi
  16053. rm -f core conftest.err conftest.$ac_objext \
  16054. conftest$ac_exeext conftest.$ac_ext
  16055. LIBS=$ac_check_lib_save_LIBS
  16056. fi
  16057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16058. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16059. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16060. have_sndio_lib=yes
  16061. fi
  16062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16063. $as_echo_n "checking for sndio audio support... " >&6; }
  16064. have_sndio=no
  16065. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16066. have_sndio=yes
  16067. SNDIO_LIBS="-lsndio"
  16068. fi
  16069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16070. $as_echo "$have_sndio" >&6; }
  16071. if test x$have_sndio = xyes; then
  16072. # Check whether --enable-sndio-shared was given.
  16073. if test "${enable_sndio_shared+set}" = set; then :
  16074. enableval=$enable_sndio_shared;
  16075. else
  16076. enable_sndio_shared=yes
  16077. fi
  16078. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16079. if test x$have_loadso != xyes && \
  16080. test x$enable_sndio_shared = xyes; then
  16081. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16082. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16083. fi
  16084. if test x$have_loadso = xyes && \
  16085. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16086. echo "-- dynamic libsndio -> $sndio_lib"
  16087. cat >>confdefs.h <<_ACEOF
  16088. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16089. _ACEOF
  16090. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16091. else
  16092. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16093. SUMMARY_audio="${SUMMARY_audio} sndio"
  16094. fi
  16095. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16096. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16097. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16098. have_audio=yes
  16099. fi
  16100. fi
  16101. }
  16102. CheckFusionSound()
  16103. {
  16104. # Check whether --enable-fusionsound was given.
  16105. if test "${enable_fusionsound+set}" = set; then :
  16106. enableval=$enable_fusionsound;
  16107. else
  16108. enable_fusionsound=no
  16109. fi
  16110. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16111. fusionsound=no
  16112. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  16113. # Extract the first word of "pkg-config", so it can be a program name with args.
  16114. set dummy pkg-config; ac_word=$2
  16115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16116. $as_echo_n "checking for $ac_word... " >&6; }
  16117. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16118. $as_echo_n "(cached) " >&6
  16119. else
  16120. case $PKG_CONFIG in
  16121. [\\/]* | ?:[\\/]*)
  16122. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16123. ;;
  16124. *)
  16125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16126. for as_dir in $PATH
  16127. do
  16128. IFS=$as_save_IFS
  16129. test -z "$as_dir" && as_dir=.
  16130. for ac_exec_ext in '' $ac_executable_extensions; do
  16131. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16132. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16134. break 2
  16135. fi
  16136. done
  16137. done
  16138. IFS=$as_save_IFS
  16139. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16140. ;;
  16141. esac
  16142. fi
  16143. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16144. if test -n "$PKG_CONFIG"; then
  16145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16146. $as_echo "$PKG_CONFIG" >&6; }
  16147. else
  16148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16149. $as_echo "no" >&6; }
  16150. fi
  16151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  16152. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  16153. if test x$PKG_CONFIG != xno; then
  16154. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  16155. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  16156. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  16157. fusionsound=yes
  16158. fi
  16159. fi
  16160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  16161. $as_echo "$fusionsound" >&6; }
  16162. if test x$fusionsound = xyes; then
  16163. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16164. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16165. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16166. # Check whether --enable-fusionsound-shared was given.
  16167. if test "${enable_fusionsound_shared+set}" = set; then :
  16168. enableval=$enable_fusionsound_shared;
  16169. else
  16170. enable_fusionsound_shared=yes
  16171. fi
  16172. fusionsound_shared=no
  16173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16174. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16175. if test x$have_loadso != xyes && \
  16176. test x$enable_fusionsound_shared = xyes; then
  16177. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16178. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16179. fi
  16180. if test x$have_loadso = xyes && \
  16181. test x$enable_fusionsound_shared = xyes; then
  16182. cat >>confdefs.h <<_ACEOF
  16183. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16184. _ACEOF
  16185. fusionsound_shared=yes
  16186. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16187. else
  16188. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16189. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16190. fi
  16191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16192. $as_echo "$fusionsound_shared" >&6; }
  16193. have_audio=yes
  16194. fi
  16195. fi
  16196. }
  16197. CheckDiskAudio()
  16198. {
  16199. # Check whether --enable-diskaudio was given.
  16200. if test "${enable_diskaudio+set}" = set; then :
  16201. enableval=$enable_diskaudio;
  16202. else
  16203. enable_diskaudio=yes
  16204. fi
  16205. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16206. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16207. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16208. SUMMARY_audio="${SUMMARY_audio} disk"
  16209. fi
  16210. }
  16211. CheckDummyAudio()
  16212. {
  16213. # Check whether --enable-dummyaudio was given.
  16214. if test "${enable_dummyaudio+set}" = set; then :
  16215. enableval=$enable_dummyaudio;
  16216. else
  16217. enable_dummyaudio=yes
  16218. fi
  16219. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16220. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16221. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16222. SUMMARY_audio="${SUMMARY_audio} dummy"
  16223. fi
  16224. }
  16225. CheckLibSampleRate()
  16226. {
  16227. # Check whether --enable-libsamplerate was given.
  16228. if test "${enable_libsamplerate+set}" = set; then :
  16229. enableval=$enable_libsamplerate;
  16230. else
  16231. enable_libsamplerate=yes
  16232. fi
  16233. if test x$enable_libsamplerate = xyes; then
  16234. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16235. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16236. have_samplerate_h_hdr=yes
  16237. else
  16238. have_samplerate_h_hdr=no
  16239. fi
  16240. if test x$have_samplerate_h_hdr = xyes; then
  16241. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16242. # Check whether --enable-libsamplerate-shared was given.
  16243. if test "${enable_libsamplerate_shared+set}" = set; then :
  16244. enableval=$enable_libsamplerate_shared;
  16245. else
  16246. enable_libsamplerate_shared=yes
  16247. fi
  16248. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16249. if test x$have_loadso != xyes && \
  16250. test x$enable_libsamplerate_shared = xyes; then
  16251. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16252. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16253. fi
  16254. if test x$have_loadso = xyes && \
  16255. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16256. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16257. cat >>confdefs.h <<_ACEOF
  16258. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16259. _ACEOF
  16260. else
  16261. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16262. fi
  16263. fi
  16264. fi
  16265. }
  16266. CheckVisibilityHidden()
  16267. {
  16268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16269. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16270. have_gcc_fvisibility=no
  16271. visibility_CFLAGS="-fvisibility=hidden"
  16272. save_CFLAGS="$CFLAGS"
  16273. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16275. /* end confdefs.h. */
  16276. #if !defined(__GNUC__) || __GNUC__ < 4
  16277. #error SDL only uses visibility attributes in GCC 4 or newer
  16278. #endif
  16279. int
  16280. main ()
  16281. {
  16282. ;
  16283. return 0;
  16284. }
  16285. _ACEOF
  16286. if ac_fn_c_try_compile "$LINENO"; then :
  16287. have_gcc_fvisibility=yes
  16288. fi
  16289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16291. $as_echo "$have_gcc_fvisibility" >&6; }
  16292. CFLAGS="$save_CFLAGS"
  16293. if test x$have_gcc_fvisibility = xyes; then
  16294. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16295. fi
  16296. }
  16297. CheckStackBoundary()
  16298. {
  16299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16300. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16301. have_gcc_preferred_stack_boundary=no
  16302. save_CFLAGS="$CFLAGS"
  16303. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16305. /* end confdefs.h. */
  16306. int x = 0;
  16307. int
  16308. main ()
  16309. {
  16310. ;
  16311. return 0;
  16312. }
  16313. _ACEOF
  16314. if ac_fn_c_try_compile "$LINENO"; then :
  16315. have_gcc_preferred_stack_boundary=yes
  16316. fi
  16317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16319. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16320. CFLAGS="$save_CFLAGS"
  16321. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16322. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16323. fi
  16324. }
  16325. CheckDeclarationAfterStatement()
  16326. {
  16327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16328. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16329. have_gcc_declaration_after_statement=no
  16330. save_CFLAGS="$CFLAGS"
  16331. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16333. /* end confdefs.h. */
  16334. int x = 0;
  16335. int
  16336. main ()
  16337. {
  16338. ;
  16339. return 0;
  16340. }
  16341. _ACEOF
  16342. if ac_fn_c_try_compile "$LINENO"; then :
  16343. have_gcc_declaration_after_statement=yes
  16344. fi
  16345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16347. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16348. CFLAGS="$save_CFLAGS"
  16349. if test x$have_gcc_declaration_after_statement = xyes; then
  16350. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16351. fi
  16352. }
  16353. CheckWarnAll()
  16354. {
  16355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16356. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16357. have_gcc_Wall=no
  16358. save_CFLAGS="$CFLAGS"
  16359. CFLAGS="$save_CFLAGS -Wall"
  16360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16361. /* end confdefs.h. */
  16362. int x = 0;
  16363. int
  16364. main ()
  16365. {
  16366. ;
  16367. return 0;
  16368. }
  16369. _ACEOF
  16370. if ac_fn_c_try_compile "$LINENO"; then :
  16371. have_gcc_Wall=yes
  16372. fi
  16373. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16375. $as_echo "$have_gcc_Wall" >&6; }
  16376. CFLAGS="$save_CFLAGS"
  16377. if test x$have_gcc_Wall = xyes; then
  16378. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16380. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16381. need_gcc_Wno_multichar=no
  16382. case "$host" in
  16383. *-*-haiku*)
  16384. need_gcc_Wno_multichar=yes
  16385. ;;
  16386. esac
  16387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16388. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16389. if test x$need_gcc_Wno_multichar = xyes; then
  16390. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16391. fi
  16392. fi
  16393. }
  16394. CheckWayland()
  16395. {
  16396. # Check whether --enable-video-wayland was given.
  16397. if test "${enable_video_wayland+set}" = set; then :
  16398. enableval=$enable_video_wayland;
  16399. else
  16400. enable_video_wayland=yes
  16401. fi
  16402. # Check whether --enable-video-wayland-qt-touch was given.
  16403. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16404. enableval=$enable_video_wayland_qt_touch;
  16405. else
  16406. enable_video_wayland_qt_touch=yes
  16407. fi
  16408. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16409. # Extract the first word of "pkg-config", so it can be a program name with args.
  16410. set dummy pkg-config; ac_word=$2
  16411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16412. $as_echo_n "checking for $ac_word... " >&6; }
  16413. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16414. $as_echo_n "(cached) " >&6
  16415. else
  16416. case $PKG_CONFIG in
  16417. [\\/]* | ?:[\\/]*)
  16418. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16419. ;;
  16420. *)
  16421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16422. for as_dir in $PATH
  16423. do
  16424. IFS=$as_save_IFS
  16425. test -z "$as_dir" && as_dir=.
  16426. for ac_exec_ext in '' $ac_executable_extensions; do
  16427. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16428. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16429. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16430. break 2
  16431. fi
  16432. done
  16433. done
  16434. IFS=$as_save_IFS
  16435. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16436. ;;
  16437. esac
  16438. fi
  16439. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16440. if test -n "$PKG_CONFIG"; then
  16441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16442. $as_echo "$PKG_CONFIG" >&6; }
  16443. else
  16444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16445. $as_echo "no" >&6; }
  16446. fi
  16447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16448. $as_echo_n "checking for Wayland support... " >&6; }
  16449. video_wayland=no
  16450. if test x$PKG_CONFIG != xno && \
  16451. test x$video_opengl_egl = xyes && \
  16452. test x$video_opengles_v2 = xyes; then
  16453. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16454. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16455. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16456. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16457. WAYLAND_CORE_PROTOCOL_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-client`
  16458. WAYLAND_PROTOCOLS_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
  16459. video_wayland=yes
  16460. fi
  16461. fi
  16462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16463. $as_echo "$video_wayland" >&6; }
  16464. if test x$video_wayland = xyes; then
  16465. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16466. if test x$enable_video_wayland_qt_touch = xyes; then
  16467. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16468. fi
  16469. WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1"
  16470. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16471. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16472. # Check whether --enable-wayland-shared was given.
  16473. if test "${enable_wayland_shared+set}" = set; then :
  16474. enableval=$enable_wayland_shared;
  16475. else
  16476. enable_wayland_shared=maybe
  16477. fi
  16478. case "$host" in
  16479. *)
  16480. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16481. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16482. if test x$wayland_egl_lib = x; then
  16483. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16484. fi
  16485. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16486. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16487. ;;
  16488. esac
  16489. if test x$enable_wayland_shared = xmaybe; then
  16490. enable_wayland_shared=yes
  16491. fi
  16492. if test x$have_loadso != xyes && \
  16493. test x$enable_wayland_shared = xyes; then
  16494. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16495. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16496. enable_wayland_shared=no
  16497. fi
  16498. if test x$have_loadso = xyes && \
  16499. test x$enable_wayland_shared = xyes && \
  16500. test x$wayland_client_lib != x && \
  16501. test x$wayland_egl_lib != x && \
  16502. test x$wayland_cursor_lib != x && \
  16503. test x$xkbcommon_lib != x; then
  16504. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16505. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16506. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16507. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16508. cat >>confdefs.h <<_ACEOF
  16509. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16510. _ACEOF
  16511. cat >>confdefs.h <<_ACEOF
  16512. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16513. _ACEOF
  16514. cat >>confdefs.h <<_ACEOF
  16515. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16516. _ACEOF
  16517. cat >>confdefs.h <<_ACEOF
  16518. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16519. _ACEOF
  16520. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16521. else
  16522. enable_wayland_shared=no
  16523. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16524. SUMMARY_video="${SUMMARY_video} wayland"
  16525. fi
  16526. have_video=yes
  16527. fi
  16528. fi
  16529. }
  16530. CheckMir()
  16531. {
  16532. # Check whether --enable-video-mir was given.
  16533. if test "${enable_video_mir+set}" = set; then :
  16534. enableval=$enable_video_mir;
  16535. else
  16536. enable_video_mir=yes
  16537. fi
  16538. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16539. # Extract the first word of "pkg-config", so it can be a program name with args.
  16540. set dummy pkg-config; ac_word=$2
  16541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16542. $as_echo_n "checking for $ac_word... " >&6; }
  16543. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16544. $as_echo_n "(cached) " >&6
  16545. else
  16546. case $PKG_CONFIG in
  16547. [\\/]* | ?:[\\/]*)
  16548. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16549. ;;
  16550. *)
  16551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16552. for as_dir in $PATH
  16553. do
  16554. IFS=$as_save_IFS
  16555. test -z "$as_dir" && as_dir=.
  16556. for ac_exec_ext in '' $ac_executable_extensions; do
  16557. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16558. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16560. break 2
  16561. fi
  16562. done
  16563. done
  16564. IFS=$as_save_IFS
  16565. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16566. ;;
  16567. esac
  16568. fi
  16569. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16570. if test -n "$PKG_CONFIG"; then
  16571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16572. $as_echo "$PKG_CONFIG" >&6; }
  16573. else
  16574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16575. $as_echo "no" >&6; }
  16576. fi
  16577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16578. $as_echo_n "checking for Mir support... " >&6; }
  16579. video_mir=no
  16580. if test x$PKG_CONFIG != xno; then
  16581. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16582. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16583. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16584. save_CFLAGS="$CFLAGS"
  16585. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16587. /* end confdefs.h. */
  16588. #include <mir_toolkit/mir_client_library.h>
  16589. int
  16590. main ()
  16591. {
  16592. MirWindowAttrib attrib = mir_window_attrib_state
  16593. ;
  16594. return 0;
  16595. }
  16596. _ACEOF
  16597. if ac_fn_c_try_compile "$LINENO"; then :
  16598. video_mir=yes
  16599. fi
  16600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16601. CFLAGS="$save_CFLAGS"
  16602. fi
  16603. fi
  16604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16605. $as_echo "$video_mir" >&6; }
  16606. if test x$video_mir = xyes; then
  16607. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16608. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16609. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16610. # Check whether --enable-mir-shared was given.
  16611. if test "${enable_mir_shared+set}" = set; then :
  16612. enableval=$enable_mir_shared;
  16613. else
  16614. enable_mir_shared=maybe
  16615. fi
  16616. case "$host" in
  16617. *)
  16618. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16619. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16620. ;;
  16621. esac
  16622. if test x$enable_mir_shared = xmaybe; then
  16623. enable_mir_shared=yes
  16624. fi
  16625. if test x$have_loadso != xyes && \
  16626. test x$enable_mir_shared = xyes; then
  16627. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16628. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16629. enable_mir_shared=no
  16630. fi
  16631. if test x$have_loadso = xyes && \
  16632. test x$enable_mir_shared = xyes && \
  16633. test x$mirclient_lib != x && \
  16634. test x$xkbcommon_lib != x; then
  16635. echo "-- dynamic libmirclient -> $mirclient_lib"
  16636. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16637. cat >>confdefs.h <<_ACEOF
  16638. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16639. _ACEOF
  16640. cat >>confdefs.h <<_ACEOF
  16641. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16642. _ACEOF
  16643. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16644. else
  16645. enable_mir_shared=no
  16646. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16647. SUMMARY_video="${SUMMARY_video} mir"
  16648. fi
  16649. have_video=yes
  16650. fi
  16651. fi
  16652. }
  16653. CheckNativeClient()
  16654. {
  16655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16656. /* end confdefs.h. */
  16657. #if !defined(__native_client__)
  16658. #error "NO NACL"
  16659. #endif
  16660. int
  16661. main ()
  16662. {
  16663. ;
  16664. return 0;
  16665. }
  16666. _ACEOF
  16667. if ac_fn_c_try_compile "$LINENO"; then :
  16668. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16669. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16670. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16671. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16672. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16673. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16674. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16675. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16676. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16677. SUMMARY_audio="${SUMMARY_audio} nacl"
  16678. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16679. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16680. fi
  16681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16682. }
  16683. CheckX11()
  16684. {
  16685. # Check whether --enable-video-x11 was given.
  16686. if test "${enable_video_x11+set}" = set; then :
  16687. enableval=$enable_video_x11;
  16688. else
  16689. enable_video_x11=yes
  16690. fi
  16691. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16692. case "$host" in
  16693. *-*-darwin*)
  16694. # This isn't necessary for X11, but fixes GLX detection
  16695. if test "x$x_includes" = xNONE && \
  16696. test "x$x_libraries" = xNONE && \
  16697. test -d /usr/X11R6/include && \
  16698. test -d /usr/X11R6/lib; then
  16699. x_includes="/usr/X11R6/include"
  16700. x_libraries="/usr/X11R6/lib"
  16701. fi
  16702. ;;
  16703. esac
  16704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16705. $as_echo_n "checking for X... " >&6; }
  16706. # Check whether --with-x was given.
  16707. if test "${with_x+set}" = set; then :
  16708. withval=$with_x;
  16709. fi
  16710. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16711. if test "x$with_x" = xno; then
  16712. # The user explicitly disabled X.
  16713. have_x=disabled
  16714. else
  16715. case $x_includes,$x_libraries in #(
  16716. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16717. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16718. $as_echo_n "(cached) " >&6
  16719. else
  16720. # One or both of the vars are not set, and there is no cached value.
  16721. ac_x_includes=no ac_x_libraries=no
  16722. rm -f -r conftest.dir
  16723. if mkdir conftest.dir; then
  16724. cd conftest.dir
  16725. cat >Imakefile <<'_ACEOF'
  16726. incroot:
  16727. @echo incroot='${INCROOT}'
  16728. usrlibdir:
  16729. @echo usrlibdir='${USRLIBDIR}'
  16730. libdir:
  16731. @echo libdir='${LIBDIR}'
  16732. _ACEOF
  16733. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16734. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16735. for ac_var in incroot usrlibdir libdir; do
  16736. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16737. done
  16738. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16739. for ac_extension in a so sl dylib la dll; do
  16740. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16741. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16742. ac_im_usrlibdir=$ac_im_libdir; break
  16743. fi
  16744. done
  16745. # Screen out bogus values from the imake configuration. They are
  16746. # bogus both because they are the default anyway, and because
  16747. # using them would break gcc on systems where it needs fixed includes.
  16748. case $ac_im_incroot in
  16749. /usr/include) ac_x_includes= ;;
  16750. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16751. esac
  16752. case $ac_im_usrlibdir in
  16753. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16754. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16755. esac
  16756. fi
  16757. cd ..
  16758. rm -f -r conftest.dir
  16759. fi
  16760. # Standard set of common directories for X headers.
  16761. # Check X11 before X11Rn because it is often a symlink to the current release.
  16762. ac_x_header_dirs='
  16763. /usr/X11/include
  16764. /usr/X11R7/include
  16765. /usr/X11R6/include
  16766. /usr/X11R5/include
  16767. /usr/X11R4/include
  16768. /usr/include/X11
  16769. /usr/include/X11R7
  16770. /usr/include/X11R6
  16771. /usr/include/X11R5
  16772. /usr/include/X11R4
  16773. /usr/local/X11/include
  16774. /usr/local/X11R7/include
  16775. /usr/local/X11R6/include
  16776. /usr/local/X11R5/include
  16777. /usr/local/X11R4/include
  16778. /usr/local/include/X11
  16779. /usr/local/include/X11R7
  16780. /usr/local/include/X11R6
  16781. /usr/local/include/X11R5
  16782. /usr/local/include/X11R4
  16783. /usr/X386/include
  16784. /usr/x386/include
  16785. /usr/XFree86/include/X11
  16786. /usr/include
  16787. /usr/local/include
  16788. /usr/unsupported/include
  16789. /usr/athena/include
  16790. /usr/local/x11r5/include
  16791. /usr/lpp/Xamples/include
  16792. /usr/openwin/include
  16793. /usr/openwin/share/include'
  16794. if test "$ac_x_includes" = no; then
  16795. # Guess where to find include files, by looking for Xlib.h.
  16796. # First, try using that file with no special directory specified.
  16797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16798. /* end confdefs.h. */
  16799. #include <X11/Xlib.h>
  16800. _ACEOF
  16801. if ac_fn_c_try_cpp "$LINENO"; then :
  16802. # We can compile using X headers with no special include directory.
  16803. ac_x_includes=
  16804. else
  16805. for ac_dir in $ac_x_header_dirs; do
  16806. if test -r "$ac_dir/X11/Xlib.h"; then
  16807. ac_x_includes=$ac_dir
  16808. break
  16809. fi
  16810. done
  16811. fi
  16812. rm -f conftest.err conftest.i conftest.$ac_ext
  16813. fi # $ac_x_includes = no
  16814. if test "$ac_x_libraries" = no; then
  16815. # Check for the libraries.
  16816. # See if we find them without any special options.
  16817. # Don't add to $LIBS permanently.
  16818. ac_save_LIBS=$LIBS
  16819. LIBS="-lX11 $LIBS"
  16820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16821. /* end confdefs.h. */
  16822. #include <X11/Xlib.h>
  16823. int
  16824. main ()
  16825. {
  16826. XrmInitialize ()
  16827. ;
  16828. return 0;
  16829. }
  16830. _ACEOF
  16831. if ac_fn_c_try_link "$LINENO"; then :
  16832. LIBS=$ac_save_LIBS
  16833. # We can link X programs with no special library path.
  16834. ac_x_libraries=
  16835. else
  16836. LIBS=$ac_save_LIBS
  16837. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16838. do
  16839. # Don't even attempt the hair of trying to link an X program!
  16840. for ac_extension in a so sl dylib la dll; do
  16841. if test -r "$ac_dir/libX11.$ac_extension"; then
  16842. ac_x_libraries=$ac_dir
  16843. break 2
  16844. fi
  16845. done
  16846. done
  16847. fi
  16848. rm -f core conftest.err conftest.$ac_objext \
  16849. conftest$ac_exeext conftest.$ac_ext
  16850. fi # $ac_x_libraries = no
  16851. case $ac_x_includes,$ac_x_libraries in #(
  16852. no,* | *,no | *\'*)
  16853. # Didn't find X, or a directory has "'" in its name.
  16854. ac_cv_have_x="have_x=no";; #(
  16855. *)
  16856. # Record where we found X for the cache.
  16857. ac_cv_have_x="have_x=yes\
  16858. ac_x_includes='$ac_x_includes'\
  16859. ac_x_libraries='$ac_x_libraries'"
  16860. esac
  16861. fi
  16862. ;; #(
  16863. *) have_x=yes;;
  16864. esac
  16865. eval "$ac_cv_have_x"
  16866. fi # $with_x != no
  16867. if test "$have_x" != yes; then
  16868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16869. $as_echo "$have_x" >&6; }
  16870. no_x=yes
  16871. else
  16872. # If each of the values was on the command line, it overrides each guess.
  16873. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16874. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16875. # Update the cache value to reflect the command line values.
  16876. ac_cv_have_x="have_x=yes\
  16877. ac_x_includes='$x_includes'\
  16878. ac_x_libraries='$x_libraries'"
  16879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16880. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16881. fi
  16882. if test "$no_x" = yes; then
  16883. # Not all programs may use this symbol, but it does not hurt to define it.
  16884. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16885. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16886. else
  16887. if test -n "$x_includes"; then
  16888. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16889. fi
  16890. # It would also be nice to do this for all -L options, not just this one.
  16891. if test -n "$x_libraries"; then
  16892. X_LIBS="$X_LIBS -L$x_libraries"
  16893. # For Solaris; some versions of Sun CC require a space after -R and
  16894. # others require no space. Words are not sufficient . . . .
  16895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16896. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16897. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16898. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16899. ac_c_werror_flag=yes
  16900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16901. /* end confdefs.h. */
  16902. int
  16903. main ()
  16904. {
  16905. ;
  16906. return 0;
  16907. }
  16908. _ACEOF
  16909. if ac_fn_c_try_link "$LINENO"; then :
  16910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16911. $as_echo "no" >&6; }
  16912. X_LIBS="$X_LIBS -R$x_libraries"
  16913. else
  16914. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16916. /* end confdefs.h. */
  16917. int
  16918. main ()
  16919. {
  16920. ;
  16921. return 0;
  16922. }
  16923. _ACEOF
  16924. if ac_fn_c_try_link "$LINENO"; then :
  16925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16926. $as_echo "yes" >&6; }
  16927. X_LIBS="$X_LIBS -R $x_libraries"
  16928. else
  16929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16930. $as_echo "neither works" >&6; }
  16931. fi
  16932. rm -f core conftest.err conftest.$ac_objext \
  16933. conftest$ac_exeext conftest.$ac_ext
  16934. fi
  16935. rm -f core conftest.err conftest.$ac_objext \
  16936. conftest$ac_exeext conftest.$ac_ext
  16937. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16938. LIBS=$ac_xsave_LIBS
  16939. fi
  16940. # Check for system-dependent libraries X programs must link with.
  16941. # Do this before checking for the system-independent R6 libraries
  16942. # (-lICE), since we may need -lsocket or whatever for X linking.
  16943. if test "$ISC" = yes; then
  16944. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16945. else
  16946. # Martyn Johnson says this is needed for Ultrix, if the X
  16947. # libraries were built with DECnet support. And Karl Berry says
  16948. # the Alpha needs dnet_stub (dnet does not exist).
  16949. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16951. /* end confdefs.h. */
  16952. /* Override any GCC internal prototype to avoid an error.
  16953. Use char because int might match the return type of a GCC
  16954. builtin and then its argument prototype would still apply. */
  16955. #ifdef __cplusplus
  16956. extern "C"
  16957. #endif
  16958. char XOpenDisplay ();
  16959. int
  16960. main ()
  16961. {
  16962. return XOpenDisplay ();
  16963. ;
  16964. return 0;
  16965. }
  16966. _ACEOF
  16967. if ac_fn_c_try_link "$LINENO"; then :
  16968. else
  16969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16970. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16971. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16972. $as_echo_n "(cached) " >&6
  16973. else
  16974. ac_check_lib_save_LIBS=$LIBS
  16975. LIBS="-ldnet $LIBS"
  16976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16977. /* end confdefs.h. */
  16978. /* Override any GCC internal prototype to avoid an error.
  16979. Use char because int might match the return type of a GCC
  16980. builtin and then its argument prototype would still apply. */
  16981. #ifdef __cplusplus
  16982. extern "C"
  16983. #endif
  16984. char dnet_ntoa ();
  16985. int
  16986. main ()
  16987. {
  16988. return dnet_ntoa ();
  16989. ;
  16990. return 0;
  16991. }
  16992. _ACEOF
  16993. if ac_fn_c_try_link "$LINENO"; then :
  16994. ac_cv_lib_dnet_dnet_ntoa=yes
  16995. else
  16996. ac_cv_lib_dnet_dnet_ntoa=no
  16997. fi
  16998. rm -f core conftest.err conftest.$ac_objext \
  16999. conftest$ac_exeext conftest.$ac_ext
  17000. LIBS=$ac_check_lib_save_LIBS
  17001. fi
  17002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17003. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17004. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17005. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17006. fi
  17007. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17009. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17010. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17011. $as_echo_n "(cached) " >&6
  17012. else
  17013. ac_check_lib_save_LIBS=$LIBS
  17014. LIBS="-ldnet_stub $LIBS"
  17015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17016. /* end confdefs.h. */
  17017. /* Override any GCC internal prototype to avoid an error.
  17018. Use char because int might match the return type of a GCC
  17019. builtin and then its argument prototype would still apply. */
  17020. #ifdef __cplusplus
  17021. extern "C"
  17022. #endif
  17023. char dnet_ntoa ();
  17024. int
  17025. main ()
  17026. {
  17027. return dnet_ntoa ();
  17028. ;
  17029. return 0;
  17030. }
  17031. _ACEOF
  17032. if ac_fn_c_try_link "$LINENO"; then :
  17033. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17034. else
  17035. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17036. fi
  17037. rm -f core conftest.err conftest.$ac_objext \
  17038. conftest$ac_exeext conftest.$ac_ext
  17039. LIBS=$ac_check_lib_save_LIBS
  17040. fi
  17041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17042. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17043. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17044. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17045. fi
  17046. fi
  17047. fi
  17048. rm -f core conftest.err conftest.$ac_objext \
  17049. conftest$ac_exeext conftest.$ac_ext
  17050. LIBS="$ac_xsave_LIBS"
  17051. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17052. # to get the SysV transport functions.
  17053. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17054. # needs -lnsl.
  17055. # The nsl library prevents programs from opening the X display
  17056. # on Irix 5.2, according to T.E. Dickey.
  17057. # The functions gethostbyname, getservbyname, and inet_addr are
  17058. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17059. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17060. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17061. fi
  17062. if test $ac_cv_func_gethostbyname = no; then
  17063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17064. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17065. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17066. $as_echo_n "(cached) " >&6
  17067. else
  17068. ac_check_lib_save_LIBS=$LIBS
  17069. LIBS="-lnsl $LIBS"
  17070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17071. /* end confdefs.h. */
  17072. /* Override any GCC internal prototype to avoid an error.
  17073. Use char because int might match the return type of a GCC
  17074. builtin and then its argument prototype would still apply. */
  17075. #ifdef __cplusplus
  17076. extern "C"
  17077. #endif
  17078. char gethostbyname ();
  17079. int
  17080. main ()
  17081. {
  17082. return gethostbyname ();
  17083. ;
  17084. return 0;
  17085. }
  17086. _ACEOF
  17087. if ac_fn_c_try_link "$LINENO"; then :
  17088. ac_cv_lib_nsl_gethostbyname=yes
  17089. else
  17090. ac_cv_lib_nsl_gethostbyname=no
  17091. fi
  17092. rm -f core conftest.err conftest.$ac_objext \
  17093. conftest$ac_exeext conftest.$ac_ext
  17094. LIBS=$ac_check_lib_save_LIBS
  17095. fi
  17096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17097. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17098. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17099. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17100. fi
  17101. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17103. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17104. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17105. $as_echo_n "(cached) " >&6
  17106. else
  17107. ac_check_lib_save_LIBS=$LIBS
  17108. LIBS="-lbsd $LIBS"
  17109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17110. /* end confdefs.h. */
  17111. /* Override any GCC internal prototype to avoid an error.
  17112. Use char because int might match the return type of a GCC
  17113. builtin and then its argument prototype would still apply. */
  17114. #ifdef __cplusplus
  17115. extern "C"
  17116. #endif
  17117. char gethostbyname ();
  17118. int
  17119. main ()
  17120. {
  17121. return gethostbyname ();
  17122. ;
  17123. return 0;
  17124. }
  17125. _ACEOF
  17126. if ac_fn_c_try_link "$LINENO"; then :
  17127. ac_cv_lib_bsd_gethostbyname=yes
  17128. else
  17129. ac_cv_lib_bsd_gethostbyname=no
  17130. fi
  17131. rm -f core conftest.err conftest.$ac_objext \
  17132. conftest$ac_exeext conftest.$ac_ext
  17133. LIBS=$ac_check_lib_save_LIBS
  17134. fi
  17135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17136. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17137. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17138. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17139. fi
  17140. fi
  17141. fi
  17142. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17143. # socket/setsockopt and other routines are undefined under SCO ODT
  17144. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17145. # on later versions), says Simon Leinen: it contains gethostby*
  17146. # variants that don't use the name server (or something). -lsocket
  17147. # must be given before -lnsl if both are needed. We assume that
  17148. # if connect needs -lnsl, so does gethostbyname.
  17149. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17150. if test "x$ac_cv_func_connect" = xyes; then :
  17151. fi
  17152. if test $ac_cv_func_connect = no; then
  17153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17154. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17155. if ${ac_cv_lib_socket_connect+:} false; then :
  17156. $as_echo_n "(cached) " >&6
  17157. else
  17158. ac_check_lib_save_LIBS=$LIBS
  17159. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17161. /* end confdefs.h. */
  17162. /* Override any GCC internal prototype to avoid an error.
  17163. Use char because int might match the return type of a GCC
  17164. builtin and then its argument prototype would still apply. */
  17165. #ifdef __cplusplus
  17166. extern "C"
  17167. #endif
  17168. char connect ();
  17169. int
  17170. main ()
  17171. {
  17172. return connect ();
  17173. ;
  17174. return 0;
  17175. }
  17176. _ACEOF
  17177. if ac_fn_c_try_link "$LINENO"; then :
  17178. ac_cv_lib_socket_connect=yes
  17179. else
  17180. ac_cv_lib_socket_connect=no
  17181. fi
  17182. rm -f core conftest.err conftest.$ac_objext \
  17183. conftest$ac_exeext conftest.$ac_ext
  17184. LIBS=$ac_check_lib_save_LIBS
  17185. fi
  17186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17187. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17188. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17189. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17190. fi
  17191. fi
  17192. # Guillermo Gomez says -lposix is necessary on A/UX.
  17193. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17194. if test "x$ac_cv_func_remove" = xyes; then :
  17195. fi
  17196. if test $ac_cv_func_remove = no; then
  17197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17198. $as_echo_n "checking for remove in -lposix... " >&6; }
  17199. if ${ac_cv_lib_posix_remove+:} false; then :
  17200. $as_echo_n "(cached) " >&6
  17201. else
  17202. ac_check_lib_save_LIBS=$LIBS
  17203. LIBS="-lposix $LIBS"
  17204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17205. /* end confdefs.h. */
  17206. /* Override any GCC internal prototype to avoid an error.
  17207. Use char because int might match the return type of a GCC
  17208. builtin and then its argument prototype would still apply. */
  17209. #ifdef __cplusplus
  17210. extern "C"
  17211. #endif
  17212. char remove ();
  17213. int
  17214. main ()
  17215. {
  17216. return remove ();
  17217. ;
  17218. return 0;
  17219. }
  17220. _ACEOF
  17221. if ac_fn_c_try_link "$LINENO"; then :
  17222. ac_cv_lib_posix_remove=yes
  17223. else
  17224. ac_cv_lib_posix_remove=no
  17225. fi
  17226. rm -f core conftest.err conftest.$ac_objext \
  17227. conftest$ac_exeext conftest.$ac_ext
  17228. LIBS=$ac_check_lib_save_LIBS
  17229. fi
  17230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17231. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17232. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17233. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17234. fi
  17235. fi
  17236. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17237. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17238. if test "x$ac_cv_func_shmat" = xyes; then :
  17239. fi
  17240. if test $ac_cv_func_shmat = no; then
  17241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17242. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17243. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17244. $as_echo_n "(cached) " >&6
  17245. else
  17246. ac_check_lib_save_LIBS=$LIBS
  17247. LIBS="-lipc $LIBS"
  17248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17249. /* end confdefs.h. */
  17250. /* Override any GCC internal prototype to avoid an error.
  17251. Use char because int might match the return type of a GCC
  17252. builtin and then its argument prototype would still apply. */
  17253. #ifdef __cplusplus
  17254. extern "C"
  17255. #endif
  17256. char shmat ();
  17257. int
  17258. main ()
  17259. {
  17260. return shmat ();
  17261. ;
  17262. return 0;
  17263. }
  17264. _ACEOF
  17265. if ac_fn_c_try_link "$LINENO"; then :
  17266. ac_cv_lib_ipc_shmat=yes
  17267. else
  17268. ac_cv_lib_ipc_shmat=no
  17269. fi
  17270. rm -f core conftest.err conftest.$ac_objext \
  17271. conftest$ac_exeext conftest.$ac_ext
  17272. LIBS=$ac_check_lib_save_LIBS
  17273. fi
  17274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17275. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17276. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17277. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17278. fi
  17279. fi
  17280. fi
  17281. # Check for libraries that X11R6 Xt/Xaw programs need.
  17282. ac_save_LDFLAGS=$LDFLAGS
  17283. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17284. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17285. # check for ICE first), but we must link in the order -lSM -lICE or
  17286. # we get undefined symbols. So assume we have SM if we have ICE.
  17287. # These have to be linked with before -lX11, unlike the other
  17288. # libraries we check for below, so use a different variable.
  17289. # John Interrante, Karl Berry
  17290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17291. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17292. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17293. $as_echo_n "(cached) " >&6
  17294. else
  17295. ac_check_lib_save_LIBS=$LIBS
  17296. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17298. /* end confdefs.h. */
  17299. /* Override any GCC internal prototype to avoid an error.
  17300. Use char because int might match the return type of a GCC
  17301. builtin and then its argument prototype would still apply. */
  17302. #ifdef __cplusplus
  17303. extern "C"
  17304. #endif
  17305. char IceConnectionNumber ();
  17306. int
  17307. main ()
  17308. {
  17309. return IceConnectionNumber ();
  17310. ;
  17311. return 0;
  17312. }
  17313. _ACEOF
  17314. if ac_fn_c_try_link "$LINENO"; then :
  17315. ac_cv_lib_ICE_IceConnectionNumber=yes
  17316. else
  17317. ac_cv_lib_ICE_IceConnectionNumber=no
  17318. fi
  17319. rm -f core conftest.err conftest.$ac_objext \
  17320. conftest$ac_exeext conftest.$ac_ext
  17321. LIBS=$ac_check_lib_save_LIBS
  17322. fi
  17323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17324. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17325. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17326. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17327. fi
  17328. LDFLAGS=$ac_save_LDFLAGS
  17329. fi
  17330. if test x$have_x = xyes; then
  17331. # Check whether --enable-x11-shared was given.
  17332. if test "${enable_x11_shared+set}" = set; then :
  17333. enableval=$enable_x11_shared;
  17334. else
  17335. enable_x11_shared=maybe
  17336. fi
  17337. case "$host" in
  17338. *-*-darwin*)
  17339. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17340. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17341. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17342. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17343. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17344. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17345. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17346. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17347. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17348. ;;
  17349. *-*-openbsd*)
  17350. x11_lib='libX11.so'
  17351. x11ext_lib='libXext.so'
  17352. xcursor_lib='libXcursor.so'
  17353. xinerama_lib='libXinerama.so'
  17354. xinput_lib='libXi.so'
  17355. xrandr_lib='libXrandr.so'
  17356. xrender_lib='libXrender.so'
  17357. xss_lib='libXss.so'
  17358. xvidmode_lib='libXxf86vm.so'
  17359. ;;
  17360. *)
  17361. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17362. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17363. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17364. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17365. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17366. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17367. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17368. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17369. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17370. ;;
  17371. esac
  17372. if test x$ac_cv_func_shmat != xyes; then
  17373. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17374. fi
  17375. CFLAGS="$CFLAGS $X_CFLAGS"
  17376. LDFLAGS="$LDFLAGS $X_LIBS"
  17377. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17378. #include <X11/Xproto.h>
  17379. "
  17380. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17381. have_xext_h_hdr=yes
  17382. else
  17383. have_xext_h_hdr=no
  17384. fi
  17385. if test x$have_xext_h_hdr != xyes; then
  17386. as_fn_error $? "
  17387. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17388. " "$LINENO" 5
  17389. fi
  17390. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17391. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17392. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17393. # Needed so SDL applications can include SDL_syswm.h
  17394. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17395. if test x$enable_x11_shared = xmaybe; then
  17396. enable_x11_shared=yes
  17397. fi
  17398. if test x$have_loadso != xyes && \
  17399. test x$enable_x11_shared = xyes; then
  17400. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17401. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17402. enable_x11_shared=no
  17403. fi
  17404. if test x$have_loadso = xyes && \
  17405. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17406. echo "-- dynamic libX11 -> $x11_lib"
  17407. echo "-- dynamic libX11ext -> $x11ext_lib"
  17408. cat >>confdefs.h <<_ACEOF
  17409. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17410. _ACEOF
  17411. cat >>confdefs.h <<_ACEOF
  17412. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17413. _ACEOF
  17414. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17415. else
  17416. enable_x11_shared=no
  17417. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17418. SUMMARY_video="${SUMMARY_video} x11"
  17419. fi
  17420. have_video=yes
  17421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17422. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17423. have_const_param_XextAddDisplay=no
  17424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17425. /* end confdefs.h. */
  17426. #include <X11/Xlib.h>
  17427. #include <X11/Xproto.h>
  17428. #include <X11/extensions/Xext.h>
  17429. #include <X11/extensions/extutil.h>
  17430. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17431. int
  17432. main ()
  17433. {
  17434. ;
  17435. return 0;
  17436. }
  17437. _ACEOF
  17438. if ac_fn_c_try_compile "$LINENO"; then :
  17439. have_const_param_XextAddDisplay=yes
  17440. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17441. fi
  17442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17444. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17446. $as_echo_n "checking for XGenericEvent... " >&6; }
  17447. have_XGenericEvent=no
  17448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17449. /* end confdefs.h. */
  17450. #include <X11/Xlib.h>
  17451. int
  17452. main ()
  17453. {
  17454. Display *display;
  17455. XEvent event;
  17456. XGenericEventCookie *cookie = &event.xcookie;
  17457. XNextEvent(display, &event);
  17458. XGetEventData(display, cookie);
  17459. XFreeEventData(display, cookie);
  17460. ;
  17461. return 0;
  17462. }
  17463. _ACEOF
  17464. if ac_fn_c_try_compile "$LINENO"; then :
  17465. have_XGenericEvent=yes
  17466. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17467. fi
  17468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17470. $as_echo "$have_XGenericEvent" >&6; }
  17471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17472. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17473. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17474. $as_echo_n "(cached) " >&6
  17475. else
  17476. ac_check_lib_save_LIBS=$LIBS
  17477. LIBS="-lX11 $LIBS"
  17478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17479. /* end confdefs.h. */
  17480. /* Override any GCC internal prototype to avoid an error.
  17481. Use char because int might match the return type of a GCC
  17482. builtin and then its argument prototype would still apply. */
  17483. #ifdef __cplusplus
  17484. extern "C"
  17485. #endif
  17486. char XkbKeycodeToKeysym ();
  17487. int
  17488. main ()
  17489. {
  17490. return XkbKeycodeToKeysym ();
  17491. ;
  17492. return 0;
  17493. }
  17494. _ACEOF
  17495. if ac_fn_c_try_link "$LINENO"; then :
  17496. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17497. else
  17498. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17499. fi
  17500. rm -f core conftest.err conftest.$ac_objext \
  17501. conftest$ac_exeext conftest.$ac_ext
  17502. LIBS=$ac_check_lib_save_LIBS
  17503. fi
  17504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17505. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17506. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17507. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17508. fi
  17509. # Check whether --enable-video-x11-xcursor was given.
  17510. if test "${enable_video_x11_xcursor+set}" = set; then :
  17511. enableval=$enable_video_x11_xcursor;
  17512. else
  17513. enable_video_x11_xcursor=yes
  17514. fi
  17515. if test x$enable_video_x11_xcursor = xyes; then
  17516. definitely_enable_video_x11_xcursor=no
  17517. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17518. "
  17519. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17520. have_xcursor_h_hdr=yes
  17521. else
  17522. have_xcursor_h_hdr=no
  17523. fi
  17524. if test x$have_xcursor_h_hdr = xyes; then
  17525. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17526. echo "-- dynamic libXcursor -> $xcursor_lib"
  17527. cat >>confdefs.h <<_ACEOF
  17528. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17529. _ACEOF
  17530. definitely_enable_video_x11_xcursor=yes
  17531. else
  17532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17533. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17534. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17535. $as_echo_n "(cached) " >&6
  17536. else
  17537. ac_check_lib_save_LIBS=$LIBS
  17538. LIBS="-lXcursor $LIBS"
  17539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17540. /* end confdefs.h. */
  17541. /* Override any GCC internal prototype to avoid an error.
  17542. Use char because int might match the return type of a GCC
  17543. builtin and then its argument prototype would still apply. */
  17544. #ifdef __cplusplus
  17545. extern "C"
  17546. #endif
  17547. char XcursorImageCreate ();
  17548. int
  17549. main ()
  17550. {
  17551. return XcursorImageCreate ();
  17552. ;
  17553. return 0;
  17554. }
  17555. _ACEOF
  17556. if ac_fn_c_try_link "$LINENO"; then :
  17557. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17558. else
  17559. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17560. fi
  17561. rm -f core conftest.err conftest.$ac_objext \
  17562. conftest$ac_exeext conftest.$ac_ext
  17563. LIBS=$ac_check_lib_save_LIBS
  17564. fi
  17565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17566. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17567. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17568. have_xcursor_lib=yes
  17569. fi
  17570. if test x$have_xcursor_lib = xyes ; then
  17571. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17572. definitely_enable_video_x11_xcursor=yes
  17573. fi
  17574. fi
  17575. fi
  17576. fi
  17577. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17578. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17579. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17580. fi
  17581. # Check whether --enable-video-x11-xdbe was given.
  17582. if test "${enable_video_x11_xdbe+set}" = set; then :
  17583. enableval=$enable_video_x11_xdbe;
  17584. else
  17585. enable_video_x11_xdbe=yes
  17586. fi
  17587. if test x$enable_video_x11_xdbe = xyes; then
  17588. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17589. "
  17590. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17591. have_dbe_h_hdr=yes
  17592. else
  17593. have_dbe_h_hdr=no
  17594. fi
  17595. if test x$have_dbe_h_hdr = xyes; then
  17596. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17597. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17598. fi
  17599. fi
  17600. # Check whether --enable-video-x11-xinerama was given.
  17601. if test "${enable_video_x11_xinerama+set}" = set; then :
  17602. enableval=$enable_video_x11_xinerama;
  17603. else
  17604. enable_video_x11_xinerama=yes
  17605. fi
  17606. if test x$enable_video_x11_xinerama = xyes; then
  17607. definitely_enable_video_x11_xinerama=no
  17608. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17609. "
  17610. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17611. have_xinerama_h_hdr=yes
  17612. else
  17613. have_xinerama_h_hdr=no
  17614. fi
  17615. if test x$have_xinerama_h_hdr = xyes; then
  17616. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17617. echo "-- dynamic libXinerama -> $xinerama_lib"
  17618. cat >>confdefs.h <<_ACEOF
  17619. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17620. _ACEOF
  17621. definitely_enable_video_x11_xinerama=yes
  17622. else
  17623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17624. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17625. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17626. $as_echo_n "(cached) " >&6
  17627. else
  17628. ac_check_lib_save_LIBS=$LIBS
  17629. LIBS="-lXinerama $LIBS"
  17630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17631. /* end confdefs.h. */
  17632. /* Override any GCC internal prototype to avoid an error.
  17633. Use char because int might match the return type of a GCC
  17634. builtin and then its argument prototype would still apply. */
  17635. #ifdef __cplusplus
  17636. extern "C"
  17637. #endif
  17638. char XineramaQueryExtension ();
  17639. int
  17640. main ()
  17641. {
  17642. return XineramaQueryExtension ();
  17643. ;
  17644. return 0;
  17645. }
  17646. _ACEOF
  17647. if ac_fn_c_try_link "$LINENO"; then :
  17648. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17649. else
  17650. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17651. fi
  17652. rm -f core conftest.err conftest.$ac_objext \
  17653. conftest$ac_exeext conftest.$ac_ext
  17654. LIBS=$ac_check_lib_save_LIBS
  17655. fi
  17656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17657. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17658. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17659. have_xinerama_lib=yes
  17660. fi
  17661. if test x$have_xinerama_lib = xyes ; then
  17662. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17663. definitely_enable_video_x11_xinerama=yes
  17664. fi
  17665. fi
  17666. fi
  17667. fi
  17668. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17669. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17670. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17671. fi
  17672. # Check whether --enable-video-x11-xinput was given.
  17673. if test "${enable_video_x11_xinput+set}" = set; then :
  17674. enableval=$enable_video_x11_xinput;
  17675. else
  17676. enable_video_x11_xinput=yes
  17677. fi
  17678. if test x$enable_video_x11_xinput = xyes; then
  17679. definitely_enable_video_x11_xinput=no
  17680. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17681. "
  17682. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17683. have_xinput_h_hdr=yes
  17684. else
  17685. have_xinput_h_hdr=no
  17686. fi
  17687. if test x$have_xinput_h_hdr = xyes; then
  17688. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17689. echo "-- dynamic libXi -> $xinput_lib"
  17690. cat >>confdefs.h <<_ACEOF
  17691. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17692. _ACEOF
  17693. definitely_enable_video_x11_xinput=yes
  17694. else
  17695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17696. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17697. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17698. $as_echo_n "(cached) " >&6
  17699. else
  17700. ac_check_lib_save_LIBS=$LIBS
  17701. LIBS="-lXi $LIBS"
  17702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17703. /* end confdefs.h. */
  17704. /* Override any GCC internal prototype to avoid an error.
  17705. Use char because int might match the return type of a GCC
  17706. builtin and then its argument prototype would still apply. */
  17707. #ifdef __cplusplus
  17708. extern "C"
  17709. #endif
  17710. char XOpenDevice ();
  17711. int
  17712. main ()
  17713. {
  17714. return XOpenDevice ();
  17715. ;
  17716. return 0;
  17717. }
  17718. _ACEOF
  17719. if ac_fn_c_try_link "$LINENO"; then :
  17720. ac_cv_lib_Xi_XOpenDevice=yes
  17721. else
  17722. ac_cv_lib_Xi_XOpenDevice=no
  17723. fi
  17724. rm -f core conftest.err conftest.$ac_objext \
  17725. conftest$ac_exeext conftest.$ac_ext
  17726. LIBS=$ac_check_lib_save_LIBS
  17727. fi
  17728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17729. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17730. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17731. have_xinput_lib=yes
  17732. fi
  17733. if test x$have_xinput_lib = xyes ; then
  17734. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17735. definitely_enable_video_x11_xinput=yes
  17736. fi
  17737. fi
  17738. fi
  17739. fi
  17740. if test x$definitely_enable_video_x11_xinput = xyes; then
  17741. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17742. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17744. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17745. have_xinput2_multitouch=no
  17746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17747. /* end confdefs.h. */
  17748. #include <X11/Xlib.h>
  17749. #include <X11/Xproto.h>
  17750. #include <X11/extensions/XInput2.h>
  17751. int
  17752. main ()
  17753. {
  17754. int event_type = XI_TouchBegin;
  17755. XITouchClassInfo *t;
  17756. ;
  17757. return 0;
  17758. }
  17759. _ACEOF
  17760. if ac_fn_c_try_compile "$LINENO"; then :
  17761. have_xinput2_multitouch=yes
  17762. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17763. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17764. fi
  17765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17767. $as_echo "$have_xinput2_multitouch" >&6; }
  17768. fi
  17769. # Check whether --enable-video-x11-xrandr was given.
  17770. if test "${enable_video_x11_xrandr+set}" = set; then :
  17771. enableval=$enable_video_x11_xrandr;
  17772. else
  17773. enable_video_x11_xrandr=yes
  17774. fi
  17775. if test x$enable_video_x11_xrandr = xyes; then
  17776. definitely_enable_video_x11_xrandr=no
  17777. have_xrandr_h_hdr=no
  17778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17779. /* end confdefs.h. */
  17780. #include <X11/Xlib.h>
  17781. #include <X11/extensions/Xrandr.h>
  17782. int
  17783. main ()
  17784. {
  17785. XRRScreenResources *res = NULL;
  17786. ;
  17787. return 0;
  17788. }
  17789. _ACEOF
  17790. if ac_fn_c_try_compile "$LINENO"; then :
  17791. have_xrandr_h_hdr=yes
  17792. fi
  17793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17794. if test x$have_xrandr_h_hdr = xyes; then
  17795. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17796. echo "-- dynamic libXrandr -> $xrandr_lib"
  17797. cat >>confdefs.h <<_ACEOF
  17798. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17799. _ACEOF
  17800. definitely_enable_video_x11_xrandr=yes
  17801. else
  17802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17803. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17804. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17805. $as_echo_n "(cached) " >&6
  17806. else
  17807. ac_check_lib_save_LIBS=$LIBS
  17808. LIBS="-lXrandr $LIBS"
  17809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17810. /* end confdefs.h. */
  17811. /* Override any GCC internal prototype to avoid an error.
  17812. Use char because int might match the return type of a GCC
  17813. builtin and then its argument prototype would still apply. */
  17814. #ifdef __cplusplus
  17815. extern "C"
  17816. #endif
  17817. char XRRQueryExtension ();
  17818. int
  17819. main ()
  17820. {
  17821. return XRRQueryExtension ();
  17822. ;
  17823. return 0;
  17824. }
  17825. _ACEOF
  17826. if ac_fn_c_try_link "$LINENO"; then :
  17827. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17828. else
  17829. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17830. fi
  17831. rm -f core conftest.err conftest.$ac_objext \
  17832. conftest$ac_exeext conftest.$ac_ext
  17833. LIBS=$ac_check_lib_save_LIBS
  17834. fi
  17835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17836. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17837. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17838. have_xrandr_lib=yes
  17839. fi
  17840. if test x$have_xrandr_lib = xyes ; then
  17841. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17842. definitely_enable_video_x11_xrandr=yes
  17843. fi
  17844. fi
  17845. fi
  17846. fi
  17847. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17848. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17849. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17850. fi
  17851. # Check whether --enable-video-x11-scrnsaver was given.
  17852. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17853. enableval=$enable_video_x11_scrnsaver;
  17854. else
  17855. enable_video_x11_scrnsaver=yes
  17856. fi
  17857. if test x$enable_video_x11_scrnsaver = xyes; then
  17858. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17859. "
  17860. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17861. have_scrnsaver_h_hdr=yes
  17862. else
  17863. have_scrnsaver_h_hdr=no
  17864. fi
  17865. if test x$have_scrnsaver_h_hdr = xyes; then
  17866. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17867. echo "-- dynamic libXss -> $xss_lib"
  17868. cat >>confdefs.h <<_ACEOF
  17869. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17870. _ACEOF
  17871. definitely_enable_video_x11_scrnsaver=yes
  17872. else
  17873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17874. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17875. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17876. $as_echo_n "(cached) " >&6
  17877. else
  17878. ac_check_lib_save_LIBS=$LIBS
  17879. LIBS="-lXss $LIBS"
  17880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17881. /* end confdefs.h. */
  17882. /* Override any GCC internal prototype to avoid an error.
  17883. Use char because int might match the return type of a GCC
  17884. builtin and then its argument prototype would still apply. */
  17885. #ifdef __cplusplus
  17886. extern "C"
  17887. #endif
  17888. char XScreenSaverSuspend ();
  17889. int
  17890. main ()
  17891. {
  17892. return XScreenSaverSuspend ();
  17893. ;
  17894. return 0;
  17895. }
  17896. _ACEOF
  17897. if ac_fn_c_try_link "$LINENO"; then :
  17898. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17899. else
  17900. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17901. fi
  17902. rm -f core conftest.err conftest.$ac_objext \
  17903. conftest$ac_exeext conftest.$ac_ext
  17904. LIBS=$ac_check_lib_save_LIBS
  17905. fi
  17906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17907. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17908. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17909. have_xss_lib=yes
  17910. fi
  17911. if test x$have_xss_lib = xyes ; then
  17912. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17913. definitely_enable_video_x11_scrnsaver=yes
  17914. fi
  17915. fi
  17916. fi
  17917. fi
  17918. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17919. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17920. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17921. fi
  17922. # Check whether --enable-video-x11-xshape was given.
  17923. if test "${enable_video_x11_xshape+set}" = set; then :
  17924. enableval=$enable_video_x11_xshape;
  17925. else
  17926. enable_video_x11_xshape=yes
  17927. fi
  17928. if test x$enable_video_x11_xshape = xyes; then
  17929. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17930. "
  17931. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17932. have_shape_h_hdr=yes
  17933. else
  17934. have_shape_h_hdr=no
  17935. fi
  17936. if test x$have_shape_h_hdr = xyes; then
  17937. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17938. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  17939. fi
  17940. fi
  17941. # Check whether --enable-video-x11-vm was given.
  17942. if test "${enable_video_x11_vm+set}" = set; then :
  17943. enableval=$enable_video_x11_vm;
  17944. else
  17945. enable_video_x11_vm=yes
  17946. fi
  17947. if test x$enable_video_x11_vm = xyes; then
  17948. definitely_enable_video_x11_vm=no
  17949. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17950. "
  17951. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17952. have_vm_h_hdr=yes
  17953. else
  17954. have_vm_h_hdr=no
  17955. fi
  17956. if test x$have_vm_h_hdr = xyes; then
  17957. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17958. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17959. cat >>confdefs.h <<_ACEOF
  17960. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17961. _ACEOF
  17962. definitely_enable_video_x11_vm=yes
  17963. else
  17964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17965. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17966. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17967. $as_echo_n "(cached) " >&6
  17968. else
  17969. ac_check_lib_save_LIBS=$LIBS
  17970. LIBS="-lXxf86vm $LIBS"
  17971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17972. /* end confdefs.h. */
  17973. /* Override any GCC internal prototype to avoid an error.
  17974. Use char because int might match the return type of a GCC
  17975. builtin and then its argument prototype would still apply. */
  17976. #ifdef __cplusplus
  17977. extern "C"
  17978. #endif
  17979. char XF86VidModeQueryVersion ();
  17980. int
  17981. main ()
  17982. {
  17983. return XF86VidModeQueryVersion ();
  17984. ;
  17985. return 0;
  17986. }
  17987. _ACEOF
  17988. if ac_fn_c_try_link "$LINENO"; then :
  17989. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17990. else
  17991. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17992. fi
  17993. rm -f core conftest.err conftest.$ac_objext \
  17994. conftest$ac_exeext conftest.$ac_ext
  17995. LIBS=$ac_check_lib_save_LIBS
  17996. fi
  17997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17998. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17999. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18000. have_vm_lib=yes
  18001. fi
  18002. if test x$have_vm_lib = xyes ; then
  18003. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18004. definitely_enable_video_x11_vm=yes
  18005. fi
  18006. fi
  18007. fi
  18008. fi
  18009. if test x$definitely_enable_video_x11_vm = xyes; then
  18010. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18011. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18012. fi
  18013. fi
  18014. fi
  18015. }
  18016. CheckVivanteVideo()
  18017. {
  18018. # Check whether --enable-video-vivante was given.
  18019. if test "${enable_video_vivante+set}" = set; then :
  18020. enableval=$enable_video_vivante;
  18021. else
  18022. enable_video_vivante=yes
  18023. fi
  18024. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18026. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18027. have_vivante_vdk=no
  18028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18029. /* end confdefs.h. */
  18030. #define LINUX
  18031. #define EGL_API_FB
  18032. #include <gc_vdk.h>
  18033. int
  18034. main ()
  18035. {
  18036. ;
  18037. return 0;
  18038. }
  18039. _ACEOF
  18040. if ac_fn_c_try_compile "$LINENO"; then :
  18041. have_vivante_vdk=yes
  18042. fi
  18043. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18045. $as_echo "$have_vivante_vdk" >&6; }
  18046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18047. $as_echo_n "checking for Vivante FB API... " >&6; }
  18048. have_vivante_egl=no
  18049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18050. /* end confdefs.h. */
  18051. #define LINUX
  18052. #define EGL_API_FB
  18053. #include <EGL/eglvivante.h>
  18054. int
  18055. main ()
  18056. {
  18057. ;
  18058. return 0;
  18059. }
  18060. _ACEOF
  18061. if ac_fn_c_try_compile "$LINENO"; then :
  18062. have_vivante_egl=yes
  18063. fi
  18064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18066. $as_echo "$have_vivante_egl" >&6; }
  18067. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18068. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18069. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18070. if test x$have_vivante_vdk = xyes; then
  18071. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18072. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18073. fi
  18074. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18075. SUMMARY_video="${SUMMARY_video} vivante"
  18076. have_video=yes
  18077. fi
  18078. fi
  18079. }
  18080. CheckHaikuVideo()
  18081. {
  18082. if test x$enable_video = xyes; then
  18083. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18084. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18085. have_video=yes
  18086. SUMMARY_video="${SUMMARY_video} haiku"
  18087. fi
  18088. }
  18089. CheckCOCOA()
  18090. {
  18091. # Check whether --enable-video-cocoa was given.
  18092. if test "${enable_video_cocoa+set}" = set; then :
  18093. enableval=$enable_video_cocoa;
  18094. else
  18095. enable_video_cocoa=yes
  18096. fi
  18097. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18098. save_CFLAGS="$CFLAGS"
  18099. CFLAGS="$CFLAGS -x objective-c"
  18100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18101. $as_echo_n "checking for Cocoa framework... " >&6; }
  18102. have_cocoa=no
  18103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18104. /* end confdefs.h. */
  18105. #import <Cocoa/Cocoa.h>
  18106. int
  18107. main ()
  18108. {
  18109. ;
  18110. return 0;
  18111. }
  18112. _ACEOF
  18113. if ac_fn_c_try_compile "$LINENO"; then :
  18114. have_cocoa=yes
  18115. fi
  18116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18118. $as_echo "$have_cocoa" >&6; }
  18119. CFLAGS="$save_CFLAGS"
  18120. if test x$have_cocoa = xyes; then
  18121. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18122. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18123. SUMMARY_video="${SUMMARY_video} cocoa"
  18124. have_video=yes
  18125. fi
  18126. fi
  18127. }
  18128. CheckDirectFB()
  18129. {
  18130. # Check whether --enable-video-directfb was given.
  18131. if test "${enable_video_directfb+set}" = set; then :
  18132. enableval=$enable_video_directfb;
  18133. else
  18134. enable_video_directfb=no
  18135. fi
  18136. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18137. video_directfb=no
  18138. DIRECTFB_REQUIRED_VERSION=1.0.0
  18139. for ac_prog in directfb-config
  18140. do
  18141. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18142. set dummy $ac_prog; ac_word=$2
  18143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18144. $as_echo_n "checking for $ac_word... " >&6; }
  18145. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  18146. $as_echo_n "(cached) " >&6
  18147. else
  18148. case $DIRECTFBCONFIG in
  18149. [\\/]* | ?:[\\/]*)
  18150. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  18151. ;;
  18152. *)
  18153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18154. as_dummy="$prefix/bin:$PATH"
  18155. for as_dir in $as_dummy
  18156. do
  18157. IFS=$as_save_IFS
  18158. test -z "$as_dir" && as_dir=.
  18159. for ac_exec_ext in '' $ac_executable_extensions; do
  18160. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18161. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18162. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18163. break 2
  18164. fi
  18165. done
  18166. done
  18167. IFS=$as_save_IFS
  18168. ;;
  18169. esac
  18170. fi
  18171. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  18172. if test -n "$DIRECTFBCONFIG"; then
  18173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  18174. $as_echo "$DIRECTFBCONFIG" >&6; }
  18175. else
  18176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18177. $as_echo "no" >&6; }
  18178. fi
  18179. test -n "$DIRECTFBCONFIG" && break
  18180. done
  18181. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  18182. if test x$DIRECTFBCONFIG = xno; then
  18183. # Extract the first word of "pkg-config", so it can be a program name with args.
  18184. set dummy pkg-config; ac_word=$2
  18185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18186. $as_echo_n "checking for $ac_word... " >&6; }
  18187. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18188. $as_echo_n "(cached) " >&6
  18189. else
  18190. case $PKG_CONFIG in
  18191. [\\/]* | ?:[\\/]*)
  18192. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18193. ;;
  18194. *)
  18195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18196. for as_dir in $PATH
  18197. do
  18198. IFS=$as_save_IFS
  18199. test -z "$as_dir" && as_dir=.
  18200. for ac_exec_ext in '' $ac_executable_extensions; do
  18201. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18202. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18203. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18204. break 2
  18205. fi
  18206. done
  18207. done
  18208. IFS=$as_save_IFS
  18209. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18210. ;;
  18211. esac
  18212. fi
  18213. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18214. if test -n "$PKG_CONFIG"; then
  18215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18216. $as_echo "$PKG_CONFIG" >&6; }
  18217. else
  18218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18219. $as_echo "no" >&6; }
  18220. fi
  18221. if test x$PKG_CONFIG != xno; then
  18222. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  18223. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  18224. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  18225. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  18226. video_directfb=yes
  18227. fi
  18228. fi
  18229. else
  18230. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  18231. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18232. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  18233. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18234. if test $HAVE_VERSION -ge $NEED_VERSION; then
  18235. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  18236. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  18237. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  18238. video_directfb=yes
  18239. fi
  18240. fi
  18241. if test x$video_directfb = xyes; then
  18242. # SuSE 11.1 installs directfb-config without directfb-devel
  18243. save_CPPFLAGS="$CPPFLAGS"
  18244. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18245. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18246. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18247. have_directfb_hdr=yes
  18248. else
  18249. have_directfb_hdr=no
  18250. fi
  18251. CPPFLAGS="$save_CPPFLAGS"
  18252. video_directfb=$have_directfb_hdr
  18253. fi
  18254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  18255. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  18256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  18257. $as_echo "$video_directfb" >&6; }
  18258. if test x$video_directfb = xyes; then
  18259. # Check whether --enable-directfb-shared was given.
  18260. if test "${enable_directfb_shared+set}" = set; then :
  18261. enableval=$enable_directfb_shared;
  18262. else
  18263. enable_directfb_shared=yes
  18264. fi
  18265. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18266. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18267. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18268. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18270. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18271. directfb_shared=no
  18272. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18273. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18274. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18275. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18276. if test x$have_loadso != xyes && \
  18277. test x$enable_directfb_shared = xyes; then
  18278. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18279. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18280. fi
  18281. if test x$have_loadso = xyes && \
  18282. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18283. directfb_shared=yes
  18284. echo "-- $directfb_lib_spec -> $directfb_lib"
  18285. cat >>confdefs.h <<_ACEOF
  18286. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18287. _ACEOF
  18288. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18289. else
  18290. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18291. SUMMARY_video="${SUMMARY_video} directfb"
  18292. fi
  18293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18294. $as_echo "$directfb_shared" >&6; }
  18295. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18296. have_video=yes
  18297. fi
  18298. fi
  18299. }
  18300. CheckKMSDRM()
  18301. {
  18302. # Check whether --enable-video-kmsdrm was given.
  18303. if test "${enable_video_kmsdrm+set}" = set; then :
  18304. enableval=$enable_video_kmsdrm;
  18305. else
  18306. enable_video_kmsdrm=no
  18307. fi
  18308. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18309. video_kmsdrm=no
  18310. libdrm_avail=no
  18311. libgbm_avail=no
  18312. LIBDRM_REQUIRED_VERSION=2.4.46
  18313. LIBGBM_REQUIRED_VERSION=9.0.0
  18314. # Extract the first word of "pkg-config", so it can be a program name with args.
  18315. set dummy pkg-config; ac_word=$2
  18316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18317. $as_echo_n "checking for $ac_word... " >&6; }
  18318. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18319. $as_echo_n "(cached) " >&6
  18320. else
  18321. case $PKG_CONFIG in
  18322. [\\/]* | ?:[\\/]*)
  18323. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18324. ;;
  18325. *)
  18326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18327. for as_dir in $PATH
  18328. do
  18329. IFS=$as_save_IFS
  18330. test -z "$as_dir" && as_dir=.
  18331. for ac_exec_ext in '' $ac_executable_extensions; do
  18332. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18333. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18334. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18335. break 2
  18336. fi
  18337. done
  18338. done
  18339. IFS=$as_save_IFS
  18340. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18341. ;;
  18342. esac
  18343. fi
  18344. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18345. if test -n "$PKG_CONFIG"; then
  18346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18347. $as_echo "$PKG_CONFIG" >&6; }
  18348. else
  18349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18350. $as_echo "no" >&6; }
  18351. fi
  18352. if test x$PKG_CONFIG != xno; then
  18353. if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then
  18354. if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then
  18355. LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm`
  18356. LIBDRM_LIBS=`$PKG_CONFIG --libs libdrm`
  18357. LIBDRM_PREFIX=`$PKG_CONFIG --variable=prefix libdrm`
  18358. libdrm_avail=yes
  18359. fi
  18360. if $PKG_CONFIG --atleast-version $LIBGBM_REQUIRED_VERSION gbm; then
  18361. LIBGBM_CFLAGS=`$PKG_CONFIG --cflags gbm`
  18362. LIBGBM_LIBS=`$PKG_CONFIG --libs gbm`
  18363. LIBGBM_PREFIX=`$PKG_CONFIG --variable=prefix gbm`
  18364. libgbm_avail=yes
  18365. fi
  18366. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18367. video_kmsdrm=yes
  18368. fi
  18369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support" >&5
  18370. $as_echo_n "checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_avail" >&5
  18372. $as_echo "$libdrm_avail" >&6; }
  18373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support" >&5
  18374. $as_echo_n "checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgbm_avail" >&5
  18376. $as_echo "$libgbm_avail" >&6; }
  18377. if test x$video_kmsdrm = xyes; then
  18378. # Check whether --enable-kmsdrm-shared was given.
  18379. if test "${enable_kmsdrm_shared+set}" = set; then :
  18380. enableval=$enable_kmsdrm_shared;
  18381. else
  18382. enable_kmsdrm_shared=yes
  18383. fi
  18384. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18385. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18386. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18388. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18389. kmsdrm_shared=no
  18390. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18391. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18392. if test x$have_loadso != xyes && \
  18393. test x$enable_kmsdrm_shared = xyes; then
  18394. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18395. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18396. fi
  18397. if test x$have_loadso = xyes && \
  18398. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18399. kmsdrm_shared=yes
  18400. cat >>confdefs.h <<_ACEOF
  18401. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18402. _ACEOF
  18403. cat >>confdefs.h <<_ACEOF
  18404. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18405. _ACEOF
  18406. cat >>confdefs.h <<_ACEOF
  18407. #define HAVE_KMSDRM_SHARED "TRUE"
  18408. _ACEOF
  18409. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18410. else
  18411. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18412. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18413. fi
  18414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18415. $as_echo "$kmsdrm_shared" >&6; }
  18416. have_video=yes
  18417. fi
  18418. fi
  18419. fi
  18420. fi
  18421. }
  18422. CheckDummyVideo()
  18423. {
  18424. # Check whether --enable-video-dummy was given.
  18425. if test "${enable_video_dummy+set}" = set; then :
  18426. enableval=$enable_video_dummy;
  18427. else
  18428. enable_video_dummy=yes
  18429. fi
  18430. if test x$enable_video_dummy = xyes; then
  18431. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18432. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18433. have_video=yes
  18434. SUMMARY_video="${SUMMARY_video} dummy"
  18435. fi
  18436. }
  18437. CheckQNXVideo()
  18438. {
  18439. if test x$enable_video = xyes; then
  18440. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  18441. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  18442. have_video=yes
  18443. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  18444. SUMMARY_video="${SUMMARY_video} qnx"
  18445. fi
  18446. }
  18447. CheckQNXAudio()
  18448. {
  18449. if test x$enable_audio = xyes; then
  18450. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  18451. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  18452. have_audio=yes
  18453. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  18454. SUMMARY_audio="${SUMMARY_audio} qsa"
  18455. fi
  18456. }
  18457. # Check whether --enable-video-opengl was given.
  18458. if test "${enable_video_opengl+set}" = set; then :
  18459. enableval=$enable_video_opengl;
  18460. else
  18461. enable_video_opengl=yes
  18462. fi
  18463. CheckOpenGLX11()
  18464. {
  18465. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18467. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18468. video_opengl=no
  18469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18470. /* end confdefs.h. */
  18471. #include <GL/gl.h>
  18472. #include <GL/glx.h>
  18473. int
  18474. main ()
  18475. {
  18476. ;
  18477. return 0;
  18478. }
  18479. _ACEOF
  18480. if ac_fn_c_try_compile "$LINENO"; then :
  18481. video_opengl=yes
  18482. fi
  18483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18485. $as_echo "$video_opengl" >&6; }
  18486. if test x$video_opengl = xyes; then
  18487. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18488. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18489. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18490. SUMMARY_video="${SUMMARY_video} opengl"
  18491. fi
  18492. fi
  18493. }
  18494. # Check whether --enable-video-opengles was given.
  18495. if test "${enable_video_opengles+set}" = set; then :
  18496. enableval=$enable_video_opengles;
  18497. else
  18498. enable_video_opengles=yes
  18499. fi
  18500. # Check whether --enable-video-opengles1 was given.
  18501. if test "${enable_video_opengles1+set}" = set; then :
  18502. enableval=$enable_video_opengles1;
  18503. else
  18504. enable_video_opengles1=yes
  18505. fi
  18506. # Check whether --enable-video-opengles2 was given.
  18507. if test "${enable_video_opengles2+set}" = set; then :
  18508. enableval=$enable_video_opengles2;
  18509. else
  18510. enable_video_opengles2=yes
  18511. fi
  18512. CheckOpenGLESX11()
  18513. {
  18514. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18516. $as_echo_n "checking for EGL support... " >&6; }
  18517. video_opengl_egl=no
  18518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18519. /* end confdefs.h. */
  18520. #define LINUX
  18521. #define EGL_API_FB
  18522. #include <EGL/egl.h>
  18523. #include <EGL/eglext.h>
  18524. int
  18525. main ()
  18526. {
  18527. ;
  18528. return 0;
  18529. }
  18530. _ACEOF
  18531. if ac_fn_c_try_compile "$LINENO"; then :
  18532. video_opengl_egl=yes
  18533. fi
  18534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18536. $as_echo "$video_opengl_egl" >&6; }
  18537. if test x$video_opengl_egl = xyes; then
  18538. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18539. fi
  18540. if test x$enable_video_opengles1 = xyes; then
  18541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18542. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18543. video_opengles_v1=no
  18544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18545. /* end confdefs.h. */
  18546. #include <GLES/gl.h>
  18547. #include <GLES/glext.h>
  18548. int
  18549. main ()
  18550. {
  18551. ;
  18552. return 0;
  18553. }
  18554. _ACEOF
  18555. if ac_fn_c_try_compile "$LINENO"; then :
  18556. video_opengles_v1=yes
  18557. fi
  18558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18560. $as_echo "$video_opengles_v1" >&6; }
  18561. if test x$video_opengles_v1 = xyes; then
  18562. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18563. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18564. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18565. fi
  18566. fi
  18567. if test x$enable_video_opengles2 = xyes; then
  18568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18569. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18570. video_opengles_v2=no
  18571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18572. /* end confdefs.h. */
  18573. #include <GLES2/gl2.h>
  18574. #include <GLES2/gl2ext.h>
  18575. int
  18576. main ()
  18577. {
  18578. ;
  18579. return 0;
  18580. }
  18581. _ACEOF
  18582. if ac_fn_c_try_compile "$LINENO"; then :
  18583. video_opengles_v2=yes
  18584. fi
  18585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18587. $as_echo "$video_opengles_v2" >&6; }
  18588. if test x$video_opengles_v2 = xyes; then
  18589. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18590. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18591. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18592. fi
  18593. fi
  18594. fi
  18595. }
  18596. CheckWINDOWSGL()
  18597. {
  18598. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18599. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18600. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18601. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18602. SUMMARY_video="${SUMMARY_video} opengl"
  18603. fi
  18604. }
  18605. CheckWINDOWSGLES()
  18606. {
  18607. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18609. $as_echo_n "checking for EGL support... " >&6; }
  18610. video_opengl_egl=no
  18611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18612. /* end confdefs.h. */
  18613. #include <EGL/egl.h>
  18614. int
  18615. main ()
  18616. {
  18617. ;
  18618. return 0;
  18619. }
  18620. _ACEOF
  18621. if ac_fn_c_try_compile "$LINENO"; then :
  18622. video_opengl_egl=yes
  18623. fi
  18624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18626. $as_echo "$video_opengl_egl" >&6; }
  18627. if test x$video_opengl_egl = xyes; then
  18628. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18629. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18630. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18631. fi
  18632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18633. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18634. video_opengles_v2=no
  18635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18636. /* end confdefs.h. */
  18637. #include <GLES2/gl2.h>
  18638. #include <GLES2/gl2ext.h>
  18639. int
  18640. main ()
  18641. {
  18642. ;
  18643. return 0;
  18644. }
  18645. _ACEOF
  18646. if ac_fn_c_try_compile "$LINENO"; then :
  18647. video_opengles_v2=yes
  18648. fi
  18649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18651. $as_echo "$video_opengles_v2" >&6; }
  18652. if test x$video_opengles_v2 = xyes; then
  18653. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18654. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18655. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18656. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18657. fi
  18658. fi
  18659. }
  18660. CheckHaikuGL()
  18661. {
  18662. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18663. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18664. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18665. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18666. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18667. SUMMARY_video="${SUMMARY_video} opengl"
  18668. fi
  18669. }
  18670. CheckMacGL()
  18671. {
  18672. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18673. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18674. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18675. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18676. SUMMARY_video="${SUMMARY_video} opengl"
  18677. fi
  18678. }
  18679. CheckEmscriptenGLES()
  18680. {
  18681. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18683. $as_echo_n "checking for EGL support... " >&6; }
  18684. video_opengl_egl=no
  18685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18686. /* end confdefs.h. */
  18687. #include <EGL/egl.h>
  18688. int
  18689. main ()
  18690. {
  18691. ;
  18692. return 0;
  18693. }
  18694. _ACEOF
  18695. if ac_fn_c_try_compile "$LINENO"; then :
  18696. video_opengl_egl=yes
  18697. fi
  18698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18700. $as_echo "$video_opengl_egl" >&6; }
  18701. if test x$video_opengl_egl = xyes; then
  18702. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18703. fi
  18704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18705. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18706. video_opengles_v2=no
  18707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18708. /* end confdefs.h. */
  18709. #include <GLES2/gl2.h>
  18710. #include <GLES2/gl2ext.h>
  18711. int
  18712. main ()
  18713. {
  18714. ;
  18715. return 0;
  18716. }
  18717. _ACEOF
  18718. if ac_fn_c_try_compile "$LINENO"; then :
  18719. video_opengles_v2=yes
  18720. fi
  18721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18723. $as_echo "$video_opengles_v2" >&6; }
  18724. if test x$video_opengles_v2 = xyes; then
  18725. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18726. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18727. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18728. fi
  18729. fi
  18730. }
  18731. CheckInputEvents()
  18732. {
  18733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18734. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18735. use_input_events=no
  18736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18737. /* end confdefs.h. */
  18738. #include <linux/input.h>
  18739. int
  18740. main ()
  18741. {
  18742. #ifndef EVIOCGNAME
  18743. #error EVIOCGNAME() ioctl not available
  18744. #endif
  18745. ;
  18746. return 0;
  18747. }
  18748. _ACEOF
  18749. if ac_fn_c_try_compile "$LINENO"; then :
  18750. use_input_events=yes
  18751. fi
  18752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18754. $as_echo "$use_input_events" >&6; }
  18755. if test x$use_input_events = xyes; then
  18756. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18757. SUMMARY_input="${SUMMARY_input} linuxev"
  18758. fi
  18759. }
  18760. CheckInputKD()
  18761. {
  18762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18763. $as_echo_n "checking for Linux kd.h... " >&6; }
  18764. use_input_kd=no
  18765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18766. /* end confdefs.h. */
  18767. #include <linux/kd.h>
  18768. #include <linux/keyboard.h>
  18769. int
  18770. main ()
  18771. {
  18772. struct kbentry kbe;
  18773. kbe.kb_table = KG_CTRL;
  18774. ioctl(0, KDGKBENT, &kbe);
  18775. ;
  18776. return 0;
  18777. }
  18778. _ACEOF
  18779. if ac_fn_c_try_compile "$LINENO"; then :
  18780. use_input_kd=yes
  18781. fi
  18782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18784. $as_echo "$use_input_kd" >&6; }
  18785. if test x$use_input_kd = xyes; then
  18786. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18787. SUMMARY_input="${SUMMARY_input} linuxkd"
  18788. fi
  18789. }
  18790. CheckLibUDev()
  18791. {
  18792. # Check whether --enable-libudev was given.
  18793. if test "${enable_libudev+set}" = set; then :
  18794. enableval=$enable_libudev;
  18795. else
  18796. enable_libudev=yes
  18797. fi
  18798. if test x$enable_libudev = xyes; then
  18799. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18800. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18801. have_libudev_h_hdr=yes
  18802. else
  18803. have_libudev_h_hdr=no
  18804. fi
  18805. if test x$have_libudev_h_hdr = xyes; then
  18806. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18807. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  18808. if test x$udev_lib != x; then
  18809. echo "-- dynamic udev -> $udev_lib"
  18810. cat >>confdefs.h <<_ACEOF
  18811. #define SDL_UDEV_DYNAMIC "$udev_lib"
  18812. _ACEOF
  18813. fi
  18814. fi
  18815. fi
  18816. }
  18817. CheckDBus()
  18818. {
  18819. # Check whether --enable-dbus was given.
  18820. if test "${enable_dbus+set}" = set; then :
  18821. enableval=$enable_dbus;
  18822. else
  18823. enable_dbus=yes
  18824. fi
  18825. if test x$enable_dbus = xyes; then
  18826. # Extract the first word of "pkg-config", so it can be a program name with args.
  18827. set dummy pkg-config; ac_word=$2
  18828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18829. $as_echo_n "checking for $ac_word... " >&6; }
  18830. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18831. $as_echo_n "(cached) " >&6
  18832. else
  18833. case $PKG_CONFIG in
  18834. [\\/]* | ?:[\\/]*)
  18835. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18836. ;;
  18837. *)
  18838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18839. for as_dir in $PATH
  18840. do
  18841. IFS=$as_save_IFS
  18842. test -z "$as_dir" && as_dir=.
  18843. for ac_exec_ext in '' $ac_executable_extensions; do
  18844. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18845. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18847. break 2
  18848. fi
  18849. done
  18850. done
  18851. IFS=$as_save_IFS
  18852. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18853. ;;
  18854. esac
  18855. fi
  18856. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18857. if test -n "$PKG_CONFIG"; then
  18858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18859. $as_echo "$PKG_CONFIG" >&6; }
  18860. else
  18861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18862. $as_echo "no" >&6; }
  18863. fi
  18864. if test x$PKG_CONFIG != xno; then
  18865. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18866. save_CFLAGS="$CFLAGS"
  18867. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18868. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18869. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18870. have_dbus_dbus_h_hdr=yes
  18871. else
  18872. have_dbus_dbus_h_hdr=no
  18873. fi
  18874. CFLAGS="$save_CFLAGS"
  18875. if test x$have_dbus_dbus_h_hdr = xyes; then
  18876. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18877. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18878. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  18879. fi
  18880. fi
  18881. fi
  18882. }
  18883. CheckIME()
  18884. {
  18885. # Check whether --enable-ime was given.
  18886. if test "${enable_ime+set}" = set; then :
  18887. enableval=$enable_ime;
  18888. else
  18889. enable_ime=yes
  18890. fi
  18891. if test x$enable_ime = xyes; then
  18892. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  18893. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  18894. fi
  18895. }
  18896. CheckIBus()
  18897. {
  18898. # Check whether --enable-ibus was given.
  18899. if test "${enable_ibus+set}" = set; then :
  18900. enableval=$enable_ibus;
  18901. else
  18902. enable_ibus=yes
  18903. fi
  18904. if test x$enable_ibus = xyes; then
  18905. # Extract the first word of "pkg-config", so it can be a program name with args.
  18906. set dummy pkg-config; ac_word=$2
  18907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18908. $as_echo_n "checking for $ac_word... " >&6; }
  18909. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18910. $as_echo_n "(cached) " >&6
  18911. else
  18912. case $PKG_CONFIG in
  18913. [\\/]* | ?:[\\/]*)
  18914. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18915. ;;
  18916. *)
  18917. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18918. for as_dir in $PATH
  18919. do
  18920. IFS=$as_save_IFS
  18921. test -z "$as_dir" && as_dir=.
  18922. for ac_exec_ext in '' $ac_executable_extensions; do
  18923. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18924. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18925. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18926. break 2
  18927. fi
  18928. done
  18929. done
  18930. IFS=$as_save_IFS
  18931. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18932. ;;
  18933. esac
  18934. fi
  18935. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18936. if test -n "$PKG_CONFIG"; then
  18937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18938. $as_echo "$PKG_CONFIG" >&6; }
  18939. else
  18940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18941. $as_echo "no" >&6; }
  18942. fi
  18943. if test x$PKG_CONFIG != xno; then
  18944. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  18945. save_CFLAGS="$CFLAGS"
  18946. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  18947. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  18948. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  18949. have_ibus_ibus_h_hdr=yes
  18950. else
  18951. have_ibus_ibus_h_hdr=no
  18952. fi
  18953. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  18954. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  18955. have_inotify_inotify_h_hdr=yes
  18956. else
  18957. have_inotify_inotify_h_hdr=no
  18958. fi
  18959. CFLAGS="$save_CFLAGS"
  18960. if test x$have_ibus_ibus_h_hdr = xyes; then
  18961. if test x$enable_ime != xyes; then
  18962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  18963. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  18964. have_ibus_ibus_h_hdr=no
  18965. elif test x$enable_dbus != xyes; then
  18966. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  18967. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  18968. have_ibus_ibus_h_hdr=no
  18969. elif test x$have_inotify_inotify_h_hdr != xyes; then
  18970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  18971. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  18972. have_ibus_ibus_h_hdr=no
  18973. else
  18974. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  18975. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  18976. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  18977. fi
  18978. fi
  18979. fi
  18980. fi
  18981. }
  18982. CheckFcitx()
  18983. {
  18984. # Check whether --enable-fcitx was given.
  18985. if test "${enable_fcitx+set}" = set; then :
  18986. enableval=$enable_fcitx;
  18987. else
  18988. enable_fcitx=yes
  18989. fi
  18990. if test x$enable_fcitx = xyes; then
  18991. # Extract the first word of "pkg-config", so it can be a program name with args.
  18992. set dummy pkg-config; ac_word=$2
  18993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18994. $as_echo_n "checking for $ac_word... " >&6; }
  18995. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18996. $as_echo_n "(cached) " >&6
  18997. else
  18998. case $PKG_CONFIG in
  18999. [\\/]* | ?:[\\/]*)
  19000. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19001. ;;
  19002. *)
  19003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19004. for as_dir in $PATH
  19005. do
  19006. IFS=$as_save_IFS
  19007. test -z "$as_dir" && as_dir=.
  19008. for ac_exec_ext in '' $ac_executable_extensions; do
  19009. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19010. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19011. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19012. break 2
  19013. fi
  19014. done
  19015. done
  19016. IFS=$as_save_IFS
  19017. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19018. ;;
  19019. esac
  19020. fi
  19021. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19022. if test -n "$PKG_CONFIG"; then
  19023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19024. $as_echo "$PKG_CONFIG" >&6; }
  19025. else
  19026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19027. $as_echo "no" >&6; }
  19028. fi
  19029. if test x$PKG_CONFIG != xno; then
  19030. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  19031. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19032. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19033. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19034. have_fcitx_frontend_h_hdr=yes
  19035. else
  19036. have_fcitx_frontend_h_hdr=no
  19037. fi
  19038. CFLAGS="$save_CFLAGS"
  19039. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19040. if test x$enable_ime != xyes; then
  19041. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19042. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19043. have_fcitx_frontend_h_hdr=no
  19044. elif test x$enable_dbus != xyes; then
  19045. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19046. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19047. have_fcitx_frontend_h_hdr=no
  19048. else
  19049. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19050. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19051. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19052. fi
  19053. fi
  19054. fi
  19055. fi
  19056. }
  19057. CheckTslib()
  19058. {
  19059. # Check whether --enable-input-tslib was given.
  19060. if test "${enable_input_tslib+set}" = set; then :
  19061. enableval=$enable_input_tslib;
  19062. else
  19063. enable_input_tslib=yes
  19064. fi
  19065. if test x$enable_input_tslib = xyes; then
  19066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19067. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19068. enable_input_tslib=no
  19069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19070. /* end confdefs.h. */
  19071. #include "tslib.h"
  19072. int
  19073. main ()
  19074. {
  19075. ;
  19076. return 0;
  19077. }
  19078. _ACEOF
  19079. if ac_fn_c_try_compile "$LINENO"; then :
  19080. enable_input_tslib=yes
  19081. fi
  19082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19084. $as_echo "$enable_input_tslib" >&6; }
  19085. if test x$enable_input_tslib = xyes; then
  19086. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19087. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19088. SUMMARY_input="${SUMMARY_input} ts"
  19089. fi
  19090. fi
  19091. }
  19092. CheckPTHREAD()
  19093. {
  19094. # Check whether --enable-pthreads was given.
  19095. if test "${enable_pthreads+set}" = set; then :
  19096. enableval=$enable_pthreads;
  19097. else
  19098. enable_pthreads=yes
  19099. fi
  19100. # Check whether --enable-pthread-sem was given.
  19101. if test "${enable_pthread_sem+set}" = set; then :
  19102. enableval=$enable_pthread_sem;
  19103. else
  19104. enable_pthread_sem=yes
  19105. fi
  19106. case "$host" in
  19107. *-*-androideabi*)
  19108. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19109. pthread_lib=""
  19110. ;;
  19111. *-*-linux*|*-*-uclinux*)
  19112. pthread_cflags="-D_REENTRANT"
  19113. pthread_lib="-lpthread"
  19114. ;;
  19115. *-*-bsdi*)
  19116. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19117. pthread_lib=""
  19118. ;;
  19119. *-*-darwin*)
  19120. pthread_cflags="-D_THREAD_SAFE"
  19121. # causes Carbon.p complaints?
  19122. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19123. ;;
  19124. *-*-freebsd*|*-*-dragonfly*)
  19125. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19126. pthread_lib="-pthread"
  19127. ;;
  19128. *-*-netbsd*)
  19129. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19130. pthread_lib="-lpthread"
  19131. ;;
  19132. *-*-openbsd*)
  19133. pthread_cflags="-D_REENTRANT"
  19134. pthread_lib="-pthread"
  19135. ;;
  19136. *-*-solaris2.9)
  19137. # From Solaris 9+, posix4's preferred name is rt.
  19138. pthread_cflags="-D_REENTRANT"
  19139. pthread_lib="-lpthread -lrt"
  19140. ;;
  19141. *-*-solaris2.10)
  19142. # Solaris 10+ merged pthread into libc.
  19143. pthread_cflags="-D_REENTRANT"
  19144. pthread_lib="-lrt"
  19145. ;;
  19146. *-*-solaris*)
  19147. # Solaris 11+ merged rt into libc.
  19148. pthread_cflags="-D_REENTRANT"
  19149. pthread_lib=""
  19150. ;;
  19151. *-*-sysv5*)
  19152. pthread_cflags="-D_REENTRANT -Kthread"
  19153. pthread_lib=""
  19154. ;;
  19155. *-*-aix*)
  19156. pthread_cflags="-D_REENTRANT -mthreads"
  19157. pthread_lib="-lpthread"
  19158. ;;
  19159. *-*-hpux11*)
  19160. pthread_cflags="-D_REENTRANT"
  19161. pthread_lib="-L/usr/lib -lpthread"
  19162. ;;
  19163. *-*-haiku*)
  19164. pthread_cflags="-D_REENTRANT"
  19165. pthread_lib=""
  19166. ;;
  19167. *-*-nto*)
  19168. pthread_cflags="-D_REENTRANT"
  19169. pthread_lib=""
  19170. ;;
  19171. *)
  19172. pthread_cflags="-D_REENTRANT"
  19173. pthread_lib="-lpthread"
  19174. ;;
  19175. esac
  19176. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19177. # Save the original compiler flags and libraries
  19178. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19179. # Add the pthread compiler flags and libraries
  19180. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19181. # Check to see if we have pthread support on this system
  19182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19183. $as_echo_n "checking for pthreads... " >&6; }
  19184. use_pthreads=no
  19185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19186. /* end confdefs.h. */
  19187. #include <pthread.h>
  19188. int
  19189. main ()
  19190. {
  19191. pthread_attr_t type;
  19192. pthread_attr_init(&type);
  19193. ;
  19194. return 0;
  19195. }
  19196. _ACEOF
  19197. if ac_fn_c_try_link "$LINENO"; then :
  19198. use_pthreads=yes
  19199. fi
  19200. rm -f core conftest.err conftest.$ac_objext \
  19201. conftest$ac_exeext conftest.$ac_ext
  19202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19203. $as_echo "$use_pthreads" >&6; }
  19204. # Restore the compiler flags and libraries
  19205. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19206. # Do futher testing if we have pthread support...
  19207. if test x$use_pthreads = xyes; then
  19208. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19209. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19210. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19211. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19212. # Save the original compiler flags and libraries
  19213. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19214. # Add the pthread compiler flags and libraries
  19215. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19216. # Check to see if recursive mutexes are available
  19217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19218. $as_echo_n "checking for recursive mutexes... " >&6; }
  19219. has_recursive_mutexes=no
  19220. if test x$has_recursive_mutexes = xno; then
  19221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19222. /* end confdefs.h. */
  19223. #define _GNU_SOURCE 1
  19224. #include <pthread.h>
  19225. int
  19226. main ()
  19227. {
  19228. pthread_mutexattr_t attr;
  19229. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19230. ;
  19231. return 0;
  19232. }
  19233. _ACEOF
  19234. if ac_fn_c_try_link "$LINENO"; then :
  19235. has_recursive_mutexes=yes
  19236. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19237. fi
  19238. rm -f core conftest.err conftest.$ac_objext \
  19239. conftest$ac_exeext conftest.$ac_ext
  19240. fi
  19241. if test x$has_recursive_mutexes = xno; then
  19242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19243. /* end confdefs.h. */
  19244. #define _GNU_SOURCE 1
  19245. #include <pthread.h>
  19246. int
  19247. main ()
  19248. {
  19249. pthread_mutexattr_t attr;
  19250. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19251. ;
  19252. return 0;
  19253. }
  19254. _ACEOF
  19255. if ac_fn_c_try_link "$LINENO"; then :
  19256. has_recursive_mutexes=yes
  19257. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19258. fi
  19259. rm -f core conftest.err conftest.$ac_objext \
  19260. conftest$ac_exeext conftest.$ac_ext
  19261. fi
  19262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19263. $as_echo "$has_recursive_mutexes" >&6; }
  19264. # Check to see if pthread semaphore support is missing
  19265. if test x$enable_pthread_sem = xyes; then
  19266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19267. $as_echo_n "checking for pthread semaphores... " >&6; }
  19268. have_pthread_sem=no
  19269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19270. /* end confdefs.h. */
  19271. #include <pthread.h>
  19272. #include <semaphore.h>
  19273. int
  19274. main ()
  19275. {
  19276. ;
  19277. return 0;
  19278. }
  19279. _ACEOF
  19280. if ac_fn_c_try_compile "$LINENO"; then :
  19281. have_pthread_sem=yes
  19282. fi
  19283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19285. $as_echo "$have_pthread_sem" >&6; }
  19286. fi
  19287. if test x$have_pthread_sem = xyes; then
  19288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19289. $as_echo_n "checking for sem_timedwait... " >&6; }
  19290. have_sem_timedwait=no
  19291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19292. /* end confdefs.h. */
  19293. #include <pthread.h>
  19294. #include <semaphore.h>
  19295. int
  19296. main ()
  19297. {
  19298. sem_timedwait(NULL, NULL);
  19299. ;
  19300. return 0;
  19301. }
  19302. _ACEOF
  19303. if ac_fn_c_try_link "$LINENO"; then :
  19304. have_sem_timedwait=yes
  19305. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19306. fi
  19307. rm -f core conftest.err conftest.$ac_objext \
  19308. conftest$ac_exeext conftest.$ac_ext
  19309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19310. $as_echo "$have_sem_timedwait" >&6; }
  19311. fi
  19312. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19313. "
  19314. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19315. have_pthread_np_h=yes
  19316. else
  19317. have_pthread_np_h=no
  19318. fi
  19319. if test x$have_pthread_np_h = xyes; then
  19320. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19321. fi
  19322. # Check to see if pthread naming is available
  19323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19324. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19326. /* end confdefs.h. */
  19327. /* Override any GCC internal prototype to avoid an error.
  19328. Use char because int might match the return type of a GCC
  19329. builtin and then its argument prototype would still apply. */
  19330. #ifdef __cplusplus
  19331. extern "C"
  19332. #endif
  19333. char pthread_setname_np ();
  19334. int
  19335. main ()
  19336. {
  19337. return pthread_setname_np ();
  19338. ;
  19339. return 0;
  19340. }
  19341. _ACEOF
  19342. if ac_fn_c_try_link "$LINENO"; then :
  19343. has_pthread_setname_np=yes
  19344. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19345. else
  19346. has_pthread_setname_np=no
  19347. fi
  19348. rm -f core conftest.err conftest.$ac_objext \
  19349. conftest$ac_exeext conftest.$ac_ext
  19350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19351. $as_echo "$has_pthread_setname_np" >&6; }
  19352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19353. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19355. /* end confdefs.h. */
  19356. /* Override any GCC internal prototype to avoid an error.
  19357. Use char because int might match the return type of a GCC
  19358. builtin and then its argument prototype would still apply. */
  19359. #ifdef __cplusplus
  19360. extern "C"
  19361. #endif
  19362. char pthread_set_name_np ();
  19363. int
  19364. main ()
  19365. {
  19366. return pthread_set_name_np ();
  19367. ;
  19368. return 0;
  19369. }
  19370. _ACEOF
  19371. if ac_fn_c_try_link "$LINENO"; then :
  19372. has_pthread_set_name_np=yes
  19373. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19374. else
  19375. has_pthread_set_name_np=no
  19376. fi
  19377. rm -f core conftest.err conftest.$ac_objext \
  19378. conftest$ac_exeext conftest.$ac_ext
  19379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19380. $as_echo "$has_pthread_set_name_np" >&6; }
  19381. # Restore the compiler flags and libraries
  19382. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19383. # Basic thread creation functions
  19384. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19385. # Semaphores
  19386. # We can fake these with mutexes and condition variables if necessary
  19387. if test x$have_pthread_sem = xyes; then
  19388. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19389. else
  19390. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19391. fi
  19392. # Mutexes
  19393. # We can fake these with semaphores if necessary
  19394. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19395. # Condition variables
  19396. # We can fake these with semaphores and mutexes if necessary
  19397. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19398. # Thread local storage
  19399. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19400. have_threads=yes
  19401. fi
  19402. fi
  19403. }
  19404. CheckWINDOWS()
  19405. {
  19406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19407. $as_echo_n "checking Windows compiler... " >&6; }
  19408. have_win32_gcc=no
  19409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19410. /* end confdefs.h. */
  19411. #include <windows.h>
  19412. int
  19413. main ()
  19414. {
  19415. ;
  19416. return 0;
  19417. }
  19418. _ACEOF
  19419. if ac_fn_c_try_compile "$LINENO"; then :
  19420. have_win32_gcc=yes
  19421. fi
  19422. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19424. $as_echo "$have_win32_gcc" >&6; }
  19425. if test x$have_win32_gcc != xyes; then
  19426. as_fn_error $? "
  19427. *** Your compiler ($CC) does not produce Windows executables!
  19428. " "$LINENO" 5
  19429. fi
  19430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19431. $as_echo_n "checking Windows CE... " >&6; }
  19432. have_wince=no
  19433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19434. /* end confdefs.h. */
  19435. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19436. #error This is not Windows CE
  19437. #endif
  19438. int
  19439. main ()
  19440. {
  19441. ;
  19442. return 0;
  19443. }
  19444. _ACEOF
  19445. if ac_fn_c_try_compile "$LINENO"; then :
  19446. have_wince=yes
  19447. as_fn_error $? "
  19448. *** Sorry, Windows CE is no longer supported.
  19449. " "$LINENO" 5
  19450. fi
  19451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19453. $as_echo "$have_wince" >&6; }
  19454. # This fixes Windows stack alignment with newer GCC
  19455. CheckStackBoundary
  19456. }
  19457. CheckDIRECTX()
  19458. {
  19459. # Check whether --enable-directx was given.
  19460. if test "${enable_directx+set}" = set; then :
  19461. enableval=$enable_directx;
  19462. else
  19463. enable_directx=yes
  19464. fi
  19465. if test x$enable_directx = xyes; then
  19466. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19467. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19468. have_d3d=yes
  19469. fi
  19470. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19471. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19472. have_d3d11=yes
  19473. fi
  19474. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19475. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19476. have_ddraw=yes
  19477. fi
  19478. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19479. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19480. have_dsound=yes
  19481. fi
  19482. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19483. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19484. have_dinput=yes
  19485. fi
  19486. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19487. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19488. have_dxgi=yes
  19489. fi
  19490. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  19491. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  19492. have_xaudio2=yes
  19493. fi
  19494. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19495. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19496. have_xinput=yes
  19497. fi
  19498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19499. /* end confdefs.h. */
  19500. #include <windows.h>
  19501. #include <xinput.h>
  19502. XINPUT_GAMEPAD_EX x1;
  19503. int
  19504. main ()
  19505. {
  19506. ;
  19507. return 0;
  19508. }
  19509. _ACEOF
  19510. if ac_fn_c_try_compile "$LINENO"; then :
  19511. have_xinput_gamepadex=yes
  19512. fi
  19513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19515. /* end confdefs.h. */
  19516. #include <windows.h>
  19517. #include <xinput.h>
  19518. XINPUT_STATE_EX s1;
  19519. int
  19520. main ()
  19521. {
  19522. ;
  19523. return 0;
  19524. }
  19525. _ACEOF
  19526. if ac_fn_c_try_compile "$LINENO"; then :
  19527. have_xinput_stateex=yes
  19528. fi
  19529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19530. if test x$have_ddraw = xyes; then
  19531. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19532. fi
  19533. if test x$have_dinput = xyes; then
  19534. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19535. fi
  19536. if test x$have_dsound = xyes; then
  19537. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19538. fi
  19539. if test x$have_dxgi = xyes; then
  19540. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19541. fi
  19542. if test x$have_xinput = xyes; then
  19543. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19544. fi
  19545. if test x$have_xinput_gamepadex = xyes; then
  19546. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  19547. fi
  19548. if test x$have_xinput_stateex = xyes; then
  19549. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  19550. fi
  19551. SUMMARY_video="${SUMMARY_video} directx"
  19552. SUMMARY_audio="${SUMMARY_audio} directx"
  19553. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19554. # FIXME: ...so force it off for now.
  19555. case "$host" in
  19556. *-*-cygwin*)
  19557. have_dinput=false
  19558. ;;
  19559. esac
  19560. fi
  19561. }
  19562. CheckDLOPEN()
  19563. {
  19564. # Check whether --enable-sdl-dlopen was given.
  19565. if test "${enable_sdl_dlopen+set}" = set; then :
  19566. enableval=$enable_sdl_dlopen;
  19567. else
  19568. enable_sdl_dlopen=yes
  19569. fi
  19570. if test x$enable_sdl_dlopen = xyes; then
  19571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19572. $as_echo_n "checking for dlopen... " >&6; }
  19573. have_dlopen=no
  19574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19575. /* end confdefs.h. */
  19576. #include <dlfcn.h>
  19577. int
  19578. main ()
  19579. {
  19580. void *handle = dlopen("", RTLD_NOW);
  19581. const char *loaderror = (char *) dlerror();
  19582. ;
  19583. return 0;
  19584. }
  19585. _ACEOF
  19586. if ac_fn_c_try_compile "$LINENO"; then :
  19587. have_dlopen=yes
  19588. fi
  19589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19591. $as_echo "$have_dlopen" >&6; }
  19592. if test x$have_dlopen = xyes; then
  19593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19594. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19595. if ${ac_cv_lib_c_dlopen+:} false; then :
  19596. $as_echo_n "(cached) " >&6
  19597. else
  19598. ac_check_lib_save_LIBS=$LIBS
  19599. LIBS="-lc $LIBS"
  19600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19601. /* end confdefs.h. */
  19602. /* Override any GCC internal prototype to avoid an error.
  19603. Use char because int might match the return type of a GCC
  19604. builtin and then its argument prototype would still apply. */
  19605. #ifdef __cplusplus
  19606. extern "C"
  19607. #endif
  19608. char dlopen ();
  19609. int
  19610. main ()
  19611. {
  19612. return dlopen ();
  19613. ;
  19614. return 0;
  19615. }
  19616. _ACEOF
  19617. if ac_fn_c_try_link "$LINENO"; then :
  19618. ac_cv_lib_c_dlopen=yes
  19619. else
  19620. ac_cv_lib_c_dlopen=no
  19621. fi
  19622. rm -f core conftest.err conftest.$ac_objext \
  19623. conftest$ac_exeext conftest.$ac_ext
  19624. LIBS=$ac_check_lib_save_LIBS
  19625. fi
  19626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19627. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19628. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19629. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19630. else
  19631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19632. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19633. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19634. $as_echo_n "(cached) " >&6
  19635. else
  19636. ac_check_lib_save_LIBS=$LIBS
  19637. LIBS="-ldl $LIBS"
  19638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19639. /* end confdefs.h. */
  19640. /* Override any GCC internal prototype to avoid an error.
  19641. Use char because int might match the return type of a GCC
  19642. builtin and then its argument prototype would still apply. */
  19643. #ifdef __cplusplus
  19644. extern "C"
  19645. #endif
  19646. char dlopen ();
  19647. int
  19648. main ()
  19649. {
  19650. return dlopen ();
  19651. ;
  19652. return 0;
  19653. }
  19654. _ACEOF
  19655. if ac_fn_c_try_link "$LINENO"; then :
  19656. ac_cv_lib_dl_dlopen=yes
  19657. else
  19658. ac_cv_lib_dl_dlopen=no
  19659. fi
  19660. rm -f core conftest.err conftest.$ac_objext \
  19661. conftest$ac_exeext conftest.$ac_ext
  19662. LIBS=$ac_check_lib_save_LIBS
  19663. fi
  19664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19665. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19666. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19667. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19668. else
  19669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19670. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19671. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19672. $as_echo_n "(cached) " >&6
  19673. else
  19674. ac_check_lib_save_LIBS=$LIBS
  19675. LIBS="-lltdl $LIBS"
  19676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19677. /* end confdefs.h. */
  19678. /* Override any GCC internal prototype to avoid an error.
  19679. Use char because int might match the return type of a GCC
  19680. builtin and then its argument prototype would still apply. */
  19681. #ifdef __cplusplus
  19682. extern "C"
  19683. #endif
  19684. char dlopen ();
  19685. int
  19686. main ()
  19687. {
  19688. return dlopen ();
  19689. ;
  19690. return 0;
  19691. }
  19692. _ACEOF
  19693. if ac_fn_c_try_link "$LINENO"; then :
  19694. ac_cv_lib_ltdl_dlopen=yes
  19695. else
  19696. ac_cv_lib_ltdl_dlopen=no
  19697. fi
  19698. rm -f core conftest.err conftest.$ac_objext \
  19699. conftest$ac_exeext conftest.$ac_ext
  19700. LIBS=$ac_check_lib_save_LIBS
  19701. fi
  19702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19703. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19704. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19705. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19706. fi
  19707. fi
  19708. fi
  19709. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19710. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19711. have_loadso=yes
  19712. fi
  19713. fi
  19714. }
  19715. CheckUSBHID()
  19716. {
  19717. case "$host" in
  19718. *-*-*bsd*)
  19719. if test x$enable_joystick = xyes; then
  19720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19721. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19722. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19723. $as_echo_n "(cached) " >&6
  19724. else
  19725. ac_check_lib_save_LIBS=$LIBS
  19726. LIBS="-lusbhid $LIBS"
  19727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19728. /* end confdefs.h. */
  19729. /* Override any GCC internal prototype to avoid an error.
  19730. Use char because int might match the return type of a GCC
  19731. builtin and then its argument prototype would still apply. */
  19732. #ifdef __cplusplus
  19733. extern "C"
  19734. #endif
  19735. char hid_init ();
  19736. int
  19737. main ()
  19738. {
  19739. return hid_init ();
  19740. ;
  19741. return 0;
  19742. }
  19743. _ACEOF
  19744. if ac_fn_c_try_link "$LINENO"; then :
  19745. ac_cv_lib_usbhid_hid_init=yes
  19746. else
  19747. ac_cv_lib_usbhid_hid_init=no
  19748. fi
  19749. rm -f core conftest.err conftest.$ac_objext \
  19750. conftest$ac_exeext conftest.$ac_ext
  19751. LIBS=$ac_check_lib_save_LIBS
  19752. fi
  19753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19754. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19755. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19756. have_libusbhid=yes
  19757. fi
  19758. if test x$have_libusbhid = xyes; then
  19759. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19760. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19761. USB_CFLAGS="-DHAVE_USBHID_H"
  19762. fi
  19763. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  19764. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  19765. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  19766. fi
  19767. USB_LIBS="$USB_LIBS -lusbhid"
  19768. else
  19769. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  19770. if test "x$ac_cv_header_usb_h" = xyes; then :
  19771. USB_CFLAGS="-DHAVE_USB_H"
  19772. fi
  19773. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  19774. if test "x$ac_cv_header_libusb_h" = xyes; then :
  19775. USB_CFLAGS="-DHAVE_LIBUSB_H"
  19776. fi
  19777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  19778. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  19779. if ${ac_cv_lib_usb_hid_init+:} false; then :
  19780. $as_echo_n "(cached) " >&6
  19781. else
  19782. ac_check_lib_save_LIBS=$LIBS
  19783. LIBS="-lusb $LIBS"
  19784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19785. /* end confdefs.h. */
  19786. /* Override any GCC internal prototype to avoid an error.
  19787. Use char because int might match the return type of a GCC
  19788. builtin and then its argument prototype would still apply. */
  19789. #ifdef __cplusplus
  19790. extern "C"
  19791. #endif
  19792. char hid_init ();
  19793. int
  19794. main ()
  19795. {
  19796. return hid_init ();
  19797. ;
  19798. return 0;
  19799. }
  19800. _ACEOF
  19801. if ac_fn_c_try_link "$LINENO"; then :
  19802. ac_cv_lib_usb_hid_init=yes
  19803. else
  19804. ac_cv_lib_usb_hid_init=no
  19805. fi
  19806. rm -f core conftest.err conftest.$ac_objext \
  19807. conftest$ac_exeext conftest.$ac_ext
  19808. LIBS=$ac_check_lib_save_LIBS
  19809. fi
  19810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19811. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19812. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19813. USB_LIBS="$USB_LIBS -lusb"
  19814. fi
  19815. fi
  19816. save_CFLAGS="$CFLAGS"
  19817. CFLAGS="$CFLAGS $USB_CFLAGS"
  19818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19819. $as_echo_n "checking for usbhid... " >&6; }
  19820. have_usbhid=no
  19821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19822. /* end confdefs.h. */
  19823. #include <sys/types.h>
  19824. #if defined(HAVE_USB_H)
  19825. #include <usb.h>
  19826. #endif
  19827. #ifdef __DragonFly__
  19828. # include <bus/usb/usb.h>
  19829. # include <bus/usb/usbhid.h>
  19830. #else
  19831. # include <dev/usb/usb.h>
  19832. # include <dev/usb/usbhid.h>
  19833. #endif
  19834. #if defined(HAVE_USBHID_H)
  19835. #include <usbhid.h>
  19836. #elif defined(HAVE_LIBUSB_H)
  19837. #include <libusb.h>
  19838. #elif defined(HAVE_LIBUSBHID_H)
  19839. #include <libusbhid.h>
  19840. #endif
  19841. int
  19842. main ()
  19843. {
  19844. struct report_desc *repdesc;
  19845. struct usb_ctl_report *repbuf;
  19846. hid_kind_t hidkind;
  19847. ;
  19848. return 0;
  19849. }
  19850. _ACEOF
  19851. if ac_fn_c_try_compile "$LINENO"; then :
  19852. have_usbhid=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_usbhid" >&5
  19856. $as_echo "$have_usbhid" >&6; }
  19857. if test x$have_usbhid = xyes; then
  19858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  19859. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  19860. have_usbhid_ucr_data=no
  19861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19862. /* end confdefs.h. */
  19863. #include <sys/types.h>
  19864. #if defined(HAVE_USB_H)
  19865. #include <usb.h>
  19866. #endif
  19867. #ifdef __DragonFly__
  19868. # include <bus/usb/usb.h>
  19869. # include <bus/usb/usbhid.h>
  19870. #else
  19871. # include <dev/usb/usb.h>
  19872. # include <dev/usb/usbhid.h>
  19873. #endif
  19874. #if defined(HAVE_USBHID_H)
  19875. #include <usbhid.h>
  19876. #elif defined(HAVE_LIBUSB_H)
  19877. #include <libusb.h>
  19878. #elif defined(HAVE_LIBUSBHID_H)
  19879. #include <libusbhid.h>
  19880. #endif
  19881. int
  19882. main ()
  19883. {
  19884. struct usb_ctl_report buf;
  19885. if (buf.ucr_data) { }
  19886. ;
  19887. return 0;
  19888. }
  19889. _ACEOF
  19890. if ac_fn_c_try_compile "$LINENO"; then :
  19891. have_usbhid_ucr_data=yes
  19892. fi
  19893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19894. if test x$have_usbhid_ucr_data = xyes; then
  19895. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  19896. fi
  19897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  19898. $as_echo "$have_usbhid_ucr_data" >&6; }
  19899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  19900. $as_echo_n "checking for new usbhid API... " >&6; }
  19901. have_usbhid_new=no
  19902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19903. /* end confdefs.h. */
  19904. #include <sys/types.h>
  19905. #if defined(HAVE_USB_H)
  19906. #include <usb.h>
  19907. #endif
  19908. #ifdef __DragonFly__
  19909. #include <bus/usb/usb.h>
  19910. #include <bus/usb/usbhid.h>
  19911. #else
  19912. #include <dev/usb/usb.h>
  19913. #include <dev/usb/usbhid.h>
  19914. #endif
  19915. #if defined(HAVE_USBHID_H)
  19916. #include <usbhid.h>
  19917. #elif defined(HAVE_LIBUSB_H)
  19918. #include <libusb.h>
  19919. #elif defined(HAVE_LIBUSBHID_H)
  19920. #include <libusbhid.h>
  19921. #endif
  19922. int
  19923. main ()
  19924. {
  19925. report_desc_t d;
  19926. hid_start_parse(d, 1, 1);
  19927. ;
  19928. return 0;
  19929. }
  19930. _ACEOF
  19931. if ac_fn_c_try_compile "$LINENO"; then :
  19932. have_usbhid_new=yes
  19933. fi
  19934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19935. if test x$have_usbhid_new = xyes; then
  19936. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  19937. fi
  19938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  19939. $as_echo "$have_usbhid_new" >&6; }
  19940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  19941. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  19942. have_machine_joystick=no
  19943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19944. /* end confdefs.h. */
  19945. #include <machine/joystick.h>
  19946. int
  19947. main ()
  19948. {
  19949. struct joystick t;
  19950. ;
  19951. return 0;
  19952. }
  19953. _ACEOF
  19954. if ac_fn_c_try_compile "$LINENO"; then :
  19955. have_machine_joystick=yes
  19956. fi
  19957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19958. if test x$have_machine_joystick = xyes; then
  19959. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  19960. fi
  19961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  19962. $as_echo "$have_machine_joystick" >&6; }
  19963. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  19964. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  19965. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  19966. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  19967. have_joystick=yes
  19968. fi
  19969. CFLAGS="$save_CFLAGS"
  19970. fi
  19971. ;;
  19972. esac
  19973. }
  19974. CheckClockGettime()
  19975. {
  19976. # Check whether --enable-clock_gettime was given.
  19977. if test "${enable_clock_gettime+set}" = set; then :
  19978. enableval=$enable_clock_gettime;
  19979. else
  19980. enable_clock_gettime=yes
  19981. fi
  19982. if test x$enable_clock_gettime = xyes; then
  19983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  19984. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  19985. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  19986. $as_echo_n "(cached) " >&6
  19987. else
  19988. ac_check_lib_save_LIBS=$LIBS
  19989. LIBS="-lrt $LIBS"
  19990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19991. /* end confdefs.h. */
  19992. /* Override any GCC internal prototype to avoid an error.
  19993. Use char because int might match the return type of a GCC
  19994. builtin and then its argument prototype would still apply. */
  19995. #ifdef __cplusplus
  19996. extern "C"
  19997. #endif
  19998. char clock_gettime ();
  19999. int
  20000. main ()
  20001. {
  20002. return clock_gettime ();
  20003. ;
  20004. return 0;
  20005. }
  20006. _ACEOF
  20007. if ac_fn_c_try_link "$LINENO"; then :
  20008. ac_cv_lib_rt_clock_gettime=yes
  20009. else
  20010. ac_cv_lib_rt_clock_gettime=no
  20011. fi
  20012. rm -f core conftest.err conftest.$ac_objext \
  20013. conftest$ac_exeext conftest.$ac_ext
  20014. LIBS=$ac_check_lib_save_LIBS
  20015. fi
  20016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20017. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20018. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20019. have_clock_gettime=yes
  20020. fi
  20021. if test x$have_clock_gettime = xyes; then
  20022. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20023. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20024. else
  20025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20026. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20027. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20028. $as_echo_n "(cached) " >&6
  20029. else
  20030. ac_check_lib_save_LIBS=$LIBS
  20031. LIBS="-lc $LIBS"
  20032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20033. /* end confdefs.h. */
  20034. /* Override any GCC internal prototype to avoid an error.
  20035. Use char because int might match the return type of a GCC
  20036. builtin and then its argument prototype would still apply. */
  20037. #ifdef __cplusplus
  20038. extern "C"
  20039. #endif
  20040. char clock_gettime ();
  20041. int
  20042. main ()
  20043. {
  20044. return clock_gettime ();
  20045. ;
  20046. return 0;
  20047. }
  20048. _ACEOF
  20049. if ac_fn_c_try_link "$LINENO"; then :
  20050. ac_cv_lib_c_clock_gettime=yes
  20051. else
  20052. ac_cv_lib_c_clock_gettime=no
  20053. fi
  20054. rm -f core conftest.err conftest.$ac_objext \
  20055. conftest$ac_exeext conftest.$ac_ext
  20056. LIBS=$ac_check_lib_save_LIBS
  20057. fi
  20058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20059. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20060. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20061. have_clock_gettime=yes
  20062. fi
  20063. if test x$have_clock_gettime = xyes; then
  20064. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20065. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20066. fi
  20067. fi
  20068. fi
  20069. }
  20070. CheckLinuxVersion()
  20071. {
  20072. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20073. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20074. have_linux_version_h=yes
  20075. fi
  20076. if test x$have_linux_version_h = xyes; then
  20077. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20078. fi
  20079. }
  20080. CheckRPATH()
  20081. {
  20082. # Check whether --enable-rpath was given.
  20083. if test "${enable_rpath+set}" = set; then :
  20084. enableval=$enable_rpath;
  20085. else
  20086. enable_rpath=yes
  20087. fi
  20088. }
  20089. CheckWarnAll
  20090. case "$host" in
  20091. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20092. case "$host" in
  20093. *-raspberry-linux*)
  20094. # Raspberry Pi
  20095. ARCH=linux
  20096. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20097. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20098. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20099. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20100. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  20101. if test x$enable_video = xyes; then
  20102. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20103. # FIXME: confdefs? Not AC_DEFINE?
  20104. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20105. SUMMARY_video="${SUMMARY_video} rpi"
  20106. fi
  20107. ;;
  20108. *-*-androideabi*)
  20109. # Android
  20110. ARCH=android
  20111. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20112. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20113. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20114. SDL_LIBS="$SDL_LIBS -lSDL2main -Wl,-u,SDL_main_dummy"
  20115. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20116. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20117. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20118. if test x$enable_video = xyes; then
  20119. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20120. # FIXME: confdefs? Not AC_DEFINE?
  20121. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20122. SUMMARY_video="${SUMMARY_video} android"
  20123. fi
  20124. ;;
  20125. *-*-linux*) ARCH=linux ;;
  20126. *-*-uclinux*) ARCH=linux ;;
  20127. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20128. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20129. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20130. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20131. *-*-bsdi*) ARCH=bsdi ;;
  20132. *-*-freebsd*) ARCH=freebsd ;;
  20133. *-*-dragonfly*) ARCH=freebsd ;;
  20134. *-raspberry-netbsd*)
  20135. # Raspberry Pi
  20136. ARCH=netbsd
  20137. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20138. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20139. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20140. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20141. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host -ldl"
  20142. if test x$enable_video = xyes; then
  20143. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20144. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20145. SUMMARY_video="${SUMMARY_video} raspberry"
  20146. fi
  20147. ;;
  20148. *-*-netbsd*) ARCH=netbsd ;;
  20149. *-*-openbsd*) ARCH=openbsd ;;
  20150. *-*-sysv5*) ARCH=sysv5 ;;
  20151. *-*-solaris*) ARCH=solaris ;;
  20152. *-*-hpux*) ARCH=hpux ;;
  20153. *-*-aix*) ARCH=aix ;;
  20154. *-*-minix*) ARCH=minix ;;
  20155. *-*-nto*) ARCH=nto
  20156. CheckQNXVideo
  20157. ;;
  20158. esac
  20159. CheckVisibilityHidden
  20160. CheckDeclarationAfterStatement
  20161. CheckDummyVideo
  20162. CheckDiskAudio
  20163. CheckDummyAudio
  20164. CheckDLOPEN
  20165. CheckOSS
  20166. CheckALSA
  20167. CheckPulseAudio
  20168. CheckJACK
  20169. CheckARTSC
  20170. CheckESD
  20171. CheckNAS
  20172. CheckSNDIO
  20173. CheckFusionSound
  20174. CheckLibSampleRate
  20175. CheckX11
  20176. CheckDirectFB
  20177. CheckKMSDRM
  20178. CheckOpenGLX11
  20179. CheckOpenGLESX11
  20180. CheckMir
  20181. CheckWayland
  20182. CheckLibUDev
  20183. CheckDBus
  20184. CheckIME
  20185. CheckIBus
  20186. CheckFcitx
  20187. case $ARCH in
  20188. linux)
  20189. CheckInputEvents
  20190. CheckInputKD
  20191. ;;
  20192. esac
  20193. CheckTslib
  20194. CheckUSBHID
  20195. CheckPTHREAD
  20196. CheckClockGettime
  20197. CheckLinuxVersion
  20198. CheckRPATH
  20199. CheckVivanteVideo
  20200. # Set up files for the audio library
  20201. if test x$enable_audio = xyes; then
  20202. case $ARCH in
  20203. sysv5|solaris|hpux)
  20204. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  20205. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  20206. SUMMARY_audio="${SUMMARY_audio} sun"
  20207. have_audio=yes
  20208. ;;
  20209. netbsd) # Don't use this on OpenBSD, it's busted.
  20210. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  20211. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  20212. SUMMARY_audio="${SUMMARY_audio} netbsd"
  20213. have_audio=yes
  20214. ;;
  20215. aix)
  20216. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  20217. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  20218. SUMMARY_audio="${SUMMARY_audio} paudio"
  20219. have_audio=yes
  20220. ;;
  20221. android)
  20222. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  20223. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  20224. SUMMARY_audio="${SUMMARY_audio} android"
  20225. have_audio=yes
  20226. ;;
  20227. nto)
  20228. CheckQNXAudio
  20229. ;;
  20230. esac
  20231. fi
  20232. # Set up files for the joystick library
  20233. if test x$enable_joystick = xyes; then
  20234. case $ARCH in
  20235. linux)
  20236. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  20237. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  20238. have_joystick=yes
  20239. ;;
  20240. android)
  20241. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  20242. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  20243. have_joystick=yes
  20244. ;;
  20245. esac
  20246. fi
  20247. # Set up files for the haptic library
  20248. if test x$enable_haptic = xyes; then
  20249. if test x$use_input_events = xyes; then
  20250. case $ARCH in
  20251. linux)
  20252. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  20253. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  20254. have_haptic=yes
  20255. ;;
  20256. esac
  20257. fi
  20258. fi
  20259. # Set up files for the power library
  20260. if test x$enable_power = xyes; then
  20261. case $ARCH in
  20262. linux)
  20263. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  20264. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  20265. have_power=yes
  20266. ;;
  20267. android)
  20268. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  20269. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  20270. have_power=yes
  20271. ;;
  20272. esac
  20273. fi
  20274. # Set up files for the filesystem library
  20275. if test x$enable_filesystem = xyes; then
  20276. case $ARCH in
  20277. android)
  20278. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  20279. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  20280. have_filesystem=yes
  20281. ;;
  20282. *)
  20283. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  20284. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  20285. have_filesystem=yes
  20286. ;;
  20287. esac
  20288. fi
  20289. # Set up files for the timer library
  20290. if test x$enable_timers = xyes; then
  20291. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20292. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20293. have_timers=yes
  20294. fi
  20295. # Set up files for udev hotplugging support
  20296. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  20297. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  20298. fi
  20299. # Set up files for evdev input
  20300. if test x$use_input_events = xyes; then
  20301. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  20302. fi
  20303. # Set up other core UNIX files
  20304. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20305. ;;
  20306. *-*-cygwin* | *-*-mingw32*)
  20307. ARCH=win32
  20308. if test "$build" != "$host"; then # cross-compiling
  20309. # Default cross-compile location
  20310. ac_default_prefix=/usr/local/cross-tools/$host
  20311. else
  20312. # Look for the location of the tools and install there
  20313. if test "$BUILD_PREFIX" != ""; then
  20314. ac_default_prefix=$BUILD_PREFIX
  20315. fi
  20316. fi
  20317. CheckDeclarationAfterStatement
  20318. CheckDummyVideo
  20319. CheckDiskAudio
  20320. CheckDummyAudio
  20321. CheckWINDOWS
  20322. CheckWINDOWSGL
  20323. CheckWINDOWSGLES
  20324. CheckDIRECTX
  20325. # Set up the core platform files
  20326. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  20327. # Set up files for the video library
  20328. if test x$enable_video = xyes; then
  20329. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  20330. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  20331. have_video=yes
  20332. # Check whether --enable-render-d3d was given.
  20333. if test "${enable_render_d3d+set}" = set; then :
  20334. enableval=$enable_render_d3d;
  20335. else
  20336. enable_render_d3d=yes
  20337. fi
  20338. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  20339. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  20340. fi
  20341. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  20342. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  20343. fi
  20344. fi
  20345. # Set up files for the audio library
  20346. if test x$enable_audio = xyes; then
  20347. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  20348. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  20349. if test x$have_dsound = xyes; then
  20350. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  20351. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  20352. fi
  20353. if test x$have_xaudio2 = xyes; then
  20354. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  20355. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  20356. fi
  20357. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  20358. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  20359. have_audio=yes
  20360. fi
  20361. # Set up files for the joystick library
  20362. if test x$enable_joystick = xyes; then
  20363. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20364. if test x$have_xinput = xyes; then
  20365. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  20366. fi
  20367. if test x$have_dinput = xyes; then
  20368. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  20369. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  20370. fi
  20371. else
  20372. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  20373. fi
  20374. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  20375. have_joystick=yes
  20376. fi
  20377. if test x$enable_haptic = xyes; then
  20378. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20379. if test x$have_xinput = xyes; then
  20380. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  20381. fi
  20382. if test x$have_dinput = xyes; then
  20383. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  20384. fi
  20385. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  20386. have_haptic=yes
  20387. fi
  20388. fi
  20389. if test x$enable_power = xyes; then
  20390. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  20391. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  20392. have_power=yes
  20393. fi
  20394. if test x$enable_filesystem = xyes; then
  20395. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  20396. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  20397. have_filesystem=yes
  20398. fi
  20399. # Set up files for the thread library
  20400. if test x$enable_threads = xyes; then
  20401. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  20402. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  20403. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  20404. have_threads=yes
  20405. fi
  20406. # Set up files for the timer library
  20407. if test x$enable_timers = xyes; then
  20408. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  20409. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  20410. have_timers=yes
  20411. fi
  20412. # Set up files for the shared object loading library
  20413. if test x$enable_loadso = xyes; then
  20414. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20415. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20416. have_loadso=yes
  20417. fi
  20418. # Set up the system libraries we need
  20419. if test -f /lib/w32api/libuuid.a; then
  20420. LIBUUID=/lib/w32api/libuuid.a
  20421. else
  20422. LIBUUID=-luuid
  20423. fi
  20424. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
  20425. # The Windows platform requires special setup
  20426. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20427. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20428. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20429. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20430. # Check to see if this is a mingw or cygwin build
  20431. have_mingw32=
  20432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20433. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20434. if ${ac_cv_lib_mingw32_main+:} false; then :
  20435. $as_echo_n "(cached) " >&6
  20436. else
  20437. ac_check_lib_save_LIBS=$LIBS
  20438. LIBS="-lmingw32 $LIBS"
  20439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20440. /* end confdefs.h. */
  20441. int
  20442. main ()
  20443. {
  20444. return main ();
  20445. ;
  20446. return 0;
  20447. }
  20448. _ACEOF
  20449. if ac_fn_c_try_link "$LINENO"; then :
  20450. ac_cv_lib_mingw32_main=yes
  20451. else
  20452. ac_cv_lib_mingw32_main=no
  20453. fi
  20454. rm -f core conftest.err conftest.$ac_objext \
  20455. conftest$ac_exeext conftest.$ac_ext
  20456. LIBS=$ac_check_lib_save_LIBS
  20457. fi
  20458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20459. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20460. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20461. have_mingw32=yes
  20462. fi
  20463. if test x$have_mingw32 = xyes; then
  20464. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20465. else
  20466. SDL_LIBS="-lcygwin $SDL_LIBS"
  20467. fi
  20468. ;;
  20469. *-*-beos*)
  20470. as_fn_error $? "
  20471. *** BeOS support has been removed as of SDL 2.0.2.
  20472. " "$LINENO" 5
  20473. ;;
  20474. *-*-haiku*)
  20475. ARCH=haiku
  20476. ac_default_prefix=/boot/system
  20477. CheckDummyVideo
  20478. CheckDiskAudio
  20479. CheckDummyAudio
  20480. CheckDLOPEN
  20481. CheckHaikuVideo
  20482. CheckHaikuGL
  20483. CheckPTHREAD
  20484. # Set up files for the audio library
  20485. if test x$enable_audio = xyes; then
  20486. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20487. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20488. SUMMARY_audio="${SUMMARY_audio} haiku"
  20489. have_audio=yes
  20490. fi
  20491. # Set up files for the joystick library
  20492. if test x$enable_joystick = xyes; then
  20493. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20494. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20495. have_joystick=yes
  20496. fi
  20497. # Set up files for the timer library
  20498. if test x$enable_timers = xyes; then
  20499. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20500. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20501. have_timers=yes
  20502. fi
  20503. # Set up files for the system power library
  20504. if test x$enable_power = xyes; then
  20505. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20506. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20507. have_power=yes
  20508. fi
  20509. # Set up files for the system filesystem library
  20510. if test x$enable_filesystem = xyes; then
  20511. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20512. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20513. have_filesystem=yes
  20514. fi
  20515. # The Haiku platform requires special setup.
  20516. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20517. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  20518. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  20519. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  20520. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  20521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  20522. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  20523. if eval \${$as_ac_File+:} false; then :
  20524. $as_echo_n "(cached) " >&6
  20525. else
  20526. test "$cross_compiling" = yes &&
  20527. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  20528. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  20529. eval "$as_ac_File=yes"
  20530. else
  20531. eval "$as_ac_File=no"
  20532. fi
  20533. fi
  20534. eval ac_res=\$$as_ac_File
  20535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20536. $as_echo "$ac_res" >&6; }
  20537. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  20538. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  20539. else
  20540. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  20541. fi
  20542. ;;
  20543. arm*-apple-darwin*|*-ios-*)
  20544. ARCH=ios
  20545. CheckVisibilityHidden
  20546. CheckDeclarationAfterStatement
  20547. CheckDummyVideo
  20548. CheckDiskAudio
  20549. CheckDummyAudio
  20550. CheckDLOPEN
  20551. CheckPTHREAD
  20552. # Set up files for the audio library
  20553. if test x$enable_audio = xyes; then
  20554. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20555. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20556. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20557. have_audio=yes
  20558. fi
  20559. # Set up files for the joystick library
  20560. if test x$enable_joystick = xyes; then
  20561. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20562. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20563. have_joystick=yes
  20564. fi
  20565. # Set up files for the haptic library
  20566. #if test x$enable_haptic = xyes; then
  20567. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20568. # have_haptic=yes
  20569. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20570. #fi
  20571. # Set up files for the power library
  20572. if test x$enable_power = xyes; then
  20573. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  20574. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20575. have_power=yes
  20576. fi
  20577. # Set up files for the filesystem library
  20578. if test x$enable_filesystem = xyes; then
  20579. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20580. have_filesystem=yes
  20581. fi
  20582. # Set up additional files for the file library
  20583. if test x$enable_file = xyes; then
  20584. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20585. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20586. fi
  20587. # Set up files for the timer library
  20588. if test x$enable_timers = xyes; then
  20589. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20590. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20591. have_timers=yes
  20592. fi
  20593. # Set up other core UNIX files
  20594. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20595. # The iOS platform requires special setup.
  20596. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  20597. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20598. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20599. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20600. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20601. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20602. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20603. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  20604. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20605. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20606. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20607. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20608. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20609. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20610. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20611. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20612. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20613. ;;
  20614. *-*-darwin* )
  20615. # This could be either full "Mac OS X", or plain "Darwin" which is
  20616. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20617. # Next line is broken, and a few files below require Mac OS X (full)
  20618. ARCH=macosx
  20619. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20620. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20621. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20622. CheckVisibilityHidden
  20623. CheckDeclarationAfterStatement
  20624. CheckDummyVideo
  20625. CheckDiskAudio
  20626. CheckDummyAudio
  20627. CheckDLOPEN
  20628. CheckCOCOA
  20629. CheckX11
  20630. CheckMacGL
  20631. CheckOpenGLX11
  20632. CheckPTHREAD
  20633. # Set up files for the audio library
  20634. if test x$enable_audio = xyes; then
  20635. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20636. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20637. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  20638. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20639. have_audio=yes
  20640. fi
  20641. # Set up files for the joystick library
  20642. if test x$enable_joystick = xyes; then
  20643. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20644. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20645. have_joystick=yes
  20646. fi
  20647. # Set up files for the haptic library
  20648. if test x$enable_haptic = xyes; then
  20649. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20650. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20651. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20652. have_haptic=yes
  20653. fi
  20654. # Set up files for the power library
  20655. if test x$enable_power = xyes; then
  20656. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20657. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20658. have_power=yes
  20659. fi
  20660. # Set up files for the filesystem library
  20661. if test x$enable_filesystem = xyes; then
  20662. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20663. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20664. have_filesystem=yes
  20665. fi
  20666. # Set up files for the timer library
  20667. if test x$enable_timers = xyes; then
  20668. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20669. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20670. have_timers=yes
  20671. fi
  20672. # Set up additional files for the file library
  20673. if test x$enable_file = xyes; then
  20674. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20675. fi
  20676. # Set up other core UNIX files
  20677. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20678. # The Mac OS X platform requires special setup.
  20679. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  20680. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  20681. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  20682. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  20683. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  20684. ;;
  20685. *-nacl|*-pnacl)
  20686. ARCH=nacl
  20687. CheckNativeClient
  20688. CheckDummyAudio
  20689. CheckDummyVideo
  20690. CheckInputEvents
  20691. CheckPTHREAD
  20692. # Set up files for the timer library
  20693. if test x$enable_timers = xyes; then
  20694. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20695. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20696. have_timers=yes
  20697. fi
  20698. if test x$enable_filesystem = xyes; then
  20699. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20700. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20701. have_filesystem=yes
  20702. fi
  20703. ;;
  20704. *-*-emscripten* )
  20705. if test x$enable_video = xyes; then
  20706. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20707. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  20708. have_video=yes
  20709. SUMMARY_video="${SUMMARY_video} emscripten"
  20710. fi
  20711. if test x$enable_audio = xyes; then
  20712. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20713. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  20714. have_audio=yes
  20715. SUMMARY_audio="${SUMMARY_audio} emscripten"
  20716. fi
  20717. CheckVisibilityHidden
  20718. CheckDeclarationAfterStatement
  20719. CheckDummyVideo
  20720. CheckDiskAudio
  20721. CheckDummyAudio
  20722. CheckDLOPEN
  20723. CheckClockGettime
  20724. CheckEmscriptenGLES
  20725. # Set up files for the power library
  20726. if test x$enable_power = xyes; then
  20727. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  20728. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  20729. have_power=yes
  20730. fi
  20731. # Set up files for the power library
  20732. if test x$enable_joystick = xyes; then
  20733. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  20734. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  20735. have_joystick=yes
  20736. fi
  20737. # Set up files for the filesystem library
  20738. if test x$enable_filesystem = xyes; then
  20739. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  20740. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  20741. have_filesystem=yes
  20742. fi
  20743. # Set up files for the timer library
  20744. if test x$enable_timers = xyes; then
  20745. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20746. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20747. have_timers=yes
  20748. fi
  20749. ;;
  20750. *)
  20751. as_fn_error $? "
  20752. *** Unsupported host: Please add to configure.in
  20753. " "$LINENO" 5
  20754. ;;
  20755. esac
  20756. # Verify that we have all the platform specific files we need
  20757. if test x$have_joystick != xyes; then
  20758. if test x$enable_joystick = xyes; then
  20759. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  20760. fi
  20761. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  20762. fi
  20763. if test x$have_haptic != xyes; then
  20764. if test x$enable_haptic = xyes; then
  20765. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  20766. fi
  20767. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  20768. fi
  20769. if test x$have_threads != xyes; then
  20770. if test x$enable_threads = xyes; then
  20771. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  20772. fi
  20773. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  20774. fi
  20775. if test x$have_timers != xyes; then
  20776. if test x$enable_timers = xyes; then
  20777. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  20778. fi
  20779. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  20780. fi
  20781. if test x$have_filesystem != xyes; then
  20782. if test x$enable_filesystem = xyes; then
  20783. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  20784. fi
  20785. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  20786. fi
  20787. if test x$have_loadso != xyes; then
  20788. if test x$enable_loadso = xyes; then
  20789. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  20790. fi
  20791. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  20792. fi
  20793. if test x$SDLMAIN_SOURCES = x; then
  20794. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  20795. fi
  20796. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  20797. if test x$video_wayland = xyes; then
  20798. WAYLAND_CORE_PROTOCOL_SOURCE='$(gen)/wayland-protocol.c'
  20799. WAYLAND_CORE_PROTOCOL_HEADER='$(gen)/wayland-client-protocol.h'
  20800. WAYLAND_PROTOCOLS_UNSTABLE_SOURCES=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20801. sed 's,[^ ]\+,\\$(gen)/&-protocol.c,g'`
  20802. WAYLAND_PROTOCOLS_UNSTABLE_HEADERS=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20803. sed 's,[^ ]\+,\\$(gen)/&-client-protocol.h,g'`
  20804. GEN_SOURCES="$GEN_SOURCES $WAYLAND_CORE_PROTOCOL_SOURCE $WAYLAND_PROTOCOLS_UNSTABLE_SOURCES"
  20805. GEN_HEADERS="$GEN_HEADERS $WAYLAND_CORE_PROTOCOL_HEADER $WAYLAND_PROTOCOLS_UNSTABLE_HEADERS"
  20806. WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS="
  20807. $WAYLAND_CORE_PROTOCOL_SOURCE: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20808. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20809. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) code \$< \$@"
  20810. WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS="
  20811. $WAYLAND_CORE_PROTOCOL_HEADER: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20812. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20813. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) client-header \$< \$@"
  20814. WAYLAND_CORE_PROTOCOL_OBJECT="
  20815. \$(objects)/`echo $WAYLAND_CORE_PROTOCOL_SOURCE | sed 's/\$(gen)\/\(.*\).c$/\1.lo/'`: $WAYLAND_CORE_PROTOCOL_SOURCE
  20816. \$(RUN_CMD_CC)\$(LIBTOOL) --tag=CC --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \$< -o \$@"
  20817. WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20818. do echo ; echo \$p | sed\
  20819. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-client-protocol.h: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20820. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20821. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@," ; done`
  20822. WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20823. do echo ; echo \$p | sed\
  20824. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-protocol.c: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20825. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20826. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@," ; done`
  20827. WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20828. do echo ; echo \$p | sed\
  20829. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\\$(objects)/&-protocol.lo: \\$(gen)/&-protocol.c \\$(gen)/&-client-protocol.h\\\\
  20830. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@," ; done`
  20831. WAYLAND_PROTOCOLS_DEPENDS="
  20832. $WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS
  20833. $WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS
  20834. $WAYLAND_CORE_PROTOCOL_OBJECT
  20835. $WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS
  20836. $WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS
  20837. $WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE
  20838. "
  20839. fi
  20840. OBJECTS=`echo $SOURCES`
  20841. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  20842. for EXT in asm cc m c S; do
  20843. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  20844. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  20845. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  20846. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20847. done
  20848. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20849. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  20850. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  20851. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  20852. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  20853. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  20854. \\$(WINDRES) \\$< \\$@,g"`
  20855. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  20856. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  20857. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20858. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20859. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  20860. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20861. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  20862. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  20863. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20864. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20865. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  20866. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20867. # Set runtime shared library paths as needed
  20868. if test "x$enable_rpath" = "xyes"; then
  20869. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  20870. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  20871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  20872. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  20873. have_enable_new_dtags=no
  20874. save_LDFLAGS="$LDFLAGS"
  20875. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  20876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20877. /* end confdefs.h. */
  20878. int
  20879. main ()
  20880. {
  20881. ;
  20882. return 0;
  20883. }
  20884. _ACEOF
  20885. if ac_fn_c_try_link "$LINENO"; then :
  20886. have_enable_new_dtags=yes
  20887. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  20888. fi
  20889. rm -f core conftest.err conftest.$ac_objext \
  20890. conftest$ac_exeext conftest.$ac_ext
  20891. LDFLAGS="$save_LDFLAGS"
  20892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  20893. $as_echo "$have_enable_new_dtags" >&6; }
  20894. fi
  20895. if test $ARCH = solaris; then
  20896. SDL_RLD_FLAGS="-R\${libdir}"
  20897. fi
  20898. else
  20899. SDL_RLD_FLAGS=""
  20900. fi
  20901. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  20902. if test x$enable_shared = xyes; then
  20903. ENABLE_SHARED_TRUE=
  20904. ENABLE_SHARED_FALSE="#"
  20905. else
  20906. ENABLE_SHARED_TRUE="#"
  20907. ENABLE_SHARED_FALSE=
  20908. fi
  20909. if test x$enable_static = xyes; then
  20910. ENABLE_STATIC_TRUE=
  20911. ENABLE_STATIC_FALSE="#"
  20912. else
  20913. ENABLE_STATIC_TRUE="#"
  20914. ENABLE_STATIC_FALSE=
  20915. fi
  20916. cat >Makefile.rules <<__EOF__
  20917. # Build rules for objects
  20918. -include \$(OBJECTS:.lo=.d)
  20919. # Special dependency for SDL.c, since it depends on SDL_revision.h
  20920. $srcdir/src/SDL.c: update-revision
  20921. $DEPENDS
  20922. $VERSION_DEPENDS
  20923. $SDLMAIN_DEPENDS
  20924. $SDLTEST_DEPENDS
  20925. $WAYLAND_PROTOCOLS_DEPENDS
  20926. __EOF__
  20927. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  20928. ac_config_commands="$ac_config_commands sdl2_config"
  20929. SUMMARY="SDL2 Configure Summary:\n"
  20930. if test x$enable_shared = xyes; then
  20931. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  20932. fi
  20933. if test x$enable_static = xyes; then
  20934. SUMMARY="${SUMMARY}Building Static Libraries\n"
  20935. fi
  20936. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  20937. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  20938. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  20939. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  20940. if test x$have_x = xyes; then
  20941. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  20942. fi
  20943. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  20944. if test x$have_samplerate_h_hdr = xyes; then
  20945. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  20946. else
  20947. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  20948. fi
  20949. if test x$have_libudev_h_hdr = xyes; then
  20950. SUMMARY="${SUMMARY}Using libudev : YES\n"
  20951. else
  20952. SUMMARY="${SUMMARY}Using libudev : NO\n"
  20953. fi
  20954. if test x$have_dbus_dbus_h_hdr = xyes; then
  20955. SUMMARY="${SUMMARY}Using dbus : YES\n"
  20956. else
  20957. SUMMARY="${SUMMARY}Using dbus : NO\n"
  20958. fi
  20959. if test x$enable_ime = xyes; then
  20960. SUMMARY="${SUMMARY}Using ime : YES\n"
  20961. else
  20962. SUMMARY="${SUMMARY}Using ime : NO\n"
  20963. fi
  20964. if test x$have_ibus_ibus_h_hdr = xyes; then
  20965. SUMMARY="${SUMMARY}Using ibus : YES\n"
  20966. else
  20967. SUMMARY="${SUMMARY}Using ibus : NO\n"
  20968. fi
  20969. if test x$have_fcitx_frontend_h_hdr = xyes; then
  20970. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  20971. else
  20972. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  20973. fi
  20974. ac_config_commands="$ac_config_commands summary"
  20975. cat >confcache <<\_ACEOF
  20976. # This file is a shell script that caches the results of configure
  20977. # tests run on this system so they can be shared between configure
  20978. # scripts and configure runs, see configure's option --config-cache.
  20979. # It is not useful on other systems. If it contains results you don't
  20980. # want to keep, you may remove or edit it.
  20981. #
  20982. # config.status only pays attention to the cache file if you give it
  20983. # the --recheck option to rerun configure.
  20984. #
  20985. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20986. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20987. # following values.
  20988. _ACEOF
  20989. # The following way of writing the cache mishandles newlines in values,
  20990. # but we know of no workaround that is simple, portable, and efficient.
  20991. # So, we kill variables containing newlines.
  20992. # Ultrix sh set writes to stderr and can't be redirected directly,
  20993. # and sets the high bit in the cache file unless we assign to the vars.
  20994. (
  20995. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20996. eval ac_val=\$$ac_var
  20997. case $ac_val in #(
  20998. *${as_nl}*)
  20999. case $ac_var in #(
  21000. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21001. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21002. esac
  21003. case $ac_var in #(
  21004. _ | IFS | as_nl) ;; #(
  21005. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21006. *) { eval $ac_var=; unset $ac_var;} ;;
  21007. esac ;;
  21008. esac
  21009. done
  21010. (set) 2>&1 |
  21011. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21012. *${as_nl}ac_space=\ *)
  21013. # `set' does not quote correctly, so add quotes: double-quote
  21014. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21015. sed -n \
  21016. "s/'/'\\\\''/g;
  21017. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21018. ;; #(
  21019. *)
  21020. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21021. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21022. ;;
  21023. esac |
  21024. sort
  21025. ) |
  21026. sed '
  21027. /^ac_cv_env_/b end
  21028. t clear
  21029. :clear
  21030. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21031. t end
  21032. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21033. :end' >>confcache
  21034. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21035. if test -w "$cache_file"; then
  21036. if test "x$cache_file" != "x/dev/null"; then
  21037. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21038. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21039. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21040. cat confcache >"$cache_file"
  21041. else
  21042. case $cache_file in #(
  21043. */* | ?:*)
  21044. mv -f confcache "$cache_file"$$ &&
  21045. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21046. *)
  21047. mv -f confcache "$cache_file" ;;
  21048. esac
  21049. fi
  21050. fi
  21051. else
  21052. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21053. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21054. fi
  21055. fi
  21056. rm -f confcache
  21057. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21058. # Let make expand exec_prefix.
  21059. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21060. DEFS=-DHAVE_CONFIG_H
  21061. ac_libobjs=
  21062. ac_ltlibobjs=
  21063. U=
  21064. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21065. # 1. Remove the extension, and $U if already installed.
  21066. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21067. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21068. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21069. # will be set to the directory where LIBOBJS objects are built.
  21070. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21071. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21072. done
  21073. LIBOBJS=$ac_libobjs
  21074. LTLIBOBJS=$ac_ltlibobjs
  21075. : "${CONFIG_STATUS=./config.status}"
  21076. ac_write_fail=0
  21077. ac_clean_files_save=$ac_clean_files
  21078. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21079. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21080. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21081. as_write_fail=0
  21082. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21083. #! $SHELL
  21084. # Generated by $as_me.
  21085. # Run this file to recreate the current configuration.
  21086. # Compiler output produced by configure, useful for debugging
  21087. # configure, is in config.log if it exists.
  21088. debug=false
  21089. ac_cs_recheck=false
  21090. ac_cs_silent=false
  21091. SHELL=\${CONFIG_SHELL-$SHELL}
  21092. export SHELL
  21093. _ASEOF
  21094. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21095. ## -------------------- ##
  21096. ## M4sh Initialization. ##
  21097. ## -------------------- ##
  21098. # Be more Bourne compatible
  21099. DUALCASE=1; export DUALCASE # for MKS sh
  21100. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21101. emulate sh
  21102. NULLCMD=:
  21103. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21104. # is contrary to our usage. Disable this feature.
  21105. alias -g '${1+"$@"}'='"$@"'
  21106. setopt NO_GLOB_SUBST
  21107. else
  21108. case `(set -o) 2>/dev/null` in #(
  21109. *posix*) :
  21110. set -o posix ;; #(
  21111. *) :
  21112. ;;
  21113. esac
  21114. fi
  21115. as_nl='
  21116. '
  21117. export as_nl
  21118. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21119. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21120. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21121. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21122. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21123. # but without wasting forks for bash or zsh.
  21124. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21125. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21126. as_echo='print -r --'
  21127. as_echo_n='print -rn --'
  21128. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21129. as_echo='printf %s\n'
  21130. as_echo_n='printf %s'
  21131. else
  21132. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21133. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21134. as_echo_n='/usr/ucb/echo -n'
  21135. else
  21136. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21137. as_echo_n_body='eval
  21138. arg=$1;
  21139. case $arg in #(
  21140. *"$as_nl"*)
  21141. expr "X$arg" : "X\\(.*\\)$as_nl";
  21142. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21143. esac;
  21144. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21145. '
  21146. export as_echo_n_body
  21147. as_echo_n='sh -c $as_echo_n_body as_echo'
  21148. fi
  21149. export as_echo_body
  21150. as_echo='sh -c $as_echo_body as_echo'
  21151. fi
  21152. # The user is always right.
  21153. if test "${PATH_SEPARATOR+set}" != set; then
  21154. PATH_SEPARATOR=:
  21155. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21156. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21157. PATH_SEPARATOR=';'
  21158. }
  21159. fi
  21160. # IFS
  21161. # We need space, tab and new line, in precisely that order. Quoting is
  21162. # there to prevent editors from complaining about space-tab.
  21163. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21164. # splitting by setting IFS to empty value.)
  21165. IFS=" "" $as_nl"
  21166. # Find who we are. Look in the path if we contain no directory separator.
  21167. as_myself=
  21168. case $0 in #((
  21169. *[\\/]* ) as_myself=$0 ;;
  21170. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21171. for as_dir in $PATH
  21172. do
  21173. IFS=$as_save_IFS
  21174. test -z "$as_dir" && as_dir=.
  21175. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21176. done
  21177. IFS=$as_save_IFS
  21178. ;;
  21179. esac
  21180. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21181. # in which case we are not to be found in the path.
  21182. if test "x$as_myself" = x; then
  21183. as_myself=$0
  21184. fi
  21185. if test ! -f "$as_myself"; then
  21186. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21187. exit 1
  21188. fi
  21189. # Unset variables that we do not need and which cause bugs (e.g. in
  21190. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21191. # suppresses any "Segmentation fault" message there. '((' could
  21192. # trigger a bug in pdksh 5.2.14.
  21193. for as_var in BASH_ENV ENV MAIL MAILPATH
  21194. do eval test x\${$as_var+set} = xset \
  21195. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21196. done
  21197. PS1='$ '
  21198. PS2='> '
  21199. PS4='+ '
  21200. # NLS nuisances.
  21201. LC_ALL=C
  21202. export LC_ALL
  21203. LANGUAGE=C
  21204. export LANGUAGE
  21205. # CDPATH.
  21206. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21207. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21208. # ----------------------------------------
  21209. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21210. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21211. # script with STATUS, using 1 if that was 0.
  21212. as_fn_error ()
  21213. {
  21214. as_status=$1; test $as_status -eq 0 && as_status=1
  21215. if test "$4"; then
  21216. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21217. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21218. fi
  21219. $as_echo "$as_me: error: $2" >&2
  21220. as_fn_exit $as_status
  21221. } # as_fn_error
  21222. # as_fn_set_status STATUS
  21223. # -----------------------
  21224. # Set $? to STATUS, without forking.
  21225. as_fn_set_status ()
  21226. {
  21227. return $1
  21228. } # as_fn_set_status
  21229. # as_fn_exit STATUS
  21230. # -----------------
  21231. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21232. as_fn_exit ()
  21233. {
  21234. set +e
  21235. as_fn_set_status $1
  21236. exit $1
  21237. } # as_fn_exit
  21238. # as_fn_unset VAR
  21239. # ---------------
  21240. # Portably unset VAR.
  21241. as_fn_unset ()
  21242. {
  21243. { eval $1=; unset $1;}
  21244. }
  21245. as_unset=as_fn_unset
  21246. # as_fn_append VAR VALUE
  21247. # ----------------------
  21248. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21249. # advantage of any shell optimizations that allow amortized linear growth over
  21250. # repeated appends, instead of the typical quadratic growth present in naive
  21251. # implementations.
  21252. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21253. eval 'as_fn_append ()
  21254. {
  21255. eval $1+=\$2
  21256. }'
  21257. else
  21258. as_fn_append ()
  21259. {
  21260. eval $1=\$$1\$2
  21261. }
  21262. fi # as_fn_append
  21263. # as_fn_arith ARG...
  21264. # ------------------
  21265. # Perform arithmetic evaluation on the ARGs, and store the result in the
  21266. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  21267. # must be portable across $(()) and expr.
  21268. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  21269. eval 'as_fn_arith ()
  21270. {
  21271. as_val=$(( $* ))
  21272. }'
  21273. else
  21274. as_fn_arith ()
  21275. {
  21276. as_val=`expr "$@" || test $? -eq 1`
  21277. }
  21278. fi # as_fn_arith
  21279. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21280. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21281. as_expr=expr
  21282. else
  21283. as_expr=false
  21284. fi
  21285. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21286. as_basename=basename
  21287. else
  21288. as_basename=false
  21289. fi
  21290. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21291. as_dirname=dirname
  21292. else
  21293. as_dirname=false
  21294. fi
  21295. as_me=`$as_basename -- "$0" ||
  21296. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21297. X"$0" : 'X\(//\)$' \| \
  21298. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21299. $as_echo X/"$0" |
  21300. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21301. s//\1/
  21302. q
  21303. }
  21304. /^X\/\(\/\/\)$/{
  21305. s//\1/
  21306. q
  21307. }
  21308. /^X\/\(\/\).*/{
  21309. s//\1/
  21310. q
  21311. }
  21312. s/.*/./; q'`
  21313. # Avoid depending upon Character Ranges.
  21314. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21315. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21316. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21317. as_cr_digits='0123456789'
  21318. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21319. ECHO_C= ECHO_N= ECHO_T=
  21320. case `echo -n x` in #(((((
  21321. -n*)
  21322. case `echo 'xy\c'` in
  21323. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21324. xy) ECHO_C='\c';;
  21325. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  21326. ECHO_T=' ';;
  21327. esac;;
  21328. *)
  21329. ECHO_N='-n';;
  21330. esac
  21331. rm -f conf$$ conf$$.exe conf$$.file
  21332. if test -d conf$$.dir; then
  21333. rm -f conf$$.dir/conf$$.file
  21334. else
  21335. rm -f conf$$.dir
  21336. mkdir conf$$.dir 2>/dev/null
  21337. fi
  21338. if (echo >conf$$.file) 2>/dev/null; then
  21339. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21340. as_ln_s='ln -s'
  21341. # ... but there are two gotchas:
  21342. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21343. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21344. # In both cases, we have to default to `cp -pR'.
  21345. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21346. as_ln_s='cp -pR'
  21347. elif ln conf$$.file conf$$ 2>/dev/null; then
  21348. as_ln_s=ln
  21349. else
  21350. as_ln_s='cp -pR'
  21351. fi
  21352. else
  21353. as_ln_s='cp -pR'
  21354. fi
  21355. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21356. rmdir conf$$.dir 2>/dev/null
  21357. # as_fn_mkdir_p
  21358. # -------------
  21359. # Create "$as_dir" as a directory, including parents if necessary.
  21360. as_fn_mkdir_p ()
  21361. {
  21362. case $as_dir in #(
  21363. -*) as_dir=./$as_dir;;
  21364. esac
  21365. test -d "$as_dir" || eval $as_mkdir_p || {
  21366. as_dirs=
  21367. while :; do
  21368. case $as_dir in #(
  21369. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21370. *) as_qdir=$as_dir;;
  21371. esac
  21372. as_dirs="'$as_qdir' $as_dirs"
  21373. as_dir=`$as_dirname -- "$as_dir" ||
  21374. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21375. X"$as_dir" : 'X\(//\)[^/]' \| \
  21376. X"$as_dir" : 'X\(//\)$' \| \
  21377. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21378. $as_echo X"$as_dir" |
  21379. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21380. s//\1/
  21381. q
  21382. }
  21383. /^X\(\/\/\)[^/].*/{
  21384. s//\1/
  21385. q
  21386. }
  21387. /^X\(\/\/\)$/{
  21388. s//\1/
  21389. q
  21390. }
  21391. /^X\(\/\).*/{
  21392. s//\1/
  21393. q
  21394. }
  21395. s/.*/./; q'`
  21396. test -d "$as_dir" && break
  21397. done
  21398. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21399. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  21400. } # as_fn_mkdir_p
  21401. if mkdir -p . 2>/dev/null; then
  21402. as_mkdir_p='mkdir -p "$as_dir"'
  21403. else
  21404. test -d ./-p && rmdir ./-p
  21405. as_mkdir_p=false
  21406. fi
  21407. # as_fn_executable_p FILE
  21408. # -----------------------
  21409. # Test if FILE is an executable regular file.
  21410. as_fn_executable_p ()
  21411. {
  21412. test -f "$1" && test -x "$1"
  21413. } # as_fn_executable_p
  21414. as_test_x='test -x'
  21415. as_executable_p=as_fn_executable_p
  21416. # Sed expression to map a string onto a valid CPP name.
  21417. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21418. # Sed expression to map a string onto a valid variable name.
  21419. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21420. exec 6>&1
  21421. ## ----------------------------------- ##
  21422. ## Main body of $CONFIG_STATUS script. ##
  21423. ## ----------------------------------- ##
  21424. _ASEOF
  21425. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21426. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21427. # Save the log message, to keep $0 and so on meaningful, and to
  21428. # report actual input values of CONFIG_FILES etc. instead of their
  21429. # values after options handling.
  21430. ac_log="
  21431. This file was extended by $as_me, which was
  21432. generated by GNU Autoconf 2.69. Invocation command line was
  21433. CONFIG_FILES = $CONFIG_FILES
  21434. CONFIG_HEADERS = $CONFIG_HEADERS
  21435. CONFIG_LINKS = $CONFIG_LINKS
  21436. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21437. $ $0 $@
  21438. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21439. "
  21440. _ACEOF
  21441. case $ac_config_files in *"
  21442. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21443. esac
  21444. case $ac_config_headers in *"
  21445. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21446. esac
  21447. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21448. # Files that config.status was made for.
  21449. config_files="$ac_config_files"
  21450. config_headers="$ac_config_headers"
  21451. config_commands="$ac_config_commands"
  21452. _ACEOF
  21453. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21454. ac_cs_usage="\
  21455. \`$as_me' instantiates files and other configuration actions
  21456. from templates according to the current configuration. Unless the files
  21457. and actions are specified as TAGs, all are instantiated by default.
  21458. Usage: $0 [OPTION]... [TAG]...
  21459. -h, --help print this help, then exit
  21460. -V, --version print version number and configuration settings, then exit
  21461. --config print configuration, then exit
  21462. -q, --quiet, --silent
  21463. do not print progress messages
  21464. -d, --debug don't remove temporary files
  21465. --recheck update $as_me by reconfiguring in the same conditions
  21466. --file=FILE[:TEMPLATE]
  21467. instantiate the configuration file FILE
  21468. --header=FILE[:TEMPLATE]
  21469. instantiate the configuration header FILE
  21470. Configuration files:
  21471. $config_files
  21472. Configuration headers:
  21473. $config_headers
  21474. Configuration commands:
  21475. $config_commands
  21476. Report bugs to the package provider."
  21477. _ACEOF
  21478. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21479. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21480. ac_cs_version="\\
  21481. config.status
  21482. configured by $0, generated by GNU Autoconf 2.69,
  21483. with options \\"\$ac_cs_config\\"
  21484. Copyright (C) 2012 Free Software Foundation, Inc.
  21485. This config.status script is free software; the Free Software Foundation
  21486. gives unlimited permission to copy, distribute and modify it."
  21487. ac_pwd='$ac_pwd'
  21488. srcdir='$srcdir'
  21489. INSTALL='$INSTALL'
  21490. AWK='$AWK'
  21491. test -n "\$AWK" || AWK=awk
  21492. _ACEOF
  21493. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21494. # The default lists apply if the user does not specify any file.
  21495. ac_need_defaults=:
  21496. while test $# != 0
  21497. do
  21498. case $1 in
  21499. --*=?*)
  21500. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21501. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21502. ac_shift=:
  21503. ;;
  21504. --*=)
  21505. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21506. ac_optarg=
  21507. ac_shift=:
  21508. ;;
  21509. *)
  21510. ac_option=$1
  21511. ac_optarg=$2
  21512. ac_shift=shift
  21513. ;;
  21514. esac
  21515. case $ac_option in
  21516. # Handling of the options.
  21517. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21518. ac_cs_recheck=: ;;
  21519. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21520. $as_echo "$ac_cs_version"; exit ;;
  21521. --config | --confi | --conf | --con | --co | --c )
  21522. $as_echo "$ac_cs_config"; exit ;;
  21523. --debug | --debu | --deb | --de | --d | -d )
  21524. debug=: ;;
  21525. --file | --fil | --fi | --f )
  21526. $ac_shift
  21527. case $ac_optarg in
  21528. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21529. '') as_fn_error $? "missing file argument" ;;
  21530. esac
  21531. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21532. ac_need_defaults=false;;
  21533. --header | --heade | --head | --hea )
  21534. $ac_shift
  21535. case $ac_optarg in
  21536. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21537. esac
  21538. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21539. ac_need_defaults=false;;
  21540. --he | --h)
  21541. # Conflict between --help and --header
  21542. as_fn_error $? "ambiguous option: \`$1'
  21543. Try \`$0 --help' for more information.";;
  21544. --help | --hel | -h )
  21545. $as_echo "$ac_cs_usage"; exit ;;
  21546. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21547. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21548. ac_cs_silent=: ;;
  21549. # This is an error.
  21550. -*) as_fn_error $? "unrecognized option: \`$1'
  21551. Try \`$0 --help' for more information." ;;
  21552. *) as_fn_append ac_config_targets " $1"
  21553. ac_need_defaults=false ;;
  21554. esac
  21555. shift
  21556. done
  21557. ac_configure_extra_args=
  21558. if $ac_cs_silent; then
  21559. exec 6>/dev/null
  21560. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21561. fi
  21562. _ACEOF
  21563. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21564. if \$ac_cs_recheck; then
  21565. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21566. shift
  21567. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21568. CONFIG_SHELL='$SHELL'
  21569. export CONFIG_SHELL
  21570. exec "\$@"
  21571. fi
  21572. _ACEOF
  21573. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21574. exec 5>>config.log
  21575. {
  21576. echo
  21577. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21578. ## Running $as_me. ##
  21579. _ASBOX
  21580. $as_echo "$ac_log"
  21581. } >&5
  21582. _ACEOF
  21583. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21584. #
  21585. # INIT-COMMANDS
  21586. #
  21587. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21588. # if CDPATH is set.
  21589. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21590. sed_quote_subst='$sed_quote_subst'
  21591. double_quote_subst='$double_quote_subst'
  21592. delay_variable_subst='$delay_variable_subst'
  21593. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21594. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21595. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21596. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21597. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21598. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21599. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21600. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21601. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21602. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21603. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21604. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21605. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21606. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21607. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21608. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21609. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21610. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21611. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21612. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21613. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21614. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21615. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21616. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21617. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21618. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21619. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21620. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21621. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21622. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21623. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21624. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21625. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21626. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21627. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21628. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21629. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21630. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21631. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21632. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21633. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21634. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21635. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21636. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21637. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21638. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21639. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21640. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21641. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21642. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21643. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21644. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21645. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21646. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21647. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21648. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21649. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21650. 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"`'
  21651. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21652. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21653. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21654. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21655. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21656. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21657. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21658. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21659. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21660. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21661. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21662. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21663. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21664. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21665. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21666. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21667. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21668. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21669. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21670. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21671. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21672. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21673. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21674. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21675. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21676. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21677. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21678. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21679. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21680. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21681. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21682. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21683. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21684. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21685. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21686. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21687. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21688. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21689. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21690. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21691. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21692. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21693. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21694. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21695. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21696. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21697. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21698. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21699. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21700. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21701. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21702. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21703. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21704. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21705. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21706. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21707. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21708. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21709. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21710. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21711. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21712. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21713. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21714. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21715. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21716. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21717. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  21718. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21719. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21720. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21721. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21722. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21723. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21724. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21725. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21726. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21727. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21728. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21729. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21730. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21731. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21732. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21733. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21734. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21735. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21736. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21737. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21738. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21739. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21740. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21741. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21742. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21743. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21744. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21745. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21746. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21747. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21748. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21749. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21750. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21751. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21752. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  21753. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21754. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21755. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21756. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  21757. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  21758. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  21759. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  21760. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  21761. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  21762. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  21763. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  21764. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  21765. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21766. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21767. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21768. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21769. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21770. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21771. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21772. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21773. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21774. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21775. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  21776. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  21777. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  21778. LTCC='$LTCC'
  21779. LTCFLAGS='$LTCFLAGS'
  21780. compiler='$compiler_DEFAULT'
  21781. # A function that is used when there is no print builtin or printf.
  21782. func_fallback_echo ()
  21783. {
  21784. eval 'cat <<_LTECHO_EOF
  21785. \$1
  21786. _LTECHO_EOF'
  21787. }
  21788. # Quote evaled strings.
  21789. for var in AS \
  21790. DLLTOOL \
  21791. OBJDUMP \
  21792. SHELL \
  21793. ECHO \
  21794. PATH_SEPARATOR \
  21795. SED \
  21796. GREP \
  21797. EGREP \
  21798. FGREP \
  21799. LD \
  21800. NM \
  21801. LN_S \
  21802. lt_SP2NL \
  21803. lt_NL2SP \
  21804. reload_flag \
  21805. deplibs_check_method \
  21806. file_magic_cmd \
  21807. file_magic_glob \
  21808. want_nocaseglob \
  21809. sharedlib_from_linklib_cmd \
  21810. AR \
  21811. AR_FLAGS \
  21812. archiver_list_spec \
  21813. STRIP \
  21814. RANLIB \
  21815. CC \
  21816. CFLAGS \
  21817. compiler \
  21818. lt_cv_sys_global_symbol_pipe \
  21819. lt_cv_sys_global_symbol_to_cdecl \
  21820. lt_cv_sys_global_symbol_to_c_name_address \
  21821. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21822. nm_file_list_spec \
  21823. lt_prog_compiler_no_builtin_flag \
  21824. lt_prog_compiler_pic \
  21825. lt_prog_compiler_wl \
  21826. lt_prog_compiler_static \
  21827. lt_cv_prog_compiler_c_o \
  21828. need_locks \
  21829. MANIFEST_TOOL \
  21830. DSYMUTIL \
  21831. NMEDIT \
  21832. LIPO \
  21833. OTOOL \
  21834. OTOOL64 \
  21835. shrext_cmds \
  21836. export_dynamic_flag_spec \
  21837. whole_archive_flag_spec \
  21838. compiler_needs_object \
  21839. with_gnu_ld \
  21840. allow_undefined_flag \
  21841. no_undefined_flag \
  21842. hardcode_libdir_flag_spec \
  21843. hardcode_libdir_separator \
  21844. exclude_expsyms \
  21845. include_expsyms \
  21846. file_list_spec \
  21847. variables_saved_for_relink \
  21848. libname_spec \
  21849. library_names_spec \
  21850. soname_spec \
  21851. install_override_mode \
  21852. finish_eval \
  21853. old_striplib \
  21854. striplib \
  21855. compiler_lib_search_dirs \
  21856. predep_objects \
  21857. postdep_objects \
  21858. predeps \
  21859. postdeps \
  21860. compiler_lib_search_path \
  21861. LD_CXX \
  21862. reload_flag_CXX \
  21863. compiler_CXX \
  21864. lt_prog_compiler_no_builtin_flag_CXX \
  21865. lt_prog_compiler_pic_CXX \
  21866. lt_prog_compiler_wl_CXX \
  21867. lt_prog_compiler_static_CXX \
  21868. lt_cv_prog_compiler_c_o_CXX \
  21869. export_dynamic_flag_spec_CXX \
  21870. whole_archive_flag_spec_CXX \
  21871. compiler_needs_object_CXX \
  21872. with_gnu_ld_CXX \
  21873. allow_undefined_flag_CXX \
  21874. no_undefined_flag_CXX \
  21875. hardcode_libdir_flag_spec_CXX \
  21876. hardcode_libdir_separator_CXX \
  21877. exclude_expsyms_CXX \
  21878. include_expsyms_CXX \
  21879. file_list_spec_CXX \
  21880. compiler_lib_search_dirs_CXX \
  21881. predep_objects_CXX \
  21882. postdep_objects_CXX \
  21883. predeps_CXX \
  21884. postdeps_CXX \
  21885. compiler_lib_search_path_CXX; do
  21886. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21887. *[\\\\\\\`\\"\\\$]*)
  21888. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  21889. ;;
  21890. *)
  21891. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21892. ;;
  21893. esac
  21894. done
  21895. # Double-quote double-evaled strings.
  21896. for var in reload_cmds \
  21897. old_postinstall_cmds \
  21898. old_postuninstall_cmds \
  21899. old_archive_cmds \
  21900. extract_expsyms_cmds \
  21901. old_archive_from_new_cmds \
  21902. old_archive_from_expsyms_cmds \
  21903. archive_cmds \
  21904. archive_expsym_cmds \
  21905. module_cmds \
  21906. module_expsym_cmds \
  21907. export_symbols_cmds \
  21908. prelink_cmds \
  21909. postlink_cmds \
  21910. postinstall_cmds \
  21911. postuninstall_cmds \
  21912. finish_cmds \
  21913. sys_lib_search_path_spec \
  21914. sys_lib_dlsearch_path_spec \
  21915. reload_cmds_CXX \
  21916. old_archive_cmds_CXX \
  21917. old_archive_from_new_cmds_CXX \
  21918. old_archive_from_expsyms_cmds_CXX \
  21919. archive_cmds_CXX \
  21920. archive_expsym_cmds_CXX \
  21921. module_cmds_CXX \
  21922. module_expsym_cmds_CXX \
  21923. export_symbols_cmds_CXX \
  21924. prelink_cmds_CXX \
  21925. postlink_cmds_CXX; do
  21926. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21927. *[\\\\\\\`\\"\\\$]*)
  21928. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  21929. ;;
  21930. *)
  21931. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21932. ;;
  21933. esac
  21934. done
  21935. ac_aux_dir='$ac_aux_dir'
  21936. xsi_shell='$xsi_shell'
  21937. lt_shell_append='$lt_shell_append'
  21938. # See if we are running on zsh, and set the options which allow our
  21939. # commands through without removal of \ escapes INIT.
  21940. if test -n "\${ZSH_VERSION+set}" ; then
  21941. setopt NO_GLOB_SUBST
  21942. fi
  21943. PACKAGE='$PACKAGE'
  21944. VERSION='$VERSION'
  21945. TIMESTAMP='$TIMESTAMP'
  21946. RM='$RM'
  21947. ofile='$ofile'
  21948. SUMMARY="$SUMMARY"
  21949. _ACEOF
  21950. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21951. # Handling of arguments.
  21952. for ac_config_target in $ac_config_targets
  21953. do
  21954. case $ac_config_target in
  21955. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  21956. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  21957. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  21958. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  21959. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  21960. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  21961. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  21962. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  21963. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  21964. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  21965. esac
  21966. done
  21967. # If the user did not use the arguments to specify the items to instantiate,
  21968. # then the envvar interface is used. Set only those that are not.
  21969. # We use the long form for the default assignment because of an extremely
  21970. # bizarre bug on SunOS 4.1.3.
  21971. if $ac_need_defaults; then
  21972. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21973. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21974. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21975. fi
  21976. # Have a temporary directory for convenience. Make it in the build tree
  21977. # simply because there is no reason against having it here, and in addition,
  21978. # creating and moving files from /tmp can sometimes cause problems.
  21979. # Hook for its removal unless debugging.
  21980. # Note that there is a small window in which the directory will not be cleaned:
  21981. # after its creation but before its name has been assigned to `$tmp'.
  21982. $debug ||
  21983. {
  21984. tmp= ac_tmp=
  21985. trap 'exit_status=$?
  21986. : "${ac_tmp:=$tmp}"
  21987. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  21988. ' 0
  21989. trap 'as_fn_exit 1' 1 2 13 15
  21990. }
  21991. # Create a (secure) tmp directory for tmp files.
  21992. {
  21993. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21994. test -d "$tmp"
  21995. } ||
  21996. {
  21997. tmp=./conf$$-$RANDOM
  21998. (umask 077 && mkdir "$tmp")
  21999. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22000. ac_tmp=$tmp
  22001. # Set up the scripts for CONFIG_FILES section.
  22002. # No need to generate them if there are no CONFIG_FILES.
  22003. # This happens for instance with `./config.status config.h'.
  22004. if test -n "$CONFIG_FILES"; then
  22005. ac_cr=`echo X | tr X '\015'`
  22006. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22007. # But we know of no other shell where ac_cr would be empty at this
  22008. # point, so we can use a bashism as a fallback.
  22009. if test "x$ac_cr" = x; then
  22010. eval ac_cr=\$\'\\r\'
  22011. fi
  22012. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22013. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22014. ac_cs_awk_cr='\\r'
  22015. else
  22016. ac_cs_awk_cr=$ac_cr
  22017. fi
  22018. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22019. _ACEOF
  22020. {
  22021. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22022. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22023. echo "_ACEOF"
  22024. } >conf$$subs.sh ||
  22025. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22026. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22027. ac_delim='%!_!# '
  22028. for ac_last_try in false false false false false :; do
  22029. . ./conf$$subs.sh ||
  22030. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22031. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22032. if test $ac_delim_n = $ac_delim_num; then
  22033. break
  22034. elif $ac_last_try; then
  22035. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22036. else
  22037. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22038. fi
  22039. done
  22040. rm -f conf$$subs.sh
  22041. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22042. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22043. _ACEOF
  22044. sed -n '
  22045. h
  22046. s/^/S["/; s/!.*/"]=/
  22047. p
  22048. g
  22049. s/^[^!]*!//
  22050. :repl
  22051. t repl
  22052. s/'"$ac_delim"'$//
  22053. t delim
  22054. :nl
  22055. h
  22056. s/\(.\{148\}\)..*/\1/
  22057. t more1
  22058. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22059. p
  22060. n
  22061. b repl
  22062. :more1
  22063. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22064. p
  22065. g
  22066. s/.\{148\}//
  22067. t nl
  22068. :delim
  22069. h
  22070. s/\(.\{148\}\)..*/\1/
  22071. t more2
  22072. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22073. p
  22074. b
  22075. :more2
  22076. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22077. p
  22078. g
  22079. s/.\{148\}//
  22080. t delim
  22081. ' <conf$$subs.awk | sed '
  22082. /^[^""]/{
  22083. N
  22084. s/\n//
  22085. }
  22086. ' >>$CONFIG_STATUS || ac_write_fail=1
  22087. rm -f conf$$subs.awk
  22088. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22089. _ACAWK
  22090. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22091. for (key in S) S_is_set[key] = 1
  22092. FS = ""
  22093. }
  22094. {
  22095. line = $ 0
  22096. nfields = split(line, field, "@")
  22097. substed = 0
  22098. len = length(field[1])
  22099. for (i = 2; i < nfields; i++) {
  22100. key = field[i]
  22101. keylen = length(key)
  22102. if (S_is_set[key]) {
  22103. value = S[key]
  22104. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22105. len += length(value) + length(field[++i])
  22106. substed = 1
  22107. } else
  22108. len += 1 + keylen
  22109. }
  22110. print line
  22111. }
  22112. _ACAWK
  22113. _ACEOF
  22114. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22115. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22116. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22117. else
  22118. cat
  22119. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22120. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22121. _ACEOF
  22122. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22123. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22124. # trailing colons and then remove the whole line if VPATH becomes empty
  22125. # (actually we leave an empty line to preserve line numbers).
  22126. if test "x$srcdir" = x.; then
  22127. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22128. h
  22129. s///
  22130. s/^/:/
  22131. s/[ ]*$/:/
  22132. s/:\$(srcdir):/:/g
  22133. s/:\${srcdir}:/:/g
  22134. s/:@srcdir@:/:/g
  22135. s/^:*//
  22136. s/:*$//
  22137. x
  22138. s/\(=[ ]*\).*/\1/
  22139. G
  22140. s/\n//
  22141. s/^[^=]*=[ ]*$//
  22142. }'
  22143. fi
  22144. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22145. fi # test -n "$CONFIG_FILES"
  22146. # Set up the scripts for CONFIG_HEADERS section.
  22147. # No need to generate them if there are no CONFIG_HEADERS.
  22148. # This happens for instance with `./config.status Makefile'.
  22149. if test -n "$CONFIG_HEADERS"; then
  22150. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22151. BEGIN {
  22152. _ACEOF
  22153. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22154. # here-document in config.status, that substitutes the proper values into
  22155. # config.h.in to produce config.h.
  22156. # Create a delimiter string that does not exist in confdefs.h, to ease
  22157. # handling of long lines.
  22158. ac_delim='%!_!# '
  22159. for ac_last_try in false false :; do
  22160. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22161. if test -z "$ac_tt"; then
  22162. break
  22163. elif $ac_last_try; then
  22164. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22165. else
  22166. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22167. fi
  22168. done
  22169. # For the awk script, D is an array of macro values keyed by name,
  22170. # likewise P contains macro parameters if any. Preserve backslash
  22171. # newline sequences.
  22172. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22173. sed -n '
  22174. s/.\{148\}/&'"$ac_delim"'/g
  22175. t rset
  22176. :rset
  22177. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22178. t def
  22179. d
  22180. :def
  22181. s/\\$//
  22182. t bsnl
  22183. s/["\\]/\\&/g
  22184. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22185. D["\1"]=" \3"/p
  22186. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22187. d
  22188. :bsnl
  22189. s/["\\]/\\&/g
  22190. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22191. D["\1"]=" \3\\\\\\n"\\/p
  22192. t cont
  22193. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22194. t cont
  22195. d
  22196. :cont
  22197. n
  22198. s/.\{148\}/&'"$ac_delim"'/g
  22199. t clear
  22200. :clear
  22201. s/\\$//
  22202. t bsnlc
  22203. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22204. d
  22205. :bsnlc
  22206. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22207. b cont
  22208. ' <confdefs.h | sed '
  22209. s/'"$ac_delim"'/"\\\
  22210. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22211. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22212. for (key in D) D_is_set[key] = 1
  22213. FS = ""
  22214. }
  22215. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22216. line = \$ 0
  22217. split(line, arg, " ")
  22218. if (arg[1] == "#") {
  22219. defundef = arg[2]
  22220. mac1 = arg[3]
  22221. } else {
  22222. defundef = substr(arg[1], 2)
  22223. mac1 = arg[2]
  22224. }
  22225. split(mac1, mac2, "(") #)
  22226. macro = mac2[1]
  22227. prefix = substr(line, 1, index(line, defundef) - 1)
  22228. if (D_is_set[macro]) {
  22229. # Preserve the white space surrounding the "#".
  22230. print prefix "define", macro P[macro] D[macro]
  22231. next
  22232. } else {
  22233. # Replace #undef with comments. This is necessary, for example,
  22234. # in the case of _POSIX_SOURCE, which is predefined and required
  22235. # on some systems where configure will not decide to define it.
  22236. if (defundef == "undef") {
  22237. print "/*", prefix defundef, macro, "*/"
  22238. next
  22239. }
  22240. }
  22241. }
  22242. { print }
  22243. _ACAWK
  22244. _ACEOF
  22245. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22246. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  22247. fi # test -n "$CONFIG_HEADERS"
  22248. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22249. shift
  22250. for ac_tag
  22251. do
  22252. case $ac_tag in
  22253. :[FHLC]) ac_mode=$ac_tag; continue;;
  22254. esac
  22255. case $ac_mode$ac_tag in
  22256. :[FHL]*:*);;
  22257. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  22258. :[FH]-) ac_tag=-:-;;
  22259. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22260. esac
  22261. ac_save_IFS=$IFS
  22262. IFS=:
  22263. set x $ac_tag
  22264. IFS=$ac_save_IFS
  22265. shift
  22266. ac_file=$1
  22267. shift
  22268. case $ac_mode in
  22269. :L) ac_source=$1;;
  22270. :[FH])
  22271. ac_file_inputs=
  22272. for ac_f
  22273. do
  22274. case $ac_f in
  22275. -) ac_f="$ac_tmp/stdin";;
  22276. *) # Look for the file first in the build tree, then in the source tree
  22277. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22278. # because $ac_f cannot contain `:'.
  22279. test -f "$ac_f" ||
  22280. case $ac_f in
  22281. [\\/$]*) false;;
  22282. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22283. esac ||
  22284. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  22285. esac
  22286. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22287. as_fn_append ac_file_inputs " '$ac_f'"
  22288. done
  22289. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22290. # use $as_me), people would be surprised to read:
  22291. # /* config.h. Generated by config.status. */
  22292. configure_input='Generated from '`
  22293. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22294. `' by configure.'
  22295. if test x"$ac_file" != x-; then
  22296. configure_input="$ac_file. $configure_input"
  22297. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  22298. $as_echo "$as_me: creating $ac_file" >&6;}
  22299. fi
  22300. # Neutralize special characters interpreted by sed in replacement strings.
  22301. case $configure_input in #(
  22302. *\&* | *\|* | *\\* )
  22303. ac_sed_conf_input=`$as_echo "$configure_input" |
  22304. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22305. *) ac_sed_conf_input=$configure_input;;
  22306. esac
  22307. case $ac_tag in
  22308. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  22309. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  22310. esac
  22311. ;;
  22312. esac
  22313. ac_dir=`$as_dirname -- "$ac_file" ||
  22314. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22315. X"$ac_file" : 'X\(//\)[^/]' \| \
  22316. X"$ac_file" : 'X\(//\)$' \| \
  22317. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22318. $as_echo X"$ac_file" |
  22319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22320. s//\1/
  22321. q
  22322. }
  22323. /^X\(\/\/\)[^/].*/{
  22324. s//\1/
  22325. q
  22326. }
  22327. /^X\(\/\/\)$/{
  22328. s//\1/
  22329. q
  22330. }
  22331. /^X\(\/\).*/{
  22332. s//\1/
  22333. q
  22334. }
  22335. s/.*/./; q'`
  22336. as_dir="$ac_dir"; as_fn_mkdir_p
  22337. ac_builddir=.
  22338. case "$ac_dir" in
  22339. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22340. *)
  22341. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22342. # A ".." for each directory in $ac_dir_suffix.
  22343. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22344. case $ac_top_builddir_sub in
  22345. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22346. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22347. esac ;;
  22348. esac
  22349. ac_abs_top_builddir=$ac_pwd
  22350. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22351. # for backward compatibility:
  22352. ac_top_builddir=$ac_top_build_prefix
  22353. case $srcdir in
  22354. .) # We are building in place.
  22355. ac_srcdir=.
  22356. ac_top_srcdir=$ac_top_builddir_sub
  22357. ac_abs_top_srcdir=$ac_pwd ;;
  22358. [\\/]* | ?:[\\/]* ) # Absolute name.
  22359. ac_srcdir=$srcdir$ac_dir_suffix;
  22360. ac_top_srcdir=$srcdir
  22361. ac_abs_top_srcdir=$srcdir ;;
  22362. *) # Relative name.
  22363. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22364. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22365. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22366. esac
  22367. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22368. case $ac_mode in
  22369. :F)
  22370. #
  22371. # CONFIG_FILE
  22372. #
  22373. case $INSTALL in
  22374. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22375. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22376. esac
  22377. _ACEOF
  22378. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22379. # If the template does not know about datarootdir, expand it.
  22380. # FIXME: This hack should be removed a few years after 2.60.
  22381. ac_datarootdir_hack=; ac_datarootdir_seen=
  22382. ac_sed_dataroot='
  22383. /datarootdir/ {
  22384. p
  22385. q
  22386. }
  22387. /@datadir@/p
  22388. /@docdir@/p
  22389. /@infodir@/p
  22390. /@localedir@/p
  22391. /@mandir@/p'
  22392. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22393. *datarootdir*) ac_datarootdir_seen=yes;;
  22394. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22395. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22396. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22397. _ACEOF
  22398. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22399. ac_datarootdir_hack='
  22400. s&@datadir@&$datadir&g
  22401. s&@docdir@&$docdir&g
  22402. s&@infodir@&$infodir&g
  22403. s&@localedir@&$localedir&g
  22404. s&@mandir@&$mandir&g
  22405. s&\\\${datarootdir}&$datarootdir&g' ;;
  22406. esac
  22407. _ACEOF
  22408. # Neutralize VPATH when `$srcdir' = `.'.
  22409. # Shell code in configure.ac might set extrasub.
  22410. # FIXME: do we really want to maintain this feature?
  22411. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22412. ac_sed_extra="$ac_vpsub
  22413. $extrasub
  22414. _ACEOF
  22415. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22416. :t
  22417. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22418. s|@configure_input@|$ac_sed_conf_input|;t t
  22419. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22420. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22421. s&@srcdir@&$ac_srcdir&;t t
  22422. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22423. s&@top_srcdir@&$ac_top_srcdir&;t t
  22424. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22425. s&@builddir@&$ac_builddir&;t t
  22426. s&@abs_builddir@&$ac_abs_builddir&;t t
  22427. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22428. s&@INSTALL@&$ac_INSTALL&;t t
  22429. $ac_datarootdir_hack
  22430. "
  22431. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22432. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22433. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22434. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22435. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22436. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22437. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22438. which seems to be undefined. Please make sure it is defined" >&5
  22439. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22440. which seems to be undefined. Please make sure it is defined" >&2;}
  22441. rm -f "$ac_tmp/stdin"
  22442. case $ac_file in
  22443. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22444. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22445. esac \
  22446. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22447. ;;
  22448. :H)
  22449. #
  22450. # CONFIG_HEADER
  22451. #
  22452. if test x"$ac_file" != x-; then
  22453. {
  22454. $as_echo "/* $configure_input */" \
  22455. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22456. } >"$ac_tmp/config.h" \
  22457. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22458. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22459. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22460. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22461. else
  22462. rm -f "$ac_file"
  22463. mv "$ac_tmp/config.h" "$ac_file" \
  22464. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22465. fi
  22466. else
  22467. $as_echo "/* $configure_input */" \
  22468. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22469. || as_fn_error $? "could not create -" "$LINENO" 5
  22470. fi
  22471. ;;
  22472. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22473. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22474. ;;
  22475. esac
  22476. case $ac_file$ac_mode in
  22477. "libtool":C)
  22478. # See if we are running on zsh, and set the options which allow our
  22479. # commands through without removal of \ escapes.
  22480. if test -n "${ZSH_VERSION+set}" ; then
  22481. setopt NO_GLOB_SUBST
  22482. fi
  22483. cfgfile="${ofile}T"
  22484. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22485. $RM "$cfgfile"
  22486. cat <<_LT_EOF >> "$cfgfile"
  22487. #! $SHELL
  22488. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22489. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22490. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22491. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22492. #
  22493. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22494. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22495. # Foundation, Inc.
  22496. # Written by Gordon Matzigkeit, 1996
  22497. #
  22498. # This file is part of GNU Libtool.
  22499. #
  22500. # GNU Libtool is free software; you can redistribute it and/or
  22501. # modify it under the terms of the GNU General Public License as
  22502. # published by the Free Software Foundation; either version 2 of
  22503. # the License, or (at your option) any later version.
  22504. #
  22505. # As a special exception to the GNU General Public License,
  22506. # if you distribute this file as part of a program or library that
  22507. # is built using GNU Libtool, you may include this file under the
  22508. # same distribution terms that you use for the rest of that program.
  22509. #
  22510. # GNU Libtool is distributed in the hope that it will be useful,
  22511. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22512. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22513. # GNU General Public License for more details.
  22514. #
  22515. # You should have received a copy of the GNU General Public License
  22516. # along with GNU Libtool; see the file COPYING. If not, a copy
  22517. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22518. # obtained by writing to the Free Software Foundation, Inc.,
  22519. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22520. # The names of the tagged configurations supported by this script.
  22521. available_tags="CXX "
  22522. # ### BEGIN LIBTOOL CONFIG
  22523. # Which release of libtool.m4 was used?
  22524. macro_version=$macro_version
  22525. macro_revision=$macro_revision
  22526. # Assembler program.
  22527. AS=$lt_AS
  22528. # DLL creation program.
  22529. DLLTOOL=$lt_DLLTOOL
  22530. # Object dumper program.
  22531. OBJDUMP=$lt_OBJDUMP
  22532. # Whether or not to build shared libraries.
  22533. build_libtool_libs=$enable_shared
  22534. # Whether or not to build static libraries.
  22535. build_old_libs=$enable_static
  22536. # What type of objects to build.
  22537. pic_mode=$pic_mode
  22538. # Whether or not to optimize for fast installation.
  22539. fast_install=$enable_fast_install
  22540. # Shell to use when invoking shell scripts.
  22541. SHELL=$lt_SHELL
  22542. # An echo program that protects backslashes.
  22543. ECHO=$lt_ECHO
  22544. # The PATH separator for the build system.
  22545. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22546. # The host system.
  22547. host_alias=$host_alias
  22548. host=$host
  22549. host_os=$host_os
  22550. # The build system.
  22551. build_alias=$build_alias
  22552. build=$build
  22553. build_os=$build_os
  22554. # A sed program that does not truncate output.
  22555. SED=$lt_SED
  22556. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22557. Xsed="\$SED -e 1s/^X//"
  22558. # A grep program that handles long lines.
  22559. GREP=$lt_GREP
  22560. # An ERE matcher.
  22561. EGREP=$lt_EGREP
  22562. # A literal string matcher.
  22563. FGREP=$lt_FGREP
  22564. # A BSD- or MS-compatible name lister.
  22565. NM=$lt_NM
  22566. # Whether we need soft or hard links.
  22567. LN_S=$lt_LN_S
  22568. # What is the maximum length of a command?
  22569. max_cmd_len=$max_cmd_len
  22570. # Object file suffix (normally "o").
  22571. objext=$ac_objext
  22572. # Executable file suffix (normally "").
  22573. exeext=$exeext
  22574. # whether the shell understands "unset".
  22575. lt_unset=$lt_unset
  22576. # turn spaces into newlines.
  22577. SP2NL=$lt_lt_SP2NL
  22578. # turn newlines into spaces.
  22579. NL2SP=$lt_lt_NL2SP
  22580. # convert \$build file names to \$host format.
  22581. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22582. # convert \$build files to toolchain format.
  22583. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22584. # Method to check whether dependent libraries are shared objects.
  22585. deplibs_check_method=$lt_deplibs_check_method
  22586. # Command to use when deplibs_check_method = "file_magic".
  22587. file_magic_cmd=$lt_file_magic_cmd
  22588. # How to find potential files when deplibs_check_method = "file_magic".
  22589. file_magic_glob=$lt_file_magic_glob
  22590. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22591. want_nocaseglob=$lt_want_nocaseglob
  22592. # Command to associate shared and link libraries.
  22593. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22594. # The archiver.
  22595. AR=$lt_AR
  22596. # Flags to create an archive.
  22597. AR_FLAGS=$lt_AR_FLAGS
  22598. # How to feed a file listing to the archiver.
  22599. archiver_list_spec=$lt_archiver_list_spec
  22600. # A symbol stripping program.
  22601. STRIP=$lt_STRIP
  22602. # Commands used to install an old-style archive.
  22603. RANLIB=$lt_RANLIB
  22604. old_postinstall_cmds=$lt_old_postinstall_cmds
  22605. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22606. # Whether to use a lock for old archive extraction.
  22607. lock_old_archive_extraction=$lock_old_archive_extraction
  22608. # A C compiler.
  22609. LTCC=$lt_CC
  22610. # LTCC compiler flags.
  22611. LTCFLAGS=$lt_CFLAGS
  22612. # Take the output of nm and produce a listing of raw symbols and C names.
  22613. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22614. # Transform the output of nm in a proper C declaration.
  22615. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22616. # Transform the output of nm in a C name address pair.
  22617. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22618. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22619. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22620. # Specify filename containing input files for \$NM.
  22621. nm_file_list_spec=$lt_nm_file_list_spec
  22622. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22623. lt_sysroot=$lt_sysroot
  22624. # The name of the directory that contains temporary libtool files.
  22625. objdir=$objdir
  22626. # Used to examine libraries when file_magic_cmd begins with "file".
  22627. MAGIC_CMD=$MAGIC_CMD
  22628. # Must we lock files when doing compilation?
  22629. need_locks=$lt_need_locks
  22630. # Manifest tool.
  22631. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22632. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22633. DSYMUTIL=$lt_DSYMUTIL
  22634. # Tool to change global to local symbols on Mac OS X.
  22635. NMEDIT=$lt_NMEDIT
  22636. # Tool to manipulate fat objects and archives on Mac OS X.
  22637. LIPO=$lt_LIPO
  22638. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22639. OTOOL=$lt_OTOOL
  22640. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22641. OTOOL64=$lt_OTOOL64
  22642. # Old archive suffix (normally "a").
  22643. libext=$libext
  22644. # Shared library suffix (normally ".so").
  22645. shrext_cmds=$lt_shrext_cmds
  22646. # The commands to extract the exported symbol list from a shared archive.
  22647. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22648. # Variables whose values should be saved in libtool wrapper scripts and
  22649. # restored at link time.
  22650. variables_saved_for_relink=$lt_variables_saved_for_relink
  22651. # Do we need the "lib" prefix for modules?
  22652. need_lib_prefix=$need_lib_prefix
  22653. # Do we need a version for libraries?
  22654. need_version=$need_version
  22655. # Library versioning type.
  22656. version_type=$version_type
  22657. # Shared library runtime path variable.
  22658. runpath_var=$runpath_var
  22659. # Shared library path variable.
  22660. shlibpath_var=$shlibpath_var
  22661. # Is shlibpath searched before the hard-coded library search path?
  22662. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22663. # Format of library name prefix.
  22664. libname_spec=$lt_libname_spec
  22665. # List of archive names. First name is the real one, the rest are links.
  22666. # The last name is the one that the linker finds with -lNAME
  22667. library_names_spec=$lt_library_names_spec
  22668. # The coded name of the library, if different from the real name.
  22669. soname_spec=$lt_soname_spec
  22670. # Permission mode override for installation of shared libraries.
  22671. install_override_mode=$lt_install_override_mode
  22672. # Command to use after installation of a shared archive.
  22673. postinstall_cmds=$lt_postinstall_cmds
  22674. # Command to use after uninstallation of a shared archive.
  22675. postuninstall_cmds=$lt_postuninstall_cmds
  22676. # Commands used to finish a libtool library installation in a directory.
  22677. finish_cmds=$lt_finish_cmds
  22678. # As "finish_cmds", except a single script fragment to be evaled but
  22679. # not shown.
  22680. finish_eval=$lt_finish_eval
  22681. # Whether we should hardcode library paths into libraries.
  22682. hardcode_into_libs=$hardcode_into_libs
  22683. # Compile-time system search path for libraries.
  22684. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22685. # Run-time system search path for libraries.
  22686. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22687. # Whether dlopen is supported.
  22688. dlopen_support=$enable_dlopen
  22689. # Whether dlopen of programs is supported.
  22690. dlopen_self=$enable_dlopen_self
  22691. # Whether dlopen of statically linked programs is supported.
  22692. dlopen_self_static=$enable_dlopen_self_static
  22693. # Commands to strip libraries.
  22694. old_striplib=$lt_old_striplib
  22695. striplib=$lt_striplib
  22696. # The linker used to build libraries.
  22697. LD=$lt_LD
  22698. # How to create reloadable object files.
  22699. reload_flag=$lt_reload_flag
  22700. reload_cmds=$lt_reload_cmds
  22701. # Commands used to build an old-style archive.
  22702. old_archive_cmds=$lt_old_archive_cmds
  22703. # A language specific compiler.
  22704. CC=$lt_compiler
  22705. # Is the compiler the GNU compiler?
  22706. with_gcc=$GCC
  22707. # Compiler flag to turn off builtin functions.
  22708. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22709. # Additional compiler flags for building library objects.
  22710. pic_flag=$lt_lt_prog_compiler_pic
  22711. # How to pass a linker flag through the compiler.
  22712. wl=$lt_lt_prog_compiler_wl
  22713. # Compiler flag to prevent dynamic linking.
  22714. link_static_flag=$lt_lt_prog_compiler_static
  22715. # Does compiler simultaneously support -c and -o options?
  22716. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22717. # Whether or not to add -lc for building shared libraries.
  22718. build_libtool_need_lc=$archive_cmds_need_lc
  22719. # Whether or not to disallow shared libs when runtime libs are static.
  22720. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22721. # Compiler flag to allow reflexive dlopens.
  22722. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22723. # Compiler flag to generate shared objects directly from archives.
  22724. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22725. # Whether the compiler copes with passing no objects directly.
  22726. compiler_needs_object=$lt_compiler_needs_object
  22727. # Create an old-style archive from a shared archive.
  22728. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22729. # Create a temporary old-style archive to link instead of a shared archive.
  22730. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22731. # Commands used to build a shared archive.
  22732. archive_cmds=$lt_archive_cmds
  22733. archive_expsym_cmds=$lt_archive_expsym_cmds
  22734. # Commands used to build a loadable module if different from building
  22735. # a shared archive.
  22736. module_cmds=$lt_module_cmds
  22737. module_expsym_cmds=$lt_module_expsym_cmds
  22738. # Whether we are building with GNU ld or not.
  22739. with_gnu_ld=$lt_with_gnu_ld
  22740. # Flag that allows shared libraries with undefined symbols to be built.
  22741. allow_undefined_flag=$lt_allow_undefined_flag
  22742. # Flag that enforces no undefined symbols.
  22743. no_undefined_flag=$lt_no_undefined_flag
  22744. # Flag to hardcode \$libdir into a binary during linking.
  22745. # This must work even if \$libdir does not exist
  22746. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22747. # Whether we need a single "-rpath" flag with a separated argument.
  22748. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22749. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22750. # DIR into the resulting binary.
  22751. hardcode_direct=$hardcode_direct
  22752. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22753. # DIR into the resulting binary and the resulting library dependency is
  22754. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22755. # library is relocated.
  22756. hardcode_direct_absolute=$hardcode_direct_absolute
  22757. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22758. # into the resulting binary.
  22759. hardcode_minus_L=$hardcode_minus_L
  22760. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22761. # into the resulting binary.
  22762. hardcode_shlibpath_var=$hardcode_shlibpath_var
  22763. # Set to "yes" if building a shared library automatically hardcodes DIR
  22764. # into the library and all subsequent libraries and executables linked
  22765. # against it.
  22766. hardcode_automatic=$hardcode_automatic
  22767. # Set to yes if linker adds runtime paths of dependent libraries
  22768. # to runtime path list.
  22769. inherit_rpath=$inherit_rpath
  22770. # Whether libtool must link a program against all its dependency libraries.
  22771. link_all_deplibs=$link_all_deplibs
  22772. # Set to "yes" if exported symbols are required.
  22773. always_export_symbols=$always_export_symbols
  22774. # The commands to list exported symbols.
  22775. export_symbols_cmds=$lt_export_symbols_cmds
  22776. # Symbols that should not be listed in the preloaded symbols.
  22777. exclude_expsyms=$lt_exclude_expsyms
  22778. # Symbols that must always be exported.
  22779. include_expsyms=$lt_include_expsyms
  22780. # Commands necessary for linking programs (against libraries) with templates.
  22781. prelink_cmds=$lt_prelink_cmds
  22782. # Commands necessary for finishing linking programs.
  22783. postlink_cmds=$lt_postlink_cmds
  22784. # Specify filename containing input files.
  22785. file_list_spec=$lt_file_list_spec
  22786. # How to hardcode a shared library path into an executable.
  22787. hardcode_action=$hardcode_action
  22788. # The directories searched by this compiler when creating a shared library.
  22789. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22790. # Dependencies to place before and after the objects being linked to
  22791. # create a shared library.
  22792. predep_objects=$lt_predep_objects
  22793. postdep_objects=$lt_postdep_objects
  22794. predeps=$lt_predeps
  22795. postdeps=$lt_postdeps
  22796. # The library search path used internally by the compiler when linking
  22797. # a shared library.
  22798. compiler_lib_search_path=$lt_compiler_lib_search_path
  22799. # ### END LIBTOOL CONFIG
  22800. _LT_EOF
  22801. case $host_os in
  22802. aix3*)
  22803. cat <<\_LT_EOF >> "$cfgfile"
  22804. # AIX sometimes has problems with the GCC collect2 program. For some
  22805. # reason, if we set the COLLECT_NAMES environment variable, the problems
  22806. # vanish in a puff of smoke.
  22807. if test "X${COLLECT_NAMES+set}" != Xset; then
  22808. COLLECT_NAMES=
  22809. export COLLECT_NAMES
  22810. fi
  22811. _LT_EOF
  22812. ;;
  22813. esac
  22814. ltmain="$ac_aux_dir/ltmain.sh"
  22815. # We use sed instead of cat because bash on DJGPP gets confused if
  22816. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22817. # text mode, it properly converts lines to CR/LF. This bash problem
  22818. # is reportedly fixed, but why not run on old versions too?
  22819. sed '$q' "$ltmain" >> "$cfgfile" \
  22820. || (rm -f "$cfgfile"; exit 1)
  22821. if test x"$xsi_shell" = xyes; then
  22822. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  22823. func_dirname ()\
  22824. {\
  22825. \ case ${1} in\
  22826. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22827. \ * ) func_dirname_result="${3}" ;;\
  22828. \ esac\
  22829. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  22830. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22831. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22832. test 0 -eq $? || _lt_function_replace_fail=:
  22833. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  22834. func_basename ()\
  22835. {\
  22836. \ func_basename_result="${1##*/}"\
  22837. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22838. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22839. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22840. test 0 -eq $? || _lt_function_replace_fail=:
  22841. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  22842. func_dirname_and_basename ()\
  22843. {\
  22844. \ case ${1} in\
  22845. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22846. \ * ) func_dirname_result="${3}" ;;\
  22847. \ esac\
  22848. \ func_basename_result="${1##*/}"\
  22849. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22850. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22851. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22852. test 0 -eq $? || _lt_function_replace_fail=:
  22853. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  22854. func_stripname ()\
  22855. {\
  22856. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  22857. \ # positional parameters, so assign one to ordinary parameter first.\
  22858. \ func_stripname_result=${3}\
  22859. \ func_stripname_result=${func_stripname_result#"${1}"}\
  22860. \ func_stripname_result=${func_stripname_result%"${2}"}\
  22861. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22862. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22863. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22864. test 0 -eq $? || _lt_function_replace_fail=:
  22865. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22866. func_split_long_opt ()\
  22867. {\
  22868. \ func_split_long_opt_name=${1%%=*}\
  22869. \ func_split_long_opt_arg=${1#*=}\
  22870. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22871. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22872. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22873. test 0 -eq $? || _lt_function_replace_fail=:
  22874. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  22875. func_split_short_opt ()\
  22876. {\
  22877. \ func_split_short_opt_arg=${1#??}\
  22878. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  22879. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22880. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22881. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22882. test 0 -eq $? || _lt_function_replace_fail=:
  22883. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  22884. func_lo2o ()\
  22885. {\
  22886. \ case ${1} in\
  22887. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  22888. \ *) func_lo2o_result=${1} ;;\
  22889. \ esac\
  22890. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  22891. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22892. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22893. test 0 -eq $? || _lt_function_replace_fail=:
  22894. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  22895. func_xform ()\
  22896. {\
  22897. func_xform_result=${1%.*}.lo\
  22898. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  22899. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22900. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22901. test 0 -eq $? || _lt_function_replace_fail=:
  22902. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  22903. func_arith ()\
  22904. {\
  22905. func_arith_result=$(( $* ))\
  22906. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  22907. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22908. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22909. test 0 -eq $? || _lt_function_replace_fail=:
  22910. sed -e '/^func_len ()$/,/^} # func_len /c\
  22911. func_len ()\
  22912. {\
  22913. func_len_result=${#1}\
  22914. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  22915. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22916. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22917. test 0 -eq $? || _lt_function_replace_fail=:
  22918. fi
  22919. if test x"$lt_shell_append" = xyes; then
  22920. sed -e '/^func_append ()$/,/^} # func_append /c\
  22921. func_append ()\
  22922. {\
  22923. eval "${1}+=\\${2}"\
  22924. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  22925. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22926. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22927. test 0 -eq $? || _lt_function_replace_fail=:
  22928. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  22929. func_append_quoted ()\
  22930. {\
  22931. \ func_quote_for_eval "${2}"\
  22932. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  22933. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  22934. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22935. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22936. test 0 -eq $? || _lt_function_replace_fail=:
  22937. # Save a `func_append' function call where possible by direct use of '+='
  22938. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  22939. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22940. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22941. test 0 -eq $? || _lt_function_replace_fail=:
  22942. else
  22943. # Save a `func_append' function call even when '+=' is not available
  22944. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  22945. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22946. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22947. test 0 -eq $? || _lt_function_replace_fail=:
  22948. fi
  22949. if test x"$_lt_function_replace_fail" = x":"; then
  22950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  22951. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  22952. fi
  22953. mv -f "$cfgfile" "$ofile" ||
  22954. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  22955. chmod +x "$ofile"
  22956. cat <<_LT_EOF >> "$ofile"
  22957. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  22958. # The linker used to build libraries.
  22959. LD=$lt_LD_CXX
  22960. # How to create reloadable object files.
  22961. reload_flag=$lt_reload_flag_CXX
  22962. reload_cmds=$lt_reload_cmds_CXX
  22963. # Commands used to build an old-style archive.
  22964. old_archive_cmds=$lt_old_archive_cmds_CXX
  22965. # A language specific compiler.
  22966. CC=$lt_compiler_CXX
  22967. # Is the compiler the GNU compiler?
  22968. with_gcc=$GCC_CXX
  22969. # Compiler flag to turn off builtin functions.
  22970. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  22971. # Additional compiler flags for building library objects.
  22972. pic_flag=$lt_lt_prog_compiler_pic_CXX
  22973. # How to pass a linker flag through the compiler.
  22974. wl=$lt_lt_prog_compiler_wl_CXX
  22975. # Compiler flag to prevent dynamic linking.
  22976. link_static_flag=$lt_lt_prog_compiler_static_CXX
  22977. # Does compiler simultaneously support -c and -o options?
  22978. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  22979. # Whether or not to add -lc for building shared libraries.
  22980. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  22981. # Whether or not to disallow shared libs when runtime libs are static.
  22982. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  22983. # Compiler flag to allow reflexive dlopens.
  22984. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  22985. # Compiler flag to generate shared objects directly from archives.
  22986. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  22987. # Whether the compiler copes with passing no objects directly.
  22988. compiler_needs_object=$lt_compiler_needs_object_CXX
  22989. # Create an old-style archive from a shared archive.
  22990. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  22991. # Create a temporary old-style archive to link instead of a shared archive.
  22992. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  22993. # Commands used to build a shared archive.
  22994. archive_cmds=$lt_archive_cmds_CXX
  22995. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  22996. # Commands used to build a loadable module if different from building
  22997. # a shared archive.
  22998. module_cmds=$lt_module_cmds_CXX
  22999. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23000. # Whether we are building with GNU ld or not.
  23001. with_gnu_ld=$lt_with_gnu_ld_CXX
  23002. # Flag that allows shared libraries with undefined symbols to be built.
  23003. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23004. # Flag that enforces no undefined symbols.
  23005. no_undefined_flag=$lt_no_undefined_flag_CXX
  23006. # Flag to hardcode \$libdir into a binary during linking.
  23007. # This must work even if \$libdir does not exist
  23008. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23009. # Whether we need a single "-rpath" flag with a separated argument.
  23010. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23011. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23012. # DIR into the resulting binary.
  23013. hardcode_direct=$hardcode_direct_CXX
  23014. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23015. # DIR into the resulting binary and the resulting library dependency is
  23016. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23017. # library is relocated.
  23018. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23019. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23020. # into the resulting binary.
  23021. hardcode_minus_L=$hardcode_minus_L_CXX
  23022. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23023. # into the resulting binary.
  23024. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23025. # Set to "yes" if building a shared library automatically hardcodes DIR
  23026. # into the library and all subsequent libraries and executables linked
  23027. # against it.
  23028. hardcode_automatic=$hardcode_automatic_CXX
  23029. # Set to yes if linker adds runtime paths of dependent libraries
  23030. # to runtime path list.
  23031. inherit_rpath=$inherit_rpath_CXX
  23032. # Whether libtool must link a program against all its dependency libraries.
  23033. link_all_deplibs=$link_all_deplibs_CXX
  23034. # Set to "yes" if exported symbols are required.
  23035. always_export_symbols=$always_export_symbols_CXX
  23036. # The commands to list exported symbols.
  23037. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23038. # Symbols that should not be listed in the preloaded symbols.
  23039. exclude_expsyms=$lt_exclude_expsyms_CXX
  23040. # Symbols that must always be exported.
  23041. include_expsyms=$lt_include_expsyms_CXX
  23042. # Commands necessary for linking programs (against libraries) with templates.
  23043. prelink_cmds=$lt_prelink_cmds_CXX
  23044. # Commands necessary for finishing linking programs.
  23045. postlink_cmds=$lt_postlink_cmds_CXX
  23046. # Specify filename containing input files.
  23047. file_list_spec=$lt_file_list_spec_CXX
  23048. # How to hardcode a shared library path into an executable.
  23049. hardcode_action=$hardcode_action_CXX
  23050. # The directories searched by this compiler when creating a shared library.
  23051. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23052. # Dependencies to place before and after the objects being linked to
  23053. # create a shared library.
  23054. predep_objects=$lt_predep_objects_CXX
  23055. postdep_objects=$lt_postdep_objects_CXX
  23056. predeps=$lt_predeps_CXX
  23057. postdeps=$lt_postdeps_CXX
  23058. # The library search path used internally by the compiler when linking
  23059. # a shared library.
  23060. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23061. # ### END LIBTOOL TAG CONFIG: CXX
  23062. _LT_EOF
  23063. ;;
  23064. "sdl2_config":C) chmod a+x sdl2-config ;;
  23065. "summary":C) echo -en "$SUMMARY" ;;
  23066. esac
  23067. done # for ac_tag
  23068. as_fn_exit 0
  23069. _ACEOF
  23070. ac_clean_files=$ac_clean_files_save
  23071. test $ac_write_fail = 0 ||
  23072. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23073. # configure is writing to config.log, and then calls config.status.
  23074. # config.status does its own redirection, appending to config.log.
  23075. # Unfortunately, on DOS this fails, as config.log is still kept open
  23076. # by configure, so config.status won't be able to write to it; its
  23077. # output is simply discarded. So we exec the FD to /dev/null,
  23078. # effectively closing config.log, so it can be properly (re)opened and
  23079. # appended to by config.status. When coming back to configure, we
  23080. # need to make the FD available again.
  23081. if test "$no_create" != yes; then
  23082. ac_cs_success=:
  23083. ac_config_status_args=
  23084. test "$silent" = yes &&
  23085. ac_config_status_args="$ac_config_status_args --quiet"
  23086. exec 5>/dev/null
  23087. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23088. exec 5>>config.log
  23089. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23090. # would make configure fail if this is the last instruction.
  23091. $ac_cs_success || as_fn_exit 1
  23092. fi
  23093. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23094. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23095. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23096. fi