configure 786 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839
  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_dummy
  799. enable_video_opengl
  800. enable_video_opengles
  801. enable_video_opengles1
  802. enable_video_opengles2
  803. enable_libudev
  804. enable_dbus
  805. enable_ime
  806. enable_ibus
  807. enable_fcitx
  808. enable_input_tslib
  809. enable_pthreads
  810. enable_pthread_sem
  811. enable_directx
  812. enable_sdl_dlopen
  813. enable_clock_gettime
  814. enable_rpath
  815. enable_render_d3d
  816. '
  817. ac_precious_vars='build_alias
  818. host_alias
  819. target_alias
  820. CC
  821. CFLAGS
  822. LDFLAGS
  823. LIBS
  824. CPPFLAGS
  825. CPP
  826. CXX
  827. CXXFLAGS
  828. CCC
  829. CXXCPP
  830. XMKMF'
  831. # Initialize some variables set by options.
  832. ac_init_help=
  833. ac_init_version=false
  834. ac_unrecognized_opts=
  835. ac_unrecognized_sep=
  836. # The variables have the same names as the options, with
  837. # dashes changed to underlines.
  838. cache_file=/dev/null
  839. exec_prefix=NONE
  840. no_create=
  841. no_recursion=
  842. prefix=NONE
  843. program_prefix=NONE
  844. program_suffix=NONE
  845. program_transform_name=s,x,x,
  846. silent=
  847. site=
  848. srcdir=
  849. verbose=
  850. x_includes=NONE
  851. x_libraries=NONE
  852. # Installation directory options.
  853. # These are left unexpanded so users can "make install exec_prefix=/foo"
  854. # and all the variables that are supposed to be based on exec_prefix
  855. # by default will actually change.
  856. # Use braces instead of parens because sh, perl, etc. also accept them.
  857. # (The list follows the same order as the GNU Coding Standards.)
  858. bindir='${exec_prefix}/bin'
  859. sbindir='${exec_prefix}/sbin'
  860. libexecdir='${exec_prefix}/libexec'
  861. datarootdir='${prefix}/share'
  862. datadir='${datarootdir}'
  863. sysconfdir='${prefix}/etc'
  864. sharedstatedir='${prefix}/com'
  865. localstatedir='${prefix}/var'
  866. includedir='${prefix}/include'
  867. oldincludedir='/usr/include'
  868. docdir='${datarootdir}/doc/${PACKAGE}'
  869. infodir='${datarootdir}/info'
  870. htmldir='${docdir}'
  871. dvidir='${docdir}'
  872. pdfdir='${docdir}'
  873. psdir='${docdir}'
  874. libdir='${exec_prefix}/lib'
  875. localedir='${datarootdir}/locale'
  876. mandir='${datarootdir}/man'
  877. ac_prev=
  878. ac_dashdash=
  879. for ac_option
  880. do
  881. # If the previous option needs an argument, assign it.
  882. if test -n "$ac_prev"; then
  883. eval $ac_prev=\$ac_option
  884. ac_prev=
  885. continue
  886. fi
  887. case $ac_option in
  888. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  889. *=) ac_optarg= ;;
  890. *) ac_optarg=yes ;;
  891. esac
  892. # Accept the important Cygnus configure options, so we can diagnose typos.
  893. case $ac_dashdash$ac_option in
  894. --)
  895. ac_dashdash=yes ;;
  896. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  897. ac_prev=bindir ;;
  898. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  899. bindir=$ac_optarg ;;
  900. -build | --build | --buil | --bui | --bu)
  901. ac_prev=build_alias ;;
  902. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  903. build_alias=$ac_optarg ;;
  904. -cache-file | --cache-file | --cache-fil | --cache-fi \
  905. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  906. ac_prev=cache_file ;;
  907. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  908. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  909. cache_file=$ac_optarg ;;
  910. --config-cache | -C)
  911. cache_file=config.cache ;;
  912. -datadir | --datadir | --datadi | --datad)
  913. ac_prev=datadir ;;
  914. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  915. datadir=$ac_optarg ;;
  916. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  917. | --dataroo | --dataro | --datar)
  918. ac_prev=datarootdir ;;
  919. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  920. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  921. datarootdir=$ac_optarg ;;
  922. -disable-* | --disable-*)
  923. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  924. # Reject names that are not valid shell variable names.
  925. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  926. as_fn_error $? "invalid feature name: $ac_useropt"
  927. ac_useropt_orig=$ac_useropt
  928. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  929. case $ac_user_opts in
  930. *"
  931. "enable_$ac_useropt"
  932. "*) ;;
  933. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  934. ac_unrecognized_sep=', ';;
  935. esac
  936. eval enable_$ac_useropt=no ;;
  937. -docdir | --docdir | --docdi | --doc | --do)
  938. ac_prev=docdir ;;
  939. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  940. docdir=$ac_optarg ;;
  941. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  942. ac_prev=dvidir ;;
  943. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  944. dvidir=$ac_optarg ;;
  945. -enable-* | --enable-*)
  946. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  947. # Reject names that are not valid shell variable names.
  948. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  949. as_fn_error $? "invalid feature name: $ac_useropt"
  950. ac_useropt_orig=$ac_useropt
  951. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  952. case $ac_user_opts in
  953. *"
  954. "enable_$ac_useropt"
  955. "*) ;;
  956. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  957. ac_unrecognized_sep=', ';;
  958. esac
  959. eval enable_$ac_useropt=\$ac_optarg ;;
  960. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  961. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  962. | --exec | --exe | --ex)
  963. ac_prev=exec_prefix ;;
  964. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  965. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  966. | --exec=* | --exe=* | --ex=*)
  967. exec_prefix=$ac_optarg ;;
  968. -gas | --gas | --ga | --g)
  969. # Obsolete; use --with-gas.
  970. with_gas=yes ;;
  971. -help | --help | --hel | --he | -h)
  972. ac_init_help=long ;;
  973. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  974. ac_init_help=recursive ;;
  975. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  976. ac_init_help=short ;;
  977. -host | --host | --hos | --ho)
  978. ac_prev=host_alias ;;
  979. -host=* | --host=* | --hos=* | --ho=*)
  980. host_alias=$ac_optarg ;;
  981. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  982. ac_prev=htmldir ;;
  983. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  984. | --ht=*)
  985. htmldir=$ac_optarg ;;
  986. -includedir | --includedir | --includedi | --included | --include \
  987. | --includ | --inclu | --incl | --inc)
  988. ac_prev=includedir ;;
  989. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  990. | --includ=* | --inclu=* | --incl=* | --inc=*)
  991. includedir=$ac_optarg ;;
  992. -infodir | --infodir | --infodi | --infod | --info | --inf)
  993. ac_prev=infodir ;;
  994. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  995. infodir=$ac_optarg ;;
  996. -libdir | --libdir | --libdi | --libd)
  997. ac_prev=libdir ;;
  998. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  999. libdir=$ac_optarg ;;
  1000. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1001. | --libexe | --libex | --libe)
  1002. ac_prev=libexecdir ;;
  1003. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1004. | --libexe=* | --libex=* | --libe=*)
  1005. libexecdir=$ac_optarg ;;
  1006. -localedir | --localedir | --localedi | --localed | --locale)
  1007. ac_prev=localedir ;;
  1008. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1009. localedir=$ac_optarg ;;
  1010. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1011. | --localstate | --localstat | --localsta | --localst | --locals)
  1012. ac_prev=localstatedir ;;
  1013. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1014. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1015. localstatedir=$ac_optarg ;;
  1016. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1017. ac_prev=mandir ;;
  1018. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1019. mandir=$ac_optarg ;;
  1020. -nfp | --nfp | --nf)
  1021. # Obsolete; use --without-fp.
  1022. with_fp=no ;;
  1023. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1024. | --no-cr | --no-c | -n)
  1025. no_create=yes ;;
  1026. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1027. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1028. no_recursion=yes ;;
  1029. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1030. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1031. | --oldin | --oldi | --old | --ol | --o)
  1032. ac_prev=oldincludedir ;;
  1033. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1034. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1035. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1036. oldincludedir=$ac_optarg ;;
  1037. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1038. ac_prev=prefix ;;
  1039. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1040. prefix=$ac_optarg ;;
  1041. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1042. | --program-pre | --program-pr | --program-p)
  1043. ac_prev=program_prefix ;;
  1044. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1045. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1046. program_prefix=$ac_optarg ;;
  1047. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1048. | --program-suf | --program-su | --program-s)
  1049. ac_prev=program_suffix ;;
  1050. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1051. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1052. program_suffix=$ac_optarg ;;
  1053. -program-transform-name | --program-transform-name \
  1054. | --program-transform-nam | --program-transform-na \
  1055. | --program-transform-n | --program-transform- \
  1056. | --program-transform | --program-transfor \
  1057. | --program-transfo | --program-transf \
  1058. | --program-trans | --program-tran \
  1059. | --progr-tra | --program-tr | --program-t)
  1060. ac_prev=program_transform_name ;;
  1061. -program-transform-name=* | --program-transform-name=* \
  1062. | --program-transform-nam=* | --program-transform-na=* \
  1063. | --program-transform-n=* | --program-transform-=* \
  1064. | --program-transform=* | --program-transfor=* \
  1065. | --program-transfo=* | --program-transf=* \
  1066. | --program-trans=* | --program-tran=* \
  1067. | --progr-tra=* | --program-tr=* | --program-t=*)
  1068. program_transform_name=$ac_optarg ;;
  1069. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1070. ac_prev=pdfdir ;;
  1071. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1072. pdfdir=$ac_optarg ;;
  1073. -psdir | --psdir | --psdi | --psd | --ps)
  1074. ac_prev=psdir ;;
  1075. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1076. psdir=$ac_optarg ;;
  1077. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1078. | -silent | --silent | --silen | --sile | --sil)
  1079. silent=yes ;;
  1080. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1081. ac_prev=sbindir ;;
  1082. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1083. | --sbi=* | --sb=*)
  1084. sbindir=$ac_optarg ;;
  1085. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1086. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1087. | --sharedst | --shareds | --shared | --share | --shar \
  1088. | --sha | --sh)
  1089. ac_prev=sharedstatedir ;;
  1090. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1091. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1092. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1093. | --sha=* | --sh=*)
  1094. sharedstatedir=$ac_optarg ;;
  1095. -site | --site | --sit)
  1096. ac_prev=site ;;
  1097. -site=* | --site=* | --sit=*)
  1098. site=$ac_optarg ;;
  1099. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1100. ac_prev=srcdir ;;
  1101. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1102. srcdir=$ac_optarg ;;
  1103. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1104. | --syscon | --sysco | --sysc | --sys | --sy)
  1105. ac_prev=sysconfdir ;;
  1106. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1107. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1108. sysconfdir=$ac_optarg ;;
  1109. -target | --target | --targe | --targ | --tar | --ta | --t)
  1110. ac_prev=target_alias ;;
  1111. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1112. target_alias=$ac_optarg ;;
  1113. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1114. verbose=yes ;;
  1115. -version | --version | --versio | --versi | --vers | -V)
  1116. ac_init_version=: ;;
  1117. -with-* | --with-*)
  1118. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1119. # Reject names that are not valid shell variable names.
  1120. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1121. as_fn_error $? "invalid package name: $ac_useropt"
  1122. ac_useropt_orig=$ac_useropt
  1123. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1124. case $ac_user_opts in
  1125. *"
  1126. "with_$ac_useropt"
  1127. "*) ;;
  1128. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1129. ac_unrecognized_sep=', ';;
  1130. esac
  1131. eval with_$ac_useropt=\$ac_optarg ;;
  1132. -without-* | --without-*)
  1133. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1134. # Reject names that are not valid shell variable names.
  1135. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1136. as_fn_error $? "invalid package name: $ac_useropt"
  1137. ac_useropt_orig=$ac_useropt
  1138. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1139. case $ac_user_opts in
  1140. *"
  1141. "with_$ac_useropt"
  1142. "*) ;;
  1143. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1144. ac_unrecognized_sep=', ';;
  1145. esac
  1146. eval with_$ac_useropt=no ;;
  1147. --x)
  1148. # Obsolete; use --with-x.
  1149. with_x=yes ;;
  1150. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1151. | --x-incl | --x-inc | --x-in | --x-i)
  1152. ac_prev=x_includes ;;
  1153. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1154. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1155. x_includes=$ac_optarg ;;
  1156. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1157. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1158. ac_prev=x_libraries ;;
  1159. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1160. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1161. x_libraries=$ac_optarg ;;
  1162. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1163. Try \`$0 --help' for more information"
  1164. ;;
  1165. *=*)
  1166. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1167. # Reject names that are not valid shell variable names.
  1168. case $ac_envvar in #(
  1169. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1170. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1171. esac
  1172. eval $ac_envvar=\$ac_optarg
  1173. export $ac_envvar ;;
  1174. *)
  1175. # FIXME: should be removed in autoconf 3.0.
  1176. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1177. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1178. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1179. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1180. ;;
  1181. esac
  1182. done
  1183. if test -n "$ac_prev"; then
  1184. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1185. as_fn_error $? "missing argument to $ac_option"
  1186. fi
  1187. if test -n "$ac_unrecognized_opts"; then
  1188. case $enable_option_checking in
  1189. no) ;;
  1190. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1191. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1192. esac
  1193. fi
  1194. # Check all directory arguments for consistency.
  1195. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1196. datadir sysconfdir sharedstatedir localstatedir includedir \
  1197. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1198. libdir localedir mandir
  1199. do
  1200. eval ac_val=\$$ac_var
  1201. # Remove trailing slashes.
  1202. case $ac_val in
  1203. */ )
  1204. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1205. eval $ac_var=\$ac_val;;
  1206. esac
  1207. # Be sure to have absolute directory names.
  1208. case $ac_val in
  1209. [\\/$]* | ?:[\\/]* ) continue;;
  1210. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1211. esac
  1212. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1213. done
  1214. # There might be people who depend on the old broken behavior: `$host'
  1215. # used to hold the argument of --host etc.
  1216. # FIXME: To remove some day.
  1217. build=$build_alias
  1218. host=$host_alias
  1219. target=$target_alias
  1220. # FIXME: To remove some day.
  1221. if test "x$host_alias" != x; then
  1222. if test "x$build_alias" = x; then
  1223. cross_compiling=maybe
  1224. elif test "x$build_alias" != "x$host_alias"; then
  1225. cross_compiling=yes
  1226. fi
  1227. fi
  1228. ac_tool_prefix=
  1229. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1230. test "$silent" = yes && exec 6>/dev/null
  1231. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1232. ac_ls_di=`ls -di .` &&
  1233. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1234. as_fn_error $? "working directory cannot be determined"
  1235. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1236. as_fn_error $? "pwd does not report name of working directory"
  1237. # Find the source files, if location was not specified.
  1238. if test -z "$srcdir"; then
  1239. ac_srcdir_defaulted=yes
  1240. # Try the directory containing this script, then the parent directory.
  1241. ac_confdir=`$as_dirname -- "$as_myself" ||
  1242. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1243. X"$as_myself" : 'X\(//\)[^/]' \| \
  1244. X"$as_myself" : 'X\(//\)$' \| \
  1245. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1246. $as_echo X"$as_myself" |
  1247. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1248. s//\1/
  1249. q
  1250. }
  1251. /^X\(\/\/\)[^/].*/{
  1252. s//\1/
  1253. q
  1254. }
  1255. /^X\(\/\/\)$/{
  1256. s//\1/
  1257. q
  1258. }
  1259. /^X\(\/\).*/{
  1260. s//\1/
  1261. q
  1262. }
  1263. s/.*/./; q'`
  1264. srcdir=$ac_confdir
  1265. if test ! -r "$srcdir/$ac_unique_file"; then
  1266. srcdir=..
  1267. fi
  1268. else
  1269. ac_srcdir_defaulted=no
  1270. fi
  1271. if test ! -r "$srcdir/$ac_unique_file"; then
  1272. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1273. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1274. fi
  1275. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1276. ac_abs_confdir=`(
  1277. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1278. pwd)`
  1279. # When building in place, set srcdir=.
  1280. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1281. srcdir=.
  1282. fi
  1283. # Remove unnecessary trailing slashes from srcdir.
  1284. # Double slashes in file names in object file debugging info
  1285. # mess up M-x gdb in Emacs.
  1286. case $srcdir in
  1287. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1288. esac
  1289. for ac_var in $ac_precious_vars; do
  1290. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1291. eval ac_env_${ac_var}_value=\$${ac_var}
  1292. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1293. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1294. done
  1295. #
  1296. # Report the --help message.
  1297. #
  1298. if test "$ac_init_help" = "long"; then
  1299. # Omit some internal or obsolete options to make the list less imposing.
  1300. # This message is too long to be a string in the A/UX 3.1 sh.
  1301. cat <<_ACEOF
  1302. \`configure' configures this package to adapt to many kinds of systems.
  1303. Usage: $0 [OPTION]... [VAR=VALUE]...
  1304. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1305. VAR=VALUE. See below for descriptions of some of the useful variables.
  1306. Defaults for the options are specified in brackets.
  1307. Configuration:
  1308. -h, --help display this help and exit
  1309. --help=short display options specific to this package
  1310. --help=recursive display the short help of all the included packages
  1311. -V, --version display version information and exit
  1312. -q, --quiet, --silent do not print \`checking ...' messages
  1313. --cache-file=FILE cache test results in FILE [disabled]
  1314. -C, --config-cache alias for \`--cache-file=config.cache'
  1315. -n, --no-create do not create output files
  1316. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1317. Installation directories:
  1318. --prefix=PREFIX install architecture-independent files in PREFIX
  1319. [$ac_default_prefix]
  1320. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1321. [PREFIX]
  1322. By default, \`make install' will install all the files in
  1323. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1324. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1325. for instance \`--prefix=\$HOME'.
  1326. For better control, use the options below.
  1327. Fine tuning of the installation directories:
  1328. --bindir=DIR user executables [EPREFIX/bin]
  1329. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1330. --libexecdir=DIR program executables [EPREFIX/libexec]
  1331. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1332. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1333. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1334. --libdir=DIR object code libraries [EPREFIX/lib]
  1335. --includedir=DIR C header files [PREFIX/include]
  1336. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1337. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1338. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1339. --infodir=DIR info documentation [DATAROOTDIR/info]
  1340. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1341. --mandir=DIR man documentation [DATAROOTDIR/man]
  1342. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1343. --htmldir=DIR html documentation [DOCDIR]
  1344. --dvidir=DIR dvi documentation [DOCDIR]
  1345. --pdfdir=DIR pdf documentation [DOCDIR]
  1346. --psdir=DIR ps documentation [DOCDIR]
  1347. _ACEOF
  1348. cat <<\_ACEOF
  1349. X features:
  1350. --x-includes=DIR X include files are in DIR
  1351. --x-libraries=DIR X library files are in DIR
  1352. System types:
  1353. --build=BUILD configure for building on BUILD [guessed]
  1354. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1355. _ACEOF
  1356. fi
  1357. if test -n "$ac_init_help"; then
  1358. cat <<\_ACEOF
  1359. Optional Features:
  1360. --disable-option-checking ignore unrecognized --enable/--with options
  1361. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1362. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1363. --enable-shared[=PKGS] build shared libraries [default=yes]
  1364. --enable-static[=PKGS] build static libraries [default=yes]
  1365. --enable-fast-install[=PKGS]
  1366. optimize for fast installation [default=yes]
  1367. --disable-libtool-lock avoid locking (might break parallel builds)
  1368. --enable-assertions Enable internal sanity checks
  1369. (auto/disabled/release/enabled/paranoid)
  1370. [[default=auto]]
  1371. --enable-dependency-tracking
  1372. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1373. --enable-libc Use the system C library [[default=yes]]
  1374. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1375. --enable-atomic Enable the atomic operations subsystem
  1376. [[default=yes]]
  1377. --enable-audio Enable the audio subsystem [[default=yes]]
  1378. --enable-video Enable the video subsystem [[default=yes]]
  1379. --enable-render Enable the render subsystem [[default=yes]]
  1380. --enable-events Enable the events subsystem [[default=yes]]
  1381. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1382. --enable-haptic Enable the haptic (force feedback) subsystem
  1383. [[default=yes]]
  1384. --enable-power Enable the power subsystem [[default=yes]]
  1385. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1386. --enable-threads Enable the threading subsystem [[default=yes]]
  1387. --enable-timers Enable the timer subsystem [[default=yes]]
  1388. --enable-file Enable the file subsystem [[default=yes]]
  1389. --enable-loadso Enable the shared object loading subsystem
  1390. [[default=yes]]
  1391. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1392. --enable-assembly Enable assembly routines [[default=yes]]
  1393. --enable-ssemath Allow GCC to use SSE floating point math
  1394. [[default=maybe]]
  1395. --enable-mmx use MMX assembly routines [[default=yes]]
  1396. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1397. --enable-sse use SSE assembly routines [[default=yes]]
  1398. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1399. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1400. --enable-altivec use Altivec assembly routines [[default=yes]]
  1401. --enable-oss support the OSS audio API [[default=maybe]]
  1402. --enable-alsa support the ALSA audio API [[default=yes]]
  1403. --disable-alsatest Do not try to compile and run a test Alsa program
  1404. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1405. --enable-jack use JACK audio [[default=yes]]
  1406. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1407. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1408. --disable-esdtest Do not try to compile and run a test ESD program
  1409. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1410. --enable-pulseaudio use PulseAudio [[default=yes]]
  1411. --enable-pulseaudio-shared
  1412. dynamically load PulseAudio support [[default=yes]]
  1413. --enable-arts support the Analog Real Time Synthesizer
  1414. [[default=yes]]
  1415. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1416. --enable-nas support the NAS audio API [[default=yes]]
  1417. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1418. --enable-sndio support the sndio audio API [[default=yes]]
  1419. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1420. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1421. --enable-fusionsound-shared
  1422. dynamically load fusionsound audio support
  1423. [[default=yes]]
  1424. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1425. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1426. --enable-libsamplerate use libsamplerate for audio rate conversion
  1427. [[default=yes]]
  1428. --enable-libsamplerate-shared
  1429. dynamically load libsamplerate [[default=yes]]
  1430. --enable-video-wayland use Wayland video driver [[default=yes]]
  1431. --enable-video-wayland-qt-touch
  1432. QtWayland server support for Wayland video driver
  1433. [[default=yes]]
  1434. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1435. --enable-video-mir use Mir video driver [[default=yes]]
  1436. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1437. --enable-video-x11 use X11 video driver [[default=yes]]
  1438. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1439. --enable-video-x11-xcursor
  1440. enable X11 Xcursor support [[default=yes]]
  1441. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1442. --enable-video-x11-xinerama
  1443. enable X11 Xinerama support [[default=yes]]
  1444. --enable-video-x11-xinput
  1445. enable X11 XInput extension for manymouse, tablets,
  1446. etc [[default=yes]]
  1447. --enable-video-x11-xrandr
  1448. enable X11 Xrandr extension for fullscreen
  1449. [[default=yes]]
  1450. --enable-video-x11-scrnsaver
  1451. enable X11 screensaver extension [[default=yes]]
  1452. --enable-video-x11-xshape
  1453. enable X11 XShape support [[default=yes]]
  1454. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1455. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1456. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1457. --enable-video-directfb use DirectFB video driver [[default=no]]
  1458. --enable-directfb-shared
  1459. dynamically load directfb support [[default=yes]]
  1460. --enable-video-dummy use dummy video driver [[default=yes]]
  1461. --enable-video-opengl include OpenGL support [[default=yes]]
  1462. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1463. --enable-video-opengles1
  1464. include OpenGL ES 1.1 support [[default=yes]]
  1465. --enable-video-opengles2
  1466. include OpenGL ES 2.0 support [[default=yes]]
  1467. --enable-libudev enable libudev support [[default=yes]]
  1468. --enable-dbus enable D-Bus support [[default=yes]]
  1469. --enable-ime enable IME support [[default=yes]]
  1470. --enable-ibus enable IBus support [[default=yes]]
  1471. --enable-fcitx enable fcitx support [[default=yes]]
  1472. --enable-input-tslib use the Touchscreen library for input
  1473. [[default=yes]]
  1474. --enable-pthreads use POSIX threads for multi-threading
  1475. [[default=yes]]
  1476. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1477. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1478. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1479. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1480. UNIX [[default=yes]]
  1481. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1482. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1483. Optional Packages:
  1484. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1485. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1486. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1487. both]
  1488. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1489. --with-sysroot=DIR Search for dependent libraries within DIR
  1490. (or the compiler's sysroot if not specified).
  1491. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1492. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1493. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1494. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1495. --with-x use the X Window System
  1496. Some influential environment variables:
  1497. CC C compiler command
  1498. CFLAGS C compiler flags
  1499. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1500. nonstandard directory <lib dir>
  1501. LIBS libraries to pass to the linker, e.g. -l<library>
  1502. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1503. you have headers in a nonstandard directory <include dir>
  1504. CPP C preprocessor
  1505. CXX C++ compiler command
  1506. CXXFLAGS C++ compiler flags
  1507. CXXCPP C++ preprocessor
  1508. XMKMF Path to xmkmf, Makefile generator for X Window System
  1509. Use these variables to override the choices made by `configure' or to help
  1510. it to find libraries and programs with nonstandard names/locations.
  1511. Report bugs to the package provider.
  1512. _ACEOF
  1513. ac_status=$?
  1514. fi
  1515. if test "$ac_init_help" = "recursive"; then
  1516. # If there are subdirs, report their specific --help.
  1517. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1518. test -d "$ac_dir" ||
  1519. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1520. continue
  1521. ac_builddir=.
  1522. case "$ac_dir" in
  1523. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1524. *)
  1525. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1526. # A ".." for each directory in $ac_dir_suffix.
  1527. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1528. case $ac_top_builddir_sub in
  1529. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1530. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1531. esac ;;
  1532. esac
  1533. ac_abs_top_builddir=$ac_pwd
  1534. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1535. # for backward compatibility:
  1536. ac_top_builddir=$ac_top_build_prefix
  1537. case $srcdir in
  1538. .) # We are building in place.
  1539. ac_srcdir=.
  1540. ac_top_srcdir=$ac_top_builddir_sub
  1541. ac_abs_top_srcdir=$ac_pwd ;;
  1542. [\\/]* | ?:[\\/]* ) # Absolute name.
  1543. ac_srcdir=$srcdir$ac_dir_suffix;
  1544. ac_top_srcdir=$srcdir
  1545. ac_abs_top_srcdir=$srcdir ;;
  1546. *) # Relative name.
  1547. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1548. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1549. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1550. esac
  1551. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1552. cd "$ac_dir" || { ac_status=$?; continue; }
  1553. # Check for guested configure.
  1554. if test -f "$ac_srcdir/configure.gnu"; then
  1555. echo &&
  1556. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1557. elif test -f "$ac_srcdir/configure"; then
  1558. echo &&
  1559. $SHELL "$ac_srcdir/configure" --help=recursive
  1560. else
  1561. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1562. fi || ac_status=$?
  1563. cd "$ac_pwd" || { ac_status=$?; break; }
  1564. done
  1565. fi
  1566. test -n "$ac_init_help" && exit $ac_status
  1567. if $ac_init_version; then
  1568. cat <<\_ACEOF
  1569. configure
  1570. generated by GNU Autoconf 2.69
  1571. Copyright (C) 2012 Free Software Foundation, Inc.
  1572. This configure script is free software; the Free Software Foundation
  1573. gives unlimited permission to copy, distribute and modify it.
  1574. _ACEOF
  1575. exit
  1576. fi
  1577. ## ------------------------ ##
  1578. ## Autoconf initialization. ##
  1579. ## ------------------------ ##
  1580. # ac_fn_c_try_compile LINENO
  1581. # --------------------------
  1582. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1583. ac_fn_c_try_compile ()
  1584. {
  1585. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1586. rm -f conftest.$ac_objext
  1587. if { { ac_try="$ac_compile"
  1588. case "(($ac_try" in
  1589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1590. *) ac_try_echo=$ac_try;;
  1591. esac
  1592. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1593. $as_echo "$ac_try_echo"; } >&5
  1594. (eval "$ac_compile") 2>conftest.err
  1595. ac_status=$?
  1596. if test -s conftest.err; then
  1597. grep -v '^ *+' conftest.err >conftest.er1
  1598. cat conftest.er1 >&5
  1599. mv -f conftest.er1 conftest.err
  1600. fi
  1601. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1602. test $ac_status = 0; } && {
  1603. test -z "$ac_c_werror_flag" ||
  1604. test ! -s conftest.err
  1605. } && test -s conftest.$ac_objext; then :
  1606. ac_retval=0
  1607. else
  1608. $as_echo "$as_me: failed program was:" >&5
  1609. sed 's/^/| /' conftest.$ac_ext >&5
  1610. ac_retval=1
  1611. fi
  1612. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1613. as_fn_set_status $ac_retval
  1614. } # ac_fn_c_try_compile
  1615. # ac_fn_c_try_link LINENO
  1616. # -----------------------
  1617. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1618. ac_fn_c_try_link ()
  1619. {
  1620. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1621. rm -f conftest.$ac_objext conftest$ac_exeext
  1622. if { { ac_try="$ac_link"
  1623. case "(($ac_try" in
  1624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1625. *) ac_try_echo=$ac_try;;
  1626. esac
  1627. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1628. $as_echo "$ac_try_echo"; } >&5
  1629. (eval "$ac_link") 2>conftest.err
  1630. ac_status=$?
  1631. if test -s conftest.err; then
  1632. grep -v '^ *+' conftest.err >conftest.er1
  1633. cat conftest.er1 >&5
  1634. mv -f conftest.er1 conftest.err
  1635. fi
  1636. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1637. test $ac_status = 0; } && {
  1638. test -z "$ac_c_werror_flag" ||
  1639. test ! -s conftest.err
  1640. } && test -s conftest$ac_exeext && {
  1641. test "$cross_compiling" = yes ||
  1642. test -x conftest$ac_exeext
  1643. }; then :
  1644. ac_retval=0
  1645. else
  1646. $as_echo "$as_me: failed program was:" >&5
  1647. sed 's/^/| /' conftest.$ac_ext >&5
  1648. ac_retval=1
  1649. fi
  1650. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1651. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1652. # interfere with the next link command; also delete a directory that is
  1653. # left behind by Apple's compiler. We do this before executing the actions.
  1654. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1655. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1656. as_fn_set_status $ac_retval
  1657. } # ac_fn_c_try_link
  1658. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1659. # -------------------------------------------------------
  1660. # Tests whether HEADER exists and can be compiled using the include files in
  1661. # INCLUDES, setting the cache variable VAR accordingly.
  1662. ac_fn_c_check_header_compile ()
  1663. {
  1664. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1666. $as_echo_n "checking for $2... " >&6; }
  1667. if eval \${$3+:} false; then :
  1668. $as_echo_n "(cached) " >&6
  1669. else
  1670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1671. /* end confdefs.h. */
  1672. $4
  1673. #include <$2>
  1674. _ACEOF
  1675. if ac_fn_c_try_compile "$LINENO"; then :
  1676. eval "$3=yes"
  1677. else
  1678. eval "$3=no"
  1679. fi
  1680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1681. fi
  1682. eval ac_res=\$$3
  1683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1684. $as_echo "$ac_res" >&6; }
  1685. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1686. } # ac_fn_c_check_header_compile
  1687. # ac_fn_c_try_cpp LINENO
  1688. # ----------------------
  1689. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1690. ac_fn_c_try_cpp ()
  1691. {
  1692. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1693. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1694. case "(($ac_try" in
  1695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1696. *) ac_try_echo=$ac_try;;
  1697. esac
  1698. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1699. $as_echo "$ac_try_echo"; } >&5
  1700. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1701. ac_status=$?
  1702. if test -s conftest.err; then
  1703. grep -v '^ *+' conftest.err >conftest.er1
  1704. cat conftest.er1 >&5
  1705. mv -f conftest.er1 conftest.err
  1706. fi
  1707. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1708. test $ac_status = 0; } > conftest.i && {
  1709. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1710. test ! -s conftest.err
  1711. }; then :
  1712. ac_retval=0
  1713. else
  1714. $as_echo "$as_me: failed program was:" >&5
  1715. sed 's/^/| /' conftest.$ac_ext >&5
  1716. ac_retval=1
  1717. fi
  1718. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1719. as_fn_set_status $ac_retval
  1720. } # ac_fn_c_try_cpp
  1721. # ac_fn_c_try_run LINENO
  1722. # ----------------------
  1723. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1724. # that executables *can* be run.
  1725. ac_fn_c_try_run ()
  1726. {
  1727. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1728. if { { ac_try="$ac_link"
  1729. case "(($ac_try" in
  1730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1731. *) ac_try_echo=$ac_try;;
  1732. esac
  1733. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1734. $as_echo "$ac_try_echo"; } >&5
  1735. (eval "$ac_link") 2>&5
  1736. ac_status=$?
  1737. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1738. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1739. { { case "(($ac_try" in
  1740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1741. *) ac_try_echo=$ac_try;;
  1742. esac
  1743. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1744. $as_echo "$ac_try_echo"; } >&5
  1745. (eval "$ac_try") 2>&5
  1746. ac_status=$?
  1747. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1748. test $ac_status = 0; }; }; then :
  1749. ac_retval=0
  1750. else
  1751. $as_echo "$as_me: program exited with status $ac_status" >&5
  1752. $as_echo "$as_me: failed program was:" >&5
  1753. sed 's/^/| /' conftest.$ac_ext >&5
  1754. ac_retval=$ac_status
  1755. fi
  1756. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1757. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1758. as_fn_set_status $ac_retval
  1759. } # ac_fn_c_try_run
  1760. # ac_fn_c_check_func LINENO FUNC VAR
  1761. # ----------------------------------
  1762. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1763. ac_fn_c_check_func ()
  1764. {
  1765. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1767. $as_echo_n "checking for $2... " >&6; }
  1768. if eval \${$3+:} false; then :
  1769. $as_echo_n "(cached) " >&6
  1770. else
  1771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1772. /* end confdefs.h. */
  1773. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1774. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1775. #define $2 innocuous_$2
  1776. /* System header to define __stub macros and hopefully few prototypes,
  1777. which can conflict with char $2 (); below.
  1778. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1779. <limits.h> exists even on freestanding compilers. */
  1780. #ifdef __STDC__
  1781. # include <limits.h>
  1782. #else
  1783. # include <assert.h>
  1784. #endif
  1785. #undef $2
  1786. /* Override any GCC internal prototype to avoid an error.
  1787. Use char because int might match the return type of a GCC
  1788. builtin and then its argument prototype would still apply. */
  1789. #ifdef __cplusplus
  1790. extern "C"
  1791. #endif
  1792. char $2 ();
  1793. /* The GNU C library defines this for functions which it implements
  1794. to always fail with ENOSYS. Some functions are actually named
  1795. something starting with __ and the normal name is an alias. */
  1796. #if defined __stub_$2 || defined __stub___$2
  1797. choke me
  1798. #endif
  1799. int
  1800. main ()
  1801. {
  1802. return $2 ();
  1803. ;
  1804. return 0;
  1805. }
  1806. _ACEOF
  1807. if ac_fn_c_try_link "$LINENO"; then :
  1808. eval "$3=yes"
  1809. else
  1810. eval "$3=no"
  1811. fi
  1812. rm -f core conftest.err conftest.$ac_objext \
  1813. conftest$ac_exeext conftest.$ac_ext
  1814. fi
  1815. eval ac_res=\$$3
  1816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1817. $as_echo "$ac_res" >&6; }
  1818. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1819. } # ac_fn_c_check_func
  1820. # ac_fn_cxx_try_compile LINENO
  1821. # ----------------------------
  1822. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1823. ac_fn_cxx_try_compile ()
  1824. {
  1825. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1826. rm -f conftest.$ac_objext
  1827. if { { ac_try="$ac_compile"
  1828. case "(($ac_try" in
  1829. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1830. *) ac_try_echo=$ac_try;;
  1831. esac
  1832. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1833. $as_echo "$ac_try_echo"; } >&5
  1834. (eval "$ac_compile") 2>conftest.err
  1835. ac_status=$?
  1836. if test -s conftest.err; then
  1837. grep -v '^ *+' conftest.err >conftest.er1
  1838. cat conftest.er1 >&5
  1839. mv -f conftest.er1 conftest.err
  1840. fi
  1841. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1842. test $ac_status = 0; } && {
  1843. test -z "$ac_cxx_werror_flag" ||
  1844. test ! -s conftest.err
  1845. } && test -s conftest.$ac_objext; then :
  1846. ac_retval=0
  1847. else
  1848. $as_echo "$as_me: failed program was:" >&5
  1849. sed 's/^/| /' conftest.$ac_ext >&5
  1850. ac_retval=1
  1851. fi
  1852. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1853. as_fn_set_status $ac_retval
  1854. } # ac_fn_cxx_try_compile
  1855. # ac_fn_cxx_try_cpp LINENO
  1856. # ------------------------
  1857. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1858. ac_fn_cxx_try_cpp ()
  1859. {
  1860. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1861. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1862. case "(($ac_try" in
  1863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1864. *) ac_try_echo=$ac_try;;
  1865. esac
  1866. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1867. $as_echo "$ac_try_echo"; } >&5
  1868. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1869. ac_status=$?
  1870. if test -s conftest.err; then
  1871. grep -v '^ *+' conftest.err >conftest.er1
  1872. cat conftest.er1 >&5
  1873. mv -f conftest.er1 conftest.err
  1874. fi
  1875. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1876. test $ac_status = 0; } > conftest.i && {
  1877. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1878. test ! -s conftest.err
  1879. }; then :
  1880. ac_retval=0
  1881. else
  1882. $as_echo "$as_me: failed program was:" >&5
  1883. sed 's/^/| /' conftest.$ac_ext >&5
  1884. ac_retval=1
  1885. fi
  1886. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1887. as_fn_set_status $ac_retval
  1888. } # ac_fn_cxx_try_cpp
  1889. # ac_fn_cxx_try_link LINENO
  1890. # -------------------------
  1891. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1892. ac_fn_cxx_try_link ()
  1893. {
  1894. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1895. rm -f conftest.$ac_objext conftest$ac_exeext
  1896. if { { ac_try="$ac_link"
  1897. case "(($ac_try" in
  1898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1899. *) ac_try_echo=$ac_try;;
  1900. esac
  1901. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1902. $as_echo "$ac_try_echo"; } >&5
  1903. (eval "$ac_link") 2>conftest.err
  1904. ac_status=$?
  1905. if test -s conftest.err; then
  1906. grep -v '^ *+' conftest.err >conftest.er1
  1907. cat conftest.er1 >&5
  1908. mv -f conftest.er1 conftest.err
  1909. fi
  1910. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1911. test $ac_status = 0; } && {
  1912. test -z "$ac_cxx_werror_flag" ||
  1913. test ! -s conftest.err
  1914. } && test -s conftest$ac_exeext && {
  1915. test "$cross_compiling" = yes ||
  1916. test -x conftest$ac_exeext
  1917. }; then :
  1918. ac_retval=0
  1919. else
  1920. $as_echo "$as_me: failed program was:" >&5
  1921. sed 's/^/| /' conftest.$ac_ext >&5
  1922. ac_retval=1
  1923. fi
  1924. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1925. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1926. # interfere with the next link command; also delete a directory that is
  1927. # left behind by Apple's compiler. We do this before executing the actions.
  1928. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1929. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1930. as_fn_set_status $ac_retval
  1931. } # ac_fn_cxx_try_link
  1932. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1933. # -------------------------------------------------------
  1934. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1935. # the include files in INCLUDES and setting the cache variable VAR
  1936. # accordingly.
  1937. ac_fn_c_check_header_mongrel ()
  1938. {
  1939. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1940. if eval \${$3+:} false; then :
  1941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1942. $as_echo_n "checking for $2... " >&6; }
  1943. if eval \${$3+:} false; then :
  1944. $as_echo_n "(cached) " >&6
  1945. fi
  1946. eval ac_res=\$$3
  1947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1948. $as_echo "$ac_res" >&6; }
  1949. else
  1950. # Is the header compilable?
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1952. $as_echo_n "checking $2 usability... " >&6; }
  1953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1954. /* end confdefs.h. */
  1955. $4
  1956. #include <$2>
  1957. _ACEOF
  1958. if ac_fn_c_try_compile "$LINENO"; then :
  1959. ac_header_compiler=yes
  1960. else
  1961. ac_header_compiler=no
  1962. fi
  1963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1965. $as_echo "$ac_header_compiler" >&6; }
  1966. # Is the header present?
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1968. $as_echo_n "checking $2 presence... " >&6; }
  1969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1970. /* end confdefs.h. */
  1971. #include <$2>
  1972. _ACEOF
  1973. if ac_fn_c_try_cpp "$LINENO"; then :
  1974. ac_header_preproc=yes
  1975. else
  1976. ac_header_preproc=no
  1977. fi
  1978. rm -f conftest.err conftest.i conftest.$ac_ext
  1979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1980. $as_echo "$ac_header_preproc" >&6; }
  1981. # So? What about this header?
  1982. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1983. yes:no: )
  1984. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1985. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1987. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1988. ;;
  1989. no:yes:* )
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1991. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1993. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1994. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1995. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1996. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1997. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1999. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2000. ;;
  2001. esac
  2002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2003. $as_echo_n "checking for $2... " >&6; }
  2004. if eval \${$3+:} false; then :
  2005. $as_echo_n "(cached) " >&6
  2006. else
  2007. eval "$3=\$ac_header_compiler"
  2008. fi
  2009. eval ac_res=\$$3
  2010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2011. $as_echo "$ac_res" >&6; }
  2012. fi
  2013. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2014. } # ac_fn_c_check_header_mongrel
  2015. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2016. # -------------------------------------------
  2017. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2018. # variable VAR accordingly.
  2019. ac_fn_c_check_type ()
  2020. {
  2021. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2023. $as_echo_n "checking for $2... " >&6; }
  2024. if eval \${$3+:} false; then :
  2025. $as_echo_n "(cached) " >&6
  2026. else
  2027. eval "$3=no"
  2028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2029. /* end confdefs.h. */
  2030. $4
  2031. int
  2032. main ()
  2033. {
  2034. if (sizeof ($2))
  2035. return 0;
  2036. ;
  2037. return 0;
  2038. }
  2039. _ACEOF
  2040. if ac_fn_c_try_compile "$LINENO"; then :
  2041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2042. /* end confdefs.h. */
  2043. $4
  2044. int
  2045. main ()
  2046. {
  2047. if (sizeof (($2)))
  2048. return 0;
  2049. ;
  2050. return 0;
  2051. }
  2052. _ACEOF
  2053. if ac_fn_c_try_compile "$LINENO"; then :
  2054. else
  2055. eval "$3=yes"
  2056. fi
  2057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2058. fi
  2059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2060. fi
  2061. eval ac_res=\$$3
  2062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2063. $as_echo "$ac_res" >&6; }
  2064. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2065. } # ac_fn_c_check_type
  2066. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2067. # ----------------------------------------------------
  2068. # Tries to find if the field MEMBER exists in type AGGR, after including
  2069. # INCLUDES, setting cache variable VAR accordingly.
  2070. ac_fn_c_check_member ()
  2071. {
  2072. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2074. $as_echo_n "checking for $2.$3... " >&6; }
  2075. if eval \${$4+:} false; then :
  2076. $as_echo_n "(cached) " >&6
  2077. else
  2078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2079. /* end confdefs.h. */
  2080. $5
  2081. int
  2082. main ()
  2083. {
  2084. static $2 ac_aggr;
  2085. if (ac_aggr.$3)
  2086. return 0;
  2087. ;
  2088. return 0;
  2089. }
  2090. _ACEOF
  2091. if ac_fn_c_try_compile "$LINENO"; then :
  2092. eval "$4=yes"
  2093. else
  2094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2095. /* end confdefs.h. */
  2096. $5
  2097. int
  2098. main ()
  2099. {
  2100. static $2 ac_aggr;
  2101. if (sizeof ac_aggr.$3)
  2102. return 0;
  2103. ;
  2104. return 0;
  2105. }
  2106. _ACEOF
  2107. if ac_fn_c_try_compile "$LINENO"; then :
  2108. eval "$4=yes"
  2109. else
  2110. eval "$4=no"
  2111. fi
  2112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2113. fi
  2114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2115. fi
  2116. eval ac_res=\$$4
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2118. $as_echo "$ac_res" >&6; }
  2119. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2120. } # ac_fn_c_check_member
  2121. cat >config.log <<_ACEOF
  2122. This file contains any messages produced by compilers while
  2123. running configure, to aid debugging if configure makes a mistake.
  2124. It was created by $as_me, which was
  2125. generated by GNU Autoconf 2.69. Invocation command line was
  2126. $ $0 $@
  2127. _ACEOF
  2128. exec 5>>config.log
  2129. {
  2130. cat <<_ASUNAME
  2131. ## --------- ##
  2132. ## Platform. ##
  2133. ## --------- ##
  2134. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2135. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2136. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2137. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2138. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2139. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2140. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2141. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2142. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2143. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2144. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2145. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2146. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2147. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2148. _ASUNAME
  2149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2150. for as_dir in $PATH
  2151. do
  2152. IFS=$as_save_IFS
  2153. test -z "$as_dir" && as_dir=.
  2154. $as_echo "PATH: $as_dir"
  2155. done
  2156. IFS=$as_save_IFS
  2157. } >&5
  2158. cat >&5 <<_ACEOF
  2159. ## ----------- ##
  2160. ## Core tests. ##
  2161. ## ----------- ##
  2162. _ACEOF
  2163. # Keep a trace of the command line.
  2164. # Strip out --no-create and --no-recursion so they do not pile up.
  2165. # Strip out --silent because we don't want to record it for future runs.
  2166. # Also quote any args containing shell meta-characters.
  2167. # Make two passes to allow for proper duplicate-argument suppression.
  2168. ac_configure_args=
  2169. ac_configure_args0=
  2170. ac_configure_args1=
  2171. ac_must_keep_next=false
  2172. for ac_pass in 1 2
  2173. do
  2174. for ac_arg
  2175. do
  2176. case $ac_arg in
  2177. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2178. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2179. | -silent | --silent | --silen | --sile | --sil)
  2180. continue ;;
  2181. *\'*)
  2182. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2183. esac
  2184. case $ac_pass in
  2185. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2186. 2)
  2187. as_fn_append ac_configure_args1 " '$ac_arg'"
  2188. if test $ac_must_keep_next = true; then
  2189. ac_must_keep_next=false # Got value, back to normal.
  2190. else
  2191. case $ac_arg in
  2192. *=* | --config-cache | -C | -disable-* | --disable-* \
  2193. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2194. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2195. | -with-* | --with-* | -without-* | --without-* | --x)
  2196. case "$ac_configure_args0 " in
  2197. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2198. esac
  2199. ;;
  2200. -* ) ac_must_keep_next=true ;;
  2201. esac
  2202. fi
  2203. as_fn_append ac_configure_args " '$ac_arg'"
  2204. ;;
  2205. esac
  2206. done
  2207. done
  2208. { ac_configure_args0=; unset ac_configure_args0;}
  2209. { ac_configure_args1=; unset ac_configure_args1;}
  2210. # When interrupted or exit'd, cleanup temporary files, and complete
  2211. # config.log. We remove comments because anyway the quotes in there
  2212. # would cause problems or look ugly.
  2213. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2214. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2215. trap 'exit_status=$?
  2216. # Save into config.log some information that might help in debugging.
  2217. {
  2218. echo
  2219. $as_echo "## ---------------- ##
  2220. ## Cache variables. ##
  2221. ## ---------------- ##"
  2222. echo
  2223. # The following way of writing the cache mishandles newlines in values,
  2224. (
  2225. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2226. eval ac_val=\$$ac_var
  2227. case $ac_val in #(
  2228. *${as_nl}*)
  2229. case $ac_var in #(
  2230. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2231. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2232. esac
  2233. case $ac_var in #(
  2234. _ | IFS | as_nl) ;; #(
  2235. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2236. *) { eval $ac_var=; unset $ac_var;} ;;
  2237. esac ;;
  2238. esac
  2239. done
  2240. (set) 2>&1 |
  2241. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2242. *${as_nl}ac_space=\ *)
  2243. sed -n \
  2244. "s/'\''/'\''\\\\'\'''\''/g;
  2245. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2246. ;; #(
  2247. *)
  2248. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2249. ;;
  2250. esac |
  2251. sort
  2252. )
  2253. echo
  2254. $as_echo "## ----------------- ##
  2255. ## Output variables. ##
  2256. ## ----------------- ##"
  2257. echo
  2258. for ac_var in $ac_subst_vars
  2259. do
  2260. eval ac_val=\$$ac_var
  2261. case $ac_val in
  2262. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2263. esac
  2264. $as_echo "$ac_var='\''$ac_val'\''"
  2265. done | sort
  2266. echo
  2267. if test -n "$ac_subst_files"; then
  2268. $as_echo "## ------------------- ##
  2269. ## File substitutions. ##
  2270. ## ------------------- ##"
  2271. echo
  2272. for ac_var in $ac_subst_files
  2273. do
  2274. eval ac_val=\$$ac_var
  2275. case $ac_val in
  2276. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2277. esac
  2278. $as_echo "$ac_var='\''$ac_val'\''"
  2279. done | sort
  2280. echo
  2281. fi
  2282. if test -s confdefs.h; then
  2283. $as_echo "## ----------- ##
  2284. ## confdefs.h. ##
  2285. ## ----------- ##"
  2286. echo
  2287. cat confdefs.h
  2288. echo
  2289. fi
  2290. test "$ac_signal" != 0 &&
  2291. $as_echo "$as_me: caught signal $ac_signal"
  2292. $as_echo "$as_me: exit $exit_status"
  2293. } >&5
  2294. rm -f core *.core core.conftest.* &&
  2295. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2296. exit $exit_status
  2297. ' 0
  2298. for ac_signal in 1 2 13 15; do
  2299. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2300. done
  2301. ac_signal=0
  2302. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2303. rm -f -r conftest* confdefs.h
  2304. $as_echo "/* confdefs.h */" > confdefs.h
  2305. # Predefined preprocessor variables.
  2306. cat >>confdefs.h <<_ACEOF
  2307. #define PACKAGE_NAME "$PACKAGE_NAME"
  2308. _ACEOF
  2309. cat >>confdefs.h <<_ACEOF
  2310. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2311. _ACEOF
  2312. cat >>confdefs.h <<_ACEOF
  2313. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2314. _ACEOF
  2315. cat >>confdefs.h <<_ACEOF
  2316. #define PACKAGE_STRING "$PACKAGE_STRING"
  2317. _ACEOF
  2318. cat >>confdefs.h <<_ACEOF
  2319. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2320. _ACEOF
  2321. cat >>confdefs.h <<_ACEOF
  2322. #define PACKAGE_URL "$PACKAGE_URL"
  2323. _ACEOF
  2324. # Let the site file select an alternate cache file if it wants to.
  2325. # Prefer an explicitly selected file to automatically selected ones.
  2326. ac_site_file1=NONE
  2327. ac_site_file2=NONE
  2328. if test -n "$CONFIG_SITE"; then
  2329. # We do not want a PATH search for config.site.
  2330. case $CONFIG_SITE in #((
  2331. -*) ac_site_file1=./$CONFIG_SITE;;
  2332. */*) ac_site_file1=$CONFIG_SITE;;
  2333. *) ac_site_file1=./$CONFIG_SITE;;
  2334. esac
  2335. elif test "x$prefix" != xNONE; then
  2336. ac_site_file1=$prefix/share/config.site
  2337. ac_site_file2=$prefix/etc/config.site
  2338. else
  2339. ac_site_file1=$ac_default_prefix/share/config.site
  2340. ac_site_file2=$ac_default_prefix/etc/config.site
  2341. fi
  2342. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2343. do
  2344. test "x$ac_site_file" = xNONE && continue
  2345. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2346. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2347. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2348. sed 's/^/| /' "$ac_site_file" >&5
  2349. . "$ac_site_file" \
  2350. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2351. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2352. as_fn_error $? "failed to load site script $ac_site_file
  2353. See \`config.log' for more details" "$LINENO" 5; }
  2354. fi
  2355. done
  2356. if test -r "$cache_file"; then
  2357. # Some versions of bash will fail to source /dev/null (special files
  2358. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2359. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2360. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2361. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2362. case $cache_file in
  2363. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2364. *) . "./$cache_file";;
  2365. esac
  2366. fi
  2367. else
  2368. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2369. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2370. >$cache_file
  2371. fi
  2372. # Check that the precious variables saved in the cache have kept the same
  2373. # value.
  2374. ac_cache_corrupted=false
  2375. for ac_var in $ac_precious_vars; do
  2376. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2377. eval ac_new_set=\$ac_env_${ac_var}_set
  2378. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2379. eval ac_new_val=\$ac_env_${ac_var}_value
  2380. case $ac_old_set,$ac_new_set in
  2381. set,)
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2383. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2384. ac_cache_corrupted=: ;;
  2385. ,set)
  2386. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2387. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2388. ac_cache_corrupted=: ;;
  2389. ,);;
  2390. *)
  2391. if test "x$ac_old_val" != "x$ac_new_val"; then
  2392. # differences in whitespace do not lead to failure.
  2393. ac_old_val_w=`echo x $ac_old_val`
  2394. ac_new_val_w=`echo x $ac_new_val`
  2395. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2396. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2397. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2398. ac_cache_corrupted=:
  2399. else
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2401. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2402. eval $ac_var=\$ac_old_val
  2403. fi
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2405. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2407. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2408. fi;;
  2409. esac
  2410. # Pass precious variables to config.status.
  2411. if test "$ac_new_set" = set; then
  2412. case $ac_new_val in
  2413. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2414. *) ac_arg=$ac_var=$ac_new_val ;;
  2415. esac
  2416. case " $ac_configure_args " in
  2417. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2418. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2419. esac
  2420. fi
  2421. done
  2422. if $ac_cache_corrupted; then
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2424. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2426. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2427. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2428. fi
  2429. ## -------------------- ##
  2430. ## Main body of script. ##
  2431. ## -------------------- ##
  2432. ac_ext=c
  2433. ac_cpp='$CPP $CPPFLAGS'
  2434. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2435. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2436. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2437. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2438. ac_aux_dir=
  2439. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2440. if test -f "$ac_dir/install-sh"; then
  2441. ac_aux_dir=$ac_dir
  2442. ac_install_sh="$ac_aux_dir/install-sh -c"
  2443. break
  2444. elif 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/shtool"; then
  2449. ac_aux_dir=$ac_dir
  2450. ac_install_sh="$ac_aux_dir/shtool install -c"
  2451. break
  2452. fi
  2453. done
  2454. if test -z "$ac_aux_dir"; then
  2455. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2456. fi
  2457. # These three variables are undocumented and unsupported,
  2458. # and are intended to be withdrawn in a future Autoconf release.
  2459. # They can cause serious problems if a builder's source tree is in a directory
  2460. # whose full name contains unusual characters.
  2461. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2462. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2463. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2464. orig_CFLAGS="$CFLAGS"
  2465. #
  2466. # Making releases:
  2467. # Edit include/SDL_version.h and change the version, then:
  2468. # SDL_MICRO_VERSION += 1;
  2469. # SDL_INTERFACE_AGE += 1;
  2470. # SDL_BINARY_AGE += 1;
  2471. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2472. # if backwards compatibility has been broken,
  2473. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2474. #
  2475. SDL_MAJOR_VERSION=2
  2476. SDL_MINOR_VERSION=0
  2477. SDL_MICRO_VERSION=5
  2478. SDL_INTERFACE_AGE=0
  2479. SDL_BINARY_AGE=5
  2480. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2481. # libtool versioning
  2482. case `pwd` in
  2483. *\ * | *\ *)
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2485. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2486. esac
  2487. macro_version='2.4.2'
  2488. macro_revision='1.3337'
  2489. ltmain="$ac_aux_dir/ltmain.sh"
  2490. # Make sure we can run config.sub.
  2491. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2492. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2494. $as_echo_n "checking build system type... " >&6; }
  2495. if ${ac_cv_build+:} false; then :
  2496. $as_echo_n "(cached) " >&6
  2497. else
  2498. ac_build_alias=$build_alias
  2499. test "x$ac_build_alias" = x &&
  2500. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2501. test "x$ac_build_alias" = x &&
  2502. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2503. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2504. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2505. fi
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2507. $as_echo "$ac_cv_build" >&6; }
  2508. case $ac_cv_build in
  2509. *-*-*) ;;
  2510. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2511. esac
  2512. build=$ac_cv_build
  2513. ac_save_IFS=$IFS; IFS='-'
  2514. set x $ac_cv_build
  2515. shift
  2516. build_cpu=$1
  2517. build_vendor=$2
  2518. shift; shift
  2519. # Remember, the first character of IFS is used to create $*,
  2520. # except with old shells:
  2521. build_os=$*
  2522. IFS=$ac_save_IFS
  2523. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2525. $as_echo_n "checking host system type... " >&6; }
  2526. if ${ac_cv_host+:} false; then :
  2527. $as_echo_n "(cached) " >&6
  2528. else
  2529. if test "x$host_alias" = x; then
  2530. ac_cv_host=$ac_cv_build
  2531. else
  2532. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2533. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2534. fi
  2535. fi
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2537. $as_echo "$ac_cv_host" >&6; }
  2538. case $ac_cv_host in
  2539. *-*-*) ;;
  2540. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2541. esac
  2542. host=$ac_cv_host
  2543. ac_save_IFS=$IFS; IFS='-'
  2544. set x $ac_cv_host
  2545. shift
  2546. host_cpu=$1
  2547. host_vendor=$2
  2548. shift; shift
  2549. # Remember, the first character of IFS is used to create $*,
  2550. # except with old shells:
  2551. host_os=$*
  2552. IFS=$ac_save_IFS
  2553. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2554. # Backslashify metacharacters that are still active within
  2555. # double-quoted strings.
  2556. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2557. # Same as above, but do not quote variable references.
  2558. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2559. # Sed substitution to delay expansion of an escaped shell variable in a
  2560. # double_quote_subst'ed string.
  2561. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2562. # Sed substitution to delay expansion of an escaped single quote.
  2563. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2564. # Sed substitution to avoid accidental globbing in evaled expressions
  2565. no_glob_subst='s/\*/\\\*/g'
  2566. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2567. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2568. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2570. $as_echo_n "checking how to print strings... " >&6; }
  2571. # Test print first, because it will be a builtin if present.
  2572. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2573. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2574. ECHO='print -r --'
  2575. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2576. ECHO='printf %s\n'
  2577. else
  2578. # Use this function as a fallback that always works.
  2579. func_fallback_echo ()
  2580. {
  2581. eval 'cat <<_LTECHO_EOF
  2582. $1
  2583. _LTECHO_EOF'
  2584. }
  2585. ECHO='func_fallback_echo'
  2586. fi
  2587. # func_echo_all arg...
  2588. # Invoke $ECHO with all args, space-separated.
  2589. func_echo_all ()
  2590. {
  2591. $ECHO ""
  2592. }
  2593. case "$ECHO" in
  2594. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2595. $as_echo "printf" >&6; } ;;
  2596. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2597. $as_echo "print -r" >&6; } ;;
  2598. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2599. $as_echo "cat" >&6; } ;;
  2600. esac
  2601. ac_ext=c
  2602. ac_cpp='$CPP $CPPFLAGS'
  2603. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2604. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2605. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2606. if test -n "$ac_tool_prefix"; then
  2607. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2608. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2610. $as_echo_n "checking for $ac_word... " >&6; }
  2611. if ${ac_cv_prog_CC+:} false; then :
  2612. $as_echo_n "(cached) " >&6
  2613. else
  2614. if test -n "$CC"; then
  2615. ac_cv_prog_CC="$CC" # Let the user override the test.
  2616. else
  2617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2618. for as_dir in $PATH
  2619. do
  2620. IFS=$as_save_IFS
  2621. test -z "$as_dir" && as_dir=.
  2622. for ac_exec_ext in '' $ac_executable_extensions; do
  2623. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2624. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2626. break 2
  2627. fi
  2628. done
  2629. done
  2630. IFS=$as_save_IFS
  2631. fi
  2632. fi
  2633. CC=$ac_cv_prog_CC
  2634. if test -n "$CC"; then
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2636. $as_echo "$CC" >&6; }
  2637. else
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2639. $as_echo "no" >&6; }
  2640. fi
  2641. fi
  2642. if test -z "$ac_cv_prog_CC"; then
  2643. ac_ct_CC=$CC
  2644. # Extract the first word of "gcc", so it can be a program name with args.
  2645. set dummy gcc; ac_word=$2
  2646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2647. $as_echo_n "checking for $ac_word... " >&6; }
  2648. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2649. $as_echo_n "(cached) " >&6
  2650. else
  2651. if test -n "$ac_ct_CC"; then
  2652. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2653. else
  2654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2655. for as_dir in $PATH
  2656. do
  2657. IFS=$as_save_IFS
  2658. test -z "$as_dir" && as_dir=.
  2659. for ac_exec_ext in '' $ac_executable_extensions; do
  2660. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2661. ac_cv_prog_ac_ct_CC="gcc"
  2662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2663. break 2
  2664. fi
  2665. done
  2666. done
  2667. IFS=$as_save_IFS
  2668. fi
  2669. fi
  2670. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2671. if test -n "$ac_ct_CC"; then
  2672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2673. $as_echo "$ac_ct_CC" >&6; }
  2674. else
  2675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2676. $as_echo "no" >&6; }
  2677. fi
  2678. if test "x$ac_ct_CC" = x; then
  2679. CC=""
  2680. else
  2681. case $cross_compiling:$ac_tool_warned in
  2682. yes:)
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2684. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2685. ac_tool_warned=yes ;;
  2686. esac
  2687. CC=$ac_ct_CC
  2688. fi
  2689. else
  2690. CC="$ac_cv_prog_CC"
  2691. fi
  2692. if test -z "$CC"; then
  2693. if test -n "$ac_tool_prefix"; then
  2694. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2695. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2697. $as_echo_n "checking for $ac_word... " >&6; }
  2698. if ${ac_cv_prog_CC+:} false; then :
  2699. $as_echo_n "(cached) " >&6
  2700. else
  2701. if test -n "$CC"; then
  2702. ac_cv_prog_CC="$CC" # Let the user override the test.
  2703. else
  2704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2705. for as_dir in $PATH
  2706. do
  2707. IFS=$as_save_IFS
  2708. test -z "$as_dir" && as_dir=.
  2709. for ac_exec_ext in '' $ac_executable_extensions; do
  2710. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2711. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2713. break 2
  2714. fi
  2715. done
  2716. done
  2717. IFS=$as_save_IFS
  2718. fi
  2719. fi
  2720. CC=$ac_cv_prog_CC
  2721. if test -n "$CC"; then
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2723. $as_echo "$CC" >&6; }
  2724. else
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2726. $as_echo "no" >&6; }
  2727. fi
  2728. fi
  2729. fi
  2730. if test -z "$CC"; then
  2731. # Extract the first word of "cc", so it can be a program name with args.
  2732. set dummy cc; ac_word=$2
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2734. $as_echo_n "checking for $ac_word... " >&6; }
  2735. if ${ac_cv_prog_CC+:} false; then :
  2736. $as_echo_n "(cached) " >&6
  2737. else
  2738. if test -n "$CC"; then
  2739. ac_cv_prog_CC="$CC" # Let the user override the test.
  2740. else
  2741. ac_prog_rejected=no
  2742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2743. for as_dir in $PATH
  2744. do
  2745. IFS=$as_save_IFS
  2746. test -z "$as_dir" && as_dir=.
  2747. for ac_exec_ext in '' $ac_executable_extensions; do
  2748. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2749. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2750. ac_prog_rejected=yes
  2751. continue
  2752. fi
  2753. ac_cv_prog_CC="cc"
  2754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2755. break 2
  2756. fi
  2757. done
  2758. done
  2759. IFS=$as_save_IFS
  2760. if test $ac_prog_rejected = yes; then
  2761. # We found a bogon in the path, so make sure we never use it.
  2762. set dummy $ac_cv_prog_CC
  2763. shift
  2764. if test $# != 0; then
  2765. # We chose a different compiler from the bogus one.
  2766. # However, it has the same basename, so the bogon will be chosen
  2767. # first if we set CC to just the basename; use the full file name.
  2768. shift
  2769. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2770. fi
  2771. fi
  2772. fi
  2773. fi
  2774. CC=$ac_cv_prog_CC
  2775. if test -n "$CC"; then
  2776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2777. $as_echo "$CC" >&6; }
  2778. else
  2779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2780. $as_echo "no" >&6; }
  2781. fi
  2782. fi
  2783. if test -z "$CC"; then
  2784. if test -n "$ac_tool_prefix"; then
  2785. for ac_prog in cl.exe
  2786. do
  2787. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2788. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2790. $as_echo_n "checking for $ac_word... " >&6; }
  2791. if ${ac_cv_prog_CC+:} false; then :
  2792. $as_echo_n "(cached) " >&6
  2793. else
  2794. if test -n "$CC"; then
  2795. ac_cv_prog_CC="$CC" # Let the user override the test.
  2796. else
  2797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2798. for as_dir in $PATH
  2799. do
  2800. IFS=$as_save_IFS
  2801. test -z "$as_dir" && as_dir=.
  2802. for ac_exec_ext in '' $ac_executable_extensions; do
  2803. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2804. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2806. break 2
  2807. fi
  2808. done
  2809. done
  2810. IFS=$as_save_IFS
  2811. fi
  2812. fi
  2813. CC=$ac_cv_prog_CC
  2814. if test -n "$CC"; then
  2815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2816. $as_echo "$CC" >&6; }
  2817. else
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2819. $as_echo "no" >&6; }
  2820. fi
  2821. test -n "$CC" && break
  2822. done
  2823. fi
  2824. if test -z "$CC"; then
  2825. ac_ct_CC=$CC
  2826. for ac_prog in cl.exe
  2827. do
  2828. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2829. set dummy $ac_prog; ac_word=$2
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2831. $as_echo_n "checking for $ac_word... " >&6; }
  2832. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2833. $as_echo_n "(cached) " >&6
  2834. else
  2835. if test -n "$ac_ct_CC"; then
  2836. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2837. else
  2838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2839. for as_dir in $PATH
  2840. do
  2841. IFS=$as_save_IFS
  2842. test -z "$as_dir" && as_dir=.
  2843. for ac_exec_ext in '' $ac_executable_extensions; do
  2844. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2845. ac_cv_prog_ac_ct_CC="$ac_prog"
  2846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2847. break 2
  2848. fi
  2849. done
  2850. done
  2851. IFS=$as_save_IFS
  2852. fi
  2853. fi
  2854. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2855. if test -n "$ac_ct_CC"; then
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2857. $as_echo "$ac_ct_CC" >&6; }
  2858. else
  2859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2860. $as_echo "no" >&6; }
  2861. fi
  2862. test -n "$ac_ct_CC" && break
  2863. done
  2864. if test "x$ac_ct_CC" = x; then
  2865. CC=""
  2866. else
  2867. case $cross_compiling:$ac_tool_warned in
  2868. yes:)
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2870. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2871. ac_tool_warned=yes ;;
  2872. esac
  2873. CC=$ac_ct_CC
  2874. fi
  2875. fi
  2876. fi
  2877. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2878. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2879. as_fn_error $? "no acceptable C compiler found in \$PATH
  2880. See \`config.log' for more details" "$LINENO" 5; }
  2881. # Provide some information about the compiler.
  2882. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2883. set X $ac_compile
  2884. ac_compiler=$2
  2885. for ac_option in --version -v -V -qversion; do
  2886. { { ac_try="$ac_compiler $ac_option >&5"
  2887. case "(($ac_try" in
  2888. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2889. *) ac_try_echo=$ac_try;;
  2890. esac
  2891. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2892. $as_echo "$ac_try_echo"; } >&5
  2893. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2894. ac_status=$?
  2895. if test -s conftest.err; then
  2896. sed '10a\
  2897. ... rest of stderr output deleted ...
  2898. 10q' conftest.err >conftest.er1
  2899. cat conftest.er1 >&5
  2900. fi
  2901. rm -f conftest.er1 conftest.err
  2902. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2903. test $ac_status = 0; }
  2904. done
  2905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2906. /* end confdefs.h. */
  2907. int
  2908. main ()
  2909. {
  2910. ;
  2911. return 0;
  2912. }
  2913. _ACEOF
  2914. ac_clean_files_save=$ac_clean_files
  2915. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2916. # Try to create an executable without -o first, disregard a.out.
  2917. # It will help us diagnose broken compilers, and finding out an intuition
  2918. # of exeext.
  2919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2920. $as_echo_n "checking whether the C compiler works... " >&6; }
  2921. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2922. # The possible output files:
  2923. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2924. ac_rmfiles=
  2925. for ac_file in $ac_files
  2926. do
  2927. case $ac_file in
  2928. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2929. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2930. esac
  2931. done
  2932. rm -f $ac_rmfiles
  2933. if { { ac_try="$ac_link_default"
  2934. case "(($ac_try" in
  2935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2936. *) ac_try_echo=$ac_try;;
  2937. esac
  2938. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2939. $as_echo "$ac_try_echo"; } >&5
  2940. (eval "$ac_link_default") 2>&5
  2941. ac_status=$?
  2942. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2943. test $ac_status = 0; }; then :
  2944. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2945. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2946. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2947. # so that the user can short-circuit this test for compilers unknown to
  2948. # Autoconf.
  2949. for ac_file in $ac_files ''
  2950. do
  2951. test -f "$ac_file" || continue
  2952. case $ac_file in
  2953. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2954. ;;
  2955. [ab].out )
  2956. # We found the default executable, but exeext='' is most
  2957. # certainly right.
  2958. break;;
  2959. *.* )
  2960. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2961. then :; else
  2962. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2963. fi
  2964. # We set ac_cv_exeext here because the later test for it is not
  2965. # safe: cross compilers may not add the suffix if given an `-o'
  2966. # argument, so we may need to know it at that point already.
  2967. # Even if this section looks crufty: it has the advantage of
  2968. # actually working.
  2969. break;;
  2970. * )
  2971. break;;
  2972. esac
  2973. done
  2974. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2975. else
  2976. ac_file=''
  2977. fi
  2978. if test -z "$ac_file"; then :
  2979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2980. $as_echo "no" >&6; }
  2981. $as_echo "$as_me: failed program was:" >&5
  2982. sed 's/^/| /' conftest.$ac_ext >&5
  2983. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2984. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2985. as_fn_error 77 "C compiler cannot create executables
  2986. See \`config.log' for more details" "$LINENO" 5; }
  2987. else
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2989. $as_echo "yes" >&6; }
  2990. fi
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2992. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2994. $as_echo "$ac_file" >&6; }
  2995. ac_exeext=$ac_cv_exeext
  2996. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2997. ac_clean_files=$ac_clean_files_save
  2998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2999. $as_echo_n "checking for suffix of executables... " >&6; }
  3000. if { { ac_try="$ac_link"
  3001. case "(($ac_try" in
  3002. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3003. *) ac_try_echo=$ac_try;;
  3004. esac
  3005. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3006. $as_echo "$ac_try_echo"; } >&5
  3007. (eval "$ac_link") 2>&5
  3008. ac_status=$?
  3009. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3010. test $ac_status = 0; }; then :
  3011. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3012. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3013. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3014. # `rm'.
  3015. for ac_file in conftest.exe conftest conftest.*; do
  3016. test -f "$ac_file" || continue
  3017. case $ac_file in
  3018. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3019. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3020. break;;
  3021. * ) break;;
  3022. esac
  3023. done
  3024. else
  3025. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3026. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3027. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3028. See \`config.log' for more details" "$LINENO" 5; }
  3029. fi
  3030. rm -f conftest conftest$ac_cv_exeext
  3031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3032. $as_echo "$ac_cv_exeext" >&6; }
  3033. rm -f conftest.$ac_ext
  3034. EXEEXT=$ac_cv_exeext
  3035. ac_exeext=$EXEEXT
  3036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3037. /* end confdefs.h. */
  3038. #include <stdio.h>
  3039. int
  3040. main ()
  3041. {
  3042. FILE *f = fopen ("conftest.out", "w");
  3043. return ferror (f) || fclose (f) != 0;
  3044. ;
  3045. return 0;
  3046. }
  3047. _ACEOF
  3048. ac_clean_files="$ac_clean_files conftest.out"
  3049. # Check that the compiler produces executables we can run. If not, either
  3050. # the compiler is broken, or we cross compile.
  3051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3052. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3053. if test "$cross_compiling" != yes; then
  3054. { { ac_try="$ac_link"
  3055. case "(($ac_try" in
  3056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3057. *) ac_try_echo=$ac_try;;
  3058. esac
  3059. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3060. $as_echo "$ac_try_echo"; } >&5
  3061. (eval "$ac_link") 2>&5
  3062. ac_status=$?
  3063. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3064. test $ac_status = 0; }
  3065. if { ac_try='./conftest$ac_cv_exeext'
  3066. { { case "(($ac_try" in
  3067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3068. *) ac_try_echo=$ac_try;;
  3069. esac
  3070. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3071. $as_echo "$ac_try_echo"; } >&5
  3072. (eval "$ac_try") 2>&5
  3073. ac_status=$?
  3074. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3075. test $ac_status = 0; }; }; then
  3076. cross_compiling=no
  3077. else
  3078. if test "$cross_compiling" = maybe; then
  3079. cross_compiling=yes
  3080. else
  3081. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3082. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3083. as_fn_error $? "cannot run C compiled programs.
  3084. If you meant to cross compile, use \`--host'.
  3085. See \`config.log' for more details" "$LINENO" 5; }
  3086. fi
  3087. fi
  3088. fi
  3089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3090. $as_echo "$cross_compiling" >&6; }
  3091. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3092. ac_clean_files=$ac_clean_files_save
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3094. $as_echo_n "checking for suffix of object files... " >&6; }
  3095. if ${ac_cv_objext+:} false; then :
  3096. $as_echo_n "(cached) " >&6
  3097. else
  3098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3099. /* end confdefs.h. */
  3100. int
  3101. main ()
  3102. {
  3103. ;
  3104. return 0;
  3105. }
  3106. _ACEOF
  3107. rm -f conftest.o conftest.obj
  3108. if { { ac_try="$ac_compile"
  3109. case "(($ac_try" in
  3110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3111. *) ac_try_echo=$ac_try;;
  3112. esac
  3113. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3114. $as_echo "$ac_try_echo"; } >&5
  3115. (eval "$ac_compile") 2>&5
  3116. ac_status=$?
  3117. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3118. test $ac_status = 0; }; then :
  3119. for ac_file in conftest.o conftest.obj conftest.*; do
  3120. test -f "$ac_file" || continue;
  3121. case $ac_file in
  3122. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3123. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3124. break;;
  3125. esac
  3126. done
  3127. else
  3128. $as_echo "$as_me: failed program was:" >&5
  3129. sed 's/^/| /' conftest.$ac_ext >&5
  3130. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3131. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3132. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3133. See \`config.log' for more details" "$LINENO" 5; }
  3134. fi
  3135. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3136. fi
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3138. $as_echo "$ac_cv_objext" >&6; }
  3139. OBJEXT=$ac_cv_objext
  3140. ac_objext=$OBJEXT
  3141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3142. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3143. if ${ac_cv_c_compiler_gnu+:} false; then :
  3144. $as_echo_n "(cached) " >&6
  3145. else
  3146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3147. /* end confdefs.h. */
  3148. int
  3149. main ()
  3150. {
  3151. #ifndef __GNUC__
  3152. choke me
  3153. #endif
  3154. ;
  3155. return 0;
  3156. }
  3157. _ACEOF
  3158. if ac_fn_c_try_compile "$LINENO"; then :
  3159. ac_compiler_gnu=yes
  3160. else
  3161. ac_compiler_gnu=no
  3162. fi
  3163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3164. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3165. fi
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3167. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3168. if test $ac_compiler_gnu = yes; then
  3169. GCC=yes
  3170. else
  3171. GCC=
  3172. fi
  3173. ac_test_CFLAGS=${CFLAGS+set}
  3174. ac_save_CFLAGS=$CFLAGS
  3175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3176. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3177. if ${ac_cv_prog_cc_g+:} false; then :
  3178. $as_echo_n "(cached) " >&6
  3179. else
  3180. ac_save_c_werror_flag=$ac_c_werror_flag
  3181. ac_c_werror_flag=yes
  3182. ac_cv_prog_cc_g=no
  3183. CFLAGS="-g"
  3184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3185. /* end confdefs.h. */
  3186. int
  3187. main ()
  3188. {
  3189. ;
  3190. return 0;
  3191. }
  3192. _ACEOF
  3193. if ac_fn_c_try_compile "$LINENO"; then :
  3194. ac_cv_prog_cc_g=yes
  3195. else
  3196. CFLAGS=""
  3197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3198. /* end confdefs.h. */
  3199. int
  3200. main ()
  3201. {
  3202. ;
  3203. return 0;
  3204. }
  3205. _ACEOF
  3206. if ac_fn_c_try_compile "$LINENO"; then :
  3207. else
  3208. ac_c_werror_flag=$ac_save_c_werror_flag
  3209. CFLAGS="-g"
  3210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3211. /* end confdefs.h. */
  3212. int
  3213. main ()
  3214. {
  3215. ;
  3216. return 0;
  3217. }
  3218. _ACEOF
  3219. if ac_fn_c_try_compile "$LINENO"; then :
  3220. ac_cv_prog_cc_g=yes
  3221. fi
  3222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3223. fi
  3224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3225. fi
  3226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3227. ac_c_werror_flag=$ac_save_c_werror_flag
  3228. fi
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3230. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3231. if test "$ac_test_CFLAGS" = set; then
  3232. CFLAGS=$ac_save_CFLAGS
  3233. elif test $ac_cv_prog_cc_g = yes; then
  3234. if test "$GCC" = yes; then
  3235. CFLAGS="-g -O2"
  3236. else
  3237. CFLAGS="-g"
  3238. fi
  3239. else
  3240. if test "$GCC" = yes; then
  3241. CFLAGS="-O2"
  3242. else
  3243. CFLAGS=
  3244. fi
  3245. fi
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3247. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3248. if ${ac_cv_prog_cc_c89+:} false; then :
  3249. $as_echo_n "(cached) " >&6
  3250. else
  3251. ac_cv_prog_cc_c89=no
  3252. ac_save_CC=$CC
  3253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3254. /* end confdefs.h. */
  3255. #include <stdarg.h>
  3256. #include <stdio.h>
  3257. struct stat;
  3258. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3259. struct buf { int x; };
  3260. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3261. static char *e (p, i)
  3262. char **p;
  3263. int i;
  3264. {
  3265. return p[i];
  3266. }
  3267. static char *f (char * (*g) (char **, int), char **p, ...)
  3268. {
  3269. char *s;
  3270. va_list v;
  3271. va_start (v,p);
  3272. s = g (p, va_arg (v,int));
  3273. va_end (v);
  3274. return s;
  3275. }
  3276. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3277. function prototypes and stuff, but not '\xHH' hex character constants.
  3278. These don't provoke an error unfortunately, instead are silently treated
  3279. as 'x'. The following induces an error, until -std is added to get
  3280. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3281. array size at least. It's necessary to write '\x00'==0 to get something
  3282. that's true only with -std. */
  3283. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3284. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3285. inside strings and character constants. */
  3286. #define FOO(x) 'x'
  3287. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3288. int test (int i, double x);
  3289. struct s1 {int (*f) (int a);};
  3290. struct s2 {int (*f) (double a);};
  3291. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3292. int argc;
  3293. char **argv;
  3294. int
  3295. main ()
  3296. {
  3297. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3298. ;
  3299. return 0;
  3300. }
  3301. _ACEOF
  3302. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3303. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3304. do
  3305. CC="$ac_save_CC $ac_arg"
  3306. if ac_fn_c_try_compile "$LINENO"; then :
  3307. ac_cv_prog_cc_c89=$ac_arg
  3308. fi
  3309. rm -f core conftest.err conftest.$ac_objext
  3310. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3311. done
  3312. rm -f conftest.$ac_ext
  3313. CC=$ac_save_CC
  3314. fi
  3315. # AC_CACHE_VAL
  3316. case "x$ac_cv_prog_cc_c89" in
  3317. x)
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3319. $as_echo "none needed" >&6; } ;;
  3320. xno)
  3321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3322. $as_echo "unsupported" >&6; } ;;
  3323. *)
  3324. CC="$CC $ac_cv_prog_cc_c89"
  3325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3326. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3327. esac
  3328. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3329. fi
  3330. ac_ext=c
  3331. ac_cpp='$CPP $CPPFLAGS'
  3332. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3333. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3334. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3336. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3337. if ${ac_cv_path_SED+:} false; then :
  3338. $as_echo_n "(cached) " >&6
  3339. else
  3340. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3341. for ac_i in 1 2 3 4 5 6 7; do
  3342. ac_script="$ac_script$as_nl$ac_script"
  3343. done
  3344. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3345. { ac_script=; unset ac_script;}
  3346. if test -z "$SED"; then
  3347. ac_path_SED_found=false
  3348. # Loop through the user's path and test for each of PROGNAME-LIST
  3349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3350. for as_dir in $PATH
  3351. do
  3352. IFS=$as_save_IFS
  3353. test -z "$as_dir" && as_dir=.
  3354. for ac_prog in sed gsed; do
  3355. for ac_exec_ext in '' $ac_executable_extensions; do
  3356. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3357. as_fn_executable_p "$ac_path_SED" || continue
  3358. # Check for GNU ac_path_SED and select it if it is found.
  3359. # Check for GNU $ac_path_SED
  3360. case `"$ac_path_SED" --version 2>&1` in
  3361. *GNU*)
  3362. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3363. *)
  3364. ac_count=0
  3365. $as_echo_n 0123456789 >"conftest.in"
  3366. while :
  3367. do
  3368. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3369. mv "conftest.tmp" "conftest.in"
  3370. cp "conftest.in" "conftest.nl"
  3371. $as_echo '' >> "conftest.nl"
  3372. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3373. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3374. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3375. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3376. # Best one so far, save it but keep looking for a better one
  3377. ac_cv_path_SED="$ac_path_SED"
  3378. ac_path_SED_max=$ac_count
  3379. fi
  3380. # 10*(2^10) chars as input seems more than enough
  3381. test $ac_count -gt 10 && break
  3382. done
  3383. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3384. esac
  3385. $ac_path_SED_found && break 3
  3386. done
  3387. done
  3388. done
  3389. IFS=$as_save_IFS
  3390. if test -z "$ac_cv_path_SED"; then
  3391. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3392. fi
  3393. else
  3394. ac_cv_path_SED=$SED
  3395. fi
  3396. fi
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3398. $as_echo "$ac_cv_path_SED" >&6; }
  3399. SED="$ac_cv_path_SED"
  3400. rm -f conftest.sed
  3401. test -z "$SED" && SED=sed
  3402. Xsed="$SED -e 1s/^X//"
  3403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3404. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3405. if ${ac_cv_path_GREP+:} false; then :
  3406. $as_echo_n "(cached) " >&6
  3407. else
  3408. if test -z "$GREP"; then
  3409. ac_path_GREP_found=false
  3410. # Loop through the user's path and test for each of PROGNAME-LIST
  3411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3412. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3413. do
  3414. IFS=$as_save_IFS
  3415. test -z "$as_dir" && as_dir=.
  3416. for ac_prog in grep ggrep; do
  3417. for ac_exec_ext in '' $ac_executable_extensions; do
  3418. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3419. as_fn_executable_p "$ac_path_GREP" || continue
  3420. # Check for GNU ac_path_GREP and select it if it is found.
  3421. # Check for GNU $ac_path_GREP
  3422. case `"$ac_path_GREP" --version 2>&1` in
  3423. *GNU*)
  3424. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3425. *)
  3426. ac_count=0
  3427. $as_echo_n 0123456789 >"conftest.in"
  3428. while :
  3429. do
  3430. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3431. mv "conftest.tmp" "conftest.in"
  3432. cp "conftest.in" "conftest.nl"
  3433. $as_echo 'GREP' >> "conftest.nl"
  3434. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3435. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3436. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3437. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3438. # Best one so far, save it but keep looking for a better one
  3439. ac_cv_path_GREP="$ac_path_GREP"
  3440. ac_path_GREP_max=$ac_count
  3441. fi
  3442. # 10*(2^10) chars as input seems more than enough
  3443. test $ac_count -gt 10 && break
  3444. done
  3445. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3446. esac
  3447. $ac_path_GREP_found && break 3
  3448. done
  3449. done
  3450. done
  3451. IFS=$as_save_IFS
  3452. if test -z "$ac_cv_path_GREP"; then
  3453. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3454. fi
  3455. else
  3456. ac_cv_path_GREP=$GREP
  3457. fi
  3458. fi
  3459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3460. $as_echo "$ac_cv_path_GREP" >&6; }
  3461. GREP="$ac_cv_path_GREP"
  3462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3463. $as_echo_n "checking for egrep... " >&6; }
  3464. if ${ac_cv_path_EGREP+:} false; then :
  3465. $as_echo_n "(cached) " >&6
  3466. else
  3467. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3468. then ac_cv_path_EGREP="$GREP -E"
  3469. else
  3470. if test -z "$EGREP"; then
  3471. ac_path_EGREP_found=false
  3472. # Loop through the user's path and test for each of PROGNAME-LIST
  3473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3474. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3475. do
  3476. IFS=$as_save_IFS
  3477. test -z "$as_dir" && as_dir=.
  3478. for ac_prog in egrep; do
  3479. for ac_exec_ext in '' $ac_executable_extensions; do
  3480. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3481. as_fn_executable_p "$ac_path_EGREP" || continue
  3482. # Check for GNU ac_path_EGREP and select it if it is found.
  3483. # Check for GNU $ac_path_EGREP
  3484. case `"$ac_path_EGREP" --version 2>&1` in
  3485. *GNU*)
  3486. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3487. *)
  3488. ac_count=0
  3489. $as_echo_n 0123456789 >"conftest.in"
  3490. while :
  3491. do
  3492. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3493. mv "conftest.tmp" "conftest.in"
  3494. cp "conftest.in" "conftest.nl"
  3495. $as_echo 'EGREP' >> "conftest.nl"
  3496. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3497. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3498. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3499. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3500. # Best one so far, save it but keep looking for a better one
  3501. ac_cv_path_EGREP="$ac_path_EGREP"
  3502. ac_path_EGREP_max=$ac_count
  3503. fi
  3504. # 10*(2^10) chars as input seems more than enough
  3505. test $ac_count -gt 10 && break
  3506. done
  3507. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3508. esac
  3509. $ac_path_EGREP_found && break 3
  3510. done
  3511. done
  3512. done
  3513. IFS=$as_save_IFS
  3514. if test -z "$ac_cv_path_EGREP"; then
  3515. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3516. fi
  3517. else
  3518. ac_cv_path_EGREP=$EGREP
  3519. fi
  3520. fi
  3521. fi
  3522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3523. $as_echo "$ac_cv_path_EGREP" >&6; }
  3524. EGREP="$ac_cv_path_EGREP"
  3525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3526. $as_echo_n "checking for fgrep... " >&6; }
  3527. if ${ac_cv_path_FGREP+:} false; then :
  3528. $as_echo_n "(cached) " >&6
  3529. else
  3530. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3531. then ac_cv_path_FGREP="$GREP -F"
  3532. else
  3533. if test -z "$FGREP"; then
  3534. ac_path_FGREP_found=false
  3535. # Loop through the user's path and test for each of PROGNAME-LIST
  3536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3537. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3538. do
  3539. IFS=$as_save_IFS
  3540. test -z "$as_dir" && as_dir=.
  3541. for ac_prog in fgrep; do
  3542. for ac_exec_ext in '' $ac_executable_extensions; do
  3543. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3544. as_fn_executable_p "$ac_path_FGREP" || continue
  3545. # Check for GNU ac_path_FGREP and select it if it is found.
  3546. # Check for GNU $ac_path_FGREP
  3547. case `"$ac_path_FGREP" --version 2>&1` in
  3548. *GNU*)
  3549. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3550. *)
  3551. ac_count=0
  3552. $as_echo_n 0123456789 >"conftest.in"
  3553. while :
  3554. do
  3555. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3556. mv "conftest.tmp" "conftest.in"
  3557. cp "conftest.in" "conftest.nl"
  3558. $as_echo 'FGREP' >> "conftest.nl"
  3559. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3560. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3561. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3562. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3563. # Best one so far, save it but keep looking for a better one
  3564. ac_cv_path_FGREP="$ac_path_FGREP"
  3565. ac_path_FGREP_max=$ac_count
  3566. fi
  3567. # 10*(2^10) chars as input seems more than enough
  3568. test $ac_count -gt 10 && break
  3569. done
  3570. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3571. esac
  3572. $ac_path_FGREP_found && break 3
  3573. done
  3574. done
  3575. done
  3576. IFS=$as_save_IFS
  3577. if test -z "$ac_cv_path_FGREP"; then
  3578. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3579. fi
  3580. else
  3581. ac_cv_path_FGREP=$FGREP
  3582. fi
  3583. fi
  3584. fi
  3585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3586. $as_echo "$ac_cv_path_FGREP" >&6; }
  3587. FGREP="$ac_cv_path_FGREP"
  3588. test -z "$GREP" && GREP=grep
  3589. # Check whether --with-gnu-ld was given.
  3590. if test "${with_gnu_ld+set}" = set; then :
  3591. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3592. else
  3593. with_gnu_ld=no
  3594. fi
  3595. ac_prog=ld
  3596. if test "$GCC" = yes; then
  3597. # Check if gcc -print-prog-name=ld gives a path.
  3598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3599. $as_echo_n "checking for ld used by $CC... " >&6; }
  3600. case $host in
  3601. *-*-mingw*)
  3602. # gcc leaves a trailing carriage return which upsets mingw
  3603. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3604. *)
  3605. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3606. esac
  3607. case $ac_prog in
  3608. # Accept absolute paths.
  3609. [\\/]* | ?:[\\/]*)
  3610. re_direlt='/[^/][^/]*/\.\./'
  3611. # Canonicalize the pathname of ld
  3612. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3613. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3614. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3615. done
  3616. test -z "$LD" && LD="$ac_prog"
  3617. ;;
  3618. "")
  3619. # If it fails, then pretend we aren't using GCC.
  3620. ac_prog=ld
  3621. ;;
  3622. *)
  3623. # If it is relative, then search for the first ld in PATH.
  3624. with_gnu_ld=unknown
  3625. ;;
  3626. esac
  3627. elif test "$with_gnu_ld" = yes; then
  3628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3629. $as_echo_n "checking for GNU ld... " >&6; }
  3630. else
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3632. $as_echo_n "checking for non-GNU ld... " >&6; }
  3633. fi
  3634. if ${lt_cv_path_LD+:} false; then :
  3635. $as_echo_n "(cached) " >&6
  3636. else
  3637. if test -z "$LD"; then
  3638. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3639. for ac_dir in $PATH; do
  3640. IFS="$lt_save_ifs"
  3641. test -z "$ac_dir" && ac_dir=.
  3642. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3643. lt_cv_path_LD="$ac_dir/$ac_prog"
  3644. # Check to see if the program is GNU ld. I'd rather use --version,
  3645. # but apparently some variants of GNU ld only accept -v.
  3646. # Break only if it was the GNU/non-GNU ld that we prefer.
  3647. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3648. *GNU* | *'with BFD'*)
  3649. test "$with_gnu_ld" != no && break
  3650. ;;
  3651. *)
  3652. test "$with_gnu_ld" != yes && break
  3653. ;;
  3654. esac
  3655. fi
  3656. done
  3657. IFS="$lt_save_ifs"
  3658. else
  3659. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3660. fi
  3661. fi
  3662. LD="$lt_cv_path_LD"
  3663. if test -n "$LD"; then
  3664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3665. $as_echo "$LD" >&6; }
  3666. else
  3667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3668. $as_echo "no" >&6; }
  3669. fi
  3670. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3672. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3673. if ${lt_cv_prog_gnu_ld+:} false; then :
  3674. $as_echo_n "(cached) " >&6
  3675. else
  3676. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3677. case `$LD -v 2>&1 </dev/null` in
  3678. *GNU* | *'with BFD'*)
  3679. lt_cv_prog_gnu_ld=yes
  3680. ;;
  3681. *)
  3682. lt_cv_prog_gnu_ld=no
  3683. ;;
  3684. esac
  3685. fi
  3686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3687. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3688. with_gnu_ld=$lt_cv_prog_gnu_ld
  3689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3690. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3691. if ${lt_cv_path_NM+:} false; then :
  3692. $as_echo_n "(cached) " >&6
  3693. else
  3694. if test -n "$NM"; then
  3695. # Let the user override the test.
  3696. lt_cv_path_NM="$NM"
  3697. else
  3698. lt_nm_to_check="${ac_tool_prefix}nm"
  3699. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3700. lt_nm_to_check="$lt_nm_to_check nm"
  3701. fi
  3702. for lt_tmp_nm in $lt_nm_to_check; do
  3703. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3704. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3705. IFS="$lt_save_ifs"
  3706. test -z "$ac_dir" && ac_dir=.
  3707. tmp_nm="$ac_dir/$lt_tmp_nm"
  3708. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3709. # Check to see if the nm accepts a BSD-compat flag.
  3710. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3711. # nm: unknown option "B" ignored
  3712. # Tru64's nm complains that /dev/null is an invalid object file
  3713. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3714. */dev/null* | *'Invalid file or object type'*)
  3715. lt_cv_path_NM="$tmp_nm -B"
  3716. break
  3717. ;;
  3718. *)
  3719. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3720. */dev/null*)
  3721. lt_cv_path_NM="$tmp_nm -p"
  3722. break
  3723. ;;
  3724. *)
  3725. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3726. continue # so that we can try to find one that supports BSD flags
  3727. ;;
  3728. esac
  3729. ;;
  3730. esac
  3731. fi
  3732. done
  3733. IFS="$lt_save_ifs"
  3734. done
  3735. : ${lt_cv_path_NM=no}
  3736. fi
  3737. fi
  3738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3739. $as_echo "$lt_cv_path_NM" >&6; }
  3740. if test "$lt_cv_path_NM" != "no"; then
  3741. NM="$lt_cv_path_NM"
  3742. else
  3743. # Didn't find any BSD compatible name lister, look for dumpbin.
  3744. if test -n "$DUMPBIN"; then :
  3745. # Let the user override the test.
  3746. else
  3747. if test -n "$ac_tool_prefix"; then
  3748. for ac_prog in dumpbin "link -dump"
  3749. do
  3750. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3751. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3753. $as_echo_n "checking for $ac_word... " >&6; }
  3754. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3755. $as_echo_n "(cached) " >&6
  3756. else
  3757. if test -n "$DUMPBIN"; then
  3758. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3759. else
  3760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3761. for as_dir in $PATH
  3762. do
  3763. IFS=$as_save_IFS
  3764. test -z "$as_dir" && as_dir=.
  3765. for ac_exec_ext in '' $ac_executable_extensions; do
  3766. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3767. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3769. break 2
  3770. fi
  3771. done
  3772. done
  3773. IFS=$as_save_IFS
  3774. fi
  3775. fi
  3776. DUMPBIN=$ac_cv_prog_DUMPBIN
  3777. if test -n "$DUMPBIN"; then
  3778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3779. $as_echo "$DUMPBIN" >&6; }
  3780. else
  3781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3782. $as_echo "no" >&6; }
  3783. fi
  3784. test -n "$DUMPBIN" && break
  3785. done
  3786. fi
  3787. if test -z "$DUMPBIN"; then
  3788. ac_ct_DUMPBIN=$DUMPBIN
  3789. for ac_prog in dumpbin "link -dump"
  3790. do
  3791. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3792. set dummy $ac_prog; ac_word=$2
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3794. $as_echo_n "checking for $ac_word... " >&6; }
  3795. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3796. $as_echo_n "(cached) " >&6
  3797. else
  3798. if test -n "$ac_ct_DUMPBIN"; then
  3799. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3800. else
  3801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3802. for as_dir in $PATH
  3803. do
  3804. IFS=$as_save_IFS
  3805. test -z "$as_dir" && as_dir=.
  3806. for ac_exec_ext in '' $ac_executable_extensions; do
  3807. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3808. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3810. break 2
  3811. fi
  3812. done
  3813. done
  3814. IFS=$as_save_IFS
  3815. fi
  3816. fi
  3817. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3818. if test -n "$ac_ct_DUMPBIN"; then
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3820. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3821. else
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3823. $as_echo "no" >&6; }
  3824. fi
  3825. test -n "$ac_ct_DUMPBIN" && break
  3826. done
  3827. if test "x$ac_ct_DUMPBIN" = x; then
  3828. DUMPBIN=":"
  3829. else
  3830. case $cross_compiling:$ac_tool_warned in
  3831. yes:)
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3833. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3834. ac_tool_warned=yes ;;
  3835. esac
  3836. DUMPBIN=$ac_ct_DUMPBIN
  3837. fi
  3838. fi
  3839. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3840. *COFF*)
  3841. DUMPBIN="$DUMPBIN -symbols"
  3842. ;;
  3843. *)
  3844. DUMPBIN=:
  3845. ;;
  3846. esac
  3847. fi
  3848. if test "$DUMPBIN" != ":"; then
  3849. NM="$DUMPBIN"
  3850. fi
  3851. fi
  3852. test -z "$NM" && NM=nm
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3854. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3855. if ${lt_cv_nm_interface+:} false; then :
  3856. $as_echo_n "(cached) " >&6
  3857. else
  3858. lt_cv_nm_interface="BSD nm"
  3859. echo "int some_variable = 0;" > conftest.$ac_ext
  3860. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3861. (eval "$ac_compile" 2>conftest.err)
  3862. cat conftest.err >&5
  3863. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3864. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3865. cat conftest.err >&5
  3866. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3867. cat conftest.out >&5
  3868. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3869. lt_cv_nm_interface="MS dumpbin"
  3870. fi
  3871. rm -f conftest*
  3872. fi
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3874. $as_echo "$lt_cv_nm_interface" >&6; }
  3875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3876. $as_echo_n "checking whether ln -s works... " >&6; }
  3877. LN_S=$as_ln_s
  3878. if test "$LN_S" = "ln -s"; then
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3880. $as_echo "yes" >&6; }
  3881. else
  3882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3883. $as_echo "no, using $LN_S" >&6; }
  3884. fi
  3885. # find the maximum length of command line arguments
  3886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3887. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3888. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3889. $as_echo_n "(cached) " >&6
  3890. else
  3891. i=0
  3892. teststring="ABCD"
  3893. case $build_os in
  3894. msdosdjgpp*)
  3895. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3896. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3897. # during glob expansion). Even if it were fixed, the result of this
  3898. # check would be larger than it should be.
  3899. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3900. ;;
  3901. gnu*)
  3902. # Under GNU Hurd, this test is not required because there is
  3903. # no limit to the length of command line arguments.
  3904. # Libtool will interpret -1 as no limit whatsoever
  3905. lt_cv_sys_max_cmd_len=-1;
  3906. ;;
  3907. cygwin* | mingw* | cegcc*)
  3908. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3909. # about 5 minutes as the teststring grows exponentially.
  3910. # Worse, since 9x/ME are not pre-emptively multitasking,
  3911. # you end up with a "frozen" computer, even though with patience
  3912. # the test eventually succeeds (with a max line length of 256k).
  3913. # Instead, let's just punt: use the minimum linelength reported by
  3914. # all of the supported platforms: 8192 (on NT/2K/XP).
  3915. lt_cv_sys_max_cmd_len=8192;
  3916. ;;
  3917. mint*)
  3918. # On MiNT this can take a long time and run out of memory.
  3919. lt_cv_sys_max_cmd_len=8192;
  3920. ;;
  3921. amigaos*)
  3922. # On AmigaOS with pdksh, this test takes hours, literally.
  3923. # So we just punt and use a minimum line length of 8192.
  3924. lt_cv_sys_max_cmd_len=8192;
  3925. ;;
  3926. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3927. # This has been around since 386BSD, at least. Likely further.
  3928. if test -x /sbin/sysctl; then
  3929. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3930. elif test -x /usr/sbin/sysctl; then
  3931. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3932. else
  3933. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3934. fi
  3935. # And add a safety zone
  3936. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3937. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3938. ;;
  3939. interix*)
  3940. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3941. lt_cv_sys_max_cmd_len=196608
  3942. ;;
  3943. os2*)
  3944. # The test takes a long time on OS/2.
  3945. lt_cv_sys_max_cmd_len=8192
  3946. ;;
  3947. osf*)
  3948. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3949. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3950. # nice to cause kernel panics so lets avoid the loop below.
  3951. # First set a reasonable default.
  3952. lt_cv_sys_max_cmd_len=16384
  3953. #
  3954. if test -x /sbin/sysconfig; then
  3955. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3956. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3957. esac
  3958. fi
  3959. ;;
  3960. sco3.2v5*)
  3961. lt_cv_sys_max_cmd_len=102400
  3962. ;;
  3963. sysv5* | sco5v6* | sysv4.2uw2*)
  3964. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3965. if test -n "$kargmax"; then
  3966. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3967. else
  3968. lt_cv_sys_max_cmd_len=32768
  3969. fi
  3970. ;;
  3971. *)
  3972. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3973. if test -n "$lt_cv_sys_max_cmd_len"; then
  3974. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3975. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3976. else
  3977. # Make teststring a little bigger before we do anything with it.
  3978. # a 1K string should be a reasonable start.
  3979. for i in 1 2 3 4 5 6 7 8 ; do
  3980. teststring=$teststring$teststring
  3981. done
  3982. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3983. # If test is not a shell built-in, we'll probably end up computing a
  3984. # maximum length that is only half of the actual maximum length, but
  3985. # we can't tell.
  3986. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3987. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3988. test $i != 17 # 1/2 MB should be enough
  3989. do
  3990. i=`expr $i + 1`
  3991. teststring=$teststring$teststring
  3992. done
  3993. # Only check the string length outside the loop.
  3994. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3995. teststring=
  3996. # Add a significant safety factor because C++ compilers can tack on
  3997. # massive amounts of additional arguments before passing them to the
  3998. # linker. It appears as though 1/2 is a usable value.
  3999. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4000. fi
  4001. ;;
  4002. esac
  4003. fi
  4004. if test -n $lt_cv_sys_max_cmd_len ; then
  4005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4006. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4007. else
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4009. $as_echo "none" >&6; }
  4010. fi
  4011. max_cmd_len=$lt_cv_sys_max_cmd_len
  4012. : ${CP="cp -f"}
  4013. : ${MV="mv -f"}
  4014. : ${RM="rm -f"}
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4016. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4017. # Try some XSI features
  4018. xsi_shell=no
  4019. ( _lt_dummy="a/b/c"
  4020. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4021. = c,a/b,b/c, \
  4022. && eval 'test $(( 1 + 1 )) -eq 2 \
  4023. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4024. && xsi_shell=yes
  4025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4026. $as_echo "$xsi_shell" >&6; }
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4028. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4029. lt_shell_append=no
  4030. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4031. >/dev/null 2>&1 \
  4032. && lt_shell_append=yes
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4034. $as_echo "$lt_shell_append" >&6; }
  4035. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4036. lt_unset=unset
  4037. else
  4038. lt_unset=false
  4039. fi
  4040. # test EBCDIC or ASCII
  4041. case `echo X|tr X '\101'` in
  4042. A) # ASCII based system
  4043. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4044. lt_SP2NL='tr \040 \012'
  4045. lt_NL2SP='tr \015\012 \040\040'
  4046. ;;
  4047. *) # EBCDIC based system
  4048. lt_SP2NL='tr \100 \n'
  4049. lt_NL2SP='tr \r\n \100\100'
  4050. ;;
  4051. esac
  4052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4053. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4054. if ${lt_cv_to_host_file_cmd+:} false; then :
  4055. $as_echo_n "(cached) " >&6
  4056. else
  4057. case $host in
  4058. *-*-mingw* )
  4059. case $build in
  4060. *-*-mingw* ) # actually msys
  4061. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4062. ;;
  4063. *-*-cygwin* )
  4064. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4065. ;;
  4066. * ) # otherwise, assume *nix
  4067. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4068. ;;
  4069. esac
  4070. ;;
  4071. *-*-cygwin* )
  4072. case $build in
  4073. *-*-mingw* ) # actually msys
  4074. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4075. ;;
  4076. *-*-cygwin* )
  4077. lt_cv_to_host_file_cmd=func_convert_file_noop
  4078. ;;
  4079. * ) # otherwise, assume *nix
  4080. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4081. ;;
  4082. esac
  4083. ;;
  4084. * ) # unhandled hosts (and "normal" native builds)
  4085. lt_cv_to_host_file_cmd=func_convert_file_noop
  4086. ;;
  4087. esac
  4088. fi
  4089. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4091. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4093. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4094. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4095. $as_echo_n "(cached) " >&6
  4096. else
  4097. #assume ordinary cross tools, or native build.
  4098. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4099. case $host in
  4100. *-*-mingw* )
  4101. case $build in
  4102. *-*-mingw* ) # actually msys
  4103. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4104. ;;
  4105. esac
  4106. ;;
  4107. esac
  4108. fi
  4109. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4111. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4113. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4114. if ${lt_cv_ld_reload_flag+:} false; then :
  4115. $as_echo_n "(cached) " >&6
  4116. else
  4117. lt_cv_ld_reload_flag='-r'
  4118. fi
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4120. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4121. reload_flag=$lt_cv_ld_reload_flag
  4122. case $reload_flag in
  4123. "" | " "*) ;;
  4124. *) reload_flag=" $reload_flag" ;;
  4125. esac
  4126. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4127. case $host_os in
  4128. cygwin* | mingw* | pw32* | cegcc*)
  4129. if test "$GCC" != yes; then
  4130. reload_cmds=false
  4131. fi
  4132. ;;
  4133. darwin*)
  4134. if test "$GCC" = yes; then
  4135. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4136. else
  4137. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4138. fi
  4139. ;;
  4140. esac
  4141. if test -n "$ac_tool_prefix"; then
  4142. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4143. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4145. $as_echo_n "checking for $ac_word... " >&6; }
  4146. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4147. $as_echo_n "(cached) " >&6
  4148. else
  4149. if test -n "$OBJDUMP"; then
  4150. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4151. else
  4152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4153. for as_dir in $PATH
  4154. do
  4155. IFS=$as_save_IFS
  4156. test -z "$as_dir" && as_dir=.
  4157. for ac_exec_ext in '' $ac_executable_extensions; do
  4158. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4159. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4160. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4161. break 2
  4162. fi
  4163. done
  4164. done
  4165. IFS=$as_save_IFS
  4166. fi
  4167. fi
  4168. OBJDUMP=$ac_cv_prog_OBJDUMP
  4169. if test -n "$OBJDUMP"; then
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4171. $as_echo "$OBJDUMP" >&6; }
  4172. else
  4173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4174. $as_echo "no" >&6; }
  4175. fi
  4176. fi
  4177. if test -z "$ac_cv_prog_OBJDUMP"; then
  4178. ac_ct_OBJDUMP=$OBJDUMP
  4179. # Extract the first word of "objdump", so it can be a program name with args.
  4180. set dummy objdump; ac_word=$2
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4182. $as_echo_n "checking for $ac_word... " >&6; }
  4183. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4184. $as_echo_n "(cached) " >&6
  4185. else
  4186. if test -n "$ac_ct_OBJDUMP"; then
  4187. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4188. else
  4189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4190. for as_dir in $PATH
  4191. do
  4192. IFS=$as_save_IFS
  4193. test -z "$as_dir" && as_dir=.
  4194. for ac_exec_ext in '' $ac_executable_extensions; do
  4195. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4196. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4197. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4198. break 2
  4199. fi
  4200. done
  4201. done
  4202. IFS=$as_save_IFS
  4203. fi
  4204. fi
  4205. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4206. if test -n "$ac_ct_OBJDUMP"; then
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4208. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4209. else
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4211. $as_echo "no" >&6; }
  4212. fi
  4213. if test "x$ac_ct_OBJDUMP" = x; then
  4214. OBJDUMP="false"
  4215. else
  4216. case $cross_compiling:$ac_tool_warned in
  4217. yes:)
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4219. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4220. ac_tool_warned=yes ;;
  4221. esac
  4222. OBJDUMP=$ac_ct_OBJDUMP
  4223. fi
  4224. else
  4225. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4226. fi
  4227. test -z "$OBJDUMP" && OBJDUMP=objdump
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4229. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4230. if ${lt_cv_deplibs_check_method+:} false; then :
  4231. $as_echo_n "(cached) " >&6
  4232. else
  4233. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4234. lt_cv_file_magic_test_file=
  4235. lt_cv_deplibs_check_method='unknown'
  4236. # Need to set the preceding variable on all platforms that support
  4237. # interlibrary dependencies.
  4238. # 'none' -- dependencies not supported.
  4239. # `unknown' -- same as none, but documents that we really don't know.
  4240. # 'pass_all' -- all dependencies passed with no checks.
  4241. # 'test_compile' -- check by making test program.
  4242. # 'file_magic [[regex]]' -- check by looking for files in library path
  4243. # which responds to the $file_magic_cmd with a given extended regex.
  4244. # If you have `file' or equivalent on your system and you're not sure
  4245. # whether `pass_all' will *always* work, you probably want this one.
  4246. case $host_os in
  4247. aix[4-9]*)
  4248. lt_cv_deplibs_check_method=pass_all
  4249. ;;
  4250. beos*)
  4251. lt_cv_deplibs_check_method=pass_all
  4252. ;;
  4253. bsdi[45]*)
  4254. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4255. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4256. lt_cv_file_magic_test_file=/shlib/libc.so
  4257. ;;
  4258. cygwin*)
  4259. # func_win32_libid is a shell function defined in ltmain.sh
  4260. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4261. lt_cv_file_magic_cmd='func_win32_libid'
  4262. lt_cv_deplibs_check_method=pass_all
  4263. ;;
  4264. mingw* | pw32*)
  4265. # Base MSYS/MinGW do not provide the 'file' command needed by
  4266. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4267. # unless we find 'file', for example because we are cross-compiling.
  4268. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4269. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4270. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4271. lt_cv_file_magic_cmd='func_win32_libid'
  4272. else
  4273. # Keep this pattern in sync with the one in func_win32_libid.
  4274. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4275. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4276. fi
  4277. lt_cv_deplibs_check_method=pass_all
  4278. ;;
  4279. cegcc*)
  4280. # use the weaker test based on 'objdump'. See mingw*.
  4281. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4282. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4283. ;;
  4284. darwin* | rhapsody*)
  4285. lt_cv_deplibs_check_method=pass_all
  4286. ;;
  4287. freebsd* | dragonfly*)
  4288. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4289. case $host_cpu in
  4290. i*86 )
  4291. # Not sure whether the presence of OpenBSD here was a mistake.
  4292. # Let's accept both of them until this is cleared up.
  4293. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4294. lt_cv_file_magic_cmd=/usr/bin/file
  4295. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4296. ;;
  4297. esac
  4298. else
  4299. lt_cv_deplibs_check_method=pass_all
  4300. fi
  4301. ;;
  4302. gnu*)
  4303. lt_cv_deplibs_check_method=pass_all
  4304. ;;
  4305. haiku*)
  4306. lt_cv_deplibs_check_method=pass_all
  4307. ;;
  4308. hpux10.20* | hpux11*)
  4309. lt_cv_file_magic_cmd=/usr/bin/file
  4310. case $host_cpu in
  4311. ia64*)
  4312. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4313. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4314. ;;
  4315. hppa*64*)
  4316. 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]'
  4317. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4318. ;;
  4319. *)
  4320. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4321. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4322. ;;
  4323. esac
  4324. ;;
  4325. interix[3-9]*)
  4326. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4327. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4328. ;;
  4329. irix5* | irix6* | nonstopux*)
  4330. case $LD in
  4331. *-32|*"-32 ") libmagic=32-bit;;
  4332. *-n32|*"-n32 ") libmagic=N32;;
  4333. *-64|*"-64 ") libmagic=64-bit;;
  4334. *) libmagic=never-match;;
  4335. esac
  4336. lt_cv_deplibs_check_method=pass_all
  4337. ;;
  4338. # This must be glibc/ELF.
  4339. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4340. lt_cv_deplibs_check_method=pass_all
  4341. ;;
  4342. netbsd*)
  4343. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4344. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4345. else
  4346. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4347. fi
  4348. ;;
  4349. newos6*)
  4350. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4351. lt_cv_file_magic_cmd=/usr/bin/file
  4352. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4353. ;;
  4354. *nto* | *qnx*)
  4355. lt_cv_deplibs_check_method=pass_all
  4356. ;;
  4357. openbsd*)
  4358. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4359. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4360. else
  4361. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4362. fi
  4363. ;;
  4364. osf3* | osf4* | osf5*)
  4365. lt_cv_deplibs_check_method=pass_all
  4366. ;;
  4367. rdos*)
  4368. lt_cv_deplibs_check_method=pass_all
  4369. ;;
  4370. solaris*)
  4371. lt_cv_deplibs_check_method=pass_all
  4372. ;;
  4373. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4374. lt_cv_deplibs_check_method=pass_all
  4375. ;;
  4376. sysv4 | sysv4.3*)
  4377. case $host_vendor in
  4378. motorola)
  4379. 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]'
  4380. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4381. ;;
  4382. ncr)
  4383. lt_cv_deplibs_check_method=pass_all
  4384. ;;
  4385. sequent)
  4386. lt_cv_file_magic_cmd='/bin/file'
  4387. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4388. ;;
  4389. sni)
  4390. lt_cv_file_magic_cmd='/bin/file'
  4391. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4392. lt_cv_file_magic_test_file=/lib/libc.so
  4393. ;;
  4394. siemens)
  4395. lt_cv_deplibs_check_method=pass_all
  4396. ;;
  4397. pc)
  4398. lt_cv_deplibs_check_method=pass_all
  4399. ;;
  4400. esac
  4401. ;;
  4402. tpf*)
  4403. lt_cv_deplibs_check_method=pass_all
  4404. ;;
  4405. esac
  4406. fi
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4408. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4409. file_magic_glob=
  4410. want_nocaseglob=no
  4411. if test "$build" = "$host"; then
  4412. case $host_os in
  4413. mingw* | pw32*)
  4414. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4415. want_nocaseglob=yes
  4416. else
  4417. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4418. fi
  4419. ;;
  4420. esac
  4421. fi
  4422. file_magic_cmd=$lt_cv_file_magic_cmd
  4423. deplibs_check_method=$lt_cv_deplibs_check_method
  4424. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4425. if test -n "$ac_tool_prefix"; then
  4426. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4427. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4429. $as_echo_n "checking for $ac_word... " >&6; }
  4430. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4431. $as_echo_n "(cached) " >&6
  4432. else
  4433. if test -n "$DLLTOOL"; then
  4434. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4435. else
  4436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4437. for as_dir in $PATH
  4438. do
  4439. IFS=$as_save_IFS
  4440. test -z "$as_dir" && as_dir=.
  4441. for ac_exec_ext in '' $ac_executable_extensions; do
  4442. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4443. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4444. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4445. break 2
  4446. fi
  4447. done
  4448. done
  4449. IFS=$as_save_IFS
  4450. fi
  4451. fi
  4452. DLLTOOL=$ac_cv_prog_DLLTOOL
  4453. if test -n "$DLLTOOL"; then
  4454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4455. $as_echo "$DLLTOOL" >&6; }
  4456. else
  4457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4458. $as_echo "no" >&6; }
  4459. fi
  4460. fi
  4461. if test -z "$ac_cv_prog_DLLTOOL"; then
  4462. ac_ct_DLLTOOL=$DLLTOOL
  4463. # Extract the first word of "dlltool", so it can be a program name with args.
  4464. set dummy dlltool; ac_word=$2
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4466. $as_echo_n "checking for $ac_word... " >&6; }
  4467. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4468. $as_echo_n "(cached) " >&6
  4469. else
  4470. if test -n "$ac_ct_DLLTOOL"; then
  4471. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4472. else
  4473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4474. for as_dir in $PATH
  4475. do
  4476. IFS=$as_save_IFS
  4477. test -z "$as_dir" && as_dir=.
  4478. for ac_exec_ext in '' $ac_executable_extensions; do
  4479. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4480. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4481. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4482. break 2
  4483. fi
  4484. done
  4485. done
  4486. IFS=$as_save_IFS
  4487. fi
  4488. fi
  4489. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4490. if test -n "$ac_ct_DLLTOOL"; then
  4491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4492. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4493. else
  4494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4495. $as_echo "no" >&6; }
  4496. fi
  4497. if test "x$ac_ct_DLLTOOL" = x; then
  4498. DLLTOOL="false"
  4499. else
  4500. case $cross_compiling:$ac_tool_warned in
  4501. yes:)
  4502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4503. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4504. ac_tool_warned=yes ;;
  4505. esac
  4506. DLLTOOL=$ac_ct_DLLTOOL
  4507. fi
  4508. else
  4509. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4510. fi
  4511. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4513. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4514. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4515. $as_echo_n "(cached) " >&6
  4516. else
  4517. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4518. case $host_os in
  4519. cygwin* | mingw* | pw32* | cegcc*)
  4520. # two different shell functions defined in ltmain.sh
  4521. # decide which to use based on capabilities of $DLLTOOL
  4522. case `$DLLTOOL --help 2>&1` in
  4523. *--identify-strict*)
  4524. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4525. ;;
  4526. *)
  4527. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4528. ;;
  4529. esac
  4530. ;;
  4531. *)
  4532. # fallback: assume linklib IS sharedlib
  4533. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4534. ;;
  4535. esac
  4536. fi
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4538. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4539. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4540. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4541. if test -n "$ac_tool_prefix"; then
  4542. for ac_prog in ar
  4543. do
  4544. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4545. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4547. $as_echo_n "checking for $ac_word... " >&6; }
  4548. if ${ac_cv_prog_AR+:} false; then :
  4549. $as_echo_n "(cached) " >&6
  4550. else
  4551. if test -n "$AR"; then
  4552. ac_cv_prog_AR="$AR" # Let the user override the test.
  4553. else
  4554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4555. for as_dir in $PATH
  4556. do
  4557. IFS=$as_save_IFS
  4558. test -z "$as_dir" && as_dir=.
  4559. for ac_exec_ext in '' $ac_executable_extensions; do
  4560. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4561. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4562. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4563. break 2
  4564. fi
  4565. done
  4566. done
  4567. IFS=$as_save_IFS
  4568. fi
  4569. fi
  4570. AR=$ac_cv_prog_AR
  4571. if test -n "$AR"; then
  4572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4573. $as_echo "$AR" >&6; }
  4574. else
  4575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4576. $as_echo "no" >&6; }
  4577. fi
  4578. test -n "$AR" && break
  4579. done
  4580. fi
  4581. if test -z "$AR"; then
  4582. ac_ct_AR=$AR
  4583. for ac_prog in ar
  4584. do
  4585. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4586. set dummy $ac_prog; ac_word=$2
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4588. $as_echo_n "checking for $ac_word... " >&6; }
  4589. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4590. $as_echo_n "(cached) " >&6
  4591. else
  4592. if test -n "$ac_ct_AR"; then
  4593. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4594. else
  4595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4596. for as_dir in $PATH
  4597. do
  4598. IFS=$as_save_IFS
  4599. test -z "$as_dir" && as_dir=.
  4600. for ac_exec_ext in '' $ac_executable_extensions; do
  4601. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4602. ac_cv_prog_ac_ct_AR="$ac_prog"
  4603. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4604. break 2
  4605. fi
  4606. done
  4607. done
  4608. IFS=$as_save_IFS
  4609. fi
  4610. fi
  4611. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4612. if test -n "$ac_ct_AR"; then
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4614. $as_echo "$ac_ct_AR" >&6; }
  4615. else
  4616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4617. $as_echo "no" >&6; }
  4618. fi
  4619. test -n "$ac_ct_AR" && break
  4620. done
  4621. if test "x$ac_ct_AR" = x; then
  4622. AR="false"
  4623. else
  4624. case $cross_compiling:$ac_tool_warned in
  4625. yes:)
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4627. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4628. ac_tool_warned=yes ;;
  4629. esac
  4630. AR=$ac_ct_AR
  4631. fi
  4632. fi
  4633. : ${AR=ar}
  4634. : ${AR_FLAGS=cru}
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4636. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4637. if ${lt_cv_ar_at_file+:} false; then :
  4638. $as_echo_n "(cached) " >&6
  4639. else
  4640. lt_cv_ar_at_file=no
  4641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4642. /* end confdefs.h. */
  4643. int
  4644. main ()
  4645. {
  4646. ;
  4647. return 0;
  4648. }
  4649. _ACEOF
  4650. if ac_fn_c_try_compile "$LINENO"; then :
  4651. echo conftest.$ac_objext > conftest.lst
  4652. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4653. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4654. (eval $lt_ar_try) 2>&5
  4655. ac_status=$?
  4656. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4657. test $ac_status = 0; }
  4658. if test "$ac_status" -eq 0; then
  4659. # Ensure the archiver fails upon bogus file names.
  4660. rm -f conftest.$ac_objext libconftest.a
  4661. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4662. (eval $lt_ar_try) 2>&5
  4663. ac_status=$?
  4664. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4665. test $ac_status = 0; }
  4666. if test "$ac_status" -ne 0; then
  4667. lt_cv_ar_at_file=@
  4668. fi
  4669. fi
  4670. rm -f conftest.* libconftest.a
  4671. fi
  4672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4673. fi
  4674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4675. $as_echo "$lt_cv_ar_at_file" >&6; }
  4676. if test "x$lt_cv_ar_at_file" = xno; then
  4677. archiver_list_spec=
  4678. else
  4679. archiver_list_spec=$lt_cv_ar_at_file
  4680. fi
  4681. if test -n "$ac_tool_prefix"; then
  4682. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4683. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4685. $as_echo_n "checking for $ac_word... " >&6; }
  4686. if ${ac_cv_prog_STRIP+:} false; then :
  4687. $as_echo_n "(cached) " >&6
  4688. else
  4689. if test -n "$STRIP"; then
  4690. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4691. else
  4692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4693. for as_dir in $PATH
  4694. do
  4695. IFS=$as_save_IFS
  4696. test -z "$as_dir" && as_dir=.
  4697. for ac_exec_ext in '' $ac_executable_extensions; do
  4698. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4699. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4701. break 2
  4702. fi
  4703. done
  4704. done
  4705. IFS=$as_save_IFS
  4706. fi
  4707. fi
  4708. STRIP=$ac_cv_prog_STRIP
  4709. if test -n "$STRIP"; then
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4711. $as_echo "$STRIP" >&6; }
  4712. else
  4713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4714. $as_echo "no" >&6; }
  4715. fi
  4716. fi
  4717. if test -z "$ac_cv_prog_STRIP"; then
  4718. ac_ct_STRIP=$STRIP
  4719. # Extract the first word of "strip", so it can be a program name with args.
  4720. set dummy strip; ac_word=$2
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4722. $as_echo_n "checking for $ac_word... " >&6; }
  4723. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4724. $as_echo_n "(cached) " >&6
  4725. else
  4726. if test -n "$ac_ct_STRIP"; then
  4727. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4728. else
  4729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4730. for as_dir in $PATH
  4731. do
  4732. IFS=$as_save_IFS
  4733. test -z "$as_dir" && as_dir=.
  4734. for ac_exec_ext in '' $ac_executable_extensions; do
  4735. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4736. ac_cv_prog_ac_ct_STRIP="strip"
  4737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4738. break 2
  4739. fi
  4740. done
  4741. done
  4742. IFS=$as_save_IFS
  4743. fi
  4744. fi
  4745. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4746. if test -n "$ac_ct_STRIP"; then
  4747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4748. $as_echo "$ac_ct_STRIP" >&6; }
  4749. else
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4751. $as_echo "no" >&6; }
  4752. fi
  4753. if test "x$ac_ct_STRIP" = x; then
  4754. STRIP=":"
  4755. else
  4756. case $cross_compiling:$ac_tool_warned in
  4757. yes:)
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4759. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4760. ac_tool_warned=yes ;;
  4761. esac
  4762. STRIP=$ac_ct_STRIP
  4763. fi
  4764. else
  4765. STRIP="$ac_cv_prog_STRIP"
  4766. fi
  4767. test -z "$STRIP" && STRIP=:
  4768. if test -n "$ac_tool_prefix"; then
  4769. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4770. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4772. $as_echo_n "checking for $ac_word... " >&6; }
  4773. if ${ac_cv_prog_RANLIB+:} false; then :
  4774. $as_echo_n "(cached) " >&6
  4775. else
  4776. if test -n "$RANLIB"; then
  4777. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4778. else
  4779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4780. for as_dir in $PATH
  4781. do
  4782. IFS=$as_save_IFS
  4783. test -z "$as_dir" && as_dir=.
  4784. for ac_exec_ext in '' $ac_executable_extensions; do
  4785. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4786. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4788. break 2
  4789. fi
  4790. done
  4791. done
  4792. IFS=$as_save_IFS
  4793. fi
  4794. fi
  4795. RANLIB=$ac_cv_prog_RANLIB
  4796. if test -n "$RANLIB"; then
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4798. $as_echo "$RANLIB" >&6; }
  4799. else
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4801. $as_echo "no" >&6; }
  4802. fi
  4803. fi
  4804. if test -z "$ac_cv_prog_RANLIB"; then
  4805. ac_ct_RANLIB=$RANLIB
  4806. # Extract the first word of "ranlib", so it can be a program name with args.
  4807. set dummy ranlib; ac_word=$2
  4808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4809. $as_echo_n "checking for $ac_word... " >&6; }
  4810. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4811. $as_echo_n "(cached) " >&6
  4812. else
  4813. if test -n "$ac_ct_RANLIB"; then
  4814. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4815. else
  4816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4817. for as_dir in $PATH
  4818. do
  4819. IFS=$as_save_IFS
  4820. test -z "$as_dir" && as_dir=.
  4821. for ac_exec_ext in '' $ac_executable_extensions; do
  4822. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4823. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4825. break 2
  4826. fi
  4827. done
  4828. done
  4829. IFS=$as_save_IFS
  4830. fi
  4831. fi
  4832. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4833. if test -n "$ac_ct_RANLIB"; then
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4835. $as_echo "$ac_ct_RANLIB" >&6; }
  4836. else
  4837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4838. $as_echo "no" >&6; }
  4839. fi
  4840. if test "x$ac_ct_RANLIB" = x; then
  4841. RANLIB=":"
  4842. else
  4843. case $cross_compiling:$ac_tool_warned in
  4844. yes:)
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4846. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4847. ac_tool_warned=yes ;;
  4848. esac
  4849. RANLIB=$ac_ct_RANLIB
  4850. fi
  4851. else
  4852. RANLIB="$ac_cv_prog_RANLIB"
  4853. fi
  4854. test -z "$RANLIB" && RANLIB=:
  4855. # Determine commands to create old-style static archives.
  4856. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4857. old_postinstall_cmds='chmod 644 $oldlib'
  4858. old_postuninstall_cmds=
  4859. if test -n "$RANLIB"; then
  4860. case $host_os in
  4861. openbsd*)
  4862. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4863. ;;
  4864. *)
  4865. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4866. ;;
  4867. esac
  4868. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4869. fi
  4870. case $host_os in
  4871. darwin*)
  4872. lock_old_archive_extraction=yes ;;
  4873. *)
  4874. lock_old_archive_extraction=no ;;
  4875. esac
  4876. for ac_prog in gawk mawk nawk awk
  4877. do
  4878. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4879. set dummy $ac_prog; ac_word=$2
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4881. $as_echo_n "checking for $ac_word... " >&6; }
  4882. if ${ac_cv_prog_AWK+:} false; then :
  4883. $as_echo_n "(cached) " >&6
  4884. else
  4885. if test -n "$AWK"; then
  4886. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4887. else
  4888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4889. for as_dir in $PATH
  4890. do
  4891. IFS=$as_save_IFS
  4892. test -z "$as_dir" && as_dir=.
  4893. for ac_exec_ext in '' $ac_executable_extensions; do
  4894. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4895. ac_cv_prog_AWK="$ac_prog"
  4896. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4897. break 2
  4898. fi
  4899. done
  4900. done
  4901. IFS=$as_save_IFS
  4902. fi
  4903. fi
  4904. AWK=$ac_cv_prog_AWK
  4905. if test -n "$AWK"; then
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4907. $as_echo "$AWK" >&6; }
  4908. else
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4910. $as_echo "no" >&6; }
  4911. fi
  4912. test -n "$AWK" && break
  4913. done
  4914. # If no C compiler was specified, use CC.
  4915. LTCC=${LTCC-"$CC"}
  4916. # If no C compiler flags were specified, use CFLAGS.
  4917. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4918. # Allow CC to be a program name with arguments.
  4919. compiler=$CC
  4920. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4922. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4923. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4924. $as_echo_n "(cached) " >&6
  4925. else
  4926. # These are sane defaults that work on at least a few old systems.
  4927. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4928. # Character class describing NM global symbol codes.
  4929. symcode='[BCDEGRST]'
  4930. # Regexp to match symbols that can be accessed directly from C.
  4931. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4932. # Define system-specific variables.
  4933. case $host_os in
  4934. aix*)
  4935. symcode='[BCDT]'
  4936. ;;
  4937. cygwin* | mingw* | pw32* | cegcc*)
  4938. symcode='[ABCDGISTW]'
  4939. ;;
  4940. hpux*)
  4941. if test "$host_cpu" = ia64; then
  4942. symcode='[ABCDEGRST]'
  4943. fi
  4944. ;;
  4945. irix* | nonstopux*)
  4946. symcode='[BCDEGRST]'
  4947. ;;
  4948. osf*)
  4949. symcode='[BCDEGQRST]'
  4950. ;;
  4951. solaris*)
  4952. symcode='[BDRT]'
  4953. ;;
  4954. sco3.2v5*)
  4955. symcode='[DT]'
  4956. ;;
  4957. sysv4.2uw2*)
  4958. symcode='[DT]'
  4959. ;;
  4960. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4961. symcode='[ABDT]'
  4962. ;;
  4963. sysv4)
  4964. symcode='[DFNSTU]'
  4965. ;;
  4966. esac
  4967. # If we're using GNU nm, then use its standard symbol codes.
  4968. case `$NM -V 2>&1` in
  4969. *GNU* | *'with BFD'*)
  4970. symcode='[ABCDGIRSTW]' ;;
  4971. esac
  4972. # Transform an extracted symbol line into a proper C declaration.
  4973. # Some systems (esp. on ia64) link data and code symbols differently,
  4974. # so use this general approach.
  4975. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4976. # Transform an extracted symbol line into symbol name and symbol address
  4977. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4978. 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'"
  4979. # Handle CRLF in mingw tool chain
  4980. opt_cr=
  4981. case $build_os in
  4982. mingw*)
  4983. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4984. ;;
  4985. esac
  4986. # Try without a prefix underscore, then with it.
  4987. for ac_symprfx in "" "_"; do
  4988. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4989. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4990. # Write the raw and C identifiers.
  4991. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4992. # Fake it for dumpbin and say T for any non-static function
  4993. # and D for any global variable.
  4994. # Also find C++ and __fastcall symbols from MSVC++,
  4995. # which start with @ or ?.
  4996. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4997. " {last_section=section; section=\$ 3};"\
  4998. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4999. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5000. " \$ 0!~/External *\|/{next};"\
  5001. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5002. " {if(hide[section]) next};"\
  5003. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5004. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5005. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5006. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5007. " ' prfx=^$ac_symprfx"
  5008. else
  5009. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5010. fi
  5011. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5012. # Check to see that the pipe works correctly.
  5013. pipe_works=no
  5014. rm -f conftest*
  5015. cat > conftest.$ac_ext <<_LT_EOF
  5016. #ifdef __cplusplus
  5017. extern "C" {
  5018. #endif
  5019. char nm_test_var;
  5020. void nm_test_func(void);
  5021. void nm_test_func(void){}
  5022. #ifdef __cplusplus
  5023. }
  5024. #endif
  5025. int main(){nm_test_var='a';nm_test_func();return(0);}
  5026. _LT_EOF
  5027. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5028. (eval $ac_compile) 2>&5
  5029. ac_status=$?
  5030. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5031. test $ac_status = 0; }; then
  5032. # Now try to grab the symbols.
  5033. nlist=conftest.nm
  5034. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5035. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5036. ac_status=$?
  5037. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5038. test $ac_status = 0; } && test -s "$nlist"; then
  5039. # Try sorting and uniquifying the output.
  5040. if sort "$nlist" | uniq > "$nlist"T; then
  5041. mv -f "$nlist"T "$nlist"
  5042. else
  5043. rm -f "$nlist"T
  5044. fi
  5045. # Make sure that we snagged all the symbols we need.
  5046. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5047. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5048. cat <<_LT_EOF > conftest.$ac_ext
  5049. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5050. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5051. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5052. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5053. # define LT_DLSYM_CONST
  5054. #elif defined(__osf__)
  5055. /* This system does not cope well with relocations in const data. */
  5056. # define LT_DLSYM_CONST
  5057. #else
  5058. # define LT_DLSYM_CONST const
  5059. #endif
  5060. #ifdef __cplusplus
  5061. extern "C" {
  5062. #endif
  5063. _LT_EOF
  5064. # Now generate the symbol file.
  5065. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5066. cat <<_LT_EOF >> conftest.$ac_ext
  5067. /* The mapping between symbol names and symbols. */
  5068. LT_DLSYM_CONST struct {
  5069. const char *name;
  5070. void *address;
  5071. }
  5072. lt__PROGRAM__LTX_preloaded_symbols[] =
  5073. {
  5074. { "@PROGRAM@", (void *) 0 },
  5075. _LT_EOF
  5076. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5077. cat <<\_LT_EOF >> conftest.$ac_ext
  5078. {0, (void *) 0}
  5079. };
  5080. /* This works around a problem in FreeBSD linker */
  5081. #ifdef FREEBSD_WORKAROUND
  5082. static const void *lt_preloaded_setup() {
  5083. return lt__PROGRAM__LTX_preloaded_symbols;
  5084. }
  5085. #endif
  5086. #ifdef __cplusplus
  5087. }
  5088. #endif
  5089. _LT_EOF
  5090. # Now try linking the two files.
  5091. mv conftest.$ac_objext conftstm.$ac_objext
  5092. lt_globsym_save_LIBS=$LIBS
  5093. lt_globsym_save_CFLAGS=$CFLAGS
  5094. LIBS="conftstm.$ac_objext"
  5095. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5096. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5097. (eval $ac_link) 2>&5
  5098. ac_status=$?
  5099. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5100. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5101. pipe_works=yes
  5102. fi
  5103. LIBS=$lt_globsym_save_LIBS
  5104. CFLAGS=$lt_globsym_save_CFLAGS
  5105. else
  5106. echo "cannot find nm_test_func in $nlist" >&5
  5107. fi
  5108. else
  5109. echo "cannot find nm_test_var in $nlist" >&5
  5110. fi
  5111. else
  5112. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5113. fi
  5114. else
  5115. echo "$progname: failed program was:" >&5
  5116. cat conftest.$ac_ext >&5
  5117. fi
  5118. rm -rf conftest* conftst*
  5119. # Do not use the global_symbol_pipe unless it works.
  5120. if test "$pipe_works" = yes; then
  5121. break
  5122. else
  5123. lt_cv_sys_global_symbol_pipe=
  5124. fi
  5125. done
  5126. fi
  5127. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5128. lt_cv_sys_global_symbol_to_cdecl=
  5129. fi
  5130. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5132. $as_echo "failed" >&6; }
  5133. else
  5134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5135. $as_echo "ok" >&6; }
  5136. fi
  5137. # Response file support.
  5138. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5139. nm_file_list_spec='@'
  5140. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5141. nm_file_list_spec='@'
  5142. fi
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5144. $as_echo_n "checking for sysroot... " >&6; }
  5145. # Check whether --with-sysroot was given.
  5146. if test "${with_sysroot+set}" = set; then :
  5147. withval=$with_sysroot;
  5148. else
  5149. with_sysroot=no
  5150. fi
  5151. lt_sysroot=
  5152. case ${with_sysroot} in #(
  5153. yes)
  5154. if test "$GCC" = yes; then
  5155. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5156. fi
  5157. ;; #(
  5158. /*)
  5159. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5160. ;; #(
  5161. no|'')
  5162. ;; #(
  5163. *)
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5165. $as_echo "${with_sysroot}" >&6; }
  5166. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5167. ;;
  5168. esac
  5169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5170. $as_echo "${lt_sysroot:-no}" >&6; }
  5171. # Check whether --enable-libtool-lock was given.
  5172. if test "${enable_libtool_lock+set}" = set; then :
  5173. enableval=$enable_libtool_lock;
  5174. fi
  5175. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5176. # Some flags need to be propagated to the compiler or linker for good
  5177. # libtool support.
  5178. case $host in
  5179. ia64-*-hpux*)
  5180. # Find out which ABI we are using.
  5181. echo 'int i;' > conftest.$ac_ext
  5182. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5183. (eval $ac_compile) 2>&5
  5184. ac_status=$?
  5185. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5186. test $ac_status = 0; }; then
  5187. case `/usr/bin/file conftest.$ac_objext` in
  5188. *ELF-32*)
  5189. HPUX_IA64_MODE="32"
  5190. ;;
  5191. *ELF-64*)
  5192. HPUX_IA64_MODE="64"
  5193. ;;
  5194. esac
  5195. fi
  5196. rm -rf conftest*
  5197. ;;
  5198. *-*-irix6*)
  5199. # Find out which ABI we are using.
  5200. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5201. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5202. (eval $ac_compile) 2>&5
  5203. ac_status=$?
  5204. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5205. test $ac_status = 0; }; then
  5206. if test "$lt_cv_prog_gnu_ld" = yes; then
  5207. case `/usr/bin/file conftest.$ac_objext` in
  5208. *32-bit*)
  5209. LD="${LD-ld} -melf32bsmip"
  5210. ;;
  5211. *N32*)
  5212. LD="${LD-ld} -melf32bmipn32"
  5213. ;;
  5214. *64-bit*)
  5215. LD="${LD-ld} -melf64bmip"
  5216. ;;
  5217. esac
  5218. else
  5219. case `/usr/bin/file conftest.$ac_objext` in
  5220. *32-bit*)
  5221. LD="${LD-ld} -32"
  5222. ;;
  5223. *N32*)
  5224. LD="${LD-ld} -n32"
  5225. ;;
  5226. *64-bit*)
  5227. LD="${LD-ld} -64"
  5228. ;;
  5229. esac
  5230. fi
  5231. fi
  5232. rm -rf conftest*
  5233. ;;
  5234. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5235. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5236. # Find out which ABI we are using.
  5237. echo 'int i;' > conftest.$ac_ext
  5238. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5239. (eval $ac_compile) 2>&5
  5240. ac_status=$?
  5241. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5242. test $ac_status = 0; }; then
  5243. case `/usr/bin/file conftest.o` in
  5244. *32-bit*)
  5245. case $host in
  5246. x86_64-*kfreebsd*-gnu)
  5247. LD="${LD-ld} -m elf_i386_fbsd"
  5248. ;;
  5249. x86_64-*linux*)
  5250. LD="${LD-ld} -m elf_i386"
  5251. ;;
  5252. ppc64-*linux*|powerpc64-*linux*)
  5253. LD="${LD-ld} -m elf32ppclinux"
  5254. ;;
  5255. s390x-*linux*)
  5256. LD="${LD-ld} -m elf_s390"
  5257. ;;
  5258. sparc64-*linux*)
  5259. LD="${LD-ld} -m elf32_sparc"
  5260. ;;
  5261. esac
  5262. ;;
  5263. *64-bit*)
  5264. case $host in
  5265. x86_64-*kfreebsd*-gnu)
  5266. LD="${LD-ld} -m elf_x86_64_fbsd"
  5267. ;;
  5268. x86_64-*linux*)
  5269. LD="${LD-ld} -m elf_x86_64"
  5270. ;;
  5271. powerpc64le-*linux*)
  5272. LD="${LD-ld} -m elf64lppc"
  5273. ;;
  5274. powerpc64-*linux*)
  5275. LD="${LD-ld} -m elf64ppc"
  5276. ;;
  5277. s390*-*linux*|s390*-*tpf*)
  5278. LD="${LD-ld} -m elf64_s390"
  5279. ;;
  5280. sparc*-*linux*)
  5281. LD="${LD-ld} -m elf64_sparc"
  5282. ;;
  5283. esac
  5284. ;;
  5285. esac
  5286. fi
  5287. rm -rf conftest*
  5288. ;;
  5289. *-*-sco3.2v5*)
  5290. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5291. SAVE_CFLAGS="$CFLAGS"
  5292. CFLAGS="$CFLAGS -belf"
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5294. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5295. if ${lt_cv_cc_needs_belf+:} false; then :
  5296. $as_echo_n "(cached) " >&6
  5297. else
  5298. ac_ext=c
  5299. ac_cpp='$CPP $CPPFLAGS'
  5300. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5301. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5302. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5304. /* end confdefs.h. */
  5305. int
  5306. main ()
  5307. {
  5308. ;
  5309. return 0;
  5310. }
  5311. _ACEOF
  5312. if ac_fn_c_try_link "$LINENO"; then :
  5313. lt_cv_cc_needs_belf=yes
  5314. else
  5315. lt_cv_cc_needs_belf=no
  5316. fi
  5317. rm -f core conftest.err conftest.$ac_objext \
  5318. conftest$ac_exeext conftest.$ac_ext
  5319. ac_ext=c
  5320. ac_cpp='$CPP $CPPFLAGS'
  5321. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5322. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5323. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5324. fi
  5325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5326. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5327. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5328. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5329. CFLAGS="$SAVE_CFLAGS"
  5330. fi
  5331. ;;
  5332. *-*solaris*)
  5333. # Find out which ABI we are using.
  5334. echo 'int i;' > conftest.$ac_ext
  5335. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5336. (eval $ac_compile) 2>&5
  5337. ac_status=$?
  5338. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5339. test $ac_status = 0; }; then
  5340. case `/usr/bin/file conftest.o` in
  5341. *64-bit*)
  5342. case $lt_cv_prog_gnu_ld in
  5343. yes*)
  5344. case $host in
  5345. i?86-*-solaris*)
  5346. LD="${LD-ld} -m elf_x86_64"
  5347. ;;
  5348. sparc*-*-solaris*)
  5349. LD="${LD-ld} -m elf64_sparc"
  5350. ;;
  5351. esac
  5352. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5353. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5354. LD="${LD-ld}_sol2"
  5355. fi
  5356. ;;
  5357. *)
  5358. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5359. LD="${LD-ld} -64"
  5360. fi
  5361. ;;
  5362. esac
  5363. ;;
  5364. esac
  5365. fi
  5366. rm -rf conftest*
  5367. ;;
  5368. esac
  5369. need_locks="$enable_libtool_lock"
  5370. if test -n "$ac_tool_prefix"; then
  5371. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5372. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5374. $as_echo_n "checking for $ac_word... " >&6; }
  5375. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5376. $as_echo_n "(cached) " >&6
  5377. else
  5378. if test -n "$MANIFEST_TOOL"; then
  5379. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5380. else
  5381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5382. for as_dir in $PATH
  5383. do
  5384. IFS=$as_save_IFS
  5385. test -z "$as_dir" && as_dir=.
  5386. for ac_exec_ext in '' $ac_executable_extensions; do
  5387. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5388. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5389. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5390. break 2
  5391. fi
  5392. done
  5393. done
  5394. IFS=$as_save_IFS
  5395. fi
  5396. fi
  5397. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5398. if test -n "$MANIFEST_TOOL"; then
  5399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5400. $as_echo "$MANIFEST_TOOL" >&6; }
  5401. else
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5403. $as_echo "no" >&6; }
  5404. fi
  5405. fi
  5406. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5407. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5408. # Extract the first word of "mt", so it can be a program name with args.
  5409. set dummy mt; ac_word=$2
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5411. $as_echo_n "checking for $ac_word... " >&6; }
  5412. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5413. $as_echo_n "(cached) " >&6
  5414. else
  5415. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5416. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5417. else
  5418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5419. for as_dir in $PATH
  5420. do
  5421. IFS=$as_save_IFS
  5422. test -z "$as_dir" && as_dir=.
  5423. for ac_exec_ext in '' $ac_executable_extensions; do
  5424. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5425. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5426. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5427. break 2
  5428. fi
  5429. done
  5430. done
  5431. IFS=$as_save_IFS
  5432. fi
  5433. fi
  5434. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5435. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5437. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5438. else
  5439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5440. $as_echo "no" >&6; }
  5441. fi
  5442. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5443. MANIFEST_TOOL=":"
  5444. else
  5445. case $cross_compiling:$ac_tool_warned in
  5446. yes:)
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5448. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5449. ac_tool_warned=yes ;;
  5450. esac
  5451. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5452. fi
  5453. else
  5454. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5455. fi
  5456. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5458. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5459. if ${lt_cv_path_mainfest_tool+:} false; then :
  5460. $as_echo_n "(cached) " >&6
  5461. else
  5462. lt_cv_path_mainfest_tool=no
  5463. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5464. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5465. cat conftest.err >&5
  5466. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5467. lt_cv_path_mainfest_tool=yes
  5468. fi
  5469. rm -f conftest*
  5470. fi
  5471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5472. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5473. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5474. MANIFEST_TOOL=:
  5475. fi
  5476. case $host_os in
  5477. rhapsody* | darwin*)
  5478. if test -n "$ac_tool_prefix"; then
  5479. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5480. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5482. $as_echo_n "checking for $ac_word... " >&6; }
  5483. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5484. $as_echo_n "(cached) " >&6
  5485. else
  5486. if test -n "$DSYMUTIL"; then
  5487. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5488. else
  5489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5490. for as_dir in $PATH
  5491. do
  5492. IFS=$as_save_IFS
  5493. test -z "$as_dir" && as_dir=.
  5494. for ac_exec_ext in '' $ac_executable_extensions; do
  5495. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5496. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5497. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5498. break 2
  5499. fi
  5500. done
  5501. done
  5502. IFS=$as_save_IFS
  5503. fi
  5504. fi
  5505. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5506. if test -n "$DSYMUTIL"; then
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5508. $as_echo "$DSYMUTIL" >&6; }
  5509. else
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5511. $as_echo "no" >&6; }
  5512. fi
  5513. fi
  5514. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5515. ac_ct_DSYMUTIL=$DSYMUTIL
  5516. # Extract the first word of "dsymutil", so it can be a program name with args.
  5517. set dummy dsymutil; ac_word=$2
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5519. $as_echo_n "checking for $ac_word... " >&6; }
  5520. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5521. $as_echo_n "(cached) " >&6
  5522. else
  5523. if test -n "$ac_ct_DSYMUTIL"; then
  5524. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5525. else
  5526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5527. for as_dir in $PATH
  5528. do
  5529. IFS=$as_save_IFS
  5530. test -z "$as_dir" && as_dir=.
  5531. for ac_exec_ext in '' $ac_executable_extensions; do
  5532. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5533. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5534. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5535. break 2
  5536. fi
  5537. done
  5538. done
  5539. IFS=$as_save_IFS
  5540. fi
  5541. fi
  5542. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5543. if test -n "$ac_ct_DSYMUTIL"; then
  5544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5545. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5546. else
  5547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5548. $as_echo "no" >&6; }
  5549. fi
  5550. if test "x$ac_ct_DSYMUTIL" = x; then
  5551. DSYMUTIL=":"
  5552. else
  5553. case $cross_compiling:$ac_tool_warned in
  5554. yes:)
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5556. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5557. ac_tool_warned=yes ;;
  5558. esac
  5559. DSYMUTIL=$ac_ct_DSYMUTIL
  5560. fi
  5561. else
  5562. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5563. fi
  5564. if test -n "$ac_tool_prefix"; then
  5565. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5566. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5568. $as_echo_n "checking for $ac_word... " >&6; }
  5569. if ${ac_cv_prog_NMEDIT+:} false; then :
  5570. $as_echo_n "(cached) " >&6
  5571. else
  5572. if test -n "$NMEDIT"; then
  5573. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5574. else
  5575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5576. for as_dir in $PATH
  5577. do
  5578. IFS=$as_save_IFS
  5579. test -z "$as_dir" && as_dir=.
  5580. for ac_exec_ext in '' $ac_executable_extensions; do
  5581. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5582. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5583. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5584. break 2
  5585. fi
  5586. done
  5587. done
  5588. IFS=$as_save_IFS
  5589. fi
  5590. fi
  5591. NMEDIT=$ac_cv_prog_NMEDIT
  5592. if test -n "$NMEDIT"; then
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5594. $as_echo "$NMEDIT" >&6; }
  5595. else
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5597. $as_echo "no" >&6; }
  5598. fi
  5599. fi
  5600. if test -z "$ac_cv_prog_NMEDIT"; then
  5601. ac_ct_NMEDIT=$NMEDIT
  5602. # Extract the first word of "nmedit", so it can be a program name with args.
  5603. set dummy nmedit; ac_word=$2
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5605. $as_echo_n "checking for $ac_word... " >&6; }
  5606. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5607. $as_echo_n "(cached) " >&6
  5608. else
  5609. if test -n "$ac_ct_NMEDIT"; then
  5610. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5611. else
  5612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5613. for as_dir in $PATH
  5614. do
  5615. IFS=$as_save_IFS
  5616. test -z "$as_dir" && as_dir=.
  5617. for ac_exec_ext in '' $ac_executable_extensions; do
  5618. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5619. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5620. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5621. break 2
  5622. fi
  5623. done
  5624. done
  5625. IFS=$as_save_IFS
  5626. fi
  5627. fi
  5628. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5629. if test -n "$ac_ct_NMEDIT"; then
  5630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5631. $as_echo "$ac_ct_NMEDIT" >&6; }
  5632. else
  5633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5634. $as_echo "no" >&6; }
  5635. fi
  5636. if test "x$ac_ct_NMEDIT" = x; then
  5637. NMEDIT=":"
  5638. else
  5639. case $cross_compiling:$ac_tool_warned in
  5640. yes:)
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5642. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5643. ac_tool_warned=yes ;;
  5644. esac
  5645. NMEDIT=$ac_ct_NMEDIT
  5646. fi
  5647. else
  5648. NMEDIT="$ac_cv_prog_NMEDIT"
  5649. fi
  5650. if test -n "$ac_tool_prefix"; then
  5651. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5652. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5654. $as_echo_n "checking for $ac_word... " >&6; }
  5655. if ${ac_cv_prog_LIPO+:} false; then :
  5656. $as_echo_n "(cached) " >&6
  5657. else
  5658. if test -n "$LIPO"; then
  5659. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5660. else
  5661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5662. for as_dir in $PATH
  5663. do
  5664. IFS=$as_save_IFS
  5665. test -z "$as_dir" && as_dir=.
  5666. for ac_exec_ext in '' $ac_executable_extensions; do
  5667. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5668. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5670. break 2
  5671. fi
  5672. done
  5673. done
  5674. IFS=$as_save_IFS
  5675. fi
  5676. fi
  5677. LIPO=$ac_cv_prog_LIPO
  5678. if test -n "$LIPO"; then
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5680. $as_echo "$LIPO" >&6; }
  5681. else
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5683. $as_echo "no" >&6; }
  5684. fi
  5685. fi
  5686. if test -z "$ac_cv_prog_LIPO"; then
  5687. ac_ct_LIPO=$LIPO
  5688. # Extract the first word of "lipo", so it can be a program name with args.
  5689. set dummy lipo; ac_word=$2
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5691. $as_echo_n "checking for $ac_word... " >&6; }
  5692. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5693. $as_echo_n "(cached) " >&6
  5694. else
  5695. if test -n "$ac_ct_LIPO"; then
  5696. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5697. else
  5698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5699. for as_dir in $PATH
  5700. do
  5701. IFS=$as_save_IFS
  5702. test -z "$as_dir" && as_dir=.
  5703. for ac_exec_ext in '' $ac_executable_extensions; do
  5704. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5705. ac_cv_prog_ac_ct_LIPO="lipo"
  5706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5707. break 2
  5708. fi
  5709. done
  5710. done
  5711. IFS=$as_save_IFS
  5712. fi
  5713. fi
  5714. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5715. if test -n "$ac_ct_LIPO"; then
  5716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5717. $as_echo "$ac_ct_LIPO" >&6; }
  5718. else
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5720. $as_echo "no" >&6; }
  5721. fi
  5722. if test "x$ac_ct_LIPO" = x; then
  5723. LIPO=":"
  5724. else
  5725. case $cross_compiling:$ac_tool_warned in
  5726. yes:)
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5728. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5729. ac_tool_warned=yes ;;
  5730. esac
  5731. LIPO=$ac_ct_LIPO
  5732. fi
  5733. else
  5734. LIPO="$ac_cv_prog_LIPO"
  5735. fi
  5736. if test -n "$ac_tool_prefix"; then
  5737. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5738. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5740. $as_echo_n "checking for $ac_word... " >&6; }
  5741. if ${ac_cv_prog_OTOOL+:} false; then :
  5742. $as_echo_n "(cached) " >&6
  5743. else
  5744. if test -n "$OTOOL"; then
  5745. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5746. else
  5747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5748. for as_dir in $PATH
  5749. do
  5750. IFS=$as_save_IFS
  5751. test -z "$as_dir" && as_dir=.
  5752. for ac_exec_ext in '' $ac_executable_extensions; do
  5753. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5754. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5755. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5756. break 2
  5757. fi
  5758. done
  5759. done
  5760. IFS=$as_save_IFS
  5761. fi
  5762. fi
  5763. OTOOL=$ac_cv_prog_OTOOL
  5764. if test -n "$OTOOL"; then
  5765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5766. $as_echo "$OTOOL" >&6; }
  5767. else
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5769. $as_echo "no" >&6; }
  5770. fi
  5771. fi
  5772. if test -z "$ac_cv_prog_OTOOL"; then
  5773. ac_ct_OTOOL=$OTOOL
  5774. # Extract the first word of "otool", so it can be a program name with args.
  5775. set dummy otool; ac_word=$2
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5777. $as_echo_n "checking for $ac_word... " >&6; }
  5778. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5779. $as_echo_n "(cached) " >&6
  5780. else
  5781. if test -n "$ac_ct_OTOOL"; then
  5782. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5783. else
  5784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5785. for as_dir in $PATH
  5786. do
  5787. IFS=$as_save_IFS
  5788. test -z "$as_dir" && as_dir=.
  5789. for ac_exec_ext in '' $ac_executable_extensions; do
  5790. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5791. ac_cv_prog_ac_ct_OTOOL="otool"
  5792. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5793. break 2
  5794. fi
  5795. done
  5796. done
  5797. IFS=$as_save_IFS
  5798. fi
  5799. fi
  5800. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5801. if test -n "$ac_ct_OTOOL"; then
  5802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5803. $as_echo "$ac_ct_OTOOL" >&6; }
  5804. else
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5806. $as_echo "no" >&6; }
  5807. fi
  5808. if test "x$ac_ct_OTOOL" = x; then
  5809. OTOOL=":"
  5810. else
  5811. case $cross_compiling:$ac_tool_warned in
  5812. yes:)
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5814. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5815. ac_tool_warned=yes ;;
  5816. esac
  5817. OTOOL=$ac_ct_OTOOL
  5818. fi
  5819. else
  5820. OTOOL="$ac_cv_prog_OTOOL"
  5821. fi
  5822. if test -n "$ac_tool_prefix"; then
  5823. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5824. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5826. $as_echo_n "checking for $ac_word... " >&6; }
  5827. if ${ac_cv_prog_OTOOL64+:} false; then :
  5828. $as_echo_n "(cached) " >&6
  5829. else
  5830. if test -n "$OTOOL64"; then
  5831. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5832. else
  5833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5834. for as_dir in $PATH
  5835. do
  5836. IFS=$as_save_IFS
  5837. test -z "$as_dir" && as_dir=.
  5838. for ac_exec_ext in '' $ac_executable_extensions; do
  5839. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5840. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5842. break 2
  5843. fi
  5844. done
  5845. done
  5846. IFS=$as_save_IFS
  5847. fi
  5848. fi
  5849. OTOOL64=$ac_cv_prog_OTOOL64
  5850. if test -n "$OTOOL64"; then
  5851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5852. $as_echo "$OTOOL64" >&6; }
  5853. else
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5855. $as_echo "no" >&6; }
  5856. fi
  5857. fi
  5858. if test -z "$ac_cv_prog_OTOOL64"; then
  5859. ac_ct_OTOOL64=$OTOOL64
  5860. # Extract the first word of "otool64", so it can be a program name with args.
  5861. set dummy otool64; ac_word=$2
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5863. $as_echo_n "checking for $ac_word... " >&6; }
  5864. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5865. $as_echo_n "(cached) " >&6
  5866. else
  5867. if test -n "$ac_ct_OTOOL64"; then
  5868. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5869. else
  5870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5871. for as_dir in $PATH
  5872. do
  5873. IFS=$as_save_IFS
  5874. test -z "$as_dir" && as_dir=.
  5875. for ac_exec_ext in '' $ac_executable_extensions; do
  5876. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5877. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5879. break 2
  5880. fi
  5881. done
  5882. done
  5883. IFS=$as_save_IFS
  5884. fi
  5885. fi
  5886. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5887. if test -n "$ac_ct_OTOOL64"; then
  5888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5889. $as_echo "$ac_ct_OTOOL64" >&6; }
  5890. else
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5892. $as_echo "no" >&6; }
  5893. fi
  5894. if test "x$ac_ct_OTOOL64" = x; then
  5895. OTOOL64=":"
  5896. else
  5897. case $cross_compiling:$ac_tool_warned in
  5898. yes:)
  5899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5900. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5901. ac_tool_warned=yes ;;
  5902. esac
  5903. OTOOL64=$ac_ct_OTOOL64
  5904. fi
  5905. else
  5906. OTOOL64="$ac_cv_prog_OTOOL64"
  5907. fi
  5908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5909. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5910. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5911. $as_echo_n "(cached) " >&6
  5912. else
  5913. lt_cv_apple_cc_single_mod=no
  5914. if test -z "${LT_MULTI_MODULE}"; then
  5915. # By default we will add the -single_module flag. You can override
  5916. # by either setting the environment variable LT_MULTI_MODULE
  5917. # non-empty at configure time, or by adding -multi_module to the
  5918. # link flags.
  5919. rm -rf libconftest.dylib*
  5920. echo "int foo(void){return 1;}" > conftest.c
  5921. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5922. -dynamiclib -Wl,-single_module conftest.c" >&5
  5923. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5924. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5925. _lt_result=$?
  5926. # If there is a non-empty error log, and "single_module"
  5927. # appears in it, assume the flag caused a linker warning
  5928. if test -s conftest.err && $GREP single_module conftest.err; then
  5929. cat conftest.err >&5
  5930. # Otherwise, if the output was created with a 0 exit code from
  5931. # the compiler, it worked.
  5932. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5933. lt_cv_apple_cc_single_mod=yes
  5934. else
  5935. cat conftest.err >&5
  5936. fi
  5937. rm -rf libconftest.dylib*
  5938. rm -f conftest.*
  5939. fi
  5940. fi
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5942. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5944. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5945. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5946. $as_echo_n "(cached) " >&6
  5947. else
  5948. lt_cv_ld_exported_symbols_list=no
  5949. save_LDFLAGS=$LDFLAGS
  5950. echo "_main" > conftest.sym
  5951. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5953. /* end confdefs.h. */
  5954. int
  5955. main ()
  5956. {
  5957. ;
  5958. return 0;
  5959. }
  5960. _ACEOF
  5961. if ac_fn_c_try_link "$LINENO"; then :
  5962. lt_cv_ld_exported_symbols_list=yes
  5963. else
  5964. lt_cv_ld_exported_symbols_list=no
  5965. fi
  5966. rm -f core conftest.err conftest.$ac_objext \
  5967. conftest$ac_exeext conftest.$ac_ext
  5968. LDFLAGS="$save_LDFLAGS"
  5969. fi
  5970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5971. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5973. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5974. if ${lt_cv_ld_force_load+:} false; then :
  5975. $as_echo_n "(cached) " >&6
  5976. else
  5977. lt_cv_ld_force_load=no
  5978. cat > conftest.c << _LT_EOF
  5979. int forced_loaded() { return 2;}
  5980. _LT_EOF
  5981. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5982. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5983. echo "$AR cru libconftest.a conftest.o" >&5
  5984. $AR cru libconftest.a conftest.o 2>&5
  5985. echo "$RANLIB libconftest.a" >&5
  5986. $RANLIB libconftest.a 2>&5
  5987. cat > conftest.c << _LT_EOF
  5988. int main() { return 0;}
  5989. _LT_EOF
  5990. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5991. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5992. _lt_result=$?
  5993. if test -s conftest.err && $GREP force_load conftest.err; then
  5994. cat conftest.err >&5
  5995. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5996. lt_cv_ld_force_load=yes
  5997. else
  5998. cat conftest.err >&5
  5999. fi
  6000. rm -f conftest.err libconftest.a conftest conftest.c
  6001. rm -rf conftest.dSYM
  6002. fi
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6004. $as_echo "$lt_cv_ld_force_load" >&6; }
  6005. case $host_os in
  6006. rhapsody* | darwin1.[012])
  6007. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6008. darwin1.*)
  6009. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6010. darwin*) # darwin 5.x on
  6011. # if running on 10.5 or later, the deployment target defaults
  6012. # to the OS version, if on x86, and 10.4, the deployment
  6013. # target defaults to 10.4. Don't you love it?
  6014. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6015. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6016. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6017. 10.[012]*)
  6018. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6019. 10.*)
  6020. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6021. esac
  6022. ;;
  6023. esac
  6024. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6025. _lt_dar_single_mod='$single_module'
  6026. fi
  6027. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6028. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6029. else
  6030. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6031. fi
  6032. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6033. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6034. else
  6035. _lt_dsymutil=
  6036. fi
  6037. ;;
  6038. esac
  6039. ac_ext=c
  6040. ac_cpp='$CPP $CPPFLAGS'
  6041. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6042. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6043. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6045. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6046. # On Suns, sometimes $CPP names a directory.
  6047. if test -n "$CPP" && test -d "$CPP"; then
  6048. CPP=
  6049. fi
  6050. if test -z "$CPP"; then
  6051. if ${ac_cv_prog_CPP+:} false; then :
  6052. $as_echo_n "(cached) " >&6
  6053. else
  6054. # Double quotes because CPP needs to be expanded
  6055. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6056. do
  6057. ac_preproc_ok=false
  6058. for ac_c_preproc_warn_flag in '' yes
  6059. do
  6060. # Use a header file that comes with gcc, so configuring glibc
  6061. # with a fresh cross-compiler works.
  6062. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6063. # <limits.h> exists even on freestanding compilers.
  6064. # On the NeXT, cc -E runs the code through the compiler's parser,
  6065. # not just through cpp. "Syntax error" is here to catch this case.
  6066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6067. /* end confdefs.h. */
  6068. #ifdef __STDC__
  6069. # include <limits.h>
  6070. #else
  6071. # include <assert.h>
  6072. #endif
  6073. Syntax error
  6074. _ACEOF
  6075. if ac_fn_c_try_cpp "$LINENO"; then :
  6076. else
  6077. # Broken: fails on valid input.
  6078. continue
  6079. fi
  6080. rm -f conftest.err conftest.i conftest.$ac_ext
  6081. # OK, works on sane cases. Now check whether nonexistent headers
  6082. # can be detected and how.
  6083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6084. /* end confdefs.h. */
  6085. #include <ac_nonexistent.h>
  6086. _ACEOF
  6087. if ac_fn_c_try_cpp "$LINENO"; then :
  6088. # Broken: success on invalid input.
  6089. continue
  6090. else
  6091. # Passes both tests.
  6092. ac_preproc_ok=:
  6093. break
  6094. fi
  6095. rm -f conftest.err conftest.i conftest.$ac_ext
  6096. done
  6097. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6098. rm -f conftest.i conftest.err conftest.$ac_ext
  6099. if $ac_preproc_ok; then :
  6100. break
  6101. fi
  6102. done
  6103. ac_cv_prog_CPP=$CPP
  6104. fi
  6105. CPP=$ac_cv_prog_CPP
  6106. else
  6107. ac_cv_prog_CPP=$CPP
  6108. fi
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6110. $as_echo "$CPP" >&6; }
  6111. ac_preproc_ok=false
  6112. for ac_c_preproc_warn_flag in '' yes
  6113. do
  6114. # Use a header file that comes with gcc, so configuring glibc
  6115. # with a fresh cross-compiler works.
  6116. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6117. # <limits.h> exists even on freestanding compilers.
  6118. # On the NeXT, cc -E runs the code through the compiler's parser,
  6119. # not just through cpp. "Syntax error" is here to catch this case.
  6120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6121. /* end confdefs.h. */
  6122. #ifdef __STDC__
  6123. # include <limits.h>
  6124. #else
  6125. # include <assert.h>
  6126. #endif
  6127. Syntax error
  6128. _ACEOF
  6129. if ac_fn_c_try_cpp "$LINENO"; then :
  6130. else
  6131. # Broken: fails on valid input.
  6132. continue
  6133. fi
  6134. rm -f conftest.err conftest.i conftest.$ac_ext
  6135. # OK, works on sane cases. Now check whether nonexistent headers
  6136. # can be detected and how.
  6137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6138. /* end confdefs.h. */
  6139. #include <ac_nonexistent.h>
  6140. _ACEOF
  6141. if ac_fn_c_try_cpp "$LINENO"; then :
  6142. # Broken: success on invalid input.
  6143. continue
  6144. else
  6145. # Passes both tests.
  6146. ac_preproc_ok=:
  6147. break
  6148. fi
  6149. rm -f conftest.err conftest.i conftest.$ac_ext
  6150. done
  6151. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6152. rm -f conftest.i conftest.err conftest.$ac_ext
  6153. if $ac_preproc_ok; then :
  6154. else
  6155. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6156. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6157. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6158. See \`config.log' for more details" "$LINENO" 5; }
  6159. fi
  6160. ac_ext=c
  6161. ac_cpp='$CPP $CPPFLAGS'
  6162. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6163. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6164. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6166. $as_echo_n "checking for ANSI C header files... " >&6; }
  6167. if ${ac_cv_header_stdc+:} false; then :
  6168. $as_echo_n "(cached) " >&6
  6169. else
  6170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6171. /* end confdefs.h. */
  6172. #include <stdlib.h>
  6173. #include <stdarg.h>
  6174. #include <string.h>
  6175. #include <float.h>
  6176. int
  6177. main ()
  6178. {
  6179. ;
  6180. return 0;
  6181. }
  6182. _ACEOF
  6183. if ac_fn_c_try_compile "$LINENO"; then :
  6184. ac_cv_header_stdc=yes
  6185. else
  6186. ac_cv_header_stdc=no
  6187. fi
  6188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6189. if test $ac_cv_header_stdc = yes; then
  6190. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6192. /* end confdefs.h. */
  6193. #include <string.h>
  6194. _ACEOF
  6195. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6196. $EGREP "memchr" >/dev/null 2>&1; then :
  6197. else
  6198. ac_cv_header_stdc=no
  6199. fi
  6200. rm -f conftest*
  6201. fi
  6202. if test $ac_cv_header_stdc = yes; then
  6203. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6205. /* end confdefs.h. */
  6206. #include <stdlib.h>
  6207. _ACEOF
  6208. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6209. $EGREP "free" >/dev/null 2>&1; then :
  6210. else
  6211. ac_cv_header_stdc=no
  6212. fi
  6213. rm -f conftest*
  6214. fi
  6215. if test $ac_cv_header_stdc = yes; then
  6216. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6217. if test "$cross_compiling" = yes; then :
  6218. :
  6219. else
  6220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6221. /* end confdefs.h. */
  6222. #include <ctype.h>
  6223. #include <stdlib.h>
  6224. #if ((' ' & 0x0FF) == 0x020)
  6225. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6226. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6227. #else
  6228. # define ISLOWER(c) \
  6229. (('a' <= (c) && (c) <= 'i') \
  6230. || ('j' <= (c) && (c) <= 'r') \
  6231. || ('s' <= (c) && (c) <= 'z'))
  6232. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6233. #endif
  6234. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6235. int
  6236. main ()
  6237. {
  6238. int i;
  6239. for (i = 0; i < 256; i++)
  6240. if (XOR (islower (i), ISLOWER (i))
  6241. || toupper (i) != TOUPPER (i))
  6242. return 2;
  6243. return 0;
  6244. }
  6245. _ACEOF
  6246. if ac_fn_c_try_run "$LINENO"; then :
  6247. else
  6248. ac_cv_header_stdc=no
  6249. fi
  6250. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6251. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6252. fi
  6253. fi
  6254. fi
  6255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6256. $as_echo "$ac_cv_header_stdc" >&6; }
  6257. if test $ac_cv_header_stdc = yes; then
  6258. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6259. fi
  6260. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6261. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6262. inttypes.h stdint.h unistd.h
  6263. do :
  6264. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6265. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6266. "
  6267. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6268. cat >>confdefs.h <<_ACEOF
  6269. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6270. _ACEOF
  6271. fi
  6272. done
  6273. for ac_header in dlfcn.h
  6274. do :
  6275. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6276. "
  6277. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6278. cat >>confdefs.h <<_ACEOF
  6279. #define HAVE_DLFCN_H 1
  6280. _ACEOF
  6281. fi
  6282. done
  6283. # Set options
  6284. enable_win32_dll=yes
  6285. case $host in
  6286. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6287. if test -n "$ac_tool_prefix"; then
  6288. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6289. set dummy ${ac_tool_prefix}as; ac_word=$2
  6290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6291. $as_echo_n "checking for $ac_word... " >&6; }
  6292. if ${ac_cv_prog_AS+:} false; then :
  6293. $as_echo_n "(cached) " >&6
  6294. else
  6295. if test -n "$AS"; then
  6296. ac_cv_prog_AS="$AS" # Let the user override the test.
  6297. else
  6298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6299. for as_dir in $PATH
  6300. do
  6301. IFS=$as_save_IFS
  6302. test -z "$as_dir" && as_dir=.
  6303. for ac_exec_ext in '' $ac_executable_extensions; do
  6304. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6305. ac_cv_prog_AS="${ac_tool_prefix}as"
  6306. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6307. break 2
  6308. fi
  6309. done
  6310. done
  6311. IFS=$as_save_IFS
  6312. fi
  6313. fi
  6314. AS=$ac_cv_prog_AS
  6315. if test -n "$AS"; then
  6316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6317. $as_echo "$AS" >&6; }
  6318. else
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6320. $as_echo "no" >&6; }
  6321. fi
  6322. fi
  6323. if test -z "$ac_cv_prog_AS"; then
  6324. ac_ct_AS=$AS
  6325. # Extract the first word of "as", so it can be a program name with args.
  6326. set dummy as; ac_word=$2
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6328. $as_echo_n "checking for $ac_word... " >&6; }
  6329. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6330. $as_echo_n "(cached) " >&6
  6331. else
  6332. if test -n "$ac_ct_AS"; then
  6333. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6334. else
  6335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6336. for as_dir in $PATH
  6337. do
  6338. IFS=$as_save_IFS
  6339. test -z "$as_dir" && as_dir=.
  6340. for ac_exec_ext in '' $ac_executable_extensions; do
  6341. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6342. ac_cv_prog_ac_ct_AS="as"
  6343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6344. break 2
  6345. fi
  6346. done
  6347. done
  6348. IFS=$as_save_IFS
  6349. fi
  6350. fi
  6351. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6352. if test -n "$ac_ct_AS"; then
  6353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6354. $as_echo "$ac_ct_AS" >&6; }
  6355. else
  6356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6357. $as_echo "no" >&6; }
  6358. fi
  6359. if test "x$ac_ct_AS" = x; then
  6360. AS="false"
  6361. else
  6362. case $cross_compiling:$ac_tool_warned in
  6363. yes:)
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6365. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6366. ac_tool_warned=yes ;;
  6367. esac
  6368. AS=$ac_ct_AS
  6369. fi
  6370. else
  6371. AS="$ac_cv_prog_AS"
  6372. fi
  6373. if test -n "$ac_tool_prefix"; then
  6374. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6375. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6377. $as_echo_n "checking for $ac_word... " >&6; }
  6378. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6379. $as_echo_n "(cached) " >&6
  6380. else
  6381. if test -n "$DLLTOOL"; then
  6382. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6383. else
  6384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6385. for as_dir in $PATH
  6386. do
  6387. IFS=$as_save_IFS
  6388. test -z "$as_dir" && as_dir=.
  6389. for ac_exec_ext in '' $ac_executable_extensions; do
  6390. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6391. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6392. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6393. break 2
  6394. fi
  6395. done
  6396. done
  6397. IFS=$as_save_IFS
  6398. fi
  6399. fi
  6400. DLLTOOL=$ac_cv_prog_DLLTOOL
  6401. if test -n "$DLLTOOL"; then
  6402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6403. $as_echo "$DLLTOOL" >&6; }
  6404. else
  6405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6406. $as_echo "no" >&6; }
  6407. fi
  6408. fi
  6409. if test -z "$ac_cv_prog_DLLTOOL"; then
  6410. ac_ct_DLLTOOL=$DLLTOOL
  6411. # Extract the first word of "dlltool", so it can be a program name with args.
  6412. set dummy dlltool; ac_word=$2
  6413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6414. $as_echo_n "checking for $ac_word... " >&6; }
  6415. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6416. $as_echo_n "(cached) " >&6
  6417. else
  6418. if test -n "$ac_ct_DLLTOOL"; then
  6419. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6420. else
  6421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6422. for as_dir in $PATH
  6423. do
  6424. IFS=$as_save_IFS
  6425. test -z "$as_dir" && as_dir=.
  6426. for ac_exec_ext in '' $ac_executable_extensions; do
  6427. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6428. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6429. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6430. break 2
  6431. fi
  6432. done
  6433. done
  6434. IFS=$as_save_IFS
  6435. fi
  6436. fi
  6437. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6438. if test -n "$ac_ct_DLLTOOL"; then
  6439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6440. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6441. else
  6442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6443. $as_echo "no" >&6; }
  6444. fi
  6445. if test "x$ac_ct_DLLTOOL" = x; then
  6446. DLLTOOL="false"
  6447. else
  6448. case $cross_compiling:$ac_tool_warned in
  6449. yes:)
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6451. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6452. ac_tool_warned=yes ;;
  6453. esac
  6454. DLLTOOL=$ac_ct_DLLTOOL
  6455. fi
  6456. else
  6457. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6458. fi
  6459. if test -n "$ac_tool_prefix"; then
  6460. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6461. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6463. $as_echo_n "checking for $ac_word... " >&6; }
  6464. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6465. $as_echo_n "(cached) " >&6
  6466. else
  6467. if test -n "$OBJDUMP"; then
  6468. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6469. else
  6470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6471. for as_dir in $PATH
  6472. do
  6473. IFS=$as_save_IFS
  6474. test -z "$as_dir" && as_dir=.
  6475. for ac_exec_ext in '' $ac_executable_extensions; do
  6476. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6477. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6478. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6479. break 2
  6480. fi
  6481. done
  6482. done
  6483. IFS=$as_save_IFS
  6484. fi
  6485. fi
  6486. OBJDUMP=$ac_cv_prog_OBJDUMP
  6487. if test -n "$OBJDUMP"; then
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6489. $as_echo "$OBJDUMP" >&6; }
  6490. else
  6491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6492. $as_echo "no" >&6; }
  6493. fi
  6494. fi
  6495. if test -z "$ac_cv_prog_OBJDUMP"; then
  6496. ac_ct_OBJDUMP=$OBJDUMP
  6497. # Extract the first word of "objdump", so it can be a program name with args.
  6498. set dummy objdump; ac_word=$2
  6499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6500. $as_echo_n "checking for $ac_word... " >&6; }
  6501. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6502. $as_echo_n "(cached) " >&6
  6503. else
  6504. if test -n "$ac_ct_OBJDUMP"; then
  6505. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6506. else
  6507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6508. for as_dir in $PATH
  6509. do
  6510. IFS=$as_save_IFS
  6511. test -z "$as_dir" && as_dir=.
  6512. for ac_exec_ext in '' $ac_executable_extensions; do
  6513. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6514. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6515. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6516. break 2
  6517. fi
  6518. done
  6519. done
  6520. IFS=$as_save_IFS
  6521. fi
  6522. fi
  6523. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6524. if test -n "$ac_ct_OBJDUMP"; then
  6525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6526. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6527. else
  6528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6529. $as_echo "no" >&6; }
  6530. fi
  6531. if test "x$ac_ct_OBJDUMP" = x; then
  6532. OBJDUMP="false"
  6533. else
  6534. case $cross_compiling:$ac_tool_warned in
  6535. yes:)
  6536. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6537. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6538. ac_tool_warned=yes ;;
  6539. esac
  6540. OBJDUMP=$ac_ct_OBJDUMP
  6541. fi
  6542. else
  6543. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6544. fi
  6545. ;;
  6546. esac
  6547. test -z "$AS" && AS=as
  6548. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6549. test -z "$OBJDUMP" && OBJDUMP=objdump
  6550. enable_dlopen=no
  6551. # Check whether --enable-shared was given.
  6552. if test "${enable_shared+set}" = set; then :
  6553. enableval=$enable_shared; p=${PACKAGE-default}
  6554. case $enableval in
  6555. yes) enable_shared=yes ;;
  6556. no) enable_shared=no ;;
  6557. *)
  6558. enable_shared=no
  6559. # Look at the argument we got. We use all the common list separators.
  6560. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6561. for pkg in $enableval; do
  6562. IFS="$lt_save_ifs"
  6563. if test "X$pkg" = "X$p"; then
  6564. enable_shared=yes
  6565. fi
  6566. done
  6567. IFS="$lt_save_ifs"
  6568. ;;
  6569. esac
  6570. else
  6571. enable_shared=yes
  6572. fi
  6573. # Check whether --enable-static was given.
  6574. if test "${enable_static+set}" = set; then :
  6575. enableval=$enable_static; p=${PACKAGE-default}
  6576. case $enableval in
  6577. yes) enable_static=yes ;;
  6578. no) enable_static=no ;;
  6579. *)
  6580. enable_static=no
  6581. # Look at the argument we got. We use all the common list separators.
  6582. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6583. for pkg in $enableval; do
  6584. IFS="$lt_save_ifs"
  6585. if test "X$pkg" = "X$p"; then
  6586. enable_static=yes
  6587. fi
  6588. done
  6589. IFS="$lt_save_ifs"
  6590. ;;
  6591. esac
  6592. else
  6593. enable_static=yes
  6594. fi
  6595. # Check whether --with-pic was given.
  6596. if test "${with_pic+set}" = set; then :
  6597. withval=$with_pic; lt_p=${PACKAGE-default}
  6598. case $withval in
  6599. yes|no) pic_mode=$withval ;;
  6600. *)
  6601. pic_mode=default
  6602. # Look at the argument we got. We use all the common list separators.
  6603. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6604. for lt_pkg in $withval; do
  6605. IFS="$lt_save_ifs"
  6606. if test "X$lt_pkg" = "X$lt_p"; then
  6607. pic_mode=yes
  6608. fi
  6609. done
  6610. IFS="$lt_save_ifs"
  6611. ;;
  6612. esac
  6613. else
  6614. pic_mode=default
  6615. fi
  6616. test -z "$pic_mode" && pic_mode=default
  6617. # Check whether --enable-fast-install was given.
  6618. if test "${enable_fast_install+set}" = set; then :
  6619. enableval=$enable_fast_install; p=${PACKAGE-default}
  6620. case $enableval in
  6621. yes) enable_fast_install=yes ;;
  6622. no) enable_fast_install=no ;;
  6623. *)
  6624. enable_fast_install=no
  6625. # Look at the argument we got. We use all the common list separators.
  6626. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6627. for pkg in $enableval; do
  6628. IFS="$lt_save_ifs"
  6629. if test "X$pkg" = "X$p"; then
  6630. enable_fast_install=yes
  6631. fi
  6632. done
  6633. IFS="$lt_save_ifs"
  6634. ;;
  6635. esac
  6636. else
  6637. enable_fast_install=yes
  6638. fi
  6639. # This can be used to rebuild libtool when needed
  6640. LIBTOOL_DEPS="$ltmain"
  6641. # Always use our own libtool.
  6642. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6643. test -z "$LN_S" && LN_S="ln -s"
  6644. if test -n "${ZSH_VERSION+set}" ; then
  6645. setopt NO_GLOB_SUBST
  6646. fi
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6648. $as_echo_n "checking for objdir... " >&6; }
  6649. if ${lt_cv_objdir+:} false; then :
  6650. $as_echo_n "(cached) " >&6
  6651. else
  6652. rm -f .libs 2>/dev/null
  6653. mkdir .libs 2>/dev/null
  6654. if test -d .libs; then
  6655. lt_cv_objdir=.libs
  6656. else
  6657. # MS-DOS does not allow filenames that begin with a dot.
  6658. lt_cv_objdir=_libs
  6659. fi
  6660. rmdir .libs 2>/dev/null
  6661. fi
  6662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6663. $as_echo "$lt_cv_objdir" >&6; }
  6664. objdir=$lt_cv_objdir
  6665. cat >>confdefs.h <<_ACEOF
  6666. #define LT_OBJDIR "$lt_cv_objdir/"
  6667. _ACEOF
  6668. case $host_os in
  6669. aix3*)
  6670. # AIX sometimes has problems with the GCC collect2 program. For some
  6671. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6672. # vanish in a puff of smoke.
  6673. if test "X${COLLECT_NAMES+set}" != Xset; then
  6674. COLLECT_NAMES=
  6675. export COLLECT_NAMES
  6676. fi
  6677. ;;
  6678. esac
  6679. # Global variables:
  6680. ofile=libtool
  6681. can_build_shared=yes
  6682. # All known linkers require a `.a' archive for static linking (except MSVC,
  6683. # which needs '.lib').
  6684. libext=a
  6685. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6686. old_CC="$CC"
  6687. old_CFLAGS="$CFLAGS"
  6688. # Set sane defaults for various variables
  6689. test -z "$CC" && CC=cc
  6690. test -z "$LTCC" && LTCC=$CC
  6691. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6692. test -z "$LD" && LD=ld
  6693. test -z "$ac_objext" && ac_objext=o
  6694. for cc_temp in $compiler""; do
  6695. case $cc_temp in
  6696. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6697. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6698. \-*) ;;
  6699. *) break;;
  6700. esac
  6701. done
  6702. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6703. # Only perform the check for file, if the check method requires it
  6704. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6705. case $deplibs_check_method in
  6706. file_magic*)
  6707. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6709. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6710. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6711. $as_echo_n "(cached) " >&6
  6712. else
  6713. case $MAGIC_CMD in
  6714. [\\/*] | ?:[\\/]*)
  6715. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6716. ;;
  6717. *)
  6718. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6719. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6720. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6721. for ac_dir in $ac_dummy; do
  6722. IFS="$lt_save_ifs"
  6723. test -z "$ac_dir" && ac_dir=.
  6724. if test -f $ac_dir/${ac_tool_prefix}file; then
  6725. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6726. if test -n "$file_magic_test_file"; then
  6727. case $deplibs_check_method in
  6728. "file_magic "*)
  6729. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6730. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6731. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6732. $EGREP "$file_magic_regex" > /dev/null; then
  6733. :
  6734. else
  6735. cat <<_LT_EOF 1>&2
  6736. *** Warning: the command libtool uses to detect shared libraries,
  6737. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6738. *** The result is that libtool may fail to recognize shared libraries
  6739. *** as such. This will affect the creation of libtool libraries that
  6740. *** depend on shared libraries, but programs linked with such libtool
  6741. *** libraries will work regardless of this problem. Nevertheless, you
  6742. *** may want to report the problem to your system manager and/or to
  6743. *** bug-libtool@gnu.org
  6744. _LT_EOF
  6745. fi ;;
  6746. esac
  6747. fi
  6748. break
  6749. fi
  6750. done
  6751. IFS="$lt_save_ifs"
  6752. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6753. ;;
  6754. esac
  6755. fi
  6756. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6757. if test -n "$MAGIC_CMD"; then
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6759. $as_echo "$MAGIC_CMD" >&6; }
  6760. else
  6761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6762. $as_echo "no" >&6; }
  6763. fi
  6764. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6765. if test -n "$ac_tool_prefix"; then
  6766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6767. $as_echo_n "checking for file... " >&6; }
  6768. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6769. $as_echo_n "(cached) " >&6
  6770. else
  6771. case $MAGIC_CMD in
  6772. [\\/*] | ?:[\\/]*)
  6773. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6774. ;;
  6775. *)
  6776. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6777. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6778. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6779. for ac_dir in $ac_dummy; do
  6780. IFS="$lt_save_ifs"
  6781. test -z "$ac_dir" && ac_dir=.
  6782. if test -f $ac_dir/file; then
  6783. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6784. if test -n "$file_magic_test_file"; then
  6785. case $deplibs_check_method in
  6786. "file_magic "*)
  6787. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6788. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6789. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6790. $EGREP "$file_magic_regex" > /dev/null; then
  6791. :
  6792. else
  6793. cat <<_LT_EOF 1>&2
  6794. *** Warning: the command libtool uses to detect shared libraries,
  6795. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6796. *** The result is that libtool may fail to recognize shared libraries
  6797. *** as such. This will affect the creation of libtool libraries that
  6798. *** depend on shared libraries, but programs linked with such libtool
  6799. *** libraries will work regardless of this problem. Nevertheless, you
  6800. *** may want to report the problem to your system manager and/or to
  6801. *** bug-libtool@gnu.org
  6802. _LT_EOF
  6803. fi ;;
  6804. esac
  6805. fi
  6806. break
  6807. fi
  6808. done
  6809. IFS="$lt_save_ifs"
  6810. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6811. ;;
  6812. esac
  6813. fi
  6814. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6815. if test -n "$MAGIC_CMD"; then
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6817. $as_echo "$MAGIC_CMD" >&6; }
  6818. else
  6819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6820. $as_echo "no" >&6; }
  6821. fi
  6822. else
  6823. MAGIC_CMD=:
  6824. fi
  6825. fi
  6826. fi
  6827. ;;
  6828. esac
  6829. # Use C for the default configuration in the libtool script
  6830. lt_save_CC="$CC"
  6831. ac_ext=c
  6832. ac_cpp='$CPP $CPPFLAGS'
  6833. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6834. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6835. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6836. # Source file extension for C test sources.
  6837. ac_ext=c
  6838. # Object file extension for compiled C test sources.
  6839. objext=o
  6840. objext=$objext
  6841. # Code to be used in simple compile tests
  6842. lt_simple_compile_test_code="int some_variable = 0;"
  6843. # Code to be used in simple link tests
  6844. lt_simple_link_test_code='int main(){return(0);}'
  6845. # If no C compiler was specified, use CC.
  6846. LTCC=${LTCC-"$CC"}
  6847. # If no C compiler flags were specified, use CFLAGS.
  6848. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6849. # Allow CC to be a program name with arguments.
  6850. compiler=$CC
  6851. # Save the default compiler, since it gets overwritten when the other
  6852. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6853. compiler_DEFAULT=$CC
  6854. # save warnings/boilerplate of simple test code
  6855. ac_outfile=conftest.$ac_objext
  6856. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6857. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6858. _lt_compiler_boilerplate=`cat conftest.err`
  6859. $RM conftest*
  6860. ac_outfile=conftest.$ac_objext
  6861. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6862. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6863. _lt_linker_boilerplate=`cat conftest.err`
  6864. $RM -r conftest*
  6865. ## CAVEAT EMPTOR:
  6866. ## There is no encapsulation within the following macros, do not change
  6867. ## the running order or otherwise move them around unless you know exactly
  6868. ## what you are doing...
  6869. if test -n "$compiler"; then
  6870. lt_prog_compiler_no_builtin_flag=
  6871. if test "$GCC" = yes; then
  6872. case $cc_basename in
  6873. nvcc*)
  6874. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6875. *)
  6876. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6877. esac
  6878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6879. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6880. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6881. $as_echo_n "(cached) " >&6
  6882. else
  6883. lt_cv_prog_compiler_rtti_exceptions=no
  6884. ac_outfile=conftest.$ac_objext
  6885. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6886. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6887. # Insert the option either (1) after the last *FLAGS variable, or
  6888. # (2) before a word containing "conftest.", or (3) at the end.
  6889. # Note that $ac_compile itself does not contain backslashes and begins
  6890. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6891. # The option is referenced via a variable to avoid confusing sed.
  6892. lt_compile=`echo "$ac_compile" | $SED \
  6893. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6894. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6895. -e 's:$: $lt_compiler_flag:'`
  6896. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6897. (eval "$lt_compile" 2>conftest.err)
  6898. ac_status=$?
  6899. cat conftest.err >&5
  6900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6901. if (exit $ac_status) && test -s "$ac_outfile"; then
  6902. # The compiler can only warn and ignore the option if not recognized
  6903. # So say no if there are warnings other than the usual output.
  6904. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6905. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6906. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6907. lt_cv_prog_compiler_rtti_exceptions=yes
  6908. fi
  6909. fi
  6910. $RM conftest*
  6911. fi
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6913. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6914. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6915. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6916. else
  6917. :
  6918. fi
  6919. fi
  6920. lt_prog_compiler_wl=
  6921. lt_prog_compiler_pic=
  6922. lt_prog_compiler_static=
  6923. if test "$GCC" = yes; then
  6924. lt_prog_compiler_wl='-Wl,'
  6925. lt_prog_compiler_static='-static'
  6926. case $host_os in
  6927. aix*)
  6928. # All AIX code is PIC.
  6929. if test "$host_cpu" = ia64; then
  6930. # AIX 5 now supports IA64 processor
  6931. lt_prog_compiler_static='-Bstatic'
  6932. fi
  6933. ;;
  6934. amigaos*)
  6935. case $host_cpu in
  6936. powerpc)
  6937. # see comment about AmigaOS4 .so support
  6938. lt_prog_compiler_pic='-fPIC'
  6939. ;;
  6940. m68k)
  6941. # FIXME: we need at least 68020 code to build shared libraries, but
  6942. # adding the `-m68020' flag to GCC prevents building anything better,
  6943. # like `-m68040'.
  6944. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6945. ;;
  6946. esac
  6947. ;;
  6948. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6949. # PIC is the default for these OSes.
  6950. ;;
  6951. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6952. # This hack is so that the source file can tell whether it is being
  6953. # built for inclusion in a dll (and should export symbols for example).
  6954. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6955. # (--disable-auto-import) libraries
  6956. lt_prog_compiler_pic='-DDLL_EXPORT'
  6957. ;;
  6958. darwin* | rhapsody*)
  6959. # PIC is the default on this platform
  6960. # Common symbols not allowed in MH_DYLIB files
  6961. lt_prog_compiler_pic='-fno-common'
  6962. ;;
  6963. haiku*)
  6964. # PIC is the default for Haiku.
  6965. # The "-static" flag exists, but is broken.
  6966. lt_prog_compiler_static=
  6967. ;;
  6968. hpux*)
  6969. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6970. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6971. # sets the default TLS model and affects inlining.
  6972. case $host_cpu in
  6973. hppa*64*)
  6974. # +Z the default
  6975. ;;
  6976. *)
  6977. lt_prog_compiler_pic='-fPIC'
  6978. ;;
  6979. esac
  6980. ;;
  6981. interix[3-9]*)
  6982. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6983. # Instead, we relocate shared libraries at runtime.
  6984. ;;
  6985. msdosdjgpp*)
  6986. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6987. # on systems that don't support them.
  6988. lt_prog_compiler_can_build_shared=no
  6989. enable_shared=no
  6990. ;;
  6991. *nto* | *qnx*)
  6992. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6993. # it will coredump.
  6994. lt_prog_compiler_pic='-fPIC -shared'
  6995. ;;
  6996. sysv4*MP*)
  6997. if test -d /usr/nec; then
  6998. lt_prog_compiler_pic=-Kconform_pic
  6999. fi
  7000. ;;
  7001. *)
  7002. lt_prog_compiler_pic='-fPIC'
  7003. ;;
  7004. esac
  7005. case $cc_basename in
  7006. nvcc*) # Cuda Compiler Driver 2.2
  7007. lt_prog_compiler_wl='-Xlinker '
  7008. if test -n "$lt_prog_compiler_pic"; then
  7009. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7010. fi
  7011. ;;
  7012. esac
  7013. else
  7014. # PORTME Check for flag to pass linker flags through the system compiler.
  7015. case $host_os in
  7016. aix*)
  7017. lt_prog_compiler_wl='-Wl,'
  7018. if test "$host_cpu" = ia64; then
  7019. # AIX 5 now supports IA64 processor
  7020. lt_prog_compiler_static='-Bstatic'
  7021. else
  7022. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7023. fi
  7024. ;;
  7025. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7026. # This hack is so that the source file can tell whether it is being
  7027. # built for inclusion in a dll (and should export symbols for example).
  7028. lt_prog_compiler_pic='-DDLL_EXPORT'
  7029. ;;
  7030. hpux9* | hpux10* | hpux11*)
  7031. lt_prog_compiler_wl='-Wl,'
  7032. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7033. # not for PA HP-UX.
  7034. case $host_cpu in
  7035. hppa*64*|ia64*)
  7036. # +Z the default
  7037. ;;
  7038. *)
  7039. lt_prog_compiler_pic='+Z'
  7040. ;;
  7041. esac
  7042. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7043. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7044. ;;
  7045. irix5* | irix6* | nonstopux*)
  7046. lt_prog_compiler_wl='-Wl,'
  7047. # PIC (with -KPIC) is the default.
  7048. lt_prog_compiler_static='-non_shared'
  7049. ;;
  7050. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7051. case $cc_basename in
  7052. # old Intel for x86_64 which still supported -KPIC.
  7053. ecc*)
  7054. lt_prog_compiler_wl='-Wl,'
  7055. lt_prog_compiler_pic='-KPIC'
  7056. lt_prog_compiler_static='-static'
  7057. ;;
  7058. # icc used to be incompatible with GCC.
  7059. # ICC 10 doesn't accept -KPIC any more.
  7060. icc* | ifort*)
  7061. lt_prog_compiler_wl='-Wl,'
  7062. lt_prog_compiler_pic='-fPIC'
  7063. lt_prog_compiler_static='-static'
  7064. ;;
  7065. # Lahey Fortran 8.1.
  7066. lf95*)
  7067. lt_prog_compiler_wl='-Wl,'
  7068. lt_prog_compiler_pic='--shared'
  7069. lt_prog_compiler_static='--static'
  7070. ;;
  7071. nagfor*)
  7072. # NAG Fortran compiler
  7073. lt_prog_compiler_wl='-Wl,-Wl,,'
  7074. lt_prog_compiler_pic='-PIC'
  7075. lt_prog_compiler_static='-Bstatic'
  7076. ;;
  7077. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7078. # Portland Group compilers (*not* the Pentium gcc compiler,
  7079. # which looks to be a dead project)
  7080. lt_prog_compiler_wl='-Wl,'
  7081. lt_prog_compiler_pic='-fpic'
  7082. lt_prog_compiler_static='-Bstatic'
  7083. ;;
  7084. ccc*)
  7085. lt_prog_compiler_wl='-Wl,'
  7086. # All Alpha code is PIC.
  7087. lt_prog_compiler_static='-non_shared'
  7088. ;;
  7089. xl* | bgxl* | bgf* | mpixl*)
  7090. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7091. lt_prog_compiler_wl='-Wl,'
  7092. lt_prog_compiler_pic='-qpic'
  7093. lt_prog_compiler_static='-qstaticlink'
  7094. ;;
  7095. *)
  7096. case `$CC -V 2>&1 | sed 5q` in
  7097. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7098. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7099. lt_prog_compiler_pic='-KPIC'
  7100. lt_prog_compiler_static='-Bstatic'
  7101. lt_prog_compiler_wl=''
  7102. ;;
  7103. *Sun\ F* | *Sun*Fortran*)
  7104. lt_prog_compiler_pic='-KPIC'
  7105. lt_prog_compiler_static='-Bstatic'
  7106. lt_prog_compiler_wl='-Qoption ld '
  7107. ;;
  7108. *Sun\ C*)
  7109. # Sun C 5.9
  7110. lt_prog_compiler_pic='-KPIC'
  7111. lt_prog_compiler_static='-Bstatic'
  7112. lt_prog_compiler_wl='-Wl,'
  7113. ;;
  7114. *Intel*\ [CF]*Compiler*)
  7115. lt_prog_compiler_wl='-Wl,'
  7116. lt_prog_compiler_pic='-fPIC'
  7117. lt_prog_compiler_static='-static'
  7118. ;;
  7119. *Portland\ Group*)
  7120. lt_prog_compiler_wl='-Wl,'
  7121. lt_prog_compiler_pic='-fpic'
  7122. lt_prog_compiler_static='-Bstatic'
  7123. ;;
  7124. esac
  7125. ;;
  7126. esac
  7127. ;;
  7128. newsos6)
  7129. lt_prog_compiler_pic='-KPIC'
  7130. lt_prog_compiler_static='-Bstatic'
  7131. ;;
  7132. *nto* | *qnx*)
  7133. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7134. # it will coredump.
  7135. lt_prog_compiler_pic='-fPIC -shared'
  7136. ;;
  7137. osf3* | osf4* | osf5*)
  7138. lt_prog_compiler_wl='-Wl,'
  7139. # All OSF/1 code is PIC.
  7140. lt_prog_compiler_static='-non_shared'
  7141. ;;
  7142. rdos*)
  7143. lt_prog_compiler_static='-non_shared'
  7144. ;;
  7145. solaris*)
  7146. lt_prog_compiler_pic='-KPIC'
  7147. lt_prog_compiler_static='-Bstatic'
  7148. case $cc_basename in
  7149. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7150. lt_prog_compiler_wl='-Qoption ld ';;
  7151. *)
  7152. lt_prog_compiler_wl='-Wl,';;
  7153. esac
  7154. ;;
  7155. sunos4*)
  7156. lt_prog_compiler_wl='-Qoption ld '
  7157. lt_prog_compiler_pic='-PIC'
  7158. lt_prog_compiler_static='-Bstatic'
  7159. ;;
  7160. sysv4 | sysv4.2uw2* | sysv4.3*)
  7161. lt_prog_compiler_wl='-Wl,'
  7162. lt_prog_compiler_pic='-KPIC'
  7163. lt_prog_compiler_static='-Bstatic'
  7164. ;;
  7165. sysv4*MP*)
  7166. if test -d /usr/nec ;then
  7167. lt_prog_compiler_pic='-Kconform_pic'
  7168. lt_prog_compiler_static='-Bstatic'
  7169. fi
  7170. ;;
  7171. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7172. lt_prog_compiler_wl='-Wl,'
  7173. lt_prog_compiler_pic='-KPIC'
  7174. lt_prog_compiler_static='-Bstatic'
  7175. ;;
  7176. unicos*)
  7177. lt_prog_compiler_wl='-Wl,'
  7178. lt_prog_compiler_can_build_shared=no
  7179. ;;
  7180. uts4*)
  7181. lt_prog_compiler_pic='-pic'
  7182. lt_prog_compiler_static='-Bstatic'
  7183. ;;
  7184. *)
  7185. lt_prog_compiler_can_build_shared=no
  7186. ;;
  7187. esac
  7188. fi
  7189. case $host_os in
  7190. # For platforms which do not support PIC, -DPIC is meaningless:
  7191. *djgpp*)
  7192. lt_prog_compiler_pic=
  7193. ;;
  7194. *)
  7195. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7196. ;;
  7197. esac
  7198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7199. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7200. if ${lt_cv_prog_compiler_pic+:} false; then :
  7201. $as_echo_n "(cached) " >&6
  7202. else
  7203. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7204. fi
  7205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7206. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7207. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7208. #
  7209. # Check to make sure the PIC flag actually works.
  7210. #
  7211. if test -n "$lt_prog_compiler_pic"; then
  7212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7213. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7214. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7215. $as_echo_n "(cached) " >&6
  7216. else
  7217. lt_cv_prog_compiler_pic_works=no
  7218. ac_outfile=conftest.$ac_objext
  7219. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7220. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7221. # Insert the option either (1) after the last *FLAGS variable, or
  7222. # (2) before a word containing "conftest.", or (3) at the end.
  7223. # Note that $ac_compile itself does not contain backslashes and begins
  7224. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7225. # The option is referenced via a variable to avoid confusing sed.
  7226. lt_compile=`echo "$ac_compile" | $SED \
  7227. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7228. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7229. -e 's:$: $lt_compiler_flag:'`
  7230. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7231. (eval "$lt_compile" 2>conftest.err)
  7232. ac_status=$?
  7233. cat conftest.err >&5
  7234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7235. if (exit $ac_status) && test -s "$ac_outfile"; then
  7236. # The compiler can only warn and ignore the option if not recognized
  7237. # So say no if there are warnings other than the usual output.
  7238. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7239. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7240. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7241. lt_cv_prog_compiler_pic_works=yes
  7242. fi
  7243. fi
  7244. $RM conftest*
  7245. fi
  7246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7247. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7248. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7249. case $lt_prog_compiler_pic in
  7250. "" | " "*) ;;
  7251. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7252. esac
  7253. else
  7254. lt_prog_compiler_pic=
  7255. lt_prog_compiler_can_build_shared=no
  7256. fi
  7257. fi
  7258. #
  7259. # Check to make sure the static flag actually works.
  7260. #
  7261. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7263. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7264. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7265. $as_echo_n "(cached) " >&6
  7266. else
  7267. lt_cv_prog_compiler_static_works=no
  7268. save_LDFLAGS="$LDFLAGS"
  7269. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7270. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7271. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7272. # The linker can only warn and ignore the option if not recognized
  7273. # So say no if there are warnings
  7274. if test -s conftest.err; then
  7275. # Append any errors to the config.log.
  7276. cat conftest.err 1>&5
  7277. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7278. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7279. if diff conftest.exp conftest.er2 >/dev/null; then
  7280. lt_cv_prog_compiler_static_works=yes
  7281. fi
  7282. else
  7283. lt_cv_prog_compiler_static_works=yes
  7284. fi
  7285. fi
  7286. $RM -r conftest*
  7287. LDFLAGS="$save_LDFLAGS"
  7288. fi
  7289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7290. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7291. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7292. :
  7293. else
  7294. lt_prog_compiler_static=
  7295. fi
  7296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7297. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7298. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7299. $as_echo_n "(cached) " >&6
  7300. else
  7301. lt_cv_prog_compiler_c_o=no
  7302. $RM -r conftest 2>/dev/null
  7303. mkdir conftest
  7304. cd conftest
  7305. mkdir out
  7306. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7307. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7308. # Insert the option either (1) after the last *FLAGS variable, or
  7309. # (2) before a word containing "conftest.", or (3) at the end.
  7310. # Note that $ac_compile itself does not contain backslashes and begins
  7311. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7312. lt_compile=`echo "$ac_compile" | $SED \
  7313. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7314. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7315. -e 's:$: $lt_compiler_flag:'`
  7316. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7317. (eval "$lt_compile" 2>out/conftest.err)
  7318. ac_status=$?
  7319. cat out/conftest.err >&5
  7320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7321. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7322. then
  7323. # The compiler can only warn and ignore the option if not recognized
  7324. # So say no if there are warnings
  7325. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7326. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7327. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7328. lt_cv_prog_compiler_c_o=yes
  7329. fi
  7330. fi
  7331. chmod u+w . 2>&5
  7332. $RM conftest*
  7333. # SGI C++ compiler will create directory out/ii_files/ for
  7334. # template instantiation
  7335. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7336. $RM out/* && rmdir out
  7337. cd ..
  7338. $RM -r conftest
  7339. $RM conftest*
  7340. fi
  7341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7342. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7344. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7345. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7346. $as_echo_n "(cached) " >&6
  7347. else
  7348. lt_cv_prog_compiler_c_o=no
  7349. $RM -r conftest 2>/dev/null
  7350. mkdir conftest
  7351. cd conftest
  7352. mkdir out
  7353. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7354. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7355. # Insert the option either (1) after the last *FLAGS variable, or
  7356. # (2) before a word containing "conftest.", or (3) at the end.
  7357. # Note that $ac_compile itself does not contain backslashes and begins
  7358. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7359. lt_compile=`echo "$ac_compile" | $SED \
  7360. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7361. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7362. -e 's:$: $lt_compiler_flag:'`
  7363. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7364. (eval "$lt_compile" 2>out/conftest.err)
  7365. ac_status=$?
  7366. cat out/conftest.err >&5
  7367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7368. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7369. then
  7370. # The compiler can only warn and ignore the option if not recognized
  7371. # So say no if there are warnings
  7372. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7373. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7374. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7375. lt_cv_prog_compiler_c_o=yes
  7376. fi
  7377. fi
  7378. chmod u+w . 2>&5
  7379. $RM conftest*
  7380. # SGI C++ compiler will create directory out/ii_files/ for
  7381. # template instantiation
  7382. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7383. $RM out/* && rmdir out
  7384. cd ..
  7385. $RM -r conftest
  7386. $RM conftest*
  7387. fi
  7388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7389. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7390. hard_links="nottested"
  7391. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7392. # do not overwrite the value of need_locks provided by the user
  7393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7394. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7395. hard_links=yes
  7396. $RM conftest*
  7397. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7398. touch conftest.a
  7399. ln conftest.a conftest.b 2>&5 || hard_links=no
  7400. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7402. $as_echo "$hard_links" >&6; }
  7403. if test "$hard_links" = no; then
  7404. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7405. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7406. need_locks=warn
  7407. fi
  7408. else
  7409. need_locks=no
  7410. fi
  7411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7412. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7413. runpath_var=
  7414. allow_undefined_flag=
  7415. always_export_symbols=no
  7416. archive_cmds=
  7417. archive_expsym_cmds=
  7418. compiler_needs_object=no
  7419. enable_shared_with_static_runtimes=no
  7420. export_dynamic_flag_spec=
  7421. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7422. hardcode_automatic=no
  7423. hardcode_direct=no
  7424. hardcode_direct_absolute=no
  7425. hardcode_libdir_flag_spec=
  7426. hardcode_libdir_separator=
  7427. hardcode_minus_L=no
  7428. hardcode_shlibpath_var=unsupported
  7429. inherit_rpath=no
  7430. link_all_deplibs=unknown
  7431. module_cmds=
  7432. module_expsym_cmds=
  7433. old_archive_from_new_cmds=
  7434. old_archive_from_expsyms_cmds=
  7435. thread_safe_flag_spec=
  7436. whole_archive_flag_spec=
  7437. # include_expsyms should be a list of space-separated symbols to be *always*
  7438. # included in the symbol list
  7439. include_expsyms=
  7440. # exclude_expsyms can be an extended regexp of symbols to exclude
  7441. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7442. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7443. # as well as any symbol that contains `d'.
  7444. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7445. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7446. # platforms (ab)use it in PIC code, but their linkers get confused if
  7447. # the symbol is explicitly referenced. Since portable code cannot
  7448. # rely on this symbol name, it's probably fine to never include it in
  7449. # preloaded symbol tables.
  7450. # Exclude shared library initialization/finalization symbols.
  7451. extract_expsyms_cmds=
  7452. case $host_os in
  7453. cygwin* | mingw* | pw32* | cegcc*)
  7454. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7455. # When not using gcc, we currently assume that we are using
  7456. # Microsoft Visual C++.
  7457. if test "$GCC" != yes; then
  7458. with_gnu_ld=no
  7459. fi
  7460. ;;
  7461. interix*)
  7462. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7463. with_gnu_ld=yes
  7464. ;;
  7465. openbsd*)
  7466. with_gnu_ld=no
  7467. ;;
  7468. esac
  7469. ld_shlibs=yes
  7470. # On some targets, GNU ld is compatible enough with the native linker
  7471. # that we're better off using the native interface for both.
  7472. lt_use_gnu_ld_interface=no
  7473. if test "$with_gnu_ld" = yes; then
  7474. case $host_os in
  7475. aix*)
  7476. # The AIX port of GNU ld has always aspired to compatibility
  7477. # with the native linker. However, as the warning in the GNU ld
  7478. # block says, versions before 2.19.5* couldn't really create working
  7479. # shared libraries, regardless of the interface used.
  7480. case `$LD -v 2>&1` in
  7481. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7482. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7483. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7484. *)
  7485. lt_use_gnu_ld_interface=yes
  7486. ;;
  7487. esac
  7488. ;;
  7489. *)
  7490. lt_use_gnu_ld_interface=yes
  7491. ;;
  7492. esac
  7493. fi
  7494. if test "$lt_use_gnu_ld_interface" = yes; then
  7495. # If archive_cmds runs LD, not CC, wlarc should be empty
  7496. wlarc='${wl}'
  7497. # Set some defaults for GNU ld with shared library support. These
  7498. # are reset later if shared libraries are not supported. Putting them
  7499. # here allows them to be overridden if necessary.
  7500. runpath_var=LD_RUN_PATH
  7501. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7502. export_dynamic_flag_spec='${wl}--export-dynamic'
  7503. # ancient GNU ld didn't support --whole-archive et. al.
  7504. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7505. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7506. else
  7507. whole_archive_flag_spec=
  7508. fi
  7509. supports_anon_versioning=no
  7510. case `$LD -v 2>&1` in
  7511. *GNU\ gold*) supports_anon_versioning=yes ;;
  7512. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7513. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7514. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7515. *\ 2.11.*) ;; # other 2.11 versions
  7516. *) supports_anon_versioning=yes ;;
  7517. esac
  7518. # See if GNU ld supports shared libraries.
  7519. case $host_os in
  7520. aix[3-9]*)
  7521. # On AIX/PPC, the GNU linker is very broken
  7522. if test "$host_cpu" != ia64; then
  7523. ld_shlibs=no
  7524. cat <<_LT_EOF 1>&2
  7525. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7526. *** to be unable to reliably create shared libraries on AIX.
  7527. *** Therefore, libtool is disabling shared libraries support. If you
  7528. *** really care for shared libraries, you may want to install binutils
  7529. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7530. *** You will then need to restart the configuration process.
  7531. _LT_EOF
  7532. fi
  7533. ;;
  7534. amigaos*)
  7535. case $host_cpu in
  7536. powerpc)
  7537. # see comment about AmigaOS4 .so support
  7538. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7539. archive_expsym_cmds=''
  7540. ;;
  7541. m68k)
  7542. 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)'
  7543. hardcode_libdir_flag_spec='-L$libdir'
  7544. hardcode_minus_L=yes
  7545. ;;
  7546. esac
  7547. ;;
  7548. beos*)
  7549. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7550. allow_undefined_flag=unsupported
  7551. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7552. # support --undefined. This deserves some investigation. FIXME
  7553. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7554. else
  7555. ld_shlibs=no
  7556. fi
  7557. ;;
  7558. cygwin* | mingw* | pw32* | cegcc*)
  7559. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7560. # as there is no search path for DLLs.
  7561. hardcode_libdir_flag_spec='-L$libdir'
  7562. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7563. allow_undefined_flag=unsupported
  7564. always_export_symbols=no
  7565. enable_shared_with_static_runtimes=yes
  7566. 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'
  7567. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7568. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7569. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7570. # If the export-symbols file already is a .def file (1st line
  7571. # is EXPORTS), use it as is; otherwise, prepend...
  7572. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7573. cp $export_symbols $output_objdir/$soname.def;
  7574. else
  7575. echo EXPORTS > $output_objdir/$soname.def;
  7576. cat $export_symbols >> $output_objdir/$soname.def;
  7577. fi~
  7578. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7579. else
  7580. ld_shlibs=no
  7581. fi
  7582. ;;
  7583. haiku*)
  7584. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7585. link_all_deplibs=yes
  7586. ;;
  7587. interix[3-9]*)
  7588. hardcode_direct=no
  7589. hardcode_shlibpath_var=no
  7590. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7591. export_dynamic_flag_spec='${wl}-E'
  7592. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7593. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7594. # default) and relocated if they conflict, which is a slow very memory
  7595. # consuming and fragmenting process. To avoid this, we pick a random,
  7596. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7597. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7598. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7599. 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'
  7600. ;;
  7601. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7602. tmp_diet=no
  7603. if test "$host_os" = linux-dietlibc; then
  7604. case $cc_basename in
  7605. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7606. esac
  7607. fi
  7608. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7609. && test "$tmp_diet" = no
  7610. then
  7611. tmp_addflag=' $pic_flag'
  7612. tmp_sharedflag='-shared'
  7613. case $cc_basename,$host_cpu in
  7614. pgcc*) # Portland Group C compiler
  7615. 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'
  7616. tmp_addflag=' $pic_flag'
  7617. ;;
  7618. pgf77* | pgf90* | pgf95* | pgfortran*)
  7619. # Portland Group f77 and f90 compilers
  7620. 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'
  7621. tmp_addflag=' $pic_flag -Mnomain' ;;
  7622. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7623. tmp_addflag=' -i_dynamic' ;;
  7624. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7625. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7626. ifc* | ifort*) # Intel Fortran compiler
  7627. tmp_addflag=' -nofor_main' ;;
  7628. lf95*) # Lahey Fortran 8.1
  7629. whole_archive_flag_spec=
  7630. tmp_sharedflag='--shared' ;;
  7631. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7632. tmp_sharedflag='-qmkshrobj'
  7633. tmp_addflag= ;;
  7634. nvcc*) # Cuda Compiler Driver 2.2
  7635. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7636. compiler_needs_object=yes
  7637. ;;
  7638. esac
  7639. case `$CC -V 2>&1 | sed 5q` in
  7640. *Sun\ C*) # Sun C 5.9
  7641. 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'
  7642. compiler_needs_object=yes
  7643. tmp_sharedflag='-G' ;;
  7644. *Sun\ F*) # Sun Fortran 8.3
  7645. tmp_sharedflag='-G' ;;
  7646. esac
  7647. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7648. if test "x$supports_anon_versioning" = xyes; then
  7649. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7650. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7651. echo "local: *; };" >> $output_objdir/$libname.ver~
  7652. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7653. fi
  7654. case $cc_basename in
  7655. xlf* | bgf* | bgxlf* | mpixlf*)
  7656. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7657. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7658. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7659. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7660. if test "x$supports_anon_versioning" = xyes; then
  7661. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7662. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7663. echo "local: *; };" >> $output_objdir/$libname.ver~
  7664. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7665. fi
  7666. ;;
  7667. esac
  7668. else
  7669. ld_shlibs=no
  7670. fi
  7671. ;;
  7672. netbsd*)
  7673. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7674. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7675. wlarc=
  7676. else
  7677. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7678. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7679. fi
  7680. ;;
  7681. solaris*)
  7682. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7683. ld_shlibs=no
  7684. cat <<_LT_EOF 1>&2
  7685. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7686. *** create shared libraries on Solaris systems. Therefore, libtool
  7687. *** is disabling shared libraries support. We urge you to upgrade GNU
  7688. *** binutils to release 2.9.1 or newer. Another option is to modify
  7689. *** your PATH or compiler configuration so that the native linker is
  7690. *** used, and then restart.
  7691. _LT_EOF
  7692. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7693. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7694. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7695. else
  7696. ld_shlibs=no
  7697. fi
  7698. ;;
  7699. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7700. case `$LD -v 2>&1` in
  7701. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7702. ld_shlibs=no
  7703. cat <<_LT_EOF 1>&2
  7704. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7705. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7706. *** is disabling shared libraries support. We urge you to upgrade GNU
  7707. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7708. *** your PATH or compiler configuration so that the native linker is
  7709. *** used, and then restart.
  7710. _LT_EOF
  7711. ;;
  7712. *)
  7713. # For security reasons, it is highly recommended that you always
  7714. # use absolute paths for naming shared libraries, and exclude the
  7715. # DT_RUNPATH tag from executables and libraries. But doing so
  7716. # requires that you compile everything twice, which is a pain.
  7717. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7718. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7719. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7720. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7721. else
  7722. ld_shlibs=no
  7723. fi
  7724. ;;
  7725. esac
  7726. ;;
  7727. sunos4*)
  7728. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7729. wlarc=
  7730. hardcode_direct=yes
  7731. hardcode_shlibpath_var=no
  7732. ;;
  7733. *)
  7734. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7735. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7736. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7737. else
  7738. ld_shlibs=no
  7739. fi
  7740. ;;
  7741. esac
  7742. if test "$ld_shlibs" = no; then
  7743. runpath_var=
  7744. hardcode_libdir_flag_spec=
  7745. export_dynamic_flag_spec=
  7746. whole_archive_flag_spec=
  7747. fi
  7748. else
  7749. # PORTME fill in a description of your system's linker (not GNU ld)
  7750. case $host_os in
  7751. aix3*)
  7752. allow_undefined_flag=unsupported
  7753. always_export_symbols=yes
  7754. 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'
  7755. # Note: this linker hardcodes the directories in LIBPATH if there
  7756. # are no directories specified by -L.
  7757. hardcode_minus_L=yes
  7758. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7759. # Neither direct hardcoding nor static linking is supported with a
  7760. # broken collect2.
  7761. hardcode_direct=unsupported
  7762. fi
  7763. ;;
  7764. aix[4-9]*)
  7765. if test "$host_cpu" = ia64; then
  7766. # On IA64, the linker does run time linking by default, so we don't
  7767. # have to do anything special.
  7768. aix_use_runtimelinking=no
  7769. exp_sym_flag='-Bexport'
  7770. no_entry_flag=""
  7771. else
  7772. # If we're using GNU nm, then we don't want the "-C" option.
  7773. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7774. # Also, AIX nm treats weak defined symbols like other global
  7775. # defined symbols, whereas GNU nm marks them as "W".
  7776. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7777. 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'
  7778. else
  7779. 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'
  7780. fi
  7781. aix_use_runtimelinking=no
  7782. # Test if we are trying to use run time linking or normal
  7783. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7784. # need to do runtime linking.
  7785. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7786. for ld_flag in $LDFLAGS; do
  7787. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7788. aix_use_runtimelinking=yes
  7789. break
  7790. fi
  7791. done
  7792. ;;
  7793. esac
  7794. exp_sym_flag='-bexport'
  7795. no_entry_flag='-bnoentry'
  7796. fi
  7797. # When large executables or shared objects are built, AIX ld can
  7798. # have problems creating the table of contents. If linking a library
  7799. # or program results in "error TOC overflow" add -mminimal-toc to
  7800. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7801. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7802. archive_cmds=''
  7803. hardcode_direct=yes
  7804. hardcode_direct_absolute=yes
  7805. hardcode_libdir_separator=':'
  7806. link_all_deplibs=yes
  7807. file_list_spec='${wl}-f,'
  7808. if test "$GCC" = yes; then
  7809. case $host_os in aix4.[012]|aix4.[012].*)
  7810. # We only want to do this on AIX 4.2 and lower, the check
  7811. # below for broken collect2 doesn't work under 4.3+
  7812. collect2name=`${CC} -print-prog-name=collect2`
  7813. if test -f "$collect2name" &&
  7814. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7815. then
  7816. # We have reworked collect2
  7817. :
  7818. else
  7819. # We have old collect2
  7820. hardcode_direct=unsupported
  7821. # It fails to find uninstalled libraries when the uninstalled
  7822. # path is not listed in the libpath. Setting hardcode_minus_L
  7823. # to unsupported forces relinking
  7824. hardcode_minus_L=yes
  7825. hardcode_libdir_flag_spec='-L$libdir'
  7826. hardcode_libdir_separator=
  7827. fi
  7828. ;;
  7829. esac
  7830. shared_flag='-shared'
  7831. if test "$aix_use_runtimelinking" = yes; then
  7832. shared_flag="$shared_flag "'${wl}-G'
  7833. fi
  7834. else
  7835. # not using gcc
  7836. if test "$host_cpu" = ia64; then
  7837. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7838. # chokes on -Wl,-G. The following line is correct:
  7839. shared_flag='-G'
  7840. else
  7841. if test "$aix_use_runtimelinking" = yes; then
  7842. shared_flag='${wl}-G'
  7843. else
  7844. shared_flag='${wl}-bM:SRE'
  7845. fi
  7846. fi
  7847. fi
  7848. export_dynamic_flag_spec='${wl}-bexpall'
  7849. # It seems that -bexpall does not export symbols beginning with
  7850. # underscore (_), so it is better to generate a list of symbols to export.
  7851. always_export_symbols=yes
  7852. if test "$aix_use_runtimelinking" = yes; then
  7853. # Warning - without using the other runtime loading flags (-brtl),
  7854. # -berok will link without error, but may produce a broken library.
  7855. allow_undefined_flag='-berok'
  7856. # Determine the default libpath from the value encoded in an
  7857. # empty executable.
  7858. if test "${lt_cv_aix_libpath+set}" = set; then
  7859. aix_libpath=$lt_cv_aix_libpath
  7860. else
  7861. if ${lt_cv_aix_libpath_+:} false; then :
  7862. $as_echo_n "(cached) " >&6
  7863. else
  7864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7865. /* end confdefs.h. */
  7866. int
  7867. main ()
  7868. {
  7869. ;
  7870. return 0;
  7871. }
  7872. _ACEOF
  7873. if ac_fn_c_try_link "$LINENO"; then :
  7874. lt_aix_libpath_sed='
  7875. /Import File Strings/,/^$/ {
  7876. /^0/ {
  7877. s/^0 *\([^ ]*\) *$/\1/
  7878. p
  7879. }
  7880. }'
  7881. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7882. # Check for a 64-bit object if we didn't find anything.
  7883. if test -z "$lt_cv_aix_libpath_"; then
  7884. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7885. fi
  7886. fi
  7887. rm -f core conftest.err conftest.$ac_objext \
  7888. conftest$ac_exeext conftest.$ac_ext
  7889. if test -z "$lt_cv_aix_libpath_"; then
  7890. lt_cv_aix_libpath_="/usr/lib:/lib"
  7891. fi
  7892. fi
  7893. aix_libpath=$lt_cv_aix_libpath_
  7894. fi
  7895. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7896. 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"
  7897. else
  7898. if test "$host_cpu" = ia64; then
  7899. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7900. allow_undefined_flag="-z nodefs"
  7901. 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"
  7902. else
  7903. # Determine the default libpath from the value encoded in an
  7904. # empty executable.
  7905. if test "${lt_cv_aix_libpath+set}" = set; then
  7906. aix_libpath=$lt_cv_aix_libpath
  7907. else
  7908. if ${lt_cv_aix_libpath_+:} false; then :
  7909. $as_echo_n "(cached) " >&6
  7910. else
  7911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7912. /* end confdefs.h. */
  7913. int
  7914. main ()
  7915. {
  7916. ;
  7917. return 0;
  7918. }
  7919. _ACEOF
  7920. if ac_fn_c_try_link "$LINENO"; then :
  7921. lt_aix_libpath_sed='
  7922. /Import File Strings/,/^$/ {
  7923. /^0/ {
  7924. s/^0 *\([^ ]*\) *$/\1/
  7925. p
  7926. }
  7927. }'
  7928. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7929. # Check for a 64-bit object if we didn't find anything.
  7930. if test -z "$lt_cv_aix_libpath_"; then
  7931. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7932. fi
  7933. fi
  7934. rm -f core conftest.err conftest.$ac_objext \
  7935. conftest$ac_exeext conftest.$ac_ext
  7936. if test -z "$lt_cv_aix_libpath_"; then
  7937. lt_cv_aix_libpath_="/usr/lib:/lib"
  7938. fi
  7939. fi
  7940. aix_libpath=$lt_cv_aix_libpath_
  7941. fi
  7942. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7943. # Warning - without using the other run time loading flags,
  7944. # -berok will link without error, but may produce a broken library.
  7945. no_undefined_flag=' ${wl}-bernotok'
  7946. allow_undefined_flag=' ${wl}-berok'
  7947. if test "$with_gnu_ld" = yes; then
  7948. # We only use this code for GNU lds that support --whole-archive.
  7949. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7950. else
  7951. # Exported symbols can be pulled into shared objects from archives
  7952. whole_archive_flag_spec='$convenience'
  7953. fi
  7954. archive_cmds_need_lc=yes
  7955. # This is similar to how AIX traditionally builds its shared libraries.
  7956. 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'
  7957. fi
  7958. fi
  7959. ;;
  7960. amigaos*)
  7961. case $host_cpu in
  7962. powerpc)
  7963. # see comment about AmigaOS4 .so support
  7964. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7965. archive_expsym_cmds=''
  7966. ;;
  7967. m68k)
  7968. 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)'
  7969. hardcode_libdir_flag_spec='-L$libdir'
  7970. hardcode_minus_L=yes
  7971. ;;
  7972. esac
  7973. ;;
  7974. bsdi[45]*)
  7975. export_dynamic_flag_spec=-rdynamic
  7976. ;;
  7977. cygwin* | mingw* | pw32* | cegcc*)
  7978. # When not using gcc, we currently assume that we are using
  7979. # Microsoft Visual C++.
  7980. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7981. # no search path for DLLs.
  7982. case $cc_basename in
  7983. cl*)
  7984. # Native MSVC
  7985. hardcode_libdir_flag_spec=' '
  7986. allow_undefined_flag=unsupported
  7987. always_export_symbols=yes
  7988. file_list_spec='@'
  7989. # Tell ltmain to make .lib files, not .a files.
  7990. libext=lib
  7991. # Tell ltmain to make .dll files, not .so files.
  7992. shrext_cmds=".dll"
  7993. # FIXME: Setting linknames here is a bad hack.
  7994. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7995. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7996. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7997. else
  7998. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7999. fi~
  8000. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8001. linknames='
  8002. # The linker will not automatically build a static lib if we build a DLL.
  8003. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8004. enable_shared_with_static_runtimes=yes
  8005. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8006. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8007. # Don't use ranlib
  8008. old_postinstall_cmds='chmod 644 $oldlib'
  8009. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8010. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8011. case $lt_outputfile in
  8012. *.exe|*.EXE) ;;
  8013. *)
  8014. lt_outputfile="$lt_outputfile.exe"
  8015. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8016. ;;
  8017. esac~
  8018. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8019. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8020. $RM "$lt_outputfile.manifest";
  8021. fi'
  8022. ;;
  8023. *)
  8024. # Assume MSVC wrapper
  8025. hardcode_libdir_flag_spec=' '
  8026. allow_undefined_flag=unsupported
  8027. # Tell ltmain to make .lib files, not .a files.
  8028. libext=lib
  8029. # Tell ltmain to make .dll files, not .so files.
  8030. shrext_cmds=".dll"
  8031. # FIXME: Setting linknames here is a bad hack.
  8032. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8033. # The linker will automatically build a .lib file if we build a DLL.
  8034. old_archive_from_new_cmds='true'
  8035. # FIXME: Should let the user specify the lib program.
  8036. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8037. enable_shared_with_static_runtimes=yes
  8038. ;;
  8039. esac
  8040. ;;
  8041. darwin* | rhapsody*)
  8042. archive_cmds_need_lc=no
  8043. hardcode_direct=no
  8044. hardcode_automatic=yes
  8045. hardcode_shlibpath_var=unsupported
  8046. if test "$lt_cv_ld_force_load" = "yes"; then
  8047. 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\"`'
  8048. else
  8049. whole_archive_flag_spec=''
  8050. fi
  8051. link_all_deplibs=yes
  8052. allow_undefined_flag="$_lt_dar_allow_undefined"
  8053. case $cc_basename in
  8054. ifort*) _lt_dar_can_shared=yes ;;
  8055. *) _lt_dar_can_shared=$GCC ;;
  8056. esac
  8057. if test "$_lt_dar_can_shared" = "yes"; then
  8058. output_verbose_link_cmd=func_echo_all
  8059. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8060. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8061. 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}"
  8062. 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}"
  8063. else
  8064. ld_shlibs=no
  8065. fi
  8066. ;;
  8067. dgux*)
  8068. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8069. hardcode_libdir_flag_spec='-L$libdir'
  8070. hardcode_shlibpath_var=no
  8071. ;;
  8072. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8073. # support. Future versions do this automatically, but an explicit c++rt0.o
  8074. # does not break anything, and helps significantly (at the cost of a little
  8075. # extra space).
  8076. freebsd2.2*)
  8077. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8078. hardcode_libdir_flag_spec='-R$libdir'
  8079. hardcode_direct=yes
  8080. hardcode_shlibpath_var=no
  8081. ;;
  8082. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8083. freebsd2.*)
  8084. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8085. hardcode_direct=yes
  8086. hardcode_minus_L=yes
  8087. hardcode_shlibpath_var=no
  8088. ;;
  8089. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8090. freebsd* | dragonfly*)
  8091. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8092. hardcode_libdir_flag_spec='-R$libdir'
  8093. hardcode_direct=yes
  8094. hardcode_shlibpath_var=no
  8095. ;;
  8096. hpux9*)
  8097. if test "$GCC" = yes; then
  8098. 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'
  8099. else
  8100. 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'
  8101. fi
  8102. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8103. hardcode_libdir_separator=:
  8104. hardcode_direct=yes
  8105. # hardcode_minus_L: Not really in the search PATH,
  8106. # but as the default location of the library.
  8107. hardcode_minus_L=yes
  8108. export_dynamic_flag_spec='${wl}-E'
  8109. ;;
  8110. hpux10*)
  8111. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8112. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8113. else
  8114. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8115. fi
  8116. if test "$with_gnu_ld" = no; then
  8117. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8118. hardcode_libdir_separator=:
  8119. hardcode_direct=yes
  8120. hardcode_direct_absolute=yes
  8121. export_dynamic_flag_spec='${wl}-E'
  8122. # hardcode_minus_L: Not really in the search PATH,
  8123. # but as the default location of the library.
  8124. hardcode_minus_L=yes
  8125. fi
  8126. ;;
  8127. hpux11*)
  8128. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8129. case $host_cpu in
  8130. hppa*64*)
  8131. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8132. ;;
  8133. ia64*)
  8134. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8135. ;;
  8136. *)
  8137. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8138. ;;
  8139. esac
  8140. else
  8141. case $host_cpu in
  8142. hppa*64*)
  8143. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8144. ;;
  8145. ia64*)
  8146. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8147. ;;
  8148. *)
  8149. # Older versions of the 11.00 compiler do not understand -b yet
  8150. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8152. $as_echo_n "checking if $CC understands -b... " >&6; }
  8153. if ${lt_cv_prog_compiler__b+:} false; then :
  8154. $as_echo_n "(cached) " >&6
  8155. else
  8156. lt_cv_prog_compiler__b=no
  8157. save_LDFLAGS="$LDFLAGS"
  8158. LDFLAGS="$LDFLAGS -b"
  8159. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8160. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8161. # The linker can only warn and ignore the option if not recognized
  8162. # So say no if there are warnings
  8163. if test -s conftest.err; then
  8164. # Append any errors to the config.log.
  8165. cat conftest.err 1>&5
  8166. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8167. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8168. if diff conftest.exp conftest.er2 >/dev/null; then
  8169. lt_cv_prog_compiler__b=yes
  8170. fi
  8171. else
  8172. lt_cv_prog_compiler__b=yes
  8173. fi
  8174. fi
  8175. $RM -r conftest*
  8176. LDFLAGS="$save_LDFLAGS"
  8177. fi
  8178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8179. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8180. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8181. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8182. else
  8183. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8184. fi
  8185. ;;
  8186. esac
  8187. fi
  8188. if test "$with_gnu_ld" = no; then
  8189. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8190. hardcode_libdir_separator=:
  8191. case $host_cpu in
  8192. hppa*64*|ia64*)
  8193. hardcode_direct=no
  8194. hardcode_shlibpath_var=no
  8195. ;;
  8196. *)
  8197. hardcode_direct=yes
  8198. hardcode_direct_absolute=yes
  8199. export_dynamic_flag_spec='${wl}-E'
  8200. # hardcode_minus_L: Not really in the search PATH,
  8201. # but as the default location of the library.
  8202. hardcode_minus_L=yes
  8203. ;;
  8204. esac
  8205. fi
  8206. ;;
  8207. irix5* | irix6* | nonstopux*)
  8208. if test "$GCC" = yes; then
  8209. 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'
  8210. # Try to use the -exported_symbol ld option, if it does not
  8211. # work, assume that -exports_file does not work either and
  8212. # implicitly export all symbols.
  8213. # This should be the same for all languages, so no per-tag cache variable.
  8214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8215. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8216. if ${lt_cv_irix_exported_symbol+:} false; then :
  8217. $as_echo_n "(cached) " >&6
  8218. else
  8219. save_LDFLAGS="$LDFLAGS"
  8220. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8222. /* end confdefs.h. */
  8223. int foo (void) { return 0; }
  8224. _ACEOF
  8225. if ac_fn_c_try_link "$LINENO"; then :
  8226. lt_cv_irix_exported_symbol=yes
  8227. else
  8228. lt_cv_irix_exported_symbol=no
  8229. fi
  8230. rm -f core conftest.err conftest.$ac_objext \
  8231. conftest$ac_exeext conftest.$ac_ext
  8232. LDFLAGS="$save_LDFLAGS"
  8233. fi
  8234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8235. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8236. if test "$lt_cv_irix_exported_symbol" = yes; then
  8237. 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'
  8238. fi
  8239. else
  8240. 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'
  8241. 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'
  8242. fi
  8243. archive_cmds_need_lc='no'
  8244. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8245. hardcode_libdir_separator=:
  8246. inherit_rpath=yes
  8247. link_all_deplibs=yes
  8248. ;;
  8249. netbsd*)
  8250. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8251. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8252. else
  8253. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8254. fi
  8255. hardcode_libdir_flag_spec='-R$libdir'
  8256. hardcode_direct=yes
  8257. hardcode_shlibpath_var=no
  8258. ;;
  8259. newsos6)
  8260. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8261. hardcode_direct=yes
  8262. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8263. hardcode_libdir_separator=:
  8264. hardcode_shlibpath_var=no
  8265. ;;
  8266. *nto* | *qnx*)
  8267. ;;
  8268. openbsd*)
  8269. if test -f /usr/libexec/ld.so; then
  8270. hardcode_direct=yes
  8271. hardcode_shlibpath_var=no
  8272. hardcode_direct_absolute=yes
  8273. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8274. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8275. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8276. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8277. export_dynamic_flag_spec='${wl}-E'
  8278. else
  8279. case $host_os in
  8280. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8281. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8282. hardcode_libdir_flag_spec='-R$libdir'
  8283. ;;
  8284. *)
  8285. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8286. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8287. ;;
  8288. esac
  8289. fi
  8290. else
  8291. ld_shlibs=no
  8292. fi
  8293. ;;
  8294. os2*)
  8295. hardcode_libdir_flag_spec='-L$libdir'
  8296. hardcode_minus_L=yes
  8297. allow_undefined_flag=unsupported
  8298. 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'
  8299. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8300. ;;
  8301. osf3*)
  8302. if test "$GCC" = yes; then
  8303. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8304. 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'
  8305. else
  8306. allow_undefined_flag=' -expect_unresolved \*'
  8307. 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'
  8308. fi
  8309. archive_cmds_need_lc='no'
  8310. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8311. hardcode_libdir_separator=:
  8312. ;;
  8313. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8314. if test "$GCC" = yes; then
  8315. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8316. 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'
  8317. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8318. else
  8319. allow_undefined_flag=' -expect_unresolved \*'
  8320. 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'
  8321. 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~
  8322. $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'
  8323. # Both c and cxx compiler support -rpath directly
  8324. hardcode_libdir_flag_spec='-rpath $libdir'
  8325. fi
  8326. archive_cmds_need_lc='no'
  8327. hardcode_libdir_separator=:
  8328. ;;
  8329. solaris*)
  8330. no_undefined_flag=' -z defs'
  8331. if test "$GCC" = yes; then
  8332. wlarc='${wl}'
  8333. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8334. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8335. $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'
  8336. else
  8337. case `$CC -V 2>&1` in
  8338. *"Compilers 5.0"*)
  8339. wlarc=''
  8340. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8341. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8342. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8343. ;;
  8344. *)
  8345. wlarc='${wl}'
  8346. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8347. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8348. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8349. ;;
  8350. esac
  8351. fi
  8352. hardcode_libdir_flag_spec='-R$libdir'
  8353. hardcode_shlibpath_var=no
  8354. case $host_os in
  8355. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8356. *)
  8357. # The compiler driver will combine and reorder linker options,
  8358. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8359. # but is careful enough not to reorder.
  8360. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8361. if test "$GCC" = yes; then
  8362. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8363. else
  8364. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8365. fi
  8366. ;;
  8367. esac
  8368. link_all_deplibs=yes
  8369. ;;
  8370. sunos4*)
  8371. if test "x$host_vendor" = xsequent; then
  8372. # Use $CC to link under sequent, because it throws in some extra .o
  8373. # files that make .init and .fini sections work.
  8374. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8375. else
  8376. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8377. fi
  8378. hardcode_libdir_flag_spec='-L$libdir'
  8379. hardcode_direct=yes
  8380. hardcode_minus_L=yes
  8381. hardcode_shlibpath_var=no
  8382. ;;
  8383. sysv4)
  8384. case $host_vendor in
  8385. sni)
  8386. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8387. hardcode_direct=yes # is this really true???
  8388. ;;
  8389. siemens)
  8390. ## LD is ld it makes a PLAMLIB
  8391. ## CC just makes a GrossModule.
  8392. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8393. reload_cmds='$CC -r -o $output$reload_objs'
  8394. hardcode_direct=no
  8395. ;;
  8396. motorola)
  8397. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8398. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8399. ;;
  8400. esac
  8401. runpath_var='LD_RUN_PATH'
  8402. hardcode_shlibpath_var=no
  8403. ;;
  8404. sysv4.3*)
  8405. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8406. hardcode_shlibpath_var=no
  8407. export_dynamic_flag_spec='-Bexport'
  8408. ;;
  8409. sysv4*MP*)
  8410. if test -d /usr/nec; then
  8411. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8412. hardcode_shlibpath_var=no
  8413. runpath_var=LD_RUN_PATH
  8414. hardcode_runpath_var=yes
  8415. ld_shlibs=yes
  8416. fi
  8417. ;;
  8418. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8419. no_undefined_flag='${wl}-z,text'
  8420. archive_cmds_need_lc=no
  8421. hardcode_shlibpath_var=no
  8422. runpath_var='LD_RUN_PATH'
  8423. if test "$GCC" = yes; then
  8424. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8425. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8426. else
  8427. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8428. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8429. fi
  8430. ;;
  8431. sysv5* | sco3.2v5* | sco5v6*)
  8432. # Note: We can NOT use -z defs as we might desire, because we do not
  8433. # link with -lc, and that would cause any symbols used from libc to
  8434. # always be unresolved, which means just about no library would
  8435. # ever link correctly. If we're not using GNU ld we use -z text
  8436. # though, which does catch some bad symbols but isn't as heavy-handed
  8437. # as -z defs.
  8438. no_undefined_flag='${wl}-z,text'
  8439. allow_undefined_flag='${wl}-z,nodefs'
  8440. archive_cmds_need_lc=no
  8441. hardcode_shlibpath_var=no
  8442. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8443. hardcode_libdir_separator=':'
  8444. link_all_deplibs=yes
  8445. export_dynamic_flag_spec='${wl}-Bexport'
  8446. runpath_var='LD_RUN_PATH'
  8447. if test "$GCC" = yes; then
  8448. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8449. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8450. else
  8451. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8452. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8453. fi
  8454. ;;
  8455. uts4*)
  8456. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8457. hardcode_libdir_flag_spec='-L$libdir'
  8458. hardcode_shlibpath_var=no
  8459. ;;
  8460. *)
  8461. ld_shlibs=no
  8462. ;;
  8463. esac
  8464. if test x$host_vendor = xsni; then
  8465. case $host in
  8466. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8467. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8468. ;;
  8469. esac
  8470. fi
  8471. fi
  8472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8473. $as_echo "$ld_shlibs" >&6; }
  8474. test "$ld_shlibs" = no && can_build_shared=no
  8475. with_gnu_ld=$with_gnu_ld
  8476. #
  8477. # Do we need to explicitly link libc?
  8478. #
  8479. case "x$archive_cmds_need_lc" in
  8480. x|xyes)
  8481. # Assume -lc should be added
  8482. archive_cmds_need_lc=yes
  8483. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8484. case $archive_cmds in
  8485. *'~'*)
  8486. # FIXME: we may have to deal with multi-command sequences.
  8487. ;;
  8488. '$CC '*)
  8489. # Test whether the compiler implicitly links with -lc since on some
  8490. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8491. # to ld, don't add -lc before -lgcc.
  8492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8493. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8494. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8495. $as_echo_n "(cached) " >&6
  8496. else
  8497. $RM conftest*
  8498. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8499. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8500. (eval $ac_compile) 2>&5
  8501. ac_status=$?
  8502. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8503. test $ac_status = 0; } 2>conftest.err; then
  8504. soname=conftest
  8505. lib=conftest
  8506. libobjs=conftest.$ac_objext
  8507. deplibs=
  8508. wl=$lt_prog_compiler_wl
  8509. pic_flag=$lt_prog_compiler_pic
  8510. compiler_flags=-v
  8511. linker_flags=-v
  8512. verstring=
  8513. output_objdir=.
  8514. libname=conftest
  8515. lt_save_allow_undefined_flag=$allow_undefined_flag
  8516. allow_undefined_flag=
  8517. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8518. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8519. ac_status=$?
  8520. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8521. test $ac_status = 0; }
  8522. then
  8523. lt_cv_archive_cmds_need_lc=no
  8524. else
  8525. lt_cv_archive_cmds_need_lc=yes
  8526. fi
  8527. allow_undefined_flag=$lt_save_allow_undefined_flag
  8528. else
  8529. cat conftest.err 1>&5
  8530. fi
  8531. $RM conftest*
  8532. fi
  8533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8534. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8535. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8536. ;;
  8537. esac
  8538. fi
  8539. ;;
  8540. esac
  8541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8542. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8543. if test "$GCC" = yes; then
  8544. case $host_os in
  8545. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8546. *) lt_awk_arg="/^libraries:/" ;;
  8547. esac
  8548. case $host_os in
  8549. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8550. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8551. esac
  8552. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8553. case $lt_search_path_spec in
  8554. *\;*)
  8555. # if the path contains ";" then we assume it to be the separator
  8556. # otherwise default to the standard path separator (i.e. ":") - it is
  8557. # assumed that no part of a normal pathname contains ";" but that should
  8558. # okay in the real world where ";" in dirpaths is itself problematic.
  8559. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8560. ;;
  8561. *)
  8562. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8563. ;;
  8564. esac
  8565. # Ok, now we have the path, separated by spaces, we can step through it
  8566. # and add multilib dir if necessary...
  8567. lt_tmp_lt_search_path_spec=
  8568. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8569. # ...but if some path already ends with the multilib dir we assume
  8570. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8571. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8572. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8573. lt_multi_os_dir=
  8574. ;;
  8575. esac
  8576. for lt_sys_path in $lt_search_path_spec; do
  8577. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8578. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8579. elif test -n "$lt_multi_os_dir"; then
  8580. test -d "$lt_sys_path" && \
  8581. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8582. fi
  8583. done
  8584. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8585. BEGIN {RS=" "; FS="/|\n";} {
  8586. lt_foo="";
  8587. lt_count=0;
  8588. for (lt_i = NF; lt_i > 0; lt_i--) {
  8589. if ($lt_i != "" && $lt_i != ".") {
  8590. if ($lt_i == "..") {
  8591. lt_count++;
  8592. } else {
  8593. if (lt_count == 0) {
  8594. lt_foo="/" $lt_i lt_foo;
  8595. } else {
  8596. lt_count--;
  8597. }
  8598. }
  8599. }
  8600. }
  8601. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8602. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8603. }'`
  8604. # AWK program above erroneously prepends '/' to C:/dos/paths
  8605. # for these hosts.
  8606. case $host_os in
  8607. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8608. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8609. esac
  8610. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8611. else
  8612. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8613. fi
  8614. library_names_spec=
  8615. libname_spec='lib$name'
  8616. soname_spec=
  8617. shrext_cmds=".so"
  8618. postinstall_cmds=
  8619. postuninstall_cmds=
  8620. finish_cmds=
  8621. finish_eval=
  8622. shlibpath_var=
  8623. shlibpath_overrides_runpath=unknown
  8624. version_type=none
  8625. dynamic_linker="$host_os ld.so"
  8626. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8627. need_lib_prefix=unknown
  8628. hardcode_into_libs=no
  8629. # when you set need_version to no, make sure it does not cause -set_version
  8630. # flags to be left without arguments
  8631. need_version=unknown
  8632. case $host_os in
  8633. aix3*)
  8634. version_type=linux # correct to gnu/linux during the next big refactor
  8635. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8636. shlibpath_var=LIBPATH
  8637. # AIX 3 has no versioning support, so we append a major version to the name.
  8638. soname_spec='${libname}${release}${shared_ext}$major'
  8639. ;;
  8640. aix[4-9]*)
  8641. version_type=linux # correct to gnu/linux during the next big refactor
  8642. need_lib_prefix=no
  8643. need_version=no
  8644. hardcode_into_libs=yes
  8645. if test "$host_cpu" = ia64; then
  8646. # AIX 5 supports IA64
  8647. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8648. shlibpath_var=LD_LIBRARY_PATH
  8649. else
  8650. # With GCC up to 2.95.x, collect2 would create an import file
  8651. # for dependence libraries. The import file would start with
  8652. # the line `#! .'. This would cause the generated library to
  8653. # depend on `.', always an invalid library. This was fixed in
  8654. # development snapshots of GCC prior to 3.0.
  8655. case $host_os in
  8656. aix4 | aix4.[01] | aix4.[01].*)
  8657. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8658. echo ' yes '
  8659. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8660. :
  8661. else
  8662. can_build_shared=no
  8663. fi
  8664. ;;
  8665. esac
  8666. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8667. # soname into executable. Probably we can add versioning support to
  8668. # collect2, so additional links can be useful in future.
  8669. if test "$aix_use_runtimelinking" = yes; then
  8670. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8671. # instead of lib<name>.a to let people know that these are not
  8672. # typical AIX shared libraries.
  8673. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8674. else
  8675. # We preserve .a as extension for shared libraries through AIX4.2
  8676. # and later when we are not doing run time linking.
  8677. library_names_spec='${libname}${release}.a $libname.a'
  8678. soname_spec='${libname}${release}${shared_ext}$major'
  8679. fi
  8680. shlibpath_var=LIBPATH
  8681. fi
  8682. ;;
  8683. amigaos*)
  8684. case $host_cpu in
  8685. powerpc)
  8686. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8687. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8688. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8689. ;;
  8690. m68k)
  8691. library_names_spec='$libname.ixlibrary $libname.a'
  8692. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8693. 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'
  8694. ;;
  8695. esac
  8696. ;;
  8697. beos*)
  8698. library_names_spec='${libname}${shared_ext}'
  8699. dynamic_linker="$host_os ld.so"
  8700. shlibpath_var=LIBRARY_PATH
  8701. ;;
  8702. bsdi[45]*)
  8703. version_type=linux # correct to gnu/linux during the next big refactor
  8704. need_version=no
  8705. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8706. soname_spec='${libname}${release}${shared_ext}$major'
  8707. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8708. shlibpath_var=LD_LIBRARY_PATH
  8709. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8710. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8711. # the default ld.so.conf also contains /usr/contrib/lib and
  8712. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8713. # libtool to hard-code these into programs
  8714. ;;
  8715. cygwin* | mingw* | pw32* | cegcc*)
  8716. version_type=windows
  8717. shrext_cmds=".dll"
  8718. need_version=no
  8719. need_lib_prefix=no
  8720. case $GCC,$cc_basename in
  8721. yes,*)
  8722. # gcc
  8723. library_names_spec='$libname.dll.a'
  8724. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8725. postinstall_cmds='base_file=`basename \${file}`~
  8726. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8727. dldir=$destdir/`dirname \$dlpath`~
  8728. test -d \$dldir || mkdir -p \$dldir~
  8729. $install_prog $dir/$dlname \$dldir/$dlname~
  8730. chmod a+x \$dldir/$dlname~
  8731. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8732. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8733. fi'
  8734. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8735. dlpath=$dir/\$dldll~
  8736. $RM \$dlpath'
  8737. shlibpath_overrides_runpath=yes
  8738. case $host_os in
  8739. cygwin*)
  8740. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8741. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8742. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8743. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8744. ;;
  8745. mingw* | cegcc*)
  8746. # MinGW DLLs use traditional 'lib' prefix
  8747. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8748. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8749. ;;
  8750. pw32*)
  8751. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8752. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8753. ;;
  8754. esac
  8755. dynamic_linker='Win32 ld.exe'
  8756. ;;
  8757. *,cl*)
  8758. # Native MSVC
  8759. libname_spec='$name'
  8760. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8761. library_names_spec='${libname}.dll.lib'
  8762. case $build_os in
  8763. mingw*)
  8764. sys_lib_search_path_spec=
  8765. lt_save_ifs=$IFS
  8766. IFS=';'
  8767. for lt_path in $LIB
  8768. do
  8769. IFS=$lt_save_ifs
  8770. # Let DOS variable expansion print the short 8.3 style file name.
  8771. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8772. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8773. done
  8774. IFS=$lt_save_ifs
  8775. # Convert to MSYS style.
  8776. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8777. ;;
  8778. cygwin*)
  8779. # Convert to unix form, then to dos form, then back to unix form
  8780. # but this time dos style (no spaces!) so that the unix form looks
  8781. # like /cygdrive/c/PROGRA~1:/cygdr...
  8782. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8783. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8784. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8785. ;;
  8786. *)
  8787. sys_lib_search_path_spec="$LIB"
  8788. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8789. # It is most probably a Windows format PATH.
  8790. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8791. else
  8792. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8793. fi
  8794. # FIXME: find the short name or the path components, as spaces are
  8795. # common. (e.g. "Program Files" -> "PROGRA~1")
  8796. ;;
  8797. esac
  8798. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8799. postinstall_cmds='base_file=`basename \${file}`~
  8800. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8801. dldir=$destdir/`dirname \$dlpath`~
  8802. test -d \$dldir || mkdir -p \$dldir~
  8803. $install_prog $dir/$dlname \$dldir/$dlname'
  8804. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8805. dlpath=$dir/\$dldll~
  8806. $RM \$dlpath'
  8807. shlibpath_overrides_runpath=yes
  8808. dynamic_linker='Win32 link.exe'
  8809. ;;
  8810. *)
  8811. # Assume MSVC wrapper
  8812. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8813. dynamic_linker='Win32 ld.exe'
  8814. ;;
  8815. esac
  8816. # FIXME: first we should search . and the directory the executable is in
  8817. shlibpath_var=PATH
  8818. ;;
  8819. darwin* | rhapsody*)
  8820. dynamic_linker="$host_os dyld"
  8821. version_type=darwin
  8822. need_lib_prefix=no
  8823. need_version=no
  8824. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8825. soname_spec='${libname}${release}${major}$shared_ext'
  8826. shlibpath_overrides_runpath=yes
  8827. shlibpath_var=DYLD_LIBRARY_PATH
  8828. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8829. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8830. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8831. ;;
  8832. dgux*)
  8833. version_type=linux # correct to gnu/linux during the next big refactor
  8834. need_lib_prefix=no
  8835. need_version=no
  8836. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8837. soname_spec='${libname}${release}${shared_ext}$major'
  8838. shlibpath_var=LD_LIBRARY_PATH
  8839. ;;
  8840. freebsd* | dragonfly*)
  8841. # DragonFly does not have aout. When/if they implement a new
  8842. # versioning mechanism, adjust this.
  8843. if test -x /usr/bin/objformat; then
  8844. objformat=`/usr/bin/objformat`
  8845. else
  8846. case $host_os in
  8847. freebsd[23].*) objformat=aout ;;
  8848. *) objformat=elf ;;
  8849. esac
  8850. fi
  8851. version_type=freebsd-$objformat
  8852. case $version_type in
  8853. freebsd-elf*)
  8854. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8855. need_version=no
  8856. need_lib_prefix=no
  8857. ;;
  8858. freebsd-*)
  8859. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8860. need_version=yes
  8861. ;;
  8862. esac
  8863. shlibpath_var=LD_LIBRARY_PATH
  8864. case $host_os in
  8865. freebsd2.*)
  8866. shlibpath_overrides_runpath=yes
  8867. ;;
  8868. freebsd3.[01]* | freebsdelf3.[01]*)
  8869. shlibpath_overrides_runpath=yes
  8870. hardcode_into_libs=yes
  8871. ;;
  8872. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8873. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8874. shlibpath_overrides_runpath=no
  8875. hardcode_into_libs=yes
  8876. ;;
  8877. *) # from 4.6 on, and DragonFly
  8878. shlibpath_overrides_runpath=yes
  8879. hardcode_into_libs=yes
  8880. ;;
  8881. esac
  8882. ;;
  8883. gnu*)
  8884. version_type=linux # correct to gnu/linux during the next big refactor
  8885. need_lib_prefix=no
  8886. need_version=no
  8887. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8888. soname_spec='${libname}${release}${shared_ext}$major'
  8889. shlibpath_var=LD_LIBRARY_PATH
  8890. shlibpath_overrides_runpath=no
  8891. hardcode_into_libs=yes
  8892. ;;
  8893. haiku*)
  8894. version_type=linux # correct to gnu/linux during the next big refactor
  8895. need_lib_prefix=no
  8896. need_version=no
  8897. dynamic_linker="$host_os runtime_loader"
  8898. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8899. soname_spec='${libname}${release}${shared_ext}$major'
  8900. shlibpath_var=LIBRARY_PATH
  8901. shlibpath_overrides_runpath=yes
  8902. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8903. hardcode_into_libs=yes
  8904. ;;
  8905. hpux9* | hpux10* | hpux11*)
  8906. # Give a soname corresponding to the major version so that dld.sl refuses to
  8907. # link against other versions.
  8908. version_type=sunos
  8909. need_lib_prefix=no
  8910. need_version=no
  8911. case $host_cpu in
  8912. ia64*)
  8913. shrext_cmds='.so'
  8914. hardcode_into_libs=yes
  8915. dynamic_linker="$host_os dld.so"
  8916. shlibpath_var=LD_LIBRARY_PATH
  8917. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8918. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8919. soname_spec='${libname}${release}${shared_ext}$major'
  8920. if test "X$HPUX_IA64_MODE" = X32; then
  8921. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8922. else
  8923. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8924. fi
  8925. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8926. ;;
  8927. hppa*64*)
  8928. shrext_cmds='.sl'
  8929. hardcode_into_libs=yes
  8930. dynamic_linker="$host_os dld.sl"
  8931. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8932. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8933. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8934. soname_spec='${libname}${release}${shared_ext}$major'
  8935. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8936. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8937. ;;
  8938. *)
  8939. shrext_cmds='.sl'
  8940. dynamic_linker="$host_os dld.sl"
  8941. shlibpath_var=SHLIB_PATH
  8942. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8943. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8944. soname_spec='${libname}${release}${shared_ext}$major'
  8945. ;;
  8946. esac
  8947. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8948. postinstall_cmds='chmod 555 $lib'
  8949. # or fails outright, so override atomically:
  8950. install_override_mode=555
  8951. ;;
  8952. interix[3-9]*)
  8953. version_type=linux # correct to gnu/linux during the next big refactor
  8954. need_lib_prefix=no
  8955. need_version=no
  8956. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8957. soname_spec='${libname}${release}${shared_ext}$major'
  8958. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8959. shlibpath_var=LD_LIBRARY_PATH
  8960. shlibpath_overrides_runpath=no
  8961. hardcode_into_libs=yes
  8962. ;;
  8963. irix5* | irix6* | nonstopux*)
  8964. case $host_os in
  8965. nonstopux*) version_type=nonstopux ;;
  8966. *)
  8967. if test "$lt_cv_prog_gnu_ld" = yes; then
  8968. version_type=linux # correct to gnu/linux during the next big refactor
  8969. else
  8970. version_type=irix
  8971. fi ;;
  8972. esac
  8973. need_lib_prefix=no
  8974. need_version=no
  8975. soname_spec='${libname}${release}${shared_ext}$major'
  8976. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8977. case $host_os in
  8978. irix5* | nonstopux*)
  8979. libsuff= shlibsuff=
  8980. ;;
  8981. *)
  8982. case $LD in # libtool.m4 will add one of these switches to LD
  8983. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8984. libsuff= shlibsuff= libmagic=32-bit;;
  8985. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8986. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8987. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8988. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8989. *) libsuff= shlibsuff= libmagic=never-match;;
  8990. esac
  8991. ;;
  8992. esac
  8993. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8994. shlibpath_overrides_runpath=no
  8995. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8996. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8997. hardcode_into_libs=yes
  8998. ;;
  8999. # No shared lib support for Linux oldld, aout, or coff.
  9000. linux*oldld* | linux*aout* | linux*coff*)
  9001. dynamic_linker=no
  9002. ;;
  9003. # This must be glibc/ELF.
  9004. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9005. version_type=linux # correct to gnu/linux during the next big refactor
  9006. need_lib_prefix=no
  9007. need_version=no
  9008. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9009. soname_spec='${libname}${release}${shared_ext}$major'
  9010. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9011. shlibpath_var=LD_LIBRARY_PATH
  9012. shlibpath_overrides_runpath=no
  9013. # Some binutils ld are patched to set DT_RUNPATH
  9014. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9015. $as_echo_n "(cached) " >&6
  9016. else
  9017. lt_cv_shlibpath_overrides_runpath=no
  9018. save_LDFLAGS=$LDFLAGS
  9019. save_libdir=$libdir
  9020. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9021. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9023. /* end confdefs.h. */
  9024. int
  9025. main ()
  9026. {
  9027. ;
  9028. return 0;
  9029. }
  9030. _ACEOF
  9031. if ac_fn_c_try_link "$LINENO"; then :
  9032. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9033. lt_cv_shlibpath_overrides_runpath=yes
  9034. fi
  9035. fi
  9036. rm -f core conftest.err conftest.$ac_objext \
  9037. conftest$ac_exeext conftest.$ac_ext
  9038. LDFLAGS=$save_LDFLAGS
  9039. libdir=$save_libdir
  9040. fi
  9041. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9042. # This implies no fast_install, which is unacceptable.
  9043. # Some rework will be needed to allow for fast_install
  9044. # before this can be enabled.
  9045. hardcode_into_libs=yes
  9046. # Append ld.so.conf contents to the search path
  9047. if test -f /etc/ld.so.conf; then
  9048. 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' ' '`
  9049. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9050. fi
  9051. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9052. # powerpc, because MkLinux only supported shared libraries with the
  9053. # GNU dynamic linker. Since this was broken with cross compilers,
  9054. # most powerpc-linux boxes support dynamic linking these days and
  9055. # people can always --disable-shared, the test was removed, and we
  9056. # assume the GNU/Linux dynamic linker is in use.
  9057. dynamic_linker='GNU/Linux ld.so'
  9058. ;;
  9059. netbsd*)
  9060. version_type=sunos
  9061. need_lib_prefix=no
  9062. need_version=no
  9063. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9065. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9066. dynamic_linker='NetBSD (a.out) ld.so'
  9067. else
  9068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9069. soname_spec='${libname}${release}${shared_ext}$major'
  9070. dynamic_linker='NetBSD ld.elf_so'
  9071. fi
  9072. shlibpath_var=LD_LIBRARY_PATH
  9073. shlibpath_overrides_runpath=yes
  9074. hardcode_into_libs=yes
  9075. ;;
  9076. newsos6)
  9077. version_type=linux # correct to gnu/linux during the next big refactor
  9078. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9079. shlibpath_var=LD_LIBRARY_PATH
  9080. shlibpath_overrides_runpath=yes
  9081. ;;
  9082. *nto* | *qnx*)
  9083. version_type=qnx
  9084. need_lib_prefix=no
  9085. need_version=no
  9086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9087. soname_spec='${libname}${release}${shared_ext}$major'
  9088. shlibpath_var=LD_LIBRARY_PATH
  9089. shlibpath_overrides_runpath=no
  9090. hardcode_into_libs=yes
  9091. dynamic_linker='ldqnx.so'
  9092. ;;
  9093. openbsd*)
  9094. version_type=sunos
  9095. sys_lib_dlsearch_path_spec="/usr/lib"
  9096. need_lib_prefix=no
  9097. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9098. case $host_os in
  9099. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9100. *) need_version=no ;;
  9101. esac
  9102. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9103. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9104. shlibpath_var=LD_LIBRARY_PATH
  9105. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9106. case $host_os in
  9107. openbsd2.[89] | openbsd2.[89].*)
  9108. shlibpath_overrides_runpath=no
  9109. ;;
  9110. *)
  9111. shlibpath_overrides_runpath=yes
  9112. ;;
  9113. esac
  9114. else
  9115. shlibpath_overrides_runpath=yes
  9116. fi
  9117. ;;
  9118. os2*)
  9119. libname_spec='$name'
  9120. shrext_cmds=".dll"
  9121. need_lib_prefix=no
  9122. library_names_spec='$libname${shared_ext} $libname.a'
  9123. dynamic_linker='OS/2 ld.exe'
  9124. shlibpath_var=LIBPATH
  9125. ;;
  9126. osf3* | osf4* | osf5*)
  9127. version_type=osf
  9128. need_lib_prefix=no
  9129. need_version=no
  9130. soname_spec='${libname}${release}${shared_ext}$major'
  9131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9132. shlibpath_var=LD_LIBRARY_PATH
  9133. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9134. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9135. ;;
  9136. rdos*)
  9137. dynamic_linker=no
  9138. ;;
  9139. solaris*)
  9140. version_type=linux # correct to gnu/linux during the next big refactor
  9141. need_lib_prefix=no
  9142. need_version=no
  9143. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9144. soname_spec='${libname}${release}${shared_ext}$major'
  9145. shlibpath_var=LD_LIBRARY_PATH
  9146. shlibpath_overrides_runpath=yes
  9147. hardcode_into_libs=yes
  9148. # ldd complains unless libraries are executable
  9149. postinstall_cmds='chmod +x $lib'
  9150. ;;
  9151. sunos4*)
  9152. version_type=sunos
  9153. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9154. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9155. shlibpath_var=LD_LIBRARY_PATH
  9156. shlibpath_overrides_runpath=yes
  9157. if test "$with_gnu_ld" = yes; then
  9158. need_lib_prefix=no
  9159. fi
  9160. need_version=yes
  9161. ;;
  9162. sysv4 | sysv4.3*)
  9163. version_type=linux # correct to gnu/linux during the next big refactor
  9164. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9165. soname_spec='${libname}${release}${shared_ext}$major'
  9166. shlibpath_var=LD_LIBRARY_PATH
  9167. case $host_vendor in
  9168. sni)
  9169. shlibpath_overrides_runpath=no
  9170. need_lib_prefix=no
  9171. runpath_var=LD_RUN_PATH
  9172. ;;
  9173. siemens)
  9174. need_lib_prefix=no
  9175. ;;
  9176. motorola)
  9177. need_lib_prefix=no
  9178. need_version=no
  9179. shlibpath_overrides_runpath=no
  9180. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9181. ;;
  9182. esac
  9183. ;;
  9184. sysv4*MP*)
  9185. if test -d /usr/nec ;then
  9186. version_type=linux # correct to gnu/linux during the next big refactor
  9187. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9188. soname_spec='$libname${shared_ext}.$major'
  9189. shlibpath_var=LD_LIBRARY_PATH
  9190. fi
  9191. ;;
  9192. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9193. version_type=freebsd-elf
  9194. need_lib_prefix=no
  9195. need_version=no
  9196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9197. soname_spec='${libname}${release}${shared_ext}$major'
  9198. shlibpath_var=LD_LIBRARY_PATH
  9199. shlibpath_overrides_runpath=yes
  9200. hardcode_into_libs=yes
  9201. if test "$with_gnu_ld" = yes; then
  9202. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9203. else
  9204. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9205. case $host_os in
  9206. sco3.2v5*)
  9207. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9208. ;;
  9209. esac
  9210. fi
  9211. sys_lib_dlsearch_path_spec='/usr/lib'
  9212. ;;
  9213. tpf*)
  9214. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9215. version_type=linux # correct to gnu/linux during the next big refactor
  9216. need_lib_prefix=no
  9217. need_version=no
  9218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9219. shlibpath_var=LD_LIBRARY_PATH
  9220. shlibpath_overrides_runpath=no
  9221. hardcode_into_libs=yes
  9222. ;;
  9223. uts4*)
  9224. version_type=linux # correct to gnu/linux during the next big refactor
  9225. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9226. soname_spec='${libname}${release}${shared_ext}$major'
  9227. shlibpath_var=LD_LIBRARY_PATH
  9228. ;;
  9229. *)
  9230. dynamic_linker=no
  9231. ;;
  9232. esac
  9233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9234. $as_echo "$dynamic_linker" >&6; }
  9235. test "$dynamic_linker" = no && can_build_shared=no
  9236. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9237. if test "$GCC" = yes; then
  9238. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9239. fi
  9240. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9241. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9242. fi
  9243. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9244. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9245. fi
  9246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9247. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9248. hardcode_action=
  9249. if test -n "$hardcode_libdir_flag_spec" ||
  9250. test -n "$runpath_var" ||
  9251. test "X$hardcode_automatic" = "Xyes" ; then
  9252. # We can hardcode non-existent directories.
  9253. if test "$hardcode_direct" != no &&
  9254. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9255. # have to relink, otherwise we might link with an installed library
  9256. # when we should be linking with a yet-to-be-installed one
  9257. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9258. test "$hardcode_minus_L" != no; then
  9259. # Linking always hardcodes the temporary library directory.
  9260. hardcode_action=relink
  9261. else
  9262. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9263. hardcode_action=immediate
  9264. fi
  9265. else
  9266. # We cannot hardcode anything, or else we can only hardcode existing
  9267. # directories.
  9268. hardcode_action=unsupported
  9269. fi
  9270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9271. $as_echo "$hardcode_action" >&6; }
  9272. if test "$hardcode_action" = relink ||
  9273. test "$inherit_rpath" = yes; then
  9274. # Fast installation is not supported
  9275. enable_fast_install=no
  9276. elif test "$shlibpath_overrides_runpath" = yes ||
  9277. test "$enable_shared" = no; then
  9278. # Fast installation is not necessary
  9279. enable_fast_install=needless
  9280. fi
  9281. if test "x$enable_dlopen" != xyes; then
  9282. enable_dlopen=unknown
  9283. enable_dlopen_self=unknown
  9284. enable_dlopen_self_static=unknown
  9285. else
  9286. lt_cv_dlopen=no
  9287. lt_cv_dlopen_libs=
  9288. case $host_os in
  9289. beos*)
  9290. lt_cv_dlopen="load_add_on"
  9291. lt_cv_dlopen_libs=
  9292. lt_cv_dlopen_self=yes
  9293. ;;
  9294. mingw* | pw32* | cegcc*)
  9295. lt_cv_dlopen="LoadLibrary"
  9296. lt_cv_dlopen_libs=
  9297. ;;
  9298. cygwin*)
  9299. lt_cv_dlopen="dlopen"
  9300. lt_cv_dlopen_libs=
  9301. ;;
  9302. darwin*)
  9303. # if libdl is installed we need to link against it
  9304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9305. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9306. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9307. $as_echo_n "(cached) " >&6
  9308. else
  9309. ac_check_lib_save_LIBS=$LIBS
  9310. LIBS="-ldl $LIBS"
  9311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9312. /* end confdefs.h. */
  9313. /* Override any GCC internal prototype to avoid an error.
  9314. Use char because int might match the return type of a GCC
  9315. builtin and then its argument prototype would still apply. */
  9316. #ifdef __cplusplus
  9317. extern "C"
  9318. #endif
  9319. char dlopen ();
  9320. int
  9321. main ()
  9322. {
  9323. return dlopen ();
  9324. ;
  9325. return 0;
  9326. }
  9327. _ACEOF
  9328. if ac_fn_c_try_link "$LINENO"; then :
  9329. ac_cv_lib_dl_dlopen=yes
  9330. else
  9331. ac_cv_lib_dl_dlopen=no
  9332. fi
  9333. rm -f core conftest.err conftest.$ac_objext \
  9334. conftest$ac_exeext conftest.$ac_ext
  9335. LIBS=$ac_check_lib_save_LIBS
  9336. fi
  9337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9338. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9339. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9340. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9341. else
  9342. lt_cv_dlopen="dyld"
  9343. lt_cv_dlopen_libs=
  9344. lt_cv_dlopen_self=yes
  9345. fi
  9346. ;;
  9347. *)
  9348. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9349. if test "x$ac_cv_func_shl_load" = xyes; then :
  9350. lt_cv_dlopen="shl_load"
  9351. else
  9352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9353. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9354. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9355. $as_echo_n "(cached) " >&6
  9356. else
  9357. ac_check_lib_save_LIBS=$LIBS
  9358. LIBS="-ldld $LIBS"
  9359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9360. /* end confdefs.h. */
  9361. /* Override any GCC internal prototype to avoid an error.
  9362. Use char because int might match the return type of a GCC
  9363. builtin and then its argument prototype would still apply. */
  9364. #ifdef __cplusplus
  9365. extern "C"
  9366. #endif
  9367. char shl_load ();
  9368. int
  9369. main ()
  9370. {
  9371. return shl_load ();
  9372. ;
  9373. return 0;
  9374. }
  9375. _ACEOF
  9376. if ac_fn_c_try_link "$LINENO"; then :
  9377. ac_cv_lib_dld_shl_load=yes
  9378. else
  9379. ac_cv_lib_dld_shl_load=no
  9380. fi
  9381. rm -f core conftest.err conftest.$ac_objext \
  9382. conftest$ac_exeext conftest.$ac_ext
  9383. LIBS=$ac_check_lib_save_LIBS
  9384. fi
  9385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9386. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9387. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9388. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9389. else
  9390. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9391. if test "x$ac_cv_func_dlopen" = xyes; then :
  9392. lt_cv_dlopen="dlopen"
  9393. else
  9394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9395. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9396. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9397. $as_echo_n "(cached) " >&6
  9398. else
  9399. ac_check_lib_save_LIBS=$LIBS
  9400. LIBS="-ldl $LIBS"
  9401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9402. /* end confdefs.h. */
  9403. /* Override any GCC internal prototype to avoid an error.
  9404. Use char because int might match the return type of a GCC
  9405. builtin and then its argument prototype would still apply. */
  9406. #ifdef __cplusplus
  9407. extern "C"
  9408. #endif
  9409. char dlopen ();
  9410. int
  9411. main ()
  9412. {
  9413. return dlopen ();
  9414. ;
  9415. return 0;
  9416. }
  9417. _ACEOF
  9418. if ac_fn_c_try_link "$LINENO"; then :
  9419. ac_cv_lib_dl_dlopen=yes
  9420. else
  9421. ac_cv_lib_dl_dlopen=no
  9422. fi
  9423. rm -f core conftest.err conftest.$ac_objext \
  9424. conftest$ac_exeext conftest.$ac_ext
  9425. LIBS=$ac_check_lib_save_LIBS
  9426. fi
  9427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9428. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9429. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9430. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9431. else
  9432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9433. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9434. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9435. $as_echo_n "(cached) " >&6
  9436. else
  9437. ac_check_lib_save_LIBS=$LIBS
  9438. LIBS="-lsvld $LIBS"
  9439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9440. /* end confdefs.h. */
  9441. /* Override any GCC internal prototype to avoid an error.
  9442. Use char because int might match the return type of a GCC
  9443. builtin and then its argument prototype would still apply. */
  9444. #ifdef __cplusplus
  9445. extern "C"
  9446. #endif
  9447. char dlopen ();
  9448. int
  9449. main ()
  9450. {
  9451. return dlopen ();
  9452. ;
  9453. return 0;
  9454. }
  9455. _ACEOF
  9456. if ac_fn_c_try_link "$LINENO"; then :
  9457. ac_cv_lib_svld_dlopen=yes
  9458. else
  9459. ac_cv_lib_svld_dlopen=no
  9460. fi
  9461. rm -f core conftest.err conftest.$ac_objext \
  9462. conftest$ac_exeext conftest.$ac_ext
  9463. LIBS=$ac_check_lib_save_LIBS
  9464. fi
  9465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9466. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9467. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9468. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9469. else
  9470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9471. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9472. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9473. $as_echo_n "(cached) " >&6
  9474. else
  9475. ac_check_lib_save_LIBS=$LIBS
  9476. LIBS="-ldld $LIBS"
  9477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9478. /* end confdefs.h. */
  9479. /* Override any GCC internal prototype to avoid an error.
  9480. Use char because int might match the return type of a GCC
  9481. builtin and then its argument prototype would still apply. */
  9482. #ifdef __cplusplus
  9483. extern "C"
  9484. #endif
  9485. char dld_link ();
  9486. int
  9487. main ()
  9488. {
  9489. return dld_link ();
  9490. ;
  9491. return 0;
  9492. }
  9493. _ACEOF
  9494. if ac_fn_c_try_link "$LINENO"; then :
  9495. ac_cv_lib_dld_dld_link=yes
  9496. else
  9497. ac_cv_lib_dld_dld_link=no
  9498. fi
  9499. rm -f core conftest.err conftest.$ac_objext \
  9500. conftest$ac_exeext conftest.$ac_ext
  9501. LIBS=$ac_check_lib_save_LIBS
  9502. fi
  9503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9504. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9505. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9506. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9507. fi
  9508. fi
  9509. fi
  9510. fi
  9511. fi
  9512. fi
  9513. ;;
  9514. esac
  9515. if test "x$lt_cv_dlopen" != xno; then
  9516. enable_dlopen=yes
  9517. else
  9518. enable_dlopen=no
  9519. fi
  9520. case $lt_cv_dlopen in
  9521. dlopen)
  9522. save_CPPFLAGS="$CPPFLAGS"
  9523. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9524. save_LDFLAGS="$LDFLAGS"
  9525. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9526. save_LIBS="$LIBS"
  9527. LIBS="$lt_cv_dlopen_libs $LIBS"
  9528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9529. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9530. if ${lt_cv_dlopen_self+:} false; then :
  9531. $as_echo_n "(cached) " >&6
  9532. else
  9533. if test "$cross_compiling" = yes; then :
  9534. lt_cv_dlopen_self=cross
  9535. else
  9536. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9537. lt_status=$lt_dlunknown
  9538. cat > conftest.$ac_ext <<_LT_EOF
  9539. #line $LINENO "configure"
  9540. #include "confdefs.h"
  9541. #if HAVE_DLFCN_H
  9542. #include <dlfcn.h>
  9543. #endif
  9544. #include <stdio.h>
  9545. #ifdef RTLD_GLOBAL
  9546. # define LT_DLGLOBAL RTLD_GLOBAL
  9547. #else
  9548. # ifdef DL_GLOBAL
  9549. # define LT_DLGLOBAL DL_GLOBAL
  9550. # else
  9551. # define LT_DLGLOBAL 0
  9552. # endif
  9553. #endif
  9554. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9555. find out it does not work in some platform. */
  9556. #ifndef LT_DLLAZY_OR_NOW
  9557. # ifdef RTLD_LAZY
  9558. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9559. # else
  9560. # ifdef DL_LAZY
  9561. # define LT_DLLAZY_OR_NOW DL_LAZY
  9562. # else
  9563. # ifdef RTLD_NOW
  9564. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9565. # else
  9566. # ifdef DL_NOW
  9567. # define LT_DLLAZY_OR_NOW DL_NOW
  9568. # else
  9569. # define LT_DLLAZY_OR_NOW 0
  9570. # endif
  9571. # endif
  9572. # endif
  9573. # endif
  9574. #endif
  9575. /* When -fvisbility=hidden is used, assume the code has been annotated
  9576. correspondingly for the symbols needed. */
  9577. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9578. int fnord () __attribute__((visibility("default")));
  9579. #endif
  9580. int fnord () { return 42; }
  9581. int main ()
  9582. {
  9583. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9584. int status = $lt_dlunknown;
  9585. if (self)
  9586. {
  9587. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9588. else
  9589. {
  9590. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9591. else puts (dlerror ());
  9592. }
  9593. /* dlclose (self); */
  9594. }
  9595. else
  9596. puts (dlerror ());
  9597. return status;
  9598. }
  9599. _LT_EOF
  9600. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9601. (eval $ac_link) 2>&5
  9602. ac_status=$?
  9603. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9604. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9605. (./conftest; exit; ) >&5 2>/dev/null
  9606. lt_status=$?
  9607. case x$lt_status in
  9608. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9609. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9610. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9611. esac
  9612. else :
  9613. # compilation failed
  9614. lt_cv_dlopen_self=no
  9615. fi
  9616. fi
  9617. rm -fr conftest*
  9618. fi
  9619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9620. $as_echo "$lt_cv_dlopen_self" >&6; }
  9621. if test "x$lt_cv_dlopen_self" = xyes; then
  9622. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9624. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9625. if ${lt_cv_dlopen_self_static+:} false; then :
  9626. $as_echo_n "(cached) " >&6
  9627. else
  9628. if test "$cross_compiling" = yes; then :
  9629. lt_cv_dlopen_self_static=cross
  9630. else
  9631. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9632. lt_status=$lt_dlunknown
  9633. cat > conftest.$ac_ext <<_LT_EOF
  9634. #line $LINENO "configure"
  9635. #include "confdefs.h"
  9636. #if HAVE_DLFCN_H
  9637. #include <dlfcn.h>
  9638. #endif
  9639. #include <stdio.h>
  9640. #ifdef RTLD_GLOBAL
  9641. # define LT_DLGLOBAL RTLD_GLOBAL
  9642. #else
  9643. # ifdef DL_GLOBAL
  9644. # define LT_DLGLOBAL DL_GLOBAL
  9645. # else
  9646. # define LT_DLGLOBAL 0
  9647. # endif
  9648. #endif
  9649. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9650. find out it does not work in some platform. */
  9651. #ifndef LT_DLLAZY_OR_NOW
  9652. # ifdef RTLD_LAZY
  9653. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9654. # else
  9655. # ifdef DL_LAZY
  9656. # define LT_DLLAZY_OR_NOW DL_LAZY
  9657. # else
  9658. # ifdef RTLD_NOW
  9659. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9660. # else
  9661. # ifdef DL_NOW
  9662. # define LT_DLLAZY_OR_NOW DL_NOW
  9663. # else
  9664. # define LT_DLLAZY_OR_NOW 0
  9665. # endif
  9666. # endif
  9667. # endif
  9668. # endif
  9669. #endif
  9670. /* When -fvisbility=hidden is used, assume the code has been annotated
  9671. correspondingly for the symbols needed. */
  9672. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9673. int fnord () __attribute__((visibility("default")));
  9674. #endif
  9675. int fnord () { return 42; }
  9676. int main ()
  9677. {
  9678. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9679. int status = $lt_dlunknown;
  9680. if (self)
  9681. {
  9682. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9683. else
  9684. {
  9685. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9686. else puts (dlerror ());
  9687. }
  9688. /* dlclose (self); */
  9689. }
  9690. else
  9691. puts (dlerror ());
  9692. return status;
  9693. }
  9694. _LT_EOF
  9695. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9696. (eval $ac_link) 2>&5
  9697. ac_status=$?
  9698. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9699. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9700. (./conftest; exit; ) >&5 2>/dev/null
  9701. lt_status=$?
  9702. case x$lt_status in
  9703. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9704. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9705. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9706. esac
  9707. else :
  9708. # compilation failed
  9709. lt_cv_dlopen_self_static=no
  9710. fi
  9711. fi
  9712. rm -fr conftest*
  9713. fi
  9714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9715. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9716. fi
  9717. CPPFLAGS="$save_CPPFLAGS"
  9718. LDFLAGS="$save_LDFLAGS"
  9719. LIBS="$save_LIBS"
  9720. ;;
  9721. esac
  9722. case $lt_cv_dlopen_self in
  9723. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9724. *) enable_dlopen_self=unknown ;;
  9725. esac
  9726. case $lt_cv_dlopen_self_static in
  9727. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9728. *) enable_dlopen_self_static=unknown ;;
  9729. esac
  9730. fi
  9731. striplib=
  9732. old_striplib=
  9733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9734. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9735. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9736. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9737. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9739. $as_echo "yes" >&6; }
  9740. else
  9741. # FIXME - insert some real tests, host_os isn't really good enough
  9742. case $host_os in
  9743. darwin*)
  9744. if test -n "$STRIP" ; then
  9745. striplib="$STRIP -x"
  9746. old_striplib="$STRIP -S"
  9747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9748. $as_echo "yes" >&6; }
  9749. else
  9750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9751. $as_echo "no" >&6; }
  9752. fi
  9753. ;;
  9754. *)
  9755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9756. $as_echo "no" >&6; }
  9757. ;;
  9758. esac
  9759. fi
  9760. # Report which library types will actually be built
  9761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9762. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9764. $as_echo "$can_build_shared" >&6; }
  9765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9766. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9767. test "$can_build_shared" = "no" && enable_shared=no
  9768. # On AIX, shared libraries and static libraries use the same namespace, and
  9769. # are all built from PIC.
  9770. case $host_os in
  9771. aix3*)
  9772. test "$enable_shared" = yes && enable_static=no
  9773. if test -n "$RANLIB"; then
  9774. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9775. postinstall_cmds='$RANLIB $lib'
  9776. fi
  9777. ;;
  9778. aix[4-9]*)
  9779. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9780. test "$enable_shared" = yes && enable_static=no
  9781. fi
  9782. ;;
  9783. esac
  9784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9785. $as_echo "$enable_shared" >&6; }
  9786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9787. $as_echo_n "checking whether to build static libraries... " >&6; }
  9788. # Make sure either enable_shared or enable_static is yes.
  9789. test "$enable_shared" = yes || enable_static=yes
  9790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9791. $as_echo "$enable_static" >&6; }
  9792. fi
  9793. ac_ext=c
  9794. ac_cpp='$CPP $CPPFLAGS'
  9795. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9796. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9797. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9798. CC="$lt_save_CC"
  9799. ac_config_commands="$ac_config_commands libtool"
  9800. # Only expand once:
  9801. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9802. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9803. LT_REVISION=$SDL_INTERFACE_AGE
  9804. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9805. ac_ext=c
  9806. ac_cpp='$CPP $CPPFLAGS'
  9807. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9808. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9809. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9810. if test -n "$ac_tool_prefix"; then
  9811. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9812. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9814. $as_echo_n "checking for $ac_word... " >&6; }
  9815. if ${ac_cv_prog_CC+:} false; then :
  9816. $as_echo_n "(cached) " >&6
  9817. else
  9818. if test -n "$CC"; then
  9819. ac_cv_prog_CC="$CC" # Let the user override the test.
  9820. else
  9821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9822. for as_dir in $PATH
  9823. do
  9824. IFS=$as_save_IFS
  9825. test -z "$as_dir" && as_dir=.
  9826. for ac_exec_ext in '' $ac_executable_extensions; do
  9827. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9828. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9830. break 2
  9831. fi
  9832. done
  9833. done
  9834. IFS=$as_save_IFS
  9835. fi
  9836. fi
  9837. CC=$ac_cv_prog_CC
  9838. if test -n "$CC"; then
  9839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9840. $as_echo "$CC" >&6; }
  9841. else
  9842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9843. $as_echo "no" >&6; }
  9844. fi
  9845. fi
  9846. if test -z "$ac_cv_prog_CC"; then
  9847. ac_ct_CC=$CC
  9848. # Extract the first word of "gcc", so it can be a program name with args.
  9849. set dummy gcc; ac_word=$2
  9850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9851. $as_echo_n "checking for $ac_word... " >&6; }
  9852. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9853. $as_echo_n "(cached) " >&6
  9854. else
  9855. if test -n "$ac_ct_CC"; then
  9856. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9857. else
  9858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9859. for as_dir in $PATH
  9860. do
  9861. IFS=$as_save_IFS
  9862. test -z "$as_dir" && as_dir=.
  9863. for ac_exec_ext in '' $ac_executable_extensions; do
  9864. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9865. ac_cv_prog_ac_ct_CC="gcc"
  9866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9867. break 2
  9868. fi
  9869. done
  9870. done
  9871. IFS=$as_save_IFS
  9872. fi
  9873. fi
  9874. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9875. if test -n "$ac_ct_CC"; then
  9876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9877. $as_echo "$ac_ct_CC" >&6; }
  9878. else
  9879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9880. $as_echo "no" >&6; }
  9881. fi
  9882. if test "x$ac_ct_CC" = x; then
  9883. CC=""
  9884. else
  9885. case $cross_compiling:$ac_tool_warned in
  9886. yes:)
  9887. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9888. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9889. ac_tool_warned=yes ;;
  9890. esac
  9891. CC=$ac_ct_CC
  9892. fi
  9893. else
  9894. CC="$ac_cv_prog_CC"
  9895. fi
  9896. if test -z "$CC"; then
  9897. if test -n "$ac_tool_prefix"; then
  9898. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9899. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9901. $as_echo_n "checking for $ac_word... " >&6; }
  9902. if ${ac_cv_prog_CC+:} false; then :
  9903. $as_echo_n "(cached) " >&6
  9904. else
  9905. if test -n "$CC"; then
  9906. ac_cv_prog_CC="$CC" # Let the user override the test.
  9907. else
  9908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9909. for as_dir in $PATH
  9910. do
  9911. IFS=$as_save_IFS
  9912. test -z "$as_dir" && as_dir=.
  9913. for ac_exec_ext in '' $ac_executable_extensions; do
  9914. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9915. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9917. break 2
  9918. fi
  9919. done
  9920. done
  9921. IFS=$as_save_IFS
  9922. fi
  9923. fi
  9924. CC=$ac_cv_prog_CC
  9925. if test -n "$CC"; then
  9926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9927. $as_echo "$CC" >&6; }
  9928. else
  9929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9930. $as_echo "no" >&6; }
  9931. fi
  9932. fi
  9933. fi
  9934. if test -z "$CC"; then
  9935. # Extract the first word of "cc", so it can be a program name with args.
  9936. set dummy cc; ac_word=$2
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9938. $as_echo_n "checking for $ac_word... " >&6; }
  9939. if ${ac_cv_prog_CC+:} false; then :
  9940. $as_echo_n "(cached) " >&6
  9941. else
  9942. if test -n "$CC"; then
  9943. ac_cv_prog_CC="$CC" # Let the user override the test.
  9944. else
  9945. ac_prog_rejected=no
  9946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9947. for as_dir in $PATH
  9948. do
  9949. IFS=$as_save_IFS
  9950. test -z "$as_dir" && as_dir=.
  9951. for ac_exec_ext in '' $ac_executable_extensions; do
  9952. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9953. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9954. ac_prog_rejected=yes
  9955. continue
  9956. fi
  9957. ac_cv_prog_CC="cc"
  9958. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9959. break 2
  9960. fi
  9961. done
  9962. done
  9963. IFS=$as_save_IFS
  9964. if test $ac_prog_rejected = yes; then
  9965. # We found a bogon in the path, so make sure we never use it.
  9966. set dummy $ac_cv_prog_CC
  9967. shift
  9968. if test $# != 0; then
  9969. # We chose a different compiler from the bogus one.
  9970. # However, it has the same basename, so the bogon will be chosen
  9971. # first if we set CC to just the basename; use the full file name.
  9972. shift
  9973. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9974. fi
  9975. fi
  9976. fi
  9977. fi
  9978. CC=$ac_cv_prog_CC
  9979. if test -n "$CC"; then
  9980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9981. $as_echo "$CC" >&6; }
  9982. else
  9983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9984. $as_echo "no" >&6; }
  9985. fi
  9986. fi
  9987. if test -z "$CC"; then
  9988. if test -n "$ac_tool_prefix"; then
  9989. for ac_prog in cl.exe
  9990. do
  9991. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9992. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9994. $as_echo_n "checking for $ac_word... " >&6; }
  9995. if ${ac_cv_prog_CC+:} false; then :
  9996. $as_echo_n "(cached) " >&6
  9997. else
  9998. if test -n "$CC"; then
  9999. ac_cv_prog_CC="$CC" # Let the user override the test.
  10000. else
  10001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10002. for as_dir in $PATH
  10003. do
  10004. IFS=$as_save_IFS
  10005. test -z "$as_dir" && as_dir=.
  10006. for ac_exec_ext in '' $ac_executable_extensions; do
  10007. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10008. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10009. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10010. break 2
  10011. fi
  10012. done
  10013. done
  10014. IFS=$as_save_IFS
  10015. fi
  10016. fi
  10017. CC=$ac_cv_prog_CC
  10018. if test -n "$CC"; then
  10019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10020. $as_echo "$CC" >&6; }
  10021. else
  10022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10023. $as_echo "no" >&6; }
  10024. fi
  10025. test -n "$CC" && break
  10026. done
  10027. fi
  10028. if test -z "$CC"; then
  10029. ac_ct_CC=$CC
  10030. for ac_prog in cl.exe
  10031. do
  10032. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10033. set dummy $ac_prog; ac_word=$2
  10034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10035. $as_echo_n "checking for $ac_word... " >&6; }
  10036. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10037. $as_echo_n "(cached) " >&6
  10038. else
  10039. if test -n "$ac_ct_CC"; then
  10040. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10041. else
  10042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10043. for as_dir in $PATH
  10044. do
  10045. IFS=$as_save_IFS
  10046. test -z "$as_dir" && as_dir=.
  10047. for ac_exec_ext in '' $ac_executable_extensions; do
  10048. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10049. ac_cv_prog_ac_ct_CC="$ac_prog"
  10050. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10051. break 2
  10052. fi
  10053. done
  10054. done
  10055. IFS=$as_save_IFS
  10056. fi
  10057. fi
  10058. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10059. if test -n "$ac_ct_CC"; then
  10060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10061. $as_echo "$ac_ct_CC" >&6; }
  10062. else
  10063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10064. $as_echo "no" >&6; }
  10065. fi
  10066. test -n "$ac_ct_CC" && break
  10067. done
  10068. if test "x$ac_ct_CC" = x; then
  10069. CC=""
  10070. else
  10071. case $cross_compiling:$ac_tool_warned in
  10072. yes:)
  10073. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10074. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10075. ac_tool_warned=yes ;;
  10076. esac
  10077. CC=$ac_ct_CC
  10078. fi
  10079. fi
  10080. fi
  10081. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10082. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10083. as_fn_error $? "no acceptable C compiler found in \$PATH
  10084. See \`config.log' for more details" "$LINENO" 5; }
  10085. # Provide some information about the compiler.
  10086. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10087. set X $ac_compile
  10088. ac_compiler=$2
  10089. for ac_option in --version -v -V -qversion; do
  10090. { { ac_try="$ac_compiler $ac_option >&5"
  10091. case "(($ac_try" in
  10092. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10093. *) ac_try_echo=$ac_try;;
  10094. esac
  10095. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10096. $as_echo "$ac_try_echo"; } >&5
  10097. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10098. ac_status=$?
  10099. if test -s conftest.err; then
  10100. sed '10a\
  10101. ... rest of stderr output deleted ...
  10102. 10q' conftest.err >conftest.er1
  10103. cat conftest.er1 >&5
  10104. fi
  10105. rm -f conftest.er1 conftest.err
  10106. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10107. test $ac_status = 0; }
  10108. done
  10109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10110. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10111. if ${ac_cv_c_compiler_gnu+:} false; then :
  10112. $as_echo_n "(cached) " >&6
  10113. else
  10114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10115. /* end confdefs.h. */
  10116. int
  10117. main ()
  10118. {
  10119. #ifndef __GNUC__
  10120. choke me
  10121. #endif
  10122. ;
  10123. return 0;
  10124. }
  10125. _ACEOF
  10126. if ac_fn_c_try_compile "$LINENO"; then :
  10127. ac_compiler_gnu=yes
  10128. else
  10129. ac_compiler_gnu=no
  10130. fi
  10131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10132. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10133. fi
  10134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10135. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10136. if test $ac_compiler_gnu = yes; then
  10137. GCC=yes
  10138. else
  10139. GCC=
  10140. fi
  10141. ac_test_CFLAGS=${CFLAGS+set}
  10142. ac_save_CFLAGS=$CFLAGS
  10143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10144. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10145. if ${ac_cv_prog_cc_g+:} false; then :
  10146. $as_echo_n "(cached) " >&6
  10147. else
  10148. ac_save_c_werror_flag=$ac_c_werror_flag
  10149. ac_c_werror_flag=yes
  10150. ac_cv_prog_cc_g=no
  10151. CFLAGS="-g"
  10152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10153. /* end confdefs.h. */
  10154. int
  10155. main ()
  10156. {
  10157. ;
  10158. return 0;
  10159. }
  10160. _ACEOF
  10161. if ac_fn_c_try_compile "$LINENO"; then :
  10162. ac_cv_prog_cc_g=yes
  10163. else
  10164. CFLAGS=""
  10165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10166. /* end confdefs.h. */
  10167. int
  10168. main ()
  10169. {
  10170. ;
  10171. return 0;
  10172. }
  10173. _ACEOF
  10174. if ac_fn_c_try_compile "$LINENO"; then :
  10175. else
  10176. ac_c_werror_flag=$ac_save_c_werror_flag
  10177. CFLAGS="-g"
  10178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10179. /* end confdefs.h. */
  10180. int
  10181. main ()
  10182. {
  10183. ;
  10184. return 0;
  10185. }
  10186. _ACEOF
  10187. if ac_fn_c_try_compile "$LINENO"; then :
  10188. ac_cv_prog_cc_g=yes
  10189. fi
  10190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10191. fi
  10192. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10193. fi
  10194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10195. ac_c_werror_flag=$ac_save_c_werror_flag
  10196. fi
  10197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10198. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10199. if test "$ac_test_CFLAGS" = set; then
  10200. CFLAGS=$ac_save_CFLAGS
  10201. elif test $ac_cv_prog_cc_g = yes; then
  10202. if test "$GCC" = yes; then
  10203. CFLAGS="-g -O2"
  10204. else
  10205. CFLAGS="-g"
  10206. fi
  10207. else
  10208. if test "$GCC" = yes; then
  10209. CFLAGS="-O2"
  10210. else
  10211. CFLAGS=
  10212. fi
  10213. fi
  10214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10215. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10216. if ${ac_cv_prog_cc_c89+:} false; then :
  10217. $as_echo_n "(cached) " >&6
  10218. else
  10219. ac_cv_prog_cc_c89=no
  10220. ac_save_CC=$CC
  10221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10222. /* end confdefs.h. */
  10223. #include <stdarg.h>
  10224. #include <stdio.h>
  10225. struct stat;
  10226. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10227. struct buf { int x; };
  10228. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10229. static char *e (p, i)
  10230. char **p;
  10231. int i;
  10232. {
  10233. return p[i];
  10234. }
  10235. static char *f (char * (*g) (char **, int), char **p, ...)
  10236. {
  10237. char *s;
  10238. va_list v;
  10239. va_start (v,p);
  10240. s = g (p, va_arg (v,int));
  10241. va_end (v);
  10242. return s;
  10243. }
  10244. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10245. function prototypes and stuff, but not '\xHH' hex character constants.
  10246. These don't provoke an error unfortunately, instead are silently treated
  10247. as 'x'. The following induces an error, until -std is added to get
  10248. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10249. array size at least. It's necessary to write '\x00'==0 to get something
  10250. that's true only with -std. */
  10251. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10252. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10253. inside strings and character constants. */
  10254. #define FOO(x) 'x'
  10255. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10256. int test (int i, double x);
  10257. struct s1 {int (*f) (int a);};
  10258. struct s2 {int (*f) (double a);};
  10259. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10260. int argc;
  10261. char **argv;
  10262. int
  10263. main ()
  10264. {
  10265. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10266. ;
  10267. return 0;
  10268. }
  10269. _ACEOF
  10270. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10271. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10272. do
  10273. CC="$ac_save_CC $ac_arg"
  10274. if ac_fn_c_try_compile "$LINENO"; then :
  10275. ac_cv_prog_cc_c89=$ac_arg
  10276. fi
  10277. rm -f core conftest.err conftest.$ac_objext
  10278. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10279. done
  10280. rm -f conftest.$ac_ext
  10281. CC=$ac_save_CC
  10282. fi
  10283. # AC_CACHE_VAL
  10284. case "x$ac_cv_prog_cc_c89" in
  10285. x)
  10286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10287. $as_echo "none needed" >&6; } ;;
  10288. xno)
  10289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10290. $as_echo "unsupported" >&6; } ;;
  10291. *)
  10292. CC="$CC $ac_cv_prog_cc_c89"
  10293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10294. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10295. esac
  10296. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10297. fi
  10298. ac_ext=c
  10299. ac_cpp='$CPP $CPPFLAGS'
  10300. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10301. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10302. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10303. ac_ext=cpp
  10304. ac_cpp='$CXXCPP $CPPFLAGS'
  10305. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10306. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10307. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10308. if test -z "$CXX"; then
  10309. if test -n "$CCC"; then
  10310. CXX=$CCC
  10311. else
  10312. if test -n "$ac_tool_prefix"; then
  10313. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10314. do
  10315. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10316. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10318. $as_echo_n "checking for $ac_word... " >&6; }
  10319. if ${ac_cv_prog_CXX+:} false; then :
  10320. $as_echo_n "(cached) " >&6
  10321. else
  10322. if test -n "$CXX"; then
  10323. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10324. else
  10325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10326. for as_dir in $PATH
  10327. do
  10328. IFS=$as_save_IFS
  10329. test -z "$as_dir" && as_dir=.
  10330. for ac_exec_ext in '' $ac_executable_extensions; do
  10331. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10332. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10333. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10334. break 2
  10335. fi
  10336. done
  10337. done
  10338. IFS=$as_save_IFS
  10339. fi
  10340. fi
  10341. CXX=$ac_cv_prog_CXX
  10342. if test -n "$CXX"; then
  10343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10344. $as_echo "$CXX" >&6; }
  10345. else
  10346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10347. $as_echo "no" >&6; }
  10348. fi
  10349. test -n "$CXX" && break
  10350. done
  10351. fi
  10352. if test -z "$CXX"; then
  10353. ac_ct_CXX=$CXX
  10354. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10355. do
  10356. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10357. set dummy $ac_prog; ac_word=$2
  10358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10359. $as_echo_n "checking for $ac_word... " >&6; }
  10360. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10361. $as_echo_n "(cached) " >&6
  10362. else
  10363. if test -n "$ac_ct_CXX"; then
  10364. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10365. else
  10366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10367. for as_dir in $PATH
  10368. do
  10369. IFS=$as_save_IFS
  10370. test -z "$as_dir" && as_dir=.
  10371. for ac_exec_ext in '' $ac_executable_extensions; do
  10372. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10373. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10374. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10375. break 2
  10376. fi
  10377. done
  10378. done
  10379. IFS=$as_save_IFS
  10380. fi
  10381. fi
  10382. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10383. if test -n "$ac_ct_CXX"; then
  10384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10385. $as_echo "$ac_ct_CXX" >&6; }
  10386. else
  10387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10388. $as_echo "no" >&6; }
  10389. fi
  10390. test -n "$ac_ct_CXX" && break
  10391. done
  10392. if test "x$ac_ct_CXX" = x; then
  10393. CXX="g++"
  10394. else
  10395. case $cross_compiling:$ac_tool_warned in
  10396. yes:)
  10397. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10398. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10399. ac_tool_warned=yes ;;
  10400. esac
  10401. CXX=$ac_ct_CXX
  10402. fi
  10403. fi
  10404. fi
  10405. fi
  10406. # Provide some information about the compiler.
  10407. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10408. set X $ac_compile
  10409. ac_compiler=$2
  10410. for ac_option in --version -v -V -qversion; do
  10411. { { ac_try="$ac_compiler $ac_option >&5"
  10412. case "(($ac_try" in
  10413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10414. *) ac_try_echo=$ac_try;;
  10415. esac
  10416. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10417. $as_echo "$ac_try_echo"; } >&5
  10418. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10419. ac_status=$?
  10420. if test -s conftest.err; then
  10421. sed '10a\
  10422. ... rest of stderr output deleted ...
  10423. 10q' conftest.err >conftest.er1
  10424. cat conftest.er1 >&5
  10425. fi
  10426. rm -f conftest.er1 conftest.err
  10427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10428. test $ac_status = 0; }
  10429. done
  10430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10431. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10432. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10433. $as_echo_n "(cached) " >&6
  10434. else
  10435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10436. /* end confdefs.h. */
  10437. int
  10438. main ()
  10439. {
  10440. #ifndef __GNUC__
  10441. choke me
  10442. #endif
  10443. ;
  10444. return 0;
  10445. }
  10446. _ACEOF
  10447. if ac_fn_cxx_try_compile "$LINENO"; then :
  10448. ac_compiler_gnu=yes
  10449. else
  10450. ac_compiler_gnu=no
  10451. fi
  10452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10453. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10454. fi
  10455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10456. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10457. if test $ac_compiler_gnu = yes; then
  10458. GXX=yes
  10459. else
  10460. GXX=
  10461. fi
  10462. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10463. ac_save_CXXFLAGS=$CXXFLAGS
  10464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10465. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10466. if ${ac_cv_prog_cxx_g+:} false; then :
  10467. $as_echo_n "(cached) " >&6
  10468. else
  10469. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10470. ac_cxx_werror_flag=yes
  10471. ac_cv_prog_cxx_g=no
  10472. CXXFLAGS="-g"
  10473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10474. /* end confdefs.h. */
  10475. int
  10476. main ()
  10477. {
  10478. ;
  10479. return 0;
  10480. }
  10481. _ACEOF
  10482. if ac_fn_cxx_try_compile "$LINENO"; then :
  10483. ac_cv_prog_cxx_g=yes
  10484. else
  10485. CXXFLAGS=""
  10486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10487. /* end confdefs.h. */
  10488. int
  10489. main ()
  10490. {
  10491. ;
  10492. return 0;
  10493. }
  10494. _ACEOF
  10495. if ac_fn_cxx_try_compile "$LINENO"; then :
  10496. else
  10497. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10498. CXXFLAGS="-g"
  10499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10500. /* end confdefs.h. */
  10501. int
  10502. main ()
  10503. {
  10504. ;
  10505. return 0;
  10506. }
  10507. _ACEOF
  10508. if ac_fn_cxx_try_compile "$LINENO"; then :
  10509. ac_cv_prog_cxx_g=yes
  10510. fi
  10511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10512. fi
  10513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10514. fi
  10515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10516. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10517. fi
  10518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10519. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10520. if test "$ac_test_CXXFLAGS" = set; then
  10521. CXXFLAGS=$ac_save_CXXFLAGS
  10522. elif test $ac_cv_prog_cxx_g = yes; then
  10523. if test "$GXX" = yes; then
  10524. CXXFLAGS="-g -O2"
  10525. else
  10526. CXXFLAGS="-g"
  10527. fi
  10528. else
  10529. if test "$GXX" = yes; then
  10530. CXXFLAGS="-O2"
  10531. else
  10532. CXXFLAGS=
  10533. fi
  10534. fi
  10535. ac_ext=c
  10536. ac_cpp='$CPP $CPPFLAGS'
  10537. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10538. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10539. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10540. func_stripname_cnf ()
  10541. {
  10542. case ${2} in
  10543. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10544. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10545. esac
  10546. } # func_stripname_cnf
  10547. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10548. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10549. (test "X$CXX" != "Xg++"))) ; then
  10550. ac_ext=cpp
  10551. ac_cpp='$CXXCPP $CPPFLAGS'
  10552. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10553. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10554. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10556. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10557. if test -z "$CXXCPP"; then
  10558. if ${ac_cv_prog_CXXCPP+:} false; then :
  10559. $as_echo_n "(cached) " >&6
  10560. else
  10561. # Double quotes because CXXCPP needs to be expanded
  10562. for CXXCPP in "$CXX -E" "/lib/cpp"
  10563. do
  10564. ac_preproc_ok=false
  10565. for ac_cxx_preproc_warn_flag in '' yes
  10566. do
  10567. # Use a header file that comes with gcc, so configuring glibc
  10568. # with a fresh cross-compiler works.
  10569. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10570. # <limits.h> exists even on freestanding compilers.
  10571. # On the NeXT, cc -E runs the code through the compiler's parser,
  10572. # not just through cpp. "Syntax error" is here to catch this case.
  10573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10574. /* end confdefs.h. */
  10575. #ifdef __STDC__
  10576. # include <limits.h>
  10577. #else
  10578. # include <assert.h>
  10579. #endif
  10580. Syntax error
  10581. _ACEOF
  10582. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10583. else
  10584. # Broken: fails on valid input.
  10585. continue
  10586. fi
  10587. rm -f conftest.err conftest.i conftest.$ac_ext
  10588. # OK, works on sane cases. Now check whether nonexistent headers
  10589. # can be detected and how.
  10590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10591. /* end confdefs.h. */
  10592. #include <ac_nonexistent.h>
  10593. _ACEOF
  10594. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10595. # Broken: success on invalid input.
  10596. continue
  10597. else
  10598. # Passes both tests.
  10599. ac_preproc_ok=:
  10600. break
  10601. fi
  10602. rm -f conftest.err conftest.i conftest.$ac_ext
  10603. done
  10604. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10605. rm -f conftest.i conftest.err conftest.$ac_ext
  10606. if $ac_preproc_ok; then :
  10607. break
  10608. fi
  10609. done
  10610. ac_cv_prog_CXXCPP=$CXXCPP
  10611. fi
  10612. CXXCPP=$ac_cv_prog_CXXCPP
  10613. else
  10614. ac_cv_prog_CXXCPP=$CXXCPP
  10615. fi
  10616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10617. $as_echo "$CXXCPP" >&6; }
  10618. ac_preproc_ok=false
  10619. for ac_cxx_preproc_warn_flag in '' yes
  10620. do
  10621. # Use a header file that comes with gcc, so configuring glibc
  10622. # with a fresh cross-compiler works.
  10623. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10624. # <limits.h> exists even on freestanding compilers.
  10625. # On the NeXT, cc -E runs the code through the compiler's parser,
  10626. # not just through cpp. "Syntax error" is here to catch this case.
  10627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10628. /* end confdefs.h. */
  10629. #ifdef __STDC__
  10630. # include <limits.h>
  10631. #else
  10632. # include <assert.h>
  10633. #endif
  10634. Syntax error
  10635. _ACEOF
  10636. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10637. else
  10638. # Broken: fails on valid input.
  10639. continue
  10640. fi
  10641. rm -f conftest.err conftest.i conftest.$ac_ext
  10642. # OK, works on sane cases. Now check whether nonexistent headers
  10643. # can be detected and how.
  10644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10645. /* end confdefs.h. */
  10646. #include <ac_nonexistent.h>
  10647. _ACEOF
  10648. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10649. # Broken: success on invalid input.
  10650. continue
  10651. else
  10652. # Passes both tests.
  10653. ac_preproc_ok=:
  10654. break
  10655. fi
  10656. rm -f conftest.err conftest.i conftest.$ac_ext
  10657. done
  10658. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10659. rm -f conftest.i conftest.err conftest.$ac_ext
  10660. if $ac_preproc_ok; then :
  10661. else
  10662. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10663. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10664. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10665. See \`config.log' for more details" "$LINENO" 5; }
  10666. fi
  10667. ac_ext=c
  10668. ac_cpp='$CPP $CPPFLAGS'
  10669. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10670. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10671. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10672. else
  10673. _lt_caught_CXX_error=yes
  10674. fi
  10675. ac_ext=cpp
  10676. ac_cpp='$CXXCPP $CPPFLAGS'
  10677. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10678. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10679. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10680. archive_cmds_need_lc_CXX=no
  10681. allow_undefined_flag_CXX=
  10682. always_export_symbols_CXX=no
  10683. archive_expsym_cmds_CXX=
  10684. compiler_needs_object_CXX=no
  10685. export_dynamic_flag_spec_CXX=
  10686. hardcode_direct_CXX=no
  10687. hardcode_direct_absolute_CXX=no
  10688. hardcode_libdir_flag_spec_CXX=
  10689. hardcode_libdir_separator_CXX=
  10690. hardcode_minus_L_CXX=no
  10691. hardcode_shlibpath_var_CXX=unsupported
  10692. hardcode_automatic_CXX=no
  10693. inherit_rpath_CXX=no
  10694. module_cmds_CXX=
  10695. module_expsym_cmds_CXX=
  10696. link_all_deplibs_CXX=unknown
  10697. old_archive_cmds_CXX=$old_archive_cmds
  10698. reload_flag_CXX=$reload_flag
  10699. reload_cmds_CXX=$reload_cmds
  10700. no_undefined_flag_CXX=
  10701. whole_archive_flag_spec_CXX=
  10702. enable_shared_with_static_runtimes_CXX=no
  10703. # Source file extension for C++ test sources.
  10704. ac_ext=cpp
  10705. # Object file extension for compiled C++ test sources.
  10706. objext=o
  10707. objext_CXX=$objext
  10708. # No sense in running all these tests if we already determined that
  10709. # the CXX compiler isn't working. Some variables (like enable_shared)
  10710. # are currently assumed to apply to all compilers on this platform,
  10711. # and will be corrupted by setting them based on a non-working compiler.
  10712. if test "$_lt_caught_CXX_error" != yes; then
  10713. # Code to be used in simple compile tests
  10714. lt_simple_compile_test_code="int some_variable = 0;"
  10715. # Code to be used in simple link tests
  10716. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10717. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10718. # If no C compiler was specified, use CC.
  10719. LTCC=${LTCC-"$CC"}
  10720. # If no C compiler flags were specified, use CFLAGS.
  10721. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10722. # Allow CC to be a program name with arguments.
  10723. compiler=$CC
  10724. # save warnings/boilerplate of simple test code
  10725. ac_outfile=conftest.$ac_objext
  10726. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10727. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10728. _lt_compiler_boilerplate=`cat conftest.err`
  10729. $RM conftest*
  10730. ac_outfile=conftest.$ac_objext
  10731. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10732. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10733. _lt_linker_boilerplate=`cat conftest.err`
  10734. $RM -r conftest*
  10735. # Allow CC to be a program name with arguments.
  10736. lt_save_CC=$CC
  10737. lt_save_CFLAGS=$CFLAGS
  10738. lt_save_LD=$LD
  10739. lt_save_GCC=$GCC
  10740. GCC=$GXX
  10741. lt_save_with_gnu_ld=$with_gnu_ld
  10742. lt_save_path_LD=$lt_cv_path_LD
  10743. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10744. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10745. else
  10746. $as_unset lt_cv_prog_gnu_ld
  10747. fi
  10748. if test -n "${lt_cv_path_LDCXX+set}"; then
  10749. lt_cv_path_LD=$lt_cv_path_LDCXX
  10750. else
  10751. $as_unset lt_cv_path_LD
  10752. fi
  10753. test -z "${LDCXX+set}" || LD=$LDCXX
  10754. CC=${CXX-"c++"}
  10755. CFLAGS=$CXXFLAGS
  10756. compiler=$CC
  10757. compiler_CXX=$CC
  10758. for cc_temp in $compiler""; do
  10759. case $cc_temp in
  10760. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10761. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10762. \-*) ;;
  10763. *) break;;
  10764. esac
  10765. done
  10766. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10767. if test -n "$compiler"; then
  10768. # We don't want -fno-exception when compiling C++ code, so set the
  10769. # no_builtin_flag separately
  10770. if test "$GXX" = yes; then
  10771. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10772. else
  10773. lt_prog_compiler_no_builtin_flag_CXX=
  10774. fi
  10775. if test "$GXX" = yes; then
  10776. # Set up default GNU C++ configuration
  10777. # Check whether --with-gnu-ld was given.
  10778. if test "${with_gnu_ld+set}" = set; then :
  10779. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10780. else
  10781. with_gnu_ld=no
  10782. fi
  10783. ac_prog=ld
  10784. if test "$GCC" = yes; then
  10785. # Check if gcc -print-prog-name=ld gives a path.
  10786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10787. $as_echo_n "checking for ld used by $CC... " >&6; }
  10788. case $host in
  10789. *-*-mingw*)
  10790. # gcc leaves a trailing carriage return which upsets mingw
  10791. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10792. *)
  10793. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10794. esac
  10795. case $ac_prog in
  10796. # Accept absolute paths.
  10797. [\\/]* | ?:[\\/]*)
  10798. re_direlt='/[^/][^/]*/\.\./'
  10799. # Canonicalize the pathname of ld
  10800. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10801. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10802. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10803. done
  10804. test -z "$LD" && LD="$ac_prog"
  10805. ;;
  10806. "")
  10807. # If it fails, then pretend we aren't using GCC.
  10808. ac_prog=ld
  10809. ;;
  10810. *)
  10811. # If it is relative, then search for the first ld in PATH.
  10812. with_gnu_ld=unknown
  10813. ;;
  10814. esac
  10815. elif test "$with_gnu_ld" = yes; then
  10816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10817. $as_echo_n "checking for GNU ld... " >&6; }
  10818. else
  10819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10820. $as_echo_n "checking for non-GNU ld... " >&6; }
  10821. fi
  10822. if ${lt_cv_path_LD+:} false; then :
  10823. $as_echo_n "(cached) " >&6
  10824. else
  10825. if test -z "$LD"; then
  10826. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10827. for ac_dir in $PATH; do
  10828. IFS="$lt_save_ifs"
  10829. test -z "$ac_dir" && ac_dir=.
  10830. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10831. lt_cv_path_LD="$ac_dir/$ac_prog"
  10832. # Check to see if the program is GNU ld. I'd rather use --version,
  10833. # but apparently some variants of GNU ld only accept -v.
  10834. # Break only if it was the GNU/non-GNU ld that we prefer.
  10835. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10836. *GNU* | *'with BFD'*)
  10837. test "$with_gnu_ld" != no && break
  10838. ;;
  10839. *)
  10840. test "$with_gnu_ld" != yes && break
  10841. ;;
  10842. esac
  10843. fi
  10844. done
  10845. IFS="$lt_save_ifs"
  10846. else
  10847. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10848. fi
  10849. fi
  10850. LD="$lt_cv_path_LD"
  10851. if test -n "$LD"; then
  10852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10853. $as_echo "$LD" >&6; }
  10854. else
  10855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10856. $as_echo "no" >&6; }
  10857. fi
  10858. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10860. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10861. if ${lt_cv_prog_gnu_ld+:} false; then :
  10862. $as_echo_n "(cached) " >&6
  10863. else
  10864. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10865. case `$LD -v 2>&1 </dev/null` in
  10866. *GNU* | *'with BFD'*)
  10867. lt_cv_prog_gnu_ld=yes
  10868. ;;
  10869. *)
  10870. lt_cv_prog_gnu_ld=no
  10871. ;;
  10872. esac
  10873. fi
  10874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10875. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10876. with_gnu_ld=$lt_cv_prog_gnu_ld
  10877. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10878. # archiving commands below assume that GNU ld is being used.
  10879. if test "$with_gnu_ld" = yes; then
  10880. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10881. 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'
  10882. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10883. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10884. # If archive_cmds runs LD, not CC, wlarc should be empty
  10885. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10886. # investigate it a little bit more. (MM)
  10887. wlarc='${wl}'
  10888. # ancient GNU ld didn't support --whole-archive et. al.
  10889. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10890. $GREP 'no-whole-archive' > /dev/null; then
  10891. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10892. else
  10893. whole_archive_flag_spec_CXX=
  10894. fi
  10895. else
  10896. with_gnu_ld=no
  10897. wlarc=
  10898. # A generic and very simple default shared library creation
  10899. # command for GNU C++ for the case where it uses the native
  10900. # linker, instead of GNU ld. If possible, this setting should
  10901. # overridden to take advantage of the native linker features on
  10902. # the platform it is being used on.
  10903. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10904. fi
  10905. # Commands to make compiler produce verbose output that lists
  10906. # what "hidden" libraries, object files and flags are used when
  10907. # linking a shared library.
  10908. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10909. else
  10910. GXX=no
  10911. with_gnu_ld=no
  10912. wlarc=
  10913. fi
  10914. # PORTME: fill in a description of your system's C++ link characteristics
  10915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10916. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10917. ld_shlibs_CXX=yes
  10918. case $host_os in
  10919. aix3*)
  10920. # FIXME: insert proper C++ library support
  10921. ld_shlibs_CXX=no
  10922. ;;
  10923. aix[4-9]*)
  10924. if test "$host_cpu" = ia64; then
  10925. # On IA64, the linker does run time linking by default, so we don't
  10926. # have to do anything special.
  10927. aix_use_runtimelinking=no
  10928. exp_sym_flag='-Bexport'
  10929. no_entry_flag=""
  10930. else
  10931. aix_use_runtimelinking=no
  10932. # Test if we are trying to use run time linking or normal
  10933. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10934. # need to do runtime linking.
  10935. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10936. for ld_flag in $LDFLAGS; do
  10937. case $ld_flag in
  10938. *-brtl*)
  10939. aix_use_runtimelinking=yes
  10940. break
  10941. ;;
  10942. esac
  10943. done
  10944. ;;
  10945. esac
  10946. exp_sym_flag='-bexport'
  10947. no_entry_flag='-bnoentry'
  10948. fi
  10949. # When large executables or shared objects are built, AIX ld can
  10950. # have problems creating the table of contents. If linking a library
  10951. # or program results in "error TOC overflow" add -mminimal-toc to
  10952. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10953. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10954. archive_cmds_CXX=''
  10955. hardcode_direct_CXX=yes
  10956. hardcode_direct_absolute_CXX=yes
  10957. hardcode_libdir_separator_CXX=':'
  10958. link_all_deplibs_CXX=yes
  10959. file_list_spec_CXX='${wl}-f,'
  10960. if test "$GXX" = yes; then
  10961. case $host_os in aix4.[012]|aix4.[012].*)
  10962. # We only want to do this on AIX 4.2 and lower, the check
  10963. # below for broken collect2 doesn't work under 4.3+
  10964. collect2name=`${CC} -print-prog-name=collect2`
  10965. if test -f "$collect2name" &&
  10966. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10967. then
  10968. # We have reworked collect2
  10969. :
  10970. else
  10971. # We have old collect2
  10972. hardcode_direct_CXX=unsupported
  10973. # It fails to find uninstalled libraries when the uninstalled
  10974. # path is not listed in the libpath. Setting hardcode_minus_L
  10975. # to unsupported forces relinking
  10976. hardcode_minus_L_CXX=yes
  10977. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10978. hardcode_libdir_separator_CXX=
  10979. fi
  10980. esac
  10981. shared_flag='-shared'
  10982. if test "$aix_use_runtimelinking" = yes; then
  10983. shared_flag="$shared_flag "'${wl}-G'
  10984. fi
  10985. else
  10986. # not using gcc
  10987. if test "$host_cpu" = ia64; then
  10988. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10989. # chokes on -Wl,-G. The following line is correct:
  10990. shared_flag='-G'
  10991. else
  10992. if test "$aix_use_runtimelinking" = yes; then
  10993. shared_flag='${wl}-G'
  10994. else
  10995. shared_flag='${wl}-bM:SRE'
  10996. fi
  10997. fi
  10998. fi
  10999. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11000. # It seems that -bexpall does not export symbols beginning with
  11001. # underscore (_), so it is better to generate a list of symbols to
  11002. # export.
  11003. always_export_symbols_CXX=yes
  11004. if test "$aix_use_runtimelinking" = yes; then
  11005. # Warning - without using the other runtime loading flags (-brtl),
  11006. # -berok will link without error, but may produce a broken library.
  11007. allow_undefined_flag_CXX='-berok'
  11008. # Determine the default libpath from the value encoded in an empty
  11009. # executable.
  11010. if test "${lt_cv_aix_libpath+set}" = set; then
  11011. aix_libpath=$lt_cv_aix_libpath
  11012. else
  11013. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11014. $as_echo_n "(cached) " >&6
  11015. else
  11016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11017. /* end confdefs.h. */
  11018. int
  11019. main ()
  11020. {
  11021. ;
  11022. return 0;
  11023. }
  11024. _ACEOF
  11025. if ac_fn_cxx_try_link "$LINENO"; then :
  11026. lt_aix_libpath_sed='
  11027. /Import File Strings/,/^$/ {
  11028. /^0/ {
  11029. s/^0 *\([^ ]*\) *$/\1/
  11030. p
  11031. }
  11032. }'
  11033. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11034. # Check for a 64-bit object if we didn't find anything.
  11035. if test -z "$lt_cv_aix_libpath__CXX"; then
  11036. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11037. fi
  11038. fi
  11039. rm -f core conftest.err conftest.$ac_objext \
  11040. conftest$ac_exeext conftest.$ac_ext
  11041. if test -z "$lt_cv_aix_libpath__CXX"; then
  11042. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11043. fi
  11044. fi
  11045. aix_libpath=$lt_cv_aix_libpath__CXX
  11046. fi
  11047. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11048. 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"
  11049. else
  11050. if test "$host_cpu" = ia64; then
  11051. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11052. allow_undefined_flag_CXX="-z nodefs"
  11053. 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"
  11054. else
  11055. # Determine the default libpath from the value encoded in an
  11056. # empty executable.
  11057. if test "${lt_cv_aix_libpath+set}" = set; then
  11058. aix_libpath=$lt_cv_aix_libpath
  11059. else
  11060. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11061. $as_echo_n "(cached) " >&6
  11062. else
  11063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11064. /* end confdefs.h. */
  11065. int
  11066. main ()
  11067. {
  11068. ;
  11069. return 0;
  11070. }
  11071. _ACEOF
  11072. if ac_fn_cxx_try_link "$LINENO"; then :
  11073. lt_aix_libpath_sed='
  11074. /Import File Strings/,/^$/ {
  11075. /^0/ {
  11076. s/^0 *\([^ ]*\) *$/\1/
  11077. p
  11078. }
  11079. }'
  11080. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11081. # Check for a 64-bit object if we didn't find anything.
  11082. if test -z "$lt_cv_aix_libpath__CXX"; then
  11083. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11084. fi
  11085. fi
  11086. rm -f core conftest.err conftest.$ac_objext \
  11087. conftest$ac_exeext conftest.$ac_ext
  11088. if test -z "$lt_cv_aix_libpath__CXX"; then
  11089. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11090. fi
  11091. fi
  11092. aix_libpath=$lt_cv_aix_libpath__CXX
  11093. fi
  11094. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11095. # Warning - without using the other run time loading flags,
  11096. # -berok will link without error, but may produce a broken library.
  11097. no_undefined_flag_CXX=' ${wl}-bernotok'
  11098. allow_undefined_flag_CXX=' ${wl}-berok'
  11099. if test "$with_gnu_ld" = yes; then
  11100. # We only use this code for GNU lds that support --whole-archive.
  11101. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11102. else
  11103. # Exported symbols can be pulled into shared objects from archives
  11104. whole_archive_flag_spec_CXX='$convenience'
  11105. fi
  11106. archive_cmds_need_lc_CXX=yes
  11107. # This is similar to how AIX traditionally builds its shared
  11108. # libraries.
  11109. 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'
  11110. fi
  11111. fi
  11112. ;;
  11113. beos*)
  11114. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11115. allow_undefined_flag_CXX=unsupported
  11116. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11117. # support --undefined. This deserves some investigation. FIXME
  11118. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11119. else
  11120. ld_shlibs_CXX=no
  11121. fi
  11122. ;;
  11123. chorus*)
  11124. case $cc_basename in
  11125. *)
  11126. # FIXME: insert proper C++ library support
  11127. ld_shlibs_CXX=no
  11128. ;;
  11129. esac
  11130. ;;
  11131. cygwin* | mingw* | pw32* | cegcc*)
  11132. case $GXX,$cc_basename in
  11133. ,cl* | no,cl*)
  11134. # Native MSVC
  11135. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11136. # no search path for DLLs.
  11137. hardcode_libdir_flag_spec_CXX=' '
  11138. allow_undefined_flag_CXX=unsupported
  11139. always_export_symbols_CXX=yes
  11140. file_list_spec_CXX='@'
  11141. # Tell ltmain to make .lib files, not .a files.
  11142. libext=lib
  11143. # Tell ltmain to make .dll files, not .so files.
  11144. shrext_cmds=".dll"
  11145. # FIXME: Setting linknames here is a bad hack.
  11146. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11147. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11148. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11149. else
  11150. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11151. fi~
  11152. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11153. linknames='
  11154. # The linker will not automatically build a static lib if we build a DLL.
  11155. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11156. enable_shared_with_static_runtimes_CXX=yes
  11157. # Don't use ranlib
  11158. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11159. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11160. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11161. case $lt_outputfile in
  11162. *.exe|*.EXE) ;;
  11163. *)
  11164. lt_outputfile="$lt_outputfile.exe"
  11165. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11166. ;;
  11167. esac~
  11168. func_to_tool_file "$lt_outputfile"~
  11169. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11170. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11171. $RM "$lt_outputfile.manifest";
  11172. fi'
  11173. ;;
  11174. *)
  11175. # g++
  11176. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11177. # as there is no search path for DLLs.
  11178. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11179. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11180. allow_undefined_flag_CXX=unsupported
  11181. always_export_symbols_CXX=no
  11182. enable_shared_with_static_runtimes_CXX=yes
  11183. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11184. 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'
  11185. # If the export-symbols file already is a .def file (1st line
  11186. # is EXPORTS), use it as is; otherwise, prepend...
  11187. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11188. cp $export_symbols $output_objdir/$soname.def;
  11189. else
  11190. echo EXPORTS > $output_objdir/$soname.def;
  11191. cat $export_symbols >> $output_objdir/$soname.def;
  11192. fi~
  11193. $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'
  11194. else
  11195. ld_shlibs_CXX=no
  11196. fi
  11197. ;;
  11198. esac
  11199. ;;
  11200. darwin* | rhapsody*)
  11201. archive_cmds_need_lc_CXX=no
  11202. hardcode_direct_CXX=no
  11203. hardcode_automatic_CXX=yes
  11204. hardcode_shlibpath_var_CXX=unsupported
  11205. if test "$lt_cv_ld_force_load" = "yes"; then
  11206. 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\"`'
  11207. else
  11208. whole_archive_flag_spec_CXX=''
  11209. fi
  11210. link_all_deplibs_CXX=yes
  11211. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11212. case $cc_basename in
  11213. ifort*) _lt_dar_can_shared=yes ;;
  11214. *) _lt_dar_can_shared=$GCC ;;
  11215. esac
  11216. if test "$_lt_dar_can_shared" = "yes"; then
  11217. output_verbose_link_cmd=func_echo_all
  11218. 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}"
  11219. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11220. 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}"
  11221. 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}"
  11222. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11223. 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}"
  11224. 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}"
  11225. fi
  11226. else
  11227. ld_shlibs_CXX=no
  11228. fi
  11229. ;;
  11230. dgux*)
  11231. case $cc_basename in
  11232. ec++*)
  11233. # FIXME: insert proper C++ library support
  11234. ld_shlibs_CXX=no
  11235. ;;
  11236. ghcx*)
  11237. # Green Hills C++ Compiler
  11238. # FIXME: insert proper C++ library support
  11239. ld_shlibs_CXX=no
  11240. ;;
  11241. *)
  11242. # FIXME: insert proper C++ library support
  11243. ld_shlibs_CXX=no
  11244. ;;
  11245. esac
  11246. ;;
  11247. freebsd2.*)
  11248. # C++ shared libraries reported to be fairly broken before
  11249. # switch to ELF
  11250. ld_shlibs_CXX=no
  11251. ;;
  11252. freebsd-elf*)
  11253. archive_cmds_need_lc_CXX=no
  11254. ;;
  11255. freebsd* | dragonfly*)
  11256. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11257. # conventions
  11258. ld_shlibs_CXX=yes
  11259. ;;
  11260. gnu*)
  11261. ;;
  11262. haiku*)
  11263. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11264. link_all_deplibs_CXX=yes
  11265. ;;
  11266. hpux9*)
  11267. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11268. hardcode_libdir_separator_CXX=:
  11269. export_dynamic_flag_spec_CXX='${wl}-E'
  11270. hardcode_direct_CXX=yes
  11271. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11272. # but as the default
  11273. # location of the library.
  11274. case $cc_basename in
  11275. CC*)
  11276. # FIXME: insert proper C++ library support
  11277. ld_shlibs_CXX=no
  11278. ;;
  11279. aCC*)
  11280. 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'
  11281. # Commands to make compiler produce verbose output that lists
  11282. # what "hidden" libraries, object files and flags are used when
  11283. # linking a shared library.
  11284. #
  11285. # There doesn't appear to be a way to prevent this compiler from
  11286. # explicitly linking system object files so we need to strip them
  11287. # from the output so that they don't get included in the library
  11288. # dependencies.
  11289. 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"'
  11290. ;;
  11291. *)
  11292. if test "$GXX" = yes; then
  11293. 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'
  11294. else
  11295. # FIXME: insert proper C++ library support
  11296. ld_shlibs_CXX=no
  11297. fi
  11298. ;;
  11299. esac
  11300. ;;
  11301. hpux10*|hpux11*)
  11302. if test $with_gnu_ld = no; then
  11303. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11304. hardcode_libdir_separator_CXX=:
  11305. case $host_cpu in
  11306. hppa*64*|ia64*)
  11307. ;;
  11308. *)
  11309. export_dynamic_flag_spec_CXX='${wl}-E'
  11310. ;;
  11311. esac
  11312. fi
  11313. case $host_cpu in
  11314. hppa*64*|ia64*)
  11315. hardcode_direct_CXX=no
  11316. hardcode_shlibpath_var_CXX=no
  11317. ;;
  11318. *)
  11319. hardcode_direct_CXX=yes
  11320. hardcode_direct_absolute_CXX=yes
  11321. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11322. # but as the default
  11323. # location of the library.
  11324. ;;
  11325. esac
  11326. case $cc_basename in
  11327. CC*)
  11328. # FIXME: insert proper C++ library support
  11329. ld_shlibs_CXX=no
  11330. ;;
  11331. aCC*)
  11332. case $host_cpu in
  11333. hppa*64*)
  11334. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11335. ;;
  11336. ia64*)
  11337. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11338. ;;
  11339. *)
  11340. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11341. ;;
  11342. esac
  11343. # Commands to make compiler produce verbose output that lists
  11344. # what "hidden" libraries, object files and flags are used when
  11345. # linking a shared library.
  11346. #
  11347. # There doesn't appear to be a way to prevent this compiler from
  11348. # explicitly linking system object files so we need to strip them
  11349. # from the output so that they don't get included in the library
  11350. # dependencies.
  11351. 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"'
  11352. ;;
  11353. *)
  11354. if test "$GXX" = yes; then
  11355. if test $with_gnu_ld = no; then
  11356. case $host_cpu in
  11357. hppa*64*)
  11358. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11359. ;;
  11360. ia64*)
  11361. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11362. ;;
  11363. *)
  11364. 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'
  11365. ;;
  11366. esac
  11367. fi
  11368. else
  11369. # FIXME: insert proper C++ library support
  11370. ld_shlibs_CXX=no
  11371. fi
  11372. ;;
  11373. esac
  11374. ;;
  11375. interix[3-9]*)
  11376. hardcode_direct_CXX=no
  11377. hardcode_shlibpath_var_CXX=no
  11378. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11379. export_dynamic_flag_spec_CXX='${wl}-E'
  11380. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11381. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11382. # default) and relocated if they conflict, which is a slow very memory
  11383. # consuming and fragmenting process. To avoid this, we pick a random,
  11384. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11385. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11386. 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'
  11387. 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'
  11388. ;;
  11389. irix5* | irix6*)
  11390. case $cc_basename in
  11391. CC*)
  11392. # SGI C++
  11393. 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'
  11394. # Archives containing C++ object files must be created using
  11395. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11396. # necessary to make sure instantiated templates are included
  11397. # in the archive.
  11398. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11399. ;;
  11400. *)
  11401. if test "$GXX" = yes; then
  11402. if test "$with_gnu_ld" = no; then
  11403. 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'
  11404. else
  11405. 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'
  11406. fi
  11407. fi
  11408. link_all_deplibs_CXX=yes
  11409. ;;
  11410. esac
  11411. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11412. hardcode_libdir_separator_CXX=:
  11413. inherit_rpath_CXX=yes
  11414. ;;
  11415. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11416. case $cc_basename in
  11417. KCC*)
  11418. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11419. # KCC will only create a shared library if the output file
  11420. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11421. # to its proper name (with version) after linking.
  11422. 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'
  11423. 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'
  11424. # Commands to make compiler produce verbose output that lists
  11425. # what "hidden" libraries, object files and flags are used when
  11426. # linking a shared library.
  11427. #
  11428. # There doesn't appear to be a way to prevent this compiler from
  11429. # explicitly linking system object files so we need to strip them
  11430. # from the output so that they don't get included in the library
  11431. # dependencies.
  11432. 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"'
  11433. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11434. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11435. # Archives containing C++ object files must be created using
  11436. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11437. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11438. ;;
  11439. icpc* | ecpc* )
  11440. # Intel C++
  11441. with_gnu_ld=yes
  11442. # version 8.0 and above of icpc choke on multiply defined symbols
  11443. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11444. # earlier do not add the objects themselves.
  11445. case `$CC -V 2>&1` in
  11446. *"Version 7."*)
  11447. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11448. 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'
  11449. ;;
  11450. *) # Version 8.0 or newer
  11451. tmp_idyn=
  11452. case $host_cpu in
  11453. ia64*) tmp_idyn=' -i_dynamic';;
  11454. esac
  11455. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11456. 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'
  11457. ;;
  11458. esac
  11459. archive_cmds_need_lc_CXX=no
  11460. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11461. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11462. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11463. ;;
  11464. pgCC* | pgcpp*)
  11465. # Portland Group C++ compiler
  11466. case `$CC -V` in
  11467. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11468. prelink_cmds_CXX='tpldir=Template.dir~
  11469. rm -rf $tpldir~
  11470. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11471. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11472. old_archive_cmds_CXX='tpldir=Template.dir~
  11473. rm -rf $tpldir~
  11474. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11475. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11476. $RANLIB $oldlib'
  11477. archive_cmds_CXX='tpldir=Template.dir~
  11478. rm -rf $tpldir~
  11479. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11480. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11481. archive_expsym_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 ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11485. ;;
  11486. *) # Version 6 and above use weak symbols
  11487. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11488. 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'
  11489. ;;
  11490. esac
  11491. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11492. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11493. 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'
  11494. ;;
  11495. cxx*)
  11496. # Compaq C++
  11497. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11498. 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'
  11499. runpath_var=LD_RUN_PATH
  11500. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11501. hardcode_libdir_separator_CXX=:
  11502. # Commands to make compiler produce verbose output that lists
  11503. # what "hidden" libraries, object files and flags are used when
  11504. # linking a shared library.
  11505. #
  11506. # There doesn't appear to be a way to prevent this compiler from
  11507. # explicitly linking system object files so we need to strip them
  11508. # from the output so that they don't get included in the library
  11509. # dependencies.
  11510. 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'
  11511. ;;
  11512. xl* | mpixl* | bgxl*)
  11513. # IBM XL 8.0 on PPC, with GNU ld
  11514. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11515. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11516. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11517. if test "x$supports_anon_versioning" = xyes; then
  11518. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11519. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11520. echo "local: *; };" >> $output_objdir/$libname.ver~
  11521. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11522. fi
  11523. ;;
  11524. *)
  11525. case `$CC -V 2>&1 | sed 5q` in
  11526. *Sun\ C*)
  11527. # Sun C++ 5.9
  11528. no_undefined_flag_CXX=' -zdefs'
  11529. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11530. 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'
  11531. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11532. 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'
  11533. compiler_needs_object_CXX=yes
  11534. # Not sure whether something based on
  11535. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11536. # would be better.
  11537. output_verbose_link_cmd='func_echo_all'
  11538. # Archives containing C++ object files must be created using
  11539. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11540. # necessary to make sure instantiated templates are included
  11541. # in the archive.
  11542. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11543. ;;
  11544. esac
  11545. ;;
  11546. esac
  11547. ;;
  11548. lynxos*)
  11549. # FIXME: insert proper C++ library support
  11550. ld_shlibs_CXX=no
  11551. ;;
  11552. m88k*)
  11553. # FIXME: insert proper C++ library support
  11554. ld_shlibs_CXX=no
  11555. ;;
  11556. mvs*)
  11557. case $cc_basename in
  11558. cxx*)
  11559. # FIXME: insert proper C++ library support
  11560. ld_shlibs_CXX=no
  11561. ;;
  11562. *)
  11563. # FIXME: insert proper C++ library support
  11564. ld_shlibs_CXX=no
  11565. ;;
  11566. esac
  11567. ;;
  11568. netbsd*)
  11569. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11570. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11571. wlarc=
  11572. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11573. hardcode_direct_CXX=yes
  11574. hardcode_shlibpath_var_CXX=no
  11575. fi
  11576. # Workaround some broken pre-1.5 toolchains
  11577. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11578. ;;
  11579. *nto* | *qnx*)
  11580. ld_shlibs_CXX=yes
  11581. ;;
  11582. openbsd2*)
  11583. # C++ shared libraries are fairly broken
  11584. ld_shlibs_CXX=no
  11585. ;;
  11586. openbsd*)
  11587. if test -f /usr/libexec/ld.so; then
  11588. hardcode_direct_CXX=yes
  11589. hardcode_shlibpath_var_CXX=no
  11590. hardcode_direct_absolute_CXX=yes
  11591. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11592. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11593. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11594. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11595. export_dynamic_flag_spec_CXX='${wl}-E'
  11596. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11597. fi
  11598. output_verbose_link_cmd=func_echo_all
  11599. else
  11600. ld_shlibs_CXX=no
  11601. fi
  11602. ;;
  11603. osf3* | osf4* | osf5*)
  11604. case $cc_basename in
  11605. KCC*)
  11606. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11607. # KCC will only create a shared library if the output file
  11608. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11609. # to its proper name (with version) after linking.
  11610. 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'
  11611. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11612. hardcode_libdir_separator_CXX=:
  11613. # Archives containing C++ object files must be created using
  11614. # the KAI C++ compiler.
  11615. case $host in
  11616. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11617. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11618. esac
  11619. ;;
  11620. RCC*)
  11621. # Rational C++ 2.4.1
  11622. # FIXME: insert proper C++ library support
  11623. ld_shlibs_CXX=no
  11624. ;;
  11625. cxx*)
  11626. case $host in
  11627. osf3*)
  11628. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11629. 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'
  11630. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11631. ;;
  11632. *)
  11633. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11634. 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'
  11635. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11636. echo "-hidden">> $lib.exp~
  11637. $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~
  11638. $RM $lib.exp'
  11639. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11640. ;;
  11641. esac
  11642. hardcode_libdir_separator_CXX=:
  11643. # Commands to make compiler produce verbose output that lists
  11644. # what "hidden" libraries, object files and flags are used when
  11645. # linking a shared library.
  11646. #
  11647. # There doesn't appear to be a way to prevent this compiler from
  11648. # explicitly linking system object files so we need to strip them
  11649. # from the output so that they don't get included in the library
  11650. # dependencies.
  11651. 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"'
  11652. ;;
  11653. *)
  11654. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11655. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11656. case $host in
  11657. osf3*)
  11658. 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'
  11659. ;;
  11660. *)
  11661. 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'
  11662. ;;
  11663. esac
  11664. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11665. hardcode_libdir_separator_CXX=:
  11666. # Commands to make compiler produce verbose output that lists
  11667. # what "hidden" libraries, object files and flags are used when
  11668. # linking a shared library.
  11669. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11670. else
  11671. # FIXME: insert proper C++ library support
  11672. ld_shlibs_CXX=no
  11673. fi
  11674. ;;
  11675. esac
  11676. ;;
  11677. psos*)
  11678. # FIXME: insert proper C++ library support
  11679. ld_shlibs_CXX=no
  11680. ;;
  11681. sunos4*)
  11682. case $cc_basename in
  11683. CC*)
  11684. # Sun C++ 4.x
  11685. # FIXME: insert proper C++ library support
  11686. ld_shlibs_CXX=no
  11687. ;;
  11688. lcc*)
  11689. # Lucid
  11690. # FIXME: insert proper C++ library support
  11691. ld_shlibs_CXX=no
  11692. ;;
  11693. *)
  11694. # FIXME: insert proper C++ library support
  11695. ld_shlibs_CXX=no
  11696. ;;
  11697. esac
  11698. ;;
  11699. solaris*)
  11700. case $cc_basename in
  11701. CC* | sunCC*)
  11702. # Sun C++ 4.2, 5.x and Centerline C++
  11703. archive_cmds_need_lc_CXX=yes
  11704. no_undefined_flag_CXX=' -zdefs'
  11705. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11706. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11707. $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'
  11708. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11709. hardcode_shlibpath_var_CXX=no
  11710. case $host_os in
  11711. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11712. *)
  11713. # The compiler driver will combine and reorder linker options,
  11714. # but understands `-z linker_flag'.
  11715. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11716. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11717. ;;
  11718. esac
  11719. link_all_deplibs_CXX=yes
  11720. output_verbose_link_cmd='func_echo_all'
  11721. # Archives containing C++ object files must be created using
  11722. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11723. # necessary to make sure instantiated templates are included
  11724. # in the archive.
  11725. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11726. ;;
  11727. gcx*)
  11728. # Green Hills C++ Compiler
  11729. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11730. # The C++ compiler must be used to create the archive.
  11731. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11732. ;;
  11733. *)
  11734. # GNU C++ compiler with Solaris linker
  11735. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11736. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11737. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11738. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11739. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11740. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11741. # Commands to make compiler produce verbose output that lists
  11742. # what "hidden" libraries, object files and flags are used when
  11743. # linking a shared library.
  11744. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11745. else
  11746. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11747. # platform.
  11748. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11749. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11750. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11751. # Commands to make compiler produce verbose output that lists
  11752. # what "hidden" libraries, object files and flags are used when
  11753. # linking a shared library.
  11754. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11755. fi
  11756. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11757. case $host_os in
  11758. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11759. *)
  11760. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11761. ;;
  11762. esac
  11763. fi
  11764. ;;
  11765. esac
  11766. ;;
  11767. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11768. no_undefined_flag_CXX='${wl}-z,text'
  11769. archive_cmds_need_lc_CXX=no
  11770. hardcode_shlibpath_var_CXX=no
  11771. runpath_var='LD_RUN_PATH'
  11772. case $cc_basename in
  11773. CC*)
  11774. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11775. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11776. ;;
  11777. *)
  11778. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11779. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11780. ;;
  11781. esac
  11782. ;;
  11783. sysv5* | sco3.2v5* | sco5v6*)
  11784. # Note: We can NOT use -z defs as we might desire, because we do not
  11785. # link with -lc, and that would cause any symbols used from libc to
  11786. # always be unresolved, which means just about no library would
  11787. # ever link correctly. If we're not using GNU ld we use -z text
  11788. # though, which does catch some bad symbols but isn't as heavy-handed
  11789. # as -z defs.
  11790. no_undefined_flag_CXX='${wl}-z,text'
  11791. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11792. archive_cmds_need_lc_CXX=no
  11793. hardcode_shlibpath_var_CXX=no
  11794. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11795. hardcode_libdir_separator_CXX=':'
  11796. link_all_deplibs_CXX=yes
  11797. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11798. runpath_var='LD_RUN_PATH'
  11799. case $cc_basename in
  11800. CC*)
  11801. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11802. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11803. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11804. '"$old_archive_cmds_CXX"
  11805. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11806. '"$reload_cmds_CXX"
  11807. ;;
  11808. *)
  11809. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11810. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11811. ;;
  11812. esac
  11813. ;;
  11814. tandem*)
  11815. case $cc_basename in
  11816. NCC*)
  11817. # NonStop-UX NCC 3.20
  11818. # FIXME: insert proper C++ library support
  11819. ld_shlibs_CXX=no
  11820. ;;
  11821. *)
  11822. # FIXME: insert proper C++ library support
  11823. ld_shlibs_CXX=no
  11824. ;;
  11825. esac
  11826. ;;
  11827. vxworks*)
  11828. # FIXME: insert proper C++ library support
  11829. ld_shlibs_CXX=no
  11830. ;;
  11831. *)
  11832. # FIXME: insert proper C++ library support
  11833. ld_shlibs_CXX=no
  11834. ;;
  11835. esac
  11836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11837. $as_echo "$ld_shlibs_CXX" >&6; }
  11838. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11839. GCC_CXX="$GXX"
  11840. LD_CXX="$LD"
  11841. ## CAVEAT EMPTOR:
  11842. ## There is no encapsulation within the following macros, do not change
  11843. ## the running order or otherwise move them around unless you know exactly
  11844. ## what you are doing...
  11845. # Dependencies to place before and after the object being linked:
  11846. predep_objects_CXX=
  11847. postdep_objects_CXX=
  11848. predeps_CXX=
  11849. postdeps_CXX=
  11850. compiler_lib_search_path_CXX=
  11851. cat > conftest.$ac_ext <<_LT_EOF
  11852. class Foo
  11853. {
  11854. public:
  11855. Foo (void) { a = 0; }
  11856. private:
  11857. int a;
  11858. };
  11859. _LT_EOF
  11860. _lt_libdeps_save_CFLAGS=$CFLAGS
  11861. case "$CC $CFLAGS " in #(
  11862. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11863. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11864. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11865. esac
  11866. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11867. (eval $ac_compile) 2>&5
  11868. ac_status=$?
  11869. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11870. test $ac_status = 0; }; then
  11871. # Parse the compiler output and extract the necessary
  11872. # objects, libraries and library flags.
  11873. # Sentinel used to keep track of whether or not we are before
  11874. # the conftest object file.
  11875. pre_test_object_deps_done=no
  11876. for p in `eval "$output_verbose_link_cmd"`; do
  11877. case ${prev}${p} in
  11878. -L* | -R* | -l*)
  11879. # Some compilers place space between "-{L,R}" and the path.
  11880. # Remove the space.
  11881. if test $p = "-L" ||
  11882. test $p = "-R"; then
  11883. prev=$p
  11884. continue
  11885. fi
  11886. # Expand the sysroot to ease extracting the directories later.
  11887. if test -z "$prev"; then
  11888. case $p in
  11889. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11890. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11891. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11892. esac
  11893. fi
  11894. case $p in
  11895. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11896. esac
  11897. if test "$pre_test_object_deps_done" = no; then
  11898. case ${prev} in
  11899. -L | -R)
  11900. # Internal compiler library paths should come after those
  11901. # provided the user. The postdeps already come after the
  11902. # user supplied libs so there is no need to process them.
  11903. if test -z "$compiler_lib_search_path_CXX"; then
  11904. compiler_lib_search_path_CXX="${prev}${p}"
  11905. else
  11906. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11907. fi
  11908. ;;
  11909. # The "-l" case would never come before the object being
  11910. # linked, so don't bother handling this case.
  11911. esac
  11912. else
  11913. if test -z "$postdeps_CXX"; then
  11914. postdeps_CXX="${prev}${p}"
  11915. else
  11916. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11917. fi
  11918. fi
  11919. prev=
  11920. ;;
  11921. *.lto.$objext) ;; # Ignore GCC LTO objects
  11922. *.$objext)
  11923. # This assumes that the test object file only shows up
  11924. # once in the compiler output.
  11925. if test "$p" = "conftest.$objext"; then
  11926. pre_test_object_deps_done=yes
  11927. continue
  11928. fi
  11929. if test "$pre_test_object_deps_done" = no; then
  11930. if test -z "$predep_objects_CXX"; then
  11931. predep_objects_CXX="$p"
  11932. else
  11933. predep_objects_CXX="$predep_objects_CXX $p"
  11934. fi
  11935. else
  11936. if test -z "$postdep_objects_CXX"; then
  11937. postdep_objects_CXX="$p"
  11938. else
  11939. postdep_objects_CXX="$postdep_objects_CXX $p"
  11940. fi
  11941. fi
  11942. ;;
  11943. *) ;; # Ignore the rest.
  11944. esac
  11945. done
  11946. # Clean up.
  11947. rm -f a.out a.exe
  11948. else
  11949. echo "libtool.m4: error: problem compiling CXX test program"
  11950. fi
  11951. $RM -f confest.$objext
  11952. CFLAGS=$_lt_libdeps_save_CFLAGS
  11953. # PORTME: override above test on systems where it is broken
  11954. case $host_os in
  11955. interix[3-9]*)
  11956. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11957. # hack all around it, let's just trust "g++" to DTRT.
  11958. predep_objects_CXX=
  11959. postdep_objects_CXX=
  11960. postdeps_CXX=
  11961. ;;
  11962. linux*)
  11963. case `$CC -V 2>&1 | sed 5q` in
  11964. *Sun\ C*)
  11965. # Sun C++ 5.9
  11966. # The more standards-conforming stlport4 library is
  11967. # incompatible with the Cstd library. Avoid specifying
  11968. # it if it's in CXXFLAGS. Ignore libCrun as
  11969. # -library=stlport4 depends on it.
  11970. case " $CXX $CXXFLAGS " in
  11971. *" -library=stlport4 "*)
  11972. solaris_use_stlport4=yes
  11973. ;;
  11974. esac
  11975. if test "$solaris_use_stlport4" != yes; then
  11976. postdeps_CXX='-library=Cstd -library=Crun'
  11977. fi
  11978. ;;
  11979. esac
  11980. ;;
  11981. solaris*)
  11982. case $cc_basename in
  11983. CC* | sunCC*)
  11984. # The more standards-conforming stlport4 library is
  11985. # incompatible with the Cstd library. Avoid specifying
  11986. # it if it's in CXXFLAGS. Ignore libCrun as
  11987. # -library=stlport4 depends on it.
  11988. case " $CXX $CXXFLAGS " in
  11989. *" -library=stlport4 "*)
  11990. solaris_use_stlport4=yes
  11991. ;;
  11992. esac
  11993. # Adding this requires a known-good setup of shared libraries for
  11994. # Sun compiler versions before 5.6, else PIC objects from an old
  11995. # archive will be linked into the output, leading to subtle bugs.
  11996. if test "$solaris_use_stlport4" != yes; then
  11997. postdeps_CXX='-library=Cstd -library=Crun'
  11998. fi
  11999. ;;
  12000. esac
  12001. ;;
  12002. esac
  12003. case " $postdeps_CXX " in
  12004. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12005. esac
  12006. compiler_lib_search_dirs_CXX=
  12007. if test -n "${compiler_lib_search_path_CXX}"; then
  12008. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12009. fi
  12010. lt_prog_compiler_wl_CXX=
  12011. lt_prog_compiler_pic_CXX=
  12012. lt_prog_compiler_static_CXX=
  12013. # C++ specific cases for pic, static, wl, etc.
  12014. if test "$GXX" = yes; then
  12015. lt_prog_compiler_wl_CXX='-Wl,'
  12016. lt_prog_compiler_static_CXX='-static'
  12017. case $host_os in
  12018. aix*)
  12019. # All AIX code is PIC.
  12020. if test "$host_cpu" = ia64; then
  12021. # AIX 5 now supports IA64 processor
  12022. lt_prog_compiler_static_CXX='-Bstatic'
  12023. fi
  12024. ;;
  12025. amigaos*)
  12026. case $host_cpu in
  12027. powerpc)
  12028. # see comment about AmigaOS4 .so support
  12029. lt_prog_compiler_pic_CXX='-fPIC'
  12030. ;;
  12031. m68k)
  12032. # FIXME: we need at least 68020 code to build shared libraries, but
  12033. # adding the `-m68020' flag to GCC prevents building anything better,
  12034. # like `-m68040'.
  12035. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12036. ;;
  12037. esac
  12038. ;;
  12039. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12040. # PIC is the default for these OSes.
  12041. ;;
  12042. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12043. # This hack is so that the source file can tell whether it is being
  12044. # built for inclusion in a dll (and should export symbols for example).
  12045. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12046. # (--disable-auto-import) libraries
  12047. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12048. ;;
  12049. darwin* | rhapsody*)
  12050. # PIC is the default on this platform
  12051. # Common symbols not allowed in MH_DYLIB files
  12052. lt_prog_compiler_pic_CXX='-fno-common'
  12053. ;;
  12054. *djgpp*)
  12055. # DJGPP does not support shared libraries at all
  12056. lt_prog_compiler_pic_CXX=
  12057. ;;
  12058. haiku*)
  12059. # PIC is the default for Haiku.
  12060. # The "-static" flag exists, but is broken.
  12061. lt_prog_compiler_static_CXX=
  12062. ;;
  12063. interix[3-9]*)
  12064. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12065. # Instead, we relocate shared libraries at runtime.
  12066. ;;
  12067. sysv4*MP*)
  12068. if test -d /usr/nec; then
  12069. lt_prog_compiler_pic_CXX=-Kconform_pic
  12070. fi
  12071. ;;
  12072. hpux*)
  12073. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12074. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12075. # sets the default TLS model and affects inlining.
  12076. case $host_cpu in
  12077. hppa*64*)
  12078. ;;
  12079. *)
  12080. lt_prog_compiler_pic_CXX='-fPIC'
  12081. ;;
  12082. esac
  12083. ;;
  12084. *qnx* | *nto*)
  12085. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12086. # it will coredump.
  12087. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12088. ;;
  12089. *)
  12090. lt_prog_compiler_pic_CXX='-fPIC'
  12091. ;;
  12092. esac
  12093. else
  12094. case $host_os in
  12095. aix[4-9]*)
  12096. # All AIX code is PIC.
  12097. if test "$host_cpu" = ia64; then
  12098. # AIX 5 now supports IA64 processor
  12099. lt_prog_compiler_static_CXX='-Bstatic'
  12100. else
  12101. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12102. fi
  12103. ;;
  12104. chorus*)
  12105. case $cc_basename in
  12106. cxch68*)
  12107. # Green Hills C++ Compiler
  12108. # _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"
  12109. ;;
  12110. esac
  12111. ;;
  12112. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12113. # This hack is so that the source file can tell whether it is being
  12114. # built for inclusion in a dll (and should export symbols for example).
  12115. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12116. ;;
  12117. dgux*)
  12118. case $cc_basename in
  12119. ec++*)
  12120. lt_prog_compiler_pic_CXX='-KPIC'
  12121. ;;
  12122. ghcx*)
  12123. # Green Hills C++ Compiler
  12124. lt_prog_compiler_pic_CXX='-pic'
  12125. ;;
  12126. *)
  12127. ;;
  12128. esac
  12129. ;;
  12130. freebsd* | dragonfly*)
  12131. # FreeBSD uses GNU C++
  12132. ;;
  12133. hpux9* | hpux10* | hpux11*)
  12134. case $cc_basename in
  12135. CC*)
  12136. lt_prog_compiler_wl_CXX='-Wl,'
  12137. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12138. if test "$host_cpu" != ia64; then
  12139. lt_prog_compiler_pic_CXX='+Z'
  12140. fi
  12141. ;;
  12142. aCC*)
  12143. lt_prog_compiler_wl_CXX='-Wl,'
  12144. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12145. case $host_cpu in
  12146. hppa*64*|ia64*)
  12147. # +Z the default
  12148. ;;
  12149. *)
  12150. lt_prog_compiler_pic_CXX='+Z'
  12151. ;;
  12152. esac
  12153. ;;
  12154. *)
  12155. ;;
  12156. esac
  12157. ;;
  12158. interix*)
  12159. # This is c89, which is MS Visual C++ (no shared libs)
  12160. # Anyone wants to do a port?
  12161. ;;
  12162. irix5* | irix6* | nonstopux*)
  12163. case $cc_basename in
  12164. CC*)
  12165. lt_prog_compiler_wl_CXX='-Wl,'
  12166. lt_prog_compiler_static_CXX='-non_shared'
  12167. # CC pic flag -KPIC is the default.
  12168. ;;
  12169. *)
  12170. ;;
  12171. esac
  12172. ;;
  12173. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12174. case $cc_basename in
  12175. KCC*)
  12176. # KAI C++ Compiler
  12177. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12178. lt_prog_compiler_pic_CXX='-fPIC'
  12179. ;;
  12180. ecpc* )
  12181. # old Intel C++ for x86_64 which still supported -KPIC.
  12182. lt_prog_compiler_wl_CXX='-Wl,'
  12183. lt_prog_compiler_pic_CXX='-KPIC'
  12184. lt_prog_compiler_static_CXX='-static'
  12185. ;;
  12186. icpc* )
  12187. # Intel C++, used to be incompatible with GCC.
  12188. # ICC 10 doesn't accept -KPIC any more.
  12189. lt_prog_compiler_wl_CXX='-Wl,'
  12190. lt_prog_compiler_pic_CXX='-fPIC'
  12191. lt_prog_compiler_static_CXX='-static'
  12192. ;;
  12193. pgCC* | pgcpp*)
  12194. # Portland Group C++ compiler
  12195. lt_prog_compiler_wl_CXX='-Wl,'
  12196. lt_prog_compiler_pic_CXX='-fpic'
  12197. lt_prog_compiler_static_CXX='-Bstatic'
  12198. ;;
  12199. cxx*)
  12200. # Compaq C++
  12201. # Make sure the PIC flag is empty. It appears that all Alpha
  12202. # Linux and Compaq Tru64 Unix objects are PIC.
  12203. lt_prog_compiler_pic_CXX=
  12204. lt_prog_compiler_static_CXX='-non_shared'
  12205. ;;
  12206. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12207. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12208. lt_prog_compiler_wl_CXX='-Wl,'
  12209. lt_prog_compiler_pic_CXX='-qpic'
  12210. lt_prog_compiler_static_CXX='-qstaticlink'
  12211. ;;
  12212. *)
  12213. case `$CC -V 2>&1 | sed 5q` in
  12214. *Sun\ C*)
  12215. # Sun C++ 5.9
  12216. lt_prog_compiler_pic_CXX='-KPIC'
  12217. lt_prog_compiler_static_CXX='-Bstatic'
  12218. lt_prog_compiler_wl_CXX='-Qoption ld '
  12219. ;;
  12220. esac
  12221. ;;
  12222. esac
  12223. ;;
  12224. lynxos*)
  12225. ;;
  12226. m88k*)
  12227. ;;
  12228. mvs*)
  12229. case $cc_basename in
  12230. cxx*)
  12231. lt_prog_compiler_pic_CXX='-W c,exportall'
  12232. ;;
  12233. *)
  12234. ;;
  12235. esac
  12236. ;;
  12237. netbsd*)
  12238. ;;
  12239. *qnx* | *nto*)
  12240. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12241. # it will coredump.
  12242. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12243. ;;
  12244. osf3* | osf4* | osf5*)
  12245. case $cc_basename in
  12246. KCC*)
  12247. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12248. ;;
  12249. RCC*)
  12250. # Rational C++ 2.4.1
  12251. lt_prog_compiler_pic_CXX='-pic'
  12252. ;;
  12253. cxx*)
  12254. # Digital/Compaq C++
  12255. lt_prog_compiler_wl_CXX='-Wl,'
  12256. # Make sure the PIC flag is empty. It appears that all Alpha
  12257. # Linux and Compaq Tru64 Unix objects are PIC.
  12258. lt_prog_compiler_pic_CXX=
  12259. lt_prog_compiler_static_CXX='-non_shared'
  12260. ;;
  12261. *)
  12262. ;;
  12263. esac
  12264. ;;
  12265. psos*)
  12266. ;;
  12267. solaris*)
  12268. case $cc_basename in
  12269. CC* | sunCC*)
  12270. # Sun C++ 4.2, 5.x and Centerline C++
  12271. lt_prog_compiler_pic_CXX='-KPIC'
  12272. lt_prog_compiler_static_CXX='-Bstatic'
  12273. lt_prog_compiler_wl_CXX='-Qoption ld '
  12274. ;;
  12275. gcx*)
  12276. # Green Hills C++ Compiler
  12277. lt_prog_compiler_pic_CXX='-PIC'
  12278. ;;
  12279. *)
  12280. ;;
  12281. esac
  12282. ;;
  12283. sunos4*)
  12284. case $cc_basename in
  12285. CC*)
  12286. # Sun C++ 4.x
  12287. lt_prog_compiler_pic_CXX='-pic'
  12288. lt_prog_compiler_static_CXX='-Bstatic'
  12289. ;;
  12290. lcc*)
  12291. # Lucid
  12292. lt_prog_compiler_pic_CXX='-pic'
  12293. ;;
  12294. *)
  12295. ;;
  12296. esac
  12297. ;;
  12298. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12299. case $cc_basename in
  12300. CC*)
  12301. lt_prog_compiler_wl_CXX='-Wl,'
  12302. lt_prog_compiler_pic_CXX='-KPIC'
  12303. lt_prog_compiler_static_CXX='-Bstatic'
  12304. ;;
  12305. esac
  12306. ;;
  12307. tandem*)
  12308. case $cc_basename in
  12309. NCC*)
  12310. # NonStop-UX NCC 3.20
  12311. lt_prog_compiler_pic_CXX='-KPIC'
  12312. ;;
  12313. *)
  12314. ;;
  12315. esac
  12316. ;;
  12317. vxworks*)
  12318. ;;
  12319. *)
  12320. lt_prog_compiler_can_build_shared_CXX=no
  12321. ;;
  12322. esac
  12323. fi
  12324. case $host_os in
  12325. # For platforms which do not support PIC, -DPIC is meaningless:
  12326. *djgpp*)
  12327. lt_prog_compiler_pic_CXX=
  12328. ;;
  12329. *)
  12330. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12331. ;;
  12332. esac
  12333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12334. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12335. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12336. $as_echo_n "(cached) " >&6
  12337. else
  12338. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12339. fi
  12340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12341. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12342. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12343. #
  12344. # Check to make sure the PIC flag actually works.
  12345. #
  12346. if test -n "$lt_prog_compiler_pic_CXX"; then
  12347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12348. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12349. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12350. $as_echo_n "(cached) " >&6
  12351. else
  12352. lt_cv_prog_compiler_pic_works_CXX=no
  12353. ac_outfile=conftest.$ac_objext
  12354. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12355. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12356. # Insert the option either (1) after the last *FLAGS variable, or
  12357. # (2) before a word containing "conftest.", or (3) at the end.
  12358. # Note that $ac_compile itself does not contain backslashes and begins
  12359. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12360. # The option is referenced via a variable to avoid confusing sed.
  12361. lt_compile=`echo "$ac_compile" | $SED \
  12362. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12363. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12364. -e 's:$: $lt_compiler_flag:'`
  12365. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12366. (eval "$lt_compile" 2>conftest.err)
  12367. ac_status=$?
  12368. cat conftest.err >&5
  12369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12370. if (exit $ac_status) && test -s "$ac_outfile"; then
  12371. # The compiler can only warn and ignore the option if not recognized
  12372. # So say no if there are warnings other than the usual output.
  12373. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12374. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12375. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12376. lt_cv_prog_compiler_pic_works_CXX=yes
  12377. fi
  12378. fi
  12379. $RM conftest*
  12380. fi
  12381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12382. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12383. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12384. case $lt_prog_compiler_pic_CXX in
  12385. "" | " "*) ;;
  12386. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12387. esac
  12388. else
  12389. lt_prog_compiler_pic_CXX=
  12390. lt_prog_compiler_can_build_shared_CXX=no
  12391. fi
  12392. fi
  12393. #
  12394. # Check to make sure the static flag actually works.
  12395. #
  12396. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12398. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12399. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12400. $as_echo_n "(cached) " >&6
  12401. else
  12402. lt_cv_prog_compiler_static_works_CXX=no
  12403. save_LDFLAGS="$LDFLAGS"
  12404. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12405. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12406. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12407. # The linker can only warn and ignore the option if not recognized
  12408. # So say no if there are warnings
  12409. if test -s conftest.err; then
  12410. # Append any errors to the config.log.
  12411. cat conftest.err 1>&5
  12412. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12413. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12414. if diff conftest.exp conftest.er2 >/dev/null; then
  12415. lt_cv_prog_compiler_static_works_CXX=yes
  12416. fi
  12417. else
  12418. lt_cv_prog_compiler_static_works_CXX=yes
  12419. fi
  12420. fi
  12421. $RM -r conftest*
  12422. LDFLAGS="$save_LDFLAGS"
  12423. fi
  12424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12425. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12426. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12427. :
  12428. else
  12429. lt_prog_compiler_static_CXX=
  12430. fi
  12431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12432. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12433. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12434. $as_echo_n "(cached) " >&6
  12435. else
  12436. lt_cv_prog_compiler_c_o_CXX=no
  12437. $RM -r conftest 2>/dev/null
  12438. mkdir conftest
  12439. cd conftest
  12440. mkdir out
  12441. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12442. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12443. # Insert the option either (1) after the last *FLAGS variable, or
  12444. # (2) before a word containing "conftest.", or (3) at the end.
  12445. # Note that $ac_compile itself does not contain backslashes and begins
  12446. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12447. lt_compile=`echo "$ac_compile" | $SED \
  12448. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12449. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12450. -e 's:$: $lt_compiler_flag:'`
  12451. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12452. (eval "$lt_compile" 2>out/conftest.err)
  12453. ac_status=$?
  12454. cat out/conftest.err >&5
  12455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12456. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12457. then
  12458. # The compiler can only warn and ignore the option if not recognized
  12459. # So say no if there are warnings
  12460. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12461. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12462. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12463. lt_cv_prog_compiler_c_o_CXX=yes
  12464. fi
  12465. fi
  12466. chmod u+w . 2>&5
  12467. $RM conftest*
  12468. # SGI C++ compiler will create directory out/ii_files/ for
  12469. # template instantiation
  12470. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12471. $RM out/* && rmdir out
  12472. cd ..
  12473. $RM -r conftest
  12474. $RM conftest*
  12475. fi
  12476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12477. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12479. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12480. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12481. $as_echo_n "(cached) " >&6
  12482. else
  12483. lt_cv_prog_compiler_c_o_CXX=no
  12484. $RM -r conftest 2>/dev/null
  12485. mkdir conftest
  12486. cd conftest
  12487. mkdir out
  12488. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12489. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12490. # Insert the option either (1) after the last *FLAGS variable, or
  12491. # (2) before a word containing "conftest.", or (3) at the end.
  12492. # Note that $ac_compile itself does not contain backslashes and begins
  12493. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12494. lt_compile=`echo "$ac_compile" | $SED \
  12495. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12496. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12497. -e 's:$: $lt_compiler_flag:'`
  12498. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12499. (eval "$lt_compile" 2>out/conftest.err)
  12500. ac_status=$?
  12501. cat out/conftest.err >&5
  12502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12503. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12504. then
  12505. # The compiler can only warn and ignore the option if not recognized
  12506. # So say no if there are warnings
  12507. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12508. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12509. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12510. lt_cv_prog_compiler_c_o_CXX=yes
  12511. fi
  12512. fi
  12513. chmod u+w . 2>&5
  12514. $RM conftest*
  12515. # SGI C++ compiler will create directory out/ii_files/ for
  12516. # template instantiation
  12517. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12518. $RM out/* && rmdir out
  12519. cd ..
  12520. $RM -r conftest
  12521. $RM conftest*
  12522. fi
  12523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12524. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12525. hard_links="nottested"
  12526. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12527. # do not overwrite the value of need_locks provided by the user
  12528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12529. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12530. hard_links=yes
  12531. $RM conftest*
  12532. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12533. touch conftest.a
  12534. ln conftest.a conftest.b 2>&5 || hard_links=no
  12535. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12537. $as_echo "$hard_links" >&6; }
  12538. if test "$hard_links" = no; then
  12539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12540. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12541. need_locks=warn
  12542. fi
  12543. else
  12544. need_locks=no
  12545. fi
  12546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12547. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12548. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12549. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12550. case $host_os in
  12551. aix[4-9]*)
  12552. # If we're using GNU nm, then we don't want the "-C" option.
  12553. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12554. # Also, AIX nm treats weak defined symbols like other global defined
  12555. # symbols, whereas GNU nm marks them as "W".
  12556. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12557. 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'
  12558. else
  12559. 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'
  12560. fi
  12561. ;;
  12562. pw32*)
  12563. export_symbols_cmds_CXX="$ltdll_cmds"
  12564. ;;
  12565. cygwin* | mingw* | cegcc*)
  12566. case $cc_basename in
  12567. cl*)
  12568. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12569. ;;
  12570. *)
  12571. 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'
  12572. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12573. ;;
  12574. esac
  12575. ;;
  12576. *)
  12577. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12578. ;;
  12579. esac
  12580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12581. $as_echo "$ld_shlibs_CXX" >&6; }
  12582. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12583. with_gnu_ld_CXX=$with_gnu_ld
  12584. #
  12585. # Do we need to explicitly link libc?
  12586. #
  12587. case "x$archive_cmds_need_lc_CXX" in
  12588. x|xyes)
  12589. # Assume -lc should be added
  12590. archive_cmds_need_lc_CXX=yes
  12591. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12592. case $archive_cmds_CXX in
  12593. *'~'*)
  12594. # FIXME: we may have to deal with multi-command sequences.
  12595. ;;
  12596. '$CC '*)
  12597. # Test whether the compiler implicitly links with -lc since on some
  12598. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12599. # to ld, don't add -lc before -lgcc.
  12600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12601. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12602. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12603. $as_echo_n "(cached) " >&6
  12604. else
  12605. $RM conftest*
  12606. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12607. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12608. (eval $ac_compile) 2>&5
  12609. ac_status=$?
  12610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12611. test $ac_status = 0; } 2>conftest.err; then
  12612. soname=conftest
  12613. lib=conftest
  12614. libobjs=conftest.$ac_objext
  12615. deplibs=
  12616. wl=$lt_prog_compiler_wl_CXX
  12617. pic_flag=$lt_prog_compiler_pic_CXX
  12618. compiler_flags=-v
  12619. linker_flags=-v
  12620. verstring=
  12621. output_objdir=.
  12622. libname=conftest
  12623. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12624. allow_undefined_flag_CXX=
  12625. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12626. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12627. ac_status=$?
  12628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12629. test $ac_status = 0; }
  12630. then
  12631. lt_cv_archive_cmds_need_lc_CXX=no
  12632. else
  12633. lt_cv_archive_cmds_need_lc_CXX=yes
  12634. fi
  12635. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12636. else
  12637. cat conftest.err 1>&5
  12638. fi
  12639. $RM conftest*
  12640. fi
  12641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12642. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12643. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12644. ;;
  12645. esac
  12646. fi
  12647. ;;
  12648. esac
  12649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12650. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12651. library_names_spec=
  12652. libname_spec='lib$name'
  12653. soname_spec=
  12654. shrext_cmds=".so"
  12655. postinstall_cmds=
  12656. postuninstall_cmds=
  12657. finish_cmds=
  12658. finish_eval=
  12659. shlibpath_var=
  12660. shlibpath_overrides_runpath=unknown
  12661. version_type=none
  12662. dynamic_linker="$host_os ld.so"
  12663. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12664. need_lib_prefix=unknown
  12665. hardcode_into_libs=no
  12666. # when you set need_version to no, make sure it does not cause -set_version
  12667. # flags to be left without arguments
  12668. need_version=unknown
  12669. case $host_os in
  12670. aix3*)
  12671. version_type=linux # correct to gnu/linux during the next big refactor
  12672. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12673. shlibpath_var=LIBPATH
  12674. # AIX 3 has no versioning support, so we append a major version to the name.
  12675. soname_spec='${libname}${release}${shared_ext}$major'
  12676. ;;
  12677. aix[4-9]*)
  12678. version_type=linux # correct to gnu/linux during the next big refactor
  12679. need_lib_prefix=no
  12680. need_version=no
  12681. hardcode_into_libs=yes
  12682. if test "$host_cpu" = ia64; then
  12683. # AIX 5 supports IA64
  12684. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12685. shlibpath_var=LD_LIBRARY_PATH
  12686. else
  12687. # With GCC up to 2.95.x, collect2 would create an import file
  12688. # for dependence libraries. The import file would start with
  12689. # the line `#! .'. This would cause the generated library to
  12690. # depend on `.', always an invalid library. This was fixed in
  12691. # development snapshots of GCC prior to 3.0.
  12692. case $host_os in
  12693. aix4 | aix4.[01] | aix4.[01].*)
  12694. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12695. echo ' yes '
  12696. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12697. :
  12698. else
  12699. can_build_shared=no
  12700. fi
  12701. ;;
  12702. esac
  12703. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12704. # soname into executable. Probably we can add versioning support to
  12705. # collect2, so additional links can be useful in future.
  12706. if test "$aix_use_runtimelinking" = yes; then
  12707. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12708. # instead of lib<name>.a to let people know that these are not
  12709. # typical AIX shared libraries.
  12710. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12711. else
  12712. # We preserve .a as extension for shared libraries through AIX4.2
  12713. # and later when we are not doing run time linking.
  12714. library_names_spec='${libname}${release}.a $libname.a'
  12715. soname_spec='${libname}${release}${shared_ext}$major'
  12716. fi
  12717. shlibpath_var=LIBPATH
  12718. fi
  12719. ;;
  12720. amigaos*)
  12721. case $host_cpu in
  12722. powerpc)
  12723. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12724. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12725. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12726. ;;
  12727. m68k)
  12728. library_names_spec='$libname.ixlibrary $libname.a'
  12729. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12730. 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'
  12731. ;;
  12732. esac
  12733. ;;
  12734. beos*)
  12735. library_names_spec='${libname}${shared_ext}'
  12736. dynamic_linker="$host_os ld.so"
  12737. shlibpath_var=LIBRARY_PATH
  12738. ;;
  12739. bsdi[45]*)
  12740. version_type=linux # correct to gnu/linux during the next big refactor
  12741. need_version=no
  12742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12743. soname_spec='${libname}${release}${shared_ext}$major'
  12744. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12745. shlibpath_var=LD_LIBRARY_PATH
  12746. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12747. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12748. # the default ld.so.conf also contains /usr/contrib/lib and
  12749. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12750. # libtool to hard-code these into programs
  12751. ;;
  12752. cygwin* | mingw* | pw32* | cegcc*)
  12753. version_type=windows
  12754. shrext_cmds=".dll"
  12755. need_version=no
  12756. need_lib_prefix=no
  12757. case $GCC,$cc_basename in
  12758. yes,*)
  12759. # gcc
  12760. library_names_spec='$libname.dll.a'
  12761. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12762. postinstall_cmds='base_file=`basename \${file}`~
  12763. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12764. dldir=$destdir/`dirname \$dlpath`~
  12765. test -d \$dldir || mkdir -p \$dldir~
  12766. $install_prog $dir/$dlname \$dldir/$dlname~
  12767. chmod a+x \$dldir/$dlname~
  12768. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12769. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12770. fi'
  12771. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12772. dlpath=$dir/\$dldll~
  12773. $RM \$dlpath'
  12774. shlibpath_overrides_runpath=yes
  12775. case $host_os in
  12776. cygwin*)
  12777. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12778. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12779. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12780. ;;
  12781. mingw* | cegcc*)
  12782. # MinGW DLLs use traditional 'lib' prefix
  12783. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12784. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12785. ;;
  12786. pw32*)
  12787. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12788. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12789. ;;
  12790. esac
  12791. dynamic_linker='Win32 ld.exe'
  12792. ;;
  12793. *,cl*)
  12794. # Native MSVC
  12795. libname_spec='$name'
  12796. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12797. library_names_spec='${libname}.dll.lib'
  12798. case $build_os in
  12799. mingw*)
  12800. sys_lib_search_path_spec=
  12801. lt_save_ifs=$IFS
  12802. IFS=';'
  12803. for lt_path in $LIB
  12804. do
  12805. IFS=$lt_save_ifs
  12806. # Let DOS variable expansion print the short 8.3 style file name.
  12807. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12808. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12809. done
  12810. IFS=$lt_save_ifs
  12811. # Convert to MSYS style.
  12812. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12813. ;;
  12814. cygwin*)
  12815. # Convert to unix form, then to dos form, then back to unix form
  12816. # but this time dos style (no spaces!) so that the unix form looks
  12817. # like /cygdrive/c/PROGRA~1:/cygdr...
  12818. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12819. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12820. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12821. ;;
  12822. *)
  12823. sys_lib_search_path_spec="$LIB"
  12824. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12825. # It is most probably a Windows format PATH.
  12826. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12827. else
  12828. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12829. fi
  12830. # FIXME: find the short name or the path components, as spaces are
  12831. # common. (e.g. "Program Files" -> "PROGRA~1")
  12832. ;;
  12833. esac
  12834. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12835. postinstall_cmds='base_file=`basename \${file}`~
  12836. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12837. dldir=$destdir/`dirname \$dlpath`~
  12838. test -d \$dldir || mkdir -p \$dldir~
  12839. $install_prog $dir/$dlname \$dldir/$dlname'
  12840. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12841. dlpath=$dir/\$dldll~
  12842. $RM \$dlpath'
  12843. shlibpath_overrides_runpath=yes
  12844. dynamic_linker='Win32 link.exe'
  12845. ;;
  12846. *)
  12847. # Assume MSVC wrapper
  12848. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12849. dynamic_linker='Win32 ld.exe'
  12850. ;;
  12851. esac
  12852. # FIXME: first we should search . and the directory the executable is in
  12853. shlibpath_var=PATH
  12854. ;;
  12855. darwin* | rhapsody*)
  12856. dynamic_linker="$host_os dyld"
  12857. version_type=darwin
  12858. need_lib_prefix=no
  12859. need_version=no
  12860. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12861. soname_spec='${libname}${release}${major}$shared_ext'
  12862. shlibpath_overrides_runpath=yes
  12863. shlibpath_var=DYLD_LIBRARY_PATH
  12864. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12865. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12866. ;;
  12867. dgux*)
  12868. version_type=linux # correct to gnu/linux during the next big refactor
  12869. need_lib_prefix=no
  12870. need_version=no
  12871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12872. soname_spec='${libname}${release}${shared_ext}$major'
  12873. shlibpath_var=LD_LIBRARY_PATH
  12874. ;;
  12875. freebsd* | dragonfly*)
  12876. # DragonFly does not have aout. When/if they implement a new
  12877. # versioning mechanism, adjust this.
  12878. if test -x /usr/bin/objformat; then
  12879. objformat=`/usr/bin/objformat`
  12880. else
  12881. case $host_os in
  12882. freebsd[23].*) objformat=aout ;;
  12883. *) objformat=elf ;;
  12884. esac
  12885. fi
  12886. version_type=freebsd-$objformat
  12887. case $version_type in
  12888. freebsd-elf*)
  12889. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12890. need_version=no
  12891. need_lib_prefix=no
  12892. ;;
  12893. freebsd-*)
  12894. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12895. need_version=yes
  12896. ;;
  12897. esac
  12898. shlibpath_var=LD_LIBRARY_PATH
  12899. case $host_os in
  12900. freebsd2.*)
  12901. shlibpath_overrides_runpath=yes
  12902. ;;
  12903. freebsd3.[01]* | freebsdelf3.[01]*)
  12904. shlibpath_overrides_runpath=yes
  12905. hardcode_into_libs=yes
  12906. ;;
  12907. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12908. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12909. shlibpath_overrides_runpath=no
  12910. hardcode_into_libs=yes
  12911. ;;
  12912. *) # from 4.6 on, and DragonFly
  12913. shlibpath_overrides_runpath=yes
  12914. hardcode_into_libs=yes
  12915. ;;
  12916. esac
  12917. ;;
  12918. gnu*)
  12919. version_type=linux # correct to gnu/linux during the next big refactor
  12920. need_lib_prefix=no
  12921. need_version=no
  12922. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12923. soname_spec='${libname}${release}${shared_ext}$major'
  12924. shlibpath_var=LD_LIBRARY_PATH
  12925. shlibpath_overrides_runpath=no
  12926. hardcode_into_libs=yes
  12927. ;;
  12928. haiku*)
  12929. version_type=linux # correct to gnu/linux during the next big refactor
  12930. need_lib_prefix=no
  12931. need_version=no
  12932. dynamic_linker="$host_os runtime_loader"
  12933. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12934. soname_spec='${libname}${release}${shared_ext}$major'
  12935. shlibpath_var=LIBRARY_PATH
  12936. shlibpath_overrides_runpath=yes
  12937. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12938. hardcode_into_libs=yes
  12939. ;;
  12940. hpux9* | hpux10* | hpux11*)
  12941. # Give a soname corresponding to the major version so that dld.sl refuses to
  12942. # link against other versions.
  12943. version_type=sunos
  12944. need_lib_prefix=no
  12945. need_version=no
  12946. case $host_cpu in
  12947. ia64*)
  12948. shrext_cmds='.so'
  12949. hardcode_into_libs=yes
  12950. dynamic_linker="$host_os dld.so"
  12951. shlibpath_var=LD_LIBRARY_PATH
  12952. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12953. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12954. soname_spec='${libname}${release}${shared_ext}$major'
  12955. if test "X$HPUX_IA64_MODE" = X32; then
  12956. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12957. else
  12958. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12959. fi
  12960. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12961. ;;
  12962. hppa*64*)
  12963. shrext_cmds='.sl'
  12964. hardcode_into_libs=yes
  12965. dynamic_linker="$host_os dld.sl"
  12966. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12967. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12968. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12969. soname_spec='${libname}${release}${shared_ext}$major'
  12970. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12971. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12972. ;;
  12973. *)
  12974. shrext_cmds='.sl'
  12975. dynamic_linker="$host_os dld.sl"
  12976. shlibpath_var=SHLIB_PATH
  12977. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12979. soname_spec='${libname}${release}${shared_ext}$major'
  12980. ;;
  12981. esac
  12982. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12983. postinstall_cmds='chmod 555 $lib'
  12984. # or fails outright, so override atomically:
  12985. install_override_mode=555
  12986. ;;
  12987. interix[3-9]*)
  12988. version_type=linux # correct to gnu/linux during the next big refactor
  12989. need_lib_prefix=no
  12990. need_version=no
  12991. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12992. soname_spec='${libname}${release}${shared_ext}$major'
  12993. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12994. shlibpath_var=LD_LIBRARY_PATH
  12995. shlibpath_overrides_runpath=no
  12996. hardcode_into_libs=yes
  12997. ;;
  12998. irix5* | irix6* | nonstopux*)
  12999. case $host_os in
  13000. nonstopux*) version_type=nonstopux ;;
  13001. *)
  13002. if test "$lt_cv_prog_gnu_ld" = yes; then
  13003. version_type=linux # correct to gnu/linux during the next big refactor
  13004. else
  13005. version_type=irix
  13006. fi ;;
  13007. esac
  13008. need_lib_prefix=no
  13009. need_version=no
  13010. soname_spec='${libname}${release}${shared_ext}$major'
  13011. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13012. case $host_os in
  13013. irix5* | nonstopux*)
  13014. libsuff= shlibsuff=
  13015. ;;
  13016. *)
  13017. case $LD in # libtool.m4 will add one of these switches to LD
  13018. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13019. libsuff= shlibsuff= libmagic=32-bit;;
  13020. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13021. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13022. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13023. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13024. *) libsuff= shlibsuff= libmagic=never-match;;
  13025. esac
  13026. ;;
  13027. esac
  13028. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13029. shlibpath_overrides_runpath=no
  13030. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13031. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13032. hardcode_into_libs=yes
  13033. ;;
  13034. # No shared lib support for Linux oldld, aout, or coff.
  13035. linux*oldld* | linux*aout* | linux*coff*)
  13036. dynamic_linker=no
  13037. ;;
  13038. # This must be glibc/ELF.
  13039. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13040. version_type=linux # correct to gnu/linux during the next big refactor
  13041. need_lib_prefix=no
  13042. need_version=no
  13043. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13044. soname_spec='${libname}${release}${shared_ext}$major'
  13045. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13046. shlibpath_var=LD_LIBRARY_PATH
  13047. shlibpath_overrides_runpath=no
  13048. # Some binutils ld are patched to set DT_RUNPATH
  13049. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13050. $as_echo_n "(cached) " >&6
  13051. else
  13052. lt_cv_shlibpath_overrides_runpath=no
  13053. save_LDFLAGS=$LDFLAGS
  13054. save_libdir=$libdir
  13055. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13056. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13058. /* end confdefs.h. */
  13059. int
  13060. main ()
  13061. {
  13062. ;
  13063. return 0;
  13064. }
  13065. _ACEOF
  13066. if ac_fn_cxx_try_link "$LINENO"; then :
  13067. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13068. lt_cv_shlibpath_overrides_runpath=yes
  13069. fi
  13070. fi
  13071. rm -f core conftest.err conftest.$ac_objext \
  13072. conftest$ac_exeext conftest.$ac_ext
  13073. LDFLAGS=$save_LDFLAGS
  13074. libdir=$save_libdir
  13075. fi
  13076. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13077. # This implies no fast_install, which is unacceptable.
  13078. # Some rework will be needed to allow for fast_install
  13079. # before this can be enabled.
  13080. hardcode_into_libs=yes
  13081. # Append ld.so.conf contents to the search path
  13082. if test -f /etc/ld.so.conf; then
  13083. 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' ' '`
  13084. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13085. fi
  13086. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13087. # powerpc, because MkLinux only supported shared libraries with the
  13088. # GNU dynamic linker. Since this was broken with cross compilers,
  13089. # most powerpc-linux boxes support dynamic linking these days and
  13090. # people can always --disable-shared, the test was removed, and we
  13091. # assume the GNU/Linux dynamic linker is in use.
  13092. dynamic_linker='GNU/Linux ld.so'
  13093. ;;
  13094. netbsd*)
  13095. version_type=sunos
  13096. need_lib_prefix=no
  13097. need_version=no
  13098. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13099. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13100. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13101. dynamic_linker='NetBSD (a.out) ld.so'
  13102. else
  13103. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13104. soname_spec='${libname}${release}${shared_ext}$major'
  13105. dynamic_linker='NetBSD ld.elf_so'
  13106. fi
  13107. shlibpath_var=LD_LIBRARY_PATH
  13108. shlibpath_overrides_runpath=yes
  13109. hardcode_into_libs=yes
  13110. ;;
  13111. newsos6)
  13112. version_type=linux # correct to gnu/linux during the next big refactor
  13113. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13114. shlibpath_var=LD_LIBRARY_PATH
  13115. shlibpath_overrides_runpath=yes
  13116. ;;
  13117. *nto* | *qnx*)
  13118. version_type=qnx
  13119. need_lib_prefix=no
  13120. need_version=no
  13121. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13122. soname_spec='${libname}${release}${shared_ext}$major'
  13123. shlibpath_var=LD_LIBRARY_PATH
  13124. shlibpath_overrides_runpath=no
  13125. hardcode_into_libs=yes
  13126. dynamic_linker='ldqnx.so'
  13127. ;;
  13128. openbsd*)
  13129. version_type=sunos
  13130. sys_lib_dlsearch_path_spec="/usr/lib"
  13131. need_lib_prefix=no
  13132. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13133. case $host_os in
  13134. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13135. *) need_version=no ;;
  13136. esac
  13137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13138. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13139. shlibpath_var=LD_LIBRARY_PATH
  13140. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13141. case $host_os in
  13142. openbsd2.[89] | openbsd2.[89].*)
  13143. shlibpath_overrides_runpath=no
  13144. ;;
  13145. *)
  13146. shlibpath_overrides_runpath=yes
  13147. ;;
  13148. esac
  13149. else
  13150. shlibpath_overrides_runpath=yes
  13151. fi
  13152. ;;
  13153. os2*)
  13154. libname_spec='$name'
  13155. shrext_cmds=".dll"
  13156. need_lib_prefix=no
  13157. library_names_spec='$libname${shared_ext} $libname.a'
  13158. dynamic_linker='OS/2 ld.exe'
  13159. shlibpath_var=LIBPATH
  13160. ;;
  13161. osf3* | osf4* | osf5*)
  13162. version_type=osf
  13163. need_lib_prefix=no
  13164. need_version=no
  13165. soname_spec='${libname}${release}${shared_ext}$major'
  13166. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13167. shlibpath_var=LD_LIBRARY_PATH
  13168. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13169. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13170. ;;
  13171. rdos*)
  13172. dynamic_linker=no
  13173. ;;
  13174. solaris*)
  13175. version_type=linux # correct to gnu/linux during the next big refactor
  13176. need_lib_prefix=no
  13177. need_version=no
  13178. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13179. soname_spec='${libname}${release}${shared_ext}$major'
  13180. shlibpath_var=LD_LIBRARY_PATH
  13181. shlibpath_overrides_runpath=yes
  13182. hardcode_into_libs=yes
  13183. # ldd complains unless libraries are executable
  13184. postinstall_cmds='chmod +x $lib'
  13185. ;;
  13186. sunos4*)
  13187. version_type=sunos
  13188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13189. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13190. shlibpath_var=LD_LIBRARY_PATH
  13191. shlibpath_overrides_runpath=yes
  13192. if test "$with_gnu_ld" = yes; then
  13193. need_lib_prefix=no
  13194. fi
  13195. need_version=yes
  13196. ;;
  13197. sysv4 | sysv4.3*)
  13198. version_type=linux # correct to gnu/linux during the next big refactor
  13199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13200. soname_spec='${libname}${release}${shared_ext}$major'
  13201. shlibpath_var=LD_LIBRARY_PATH
  13202. case $host_vendor in
  13203. sni)
  13204. shlibpath_overrides_runpath=no
  13205. need_lib_prefix=no
  13206. runpath_var=LD_RUN_PATH
  13207. ;;
  13208. siemens)
  13209. need_lib_prefix=no
  13210. ;;
  13211. motorola)
  13212. need_lib_prefix=no
  13213. need_version=no
  13214. shlibpath_overrides_runpath=no
  13215. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13216. ;;
  13217. esac
  13218. ;;
  13219. sysv4*MP*)
  13220. if test -d /usr/nec ;then
  13221. version_type=linux # correct to gnu/linux during the next big refactor
  13222. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13223. soname_spec='$libname${shared_ext}.$major'
  13224. shlibpath_var=LD_LIBRARY_PATH
  13225. fi
  13226. ;;
  13227. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13228. version_type=freebsd-elf
  13229. need_lib_prefix=no
  13230. need_version=no
  13231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13232. soname_spec='${libname}${release}${shared_ext}$major'
  13233. shlibpath_var=LD_LIBRARY_PATH
  13234. shlibpath_overrides_runpath=yes
  13235. hardcode_into_libs=yes
  13236. if test "$with_gnu_ld" = yes; then
  13237. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13238. else
  13239. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13240. case $host_os in
  13241. sco3.2v5*)
  13242. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13243. ;;
  13244. esac
  13245. fi
  13246. sys_lib_dlsearch_path_spec='/usr/lib'
  13247. ;;
  13248. tpf*)
  13249. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13250. version_type=linux # correct to gnu/linux during the next big refactor
  13251. need_lib_prefix=no
  13252. need_version=no
  13253. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13254. shlibpath_var=LD_LIBRARY_PATH
  13255. shlibpath_overrides_runpath=no
  13256. hardcode_into_libs=yes
  13257. ;;
  13258. uts4*)
  13259. version_type=linux # correct to gnu/linux during the next big refactor
  13260. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13261. soname_spec='${libname}${release}${shared_ext}$major'
  13262. shlibpath_var=LD_LIBRARY_PATH
  13263. ;;
  13264. *)
  13265. dynamic_linker=no
  13266. ;;
  13267. esac
  13268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13269. $as_echo "$dynamic_linker" >&6; }
  13270. test "$dynamic_linker" = no && can_build_shared=no
  13271. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13272. if test "$GCC" = yes; then
  13273. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13274. fi
  13275. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13276. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13277. fi
  13278. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13279. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13280. fi
  13281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13282. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13283. hardcode_action_CXX=
  13284. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13285. test -n "$runpath_var_CXX" ||
  13286. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13287. # We can hardcode non-existent directories.
  13288. if test "$hardcode_direct_CXX" != no &&
  13289. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13290. # have to relink, otherwise we might link with an installed library
  13291. # when we should be linking with a yet-to-be-installed one
  13292. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13293. test "$hardcode_minus_L_CXX" != no; then
  13294. # Linking always hardcodes the temporary library directory.
  13295. hardcode_action_CXX=relink
  13296. else
  13297. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13298. hardcode_action_CXX=immediate
  13299. fi
  13300. else
  13301. # We cannot hardcode anything, or else we can only hardcode existing
  13302. # directories.
  13303. hardcode_action_CXX=unsupported
  13304. fi
  13305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13306. $as_echo "$hardcode_action_CXX" >&6; }
  13307. if test "$hardcode_action_CXX" = relink ||
  13308. test "$inherit_rpath_CXX" = yes; then
  13309. # Fast installation is not supported
  13310. enable_fast_install=no
  13311. elif test "$shlibpath_overrides_runpath" = yes ||
  13312. test "$enable_shared" = no; then
  13313. # Fast installation is not necessary
  13314. enable_fast_install=needless
  13315. fi
  13316. fi # test -n "$compiler"
  13317. CC=$lt_save_CC
  13318. CFLAGS=$lt_save_CFLAGS
  13319. LDCXX=$LD
  13320. LD=$lt_save_LD
  13321. GCC=$lt_save_GCC
  13322. with_gnu_ld=$lt_save_with_gnu_ld
  13323. lt_cv_path_LDCXX=$lt_cv_path_LD
  13324. lt_cv_path_LD=$lt_save_path_LD
  13325. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13326. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13327. fi # test "$_lt_caught_CXX_error" != yes
  13328. ac_ext=c
  13329. ac_cpp='$CPP $CPPFLAGS'
  13330. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13331. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13332. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13333. # Find a good install program. We prefer a C program (faster),
  13334. # so one script is as good as another. But avoid the broken or
  13335. # incompatible versions:
  13336. # SysV /etc/install, /usr/sbin/install
  13337. # SunOS /usr/etc/install
  13338. # IRIX /sbin/install
  13339. # AIX /bin/install
  13340. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13341. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13342. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13343. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13344. # OS/2's system install, which has a completely different semantic
  13345. # ./install, which can be erroneously created by make from ./install.sh.
  13346. # Reject install programs that cannot install multiple files.
  13347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13348. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13349. if test -z "$INSTALL"; then
  13350. if ${ac_cv_path_install+:} false; then :
  13351. $as_echo_n "(cached) " >&6
  13352. else
  13353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13354. for as_dir in $PATH
  13355. do
  13356. IFS=$as_save_IFS
  13357. test -z "$as_dir" && as_dir=.
  13358. # Account for people who put trailing slashes in PATH elements.
  13359. case $as_dir/ in #((
  13360. ./ | .// | /[cC]/* | \
  13361. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13362. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13363. /usr/ucb/* ) ;;
  13364. *)
  13365. # OSF1 and SCO ODT 3.0 have their own names for install.
  13366. # Don't use installbsd from OSF since it installs stuff as root
  13367. # by default.
  13368. for ac_prog in ginstall scoinst install; do
  13369. for ac_exec_ext in '' $ac_executable_extensions; do
  13370. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13371. if test $ac_prog = install &&
  13372. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13373. # AIX install. It has an incompatible calling convention.
  13374. :
  13375. elif test $ac_prog = install &&
  13376. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13377. # program-specific install script used by HP pwplus--don't use.
  13378. :
  13379. else
  13380. rm -rf conftest.one conftest.two conftest.dir
  13381. echo one > conftest.one
  13382. echo two > conftest.two
  13383. mkdir conftest.dir
  13384. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13385. test -s conftest.one && test -s conftest.two &&
  13386. test -s conftest.dir/conftest.one &&
  13387. test -s conftest.dir/conftest.two
  13388. then
  13389. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13390. break 3
  13391. fi
  13392. fi
  13393. fi
  13394. done
  13395. done
  13396. ;;
  13397. esac
  13398. done
  13399. IFS=$as_save_IFS
  13400. rm -rf conftest.one conftest.two conftest.dir
  13401. fi
  13402. if test "${ac_cv_path_install+set}" = set; then
  13403. INSTALL=$ac_cv_path_install
  13404. else
  13405. # As a last resort, use the slow shell script. Don't cache a
  13406. # value for INSTALL within a source directory, because that will
  13407. # break other packages using the cache if that directory is
  13408. # removed, or if the value is a relative name.
  13409. INSTALL=$ac_install_sh
  13410. fi
  13411. fi
  13412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13413. $as_echo "$INSTALL" >&6; }
  13414. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13415. # It thinks the first close brace ends the variable substitution.
  13416. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13417. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13418. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13420. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13421. set x ${MAKE-make}
  13422. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13423. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13424. $as_echo_n "(cached) " >&6
  13425. else
  13426. cat >conftest.make <<\_ACEOF
  13427. SHELL = /bin/sh
  13428. all:
  13429. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13430. _ACEOF
  13431. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13432. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13433. *@@@%%%=?*=@@@%%%*)
  13434. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13435. *)
  13436. eval ac_cv_prog_make_${ac_make}_set=no;;
  13437. esac
  13438. rm -f conftest.make
  13439. fi
  13440. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13442. $as_echo "yes" >&6; }
  13443. SET_MAKE=
  13444. else
  13445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13446. $as_echo "no" >&6; }
  13447. SET_MAKE="MAKE=${MAKE-make}"
  13448. fi
  13449. if test -n "$ac_tool_prefix"; then
  13450. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13451. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13453. $as_echo_n "checking for $ac_word... " >&6; }
  13454. if ${ac_cv_prog_WINDRES+:} false; then :
  13455. $as_echo_n "(cached) " >&6
  13456. else
  13457. if test -n "$WINDRES"; then
  13458. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13459. else
  13460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13461. for as_dir in $PATH
  13462. do
  13463. IFS=$as_save_IFS
  13464. test -z "$as_dir" && as_dir=.
  13465. for ac_exec_ext in '' $ac_executable_extensions; do
  13466. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13467. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13469. break 2
  13470. fi
  13471. done
  13472. done
  13473. IFS=$as_save_IFS
  13474. fi
  13475. fi
  13476. WINDRES=$ac_cv_prog_WINDRES
  13477. if test -n "$WINDRES"; then
  13478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13479. $as_echo "$WINDRES" >&6; }
  13480. else
  13481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13482. $as_echo "no" >&6; }
  13483. fi
  13484. fi
  13485. if test -z "$ac_cv_prog_WINDRES"; then
  13486. ac_ct_WINDRES=$WINDRES
  13487. # Extract the first word of "windres", so it can be a program name with args.
  13488. set dummy windres; ac_word=$2
  13489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13490. $as_echo_n "checking for $ac_word... " >&6; }
  13491. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13492. $as_echo_n "(cached) " >&6
  13493. else
  13494. if test -n "$ac_ct_WINDRES"; then
  13495. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13496. else
  13497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13498. for as_dir in $PATH
  13499. do
  13500. IFS=$as_save_IFS
  13501. test -z "$as_dir" && as_dir=.
  13502. for ac_exec_ext in '' $ac_executable_extensions; do
  13503. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13504. ac_cv_prog_ac_ct_WINDRES="windres"
  13505. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13506. break 2
  13507. fi
  13508. done
  13509. done
  13510. IFS=$as_save_IFS
  13511. fi
  13512. fi
  13513. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13514. if test -n "$ac_ct_WINDRES"; then
  13515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13516. $as_echo "$ac_ct_WINDRES" >&6; }
  13517. else
  13518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13519. $as_echo "no" >&6; }
  13520. fi
  13521. if test "x$ac_ct_WINDRES" = x; then
  13522. WINDRES=":"
  13523. else
  13524. case $cross_compiling:$ac_tool_warned in
  13525. yes:)
  13526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13527. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13528. ac_tool_warned=yes ;;
  13529. esac
  13530. WINDRES=$ac_ct_WINDRES
  13531. fi
  13532. else
  13533. WINDRES="$ac_cv_prog_WINDRES"
  13534. fi
  13535. case "$host" in
  13536. *-*-mingw32*)
  13537. # Except on msys, where make can't handle full pathnames (bug 1972)
  13538. ;;
  13539. *)
  13540. srcdir=`cd $srcdir && pwd`
  13541. ;;
  13542. esac
  13543. INCLUDE="-I$srcdir/include"
  13544. if test x$srcdir != x.; then
  13545. INCLUDE="-Iinclude $INCLUDE"
  13546. elif test -d .hg; then
  13547. as_fn_error $? "
  13548. *** When building from Mercurial you should configure and build in a
  13549. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13550. " "$LINENO" 5
  13551. fi
  13552. BASE_CFLAGS=""
  13553. BASE_LDFLAGS=""
  13554. case "$host" in
  13555. *-*-cygwin*)
  13556. # We build SDL on cygwin without the UNIX emulation layer
  13557. save_CFLAGS="$CFLAGS"
  13558. have_no_cygwin=no
  13559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13560. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13561. CFLAGS="$save_CFLAGS -mno-cygwin"
  13562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13563. /* end confdefs.h. */
  13564. int
  13565. main ()
  13566. {
  13567. ;
  13568. return 0;
  13569. }
  13570. _ACEOF
  13571. if ac_fn_c_try_compile "$LINENO"; then :
  13572. have_no_cygwin=yes
  13573. fi
  13574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13576. $as_echo "$have_no_cygwin" >&6; }
  13577. CFLAGS="$save_CFLAGS"
  13578. if test x$have_no_cygwin = xyes; then
  13579. BASE_CFLAGS="-mno-cygwin"
  13580. BASE_LDFLAGS="-mno-cygwin"
  13581. fi
  13582. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13583. ;;
  13584. esac
  13585. # Uncomment the following line if you want to force SDL and applications
  13586. # built with it to be compiled for a particular architecture.
  13587. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13588. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13589. # The default optimization for SDL is -O3 (Bug #31)
  13590. if test "x$orig_CFLAGS" = x; then
  13591. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13592. fi
  13593. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13594. BUILD_LDFLAGS="$LDFLAGS"
  13595. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13596. ## These are common directories to find software packages
  13597. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13598. # if test -d $path/include; then
  13599. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13600. # fi
  13601. # if test -d $path/lib; then
  13602. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13603. # fi
  13604. #done
  13605. SDL_CFLAGS="$BASE_CFLAGS"
  13606. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13607. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13608. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13609. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13610. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13611. find_lib()
  13612. {
  13613. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13614. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13615. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13616. if test "$cross_compiling" = yes; then
  13617. host_lib_path=""
  13618. else
  13619. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13620. fi
  13621. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13622. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13623. if test x$lib != x; then
  13624. echo $lib
  13625. return
  13626. fi
  13627. done
  13628. }
  13629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13630. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13631. if ${ac_cv_c_const+:} false; then :
  13632. $as_echo_n "(cached) " >&6
  13633. else
  13634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13635. /* end confdefs.h. */
  13636. int
  13637. main ()
  13638. {
  13639. #ifndef __cplusplus
  13640. /* Ultrix mips cc rejects this sort of thing. */
  13641. typedef int charset[2];
  13642. const charset cs = { 0, 0 };
  13643. /* SunOS 4.1.1 cc rejects this. */
  13644. char const *const *pcpcc;
  13645. char **ppc;
  13646. /* NEC SVR4.0.2 mips cc rejects this. */
  13647. struct point {int x, y;};
  13648. static struct point const zero = {0,0};
  13649. /* AIX XL C 1.02.0.0 rejects this.
  13650. It does not let you subtract one const X* pointer from another in
  13651. an arm of an if-expression whose if-part is not a constant
  13652. expression */
  13653. const char *g = "string";
  13654. pcpcc = &g + (g ? g-g : 0);
  13655. /* HPUX 7.0 cc rejects these. */
  13656. ++pcpcc;
  13657. ppc = (char**) pcpcc;
  13658. pcpcc = (char const *const *) ppc;
  13659. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13660. char tx;
  13661. char *t = &tx;
  13662. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13663. *t++ = 0;
  13664. if (s) return 0;
  13665. }
  13666. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13667. int x[] = {25, 17};
  13668. const int *foo = &x[0];
  13669. ++foo;
  13670. }
  13671. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13672. typedef const int *iptr;
  13673. iptr p = 0;
  13674. ++p;
  13675. }
  13676. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13677. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13678. struct s { int j; const int *ap[3]; } bx;
  13679. struct s *b = &bx; b->j = 5;
  13680. }
  13681. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13682. const int foo = 10;
  13683. if (!foo) return 0;
  13684. }
  13685. return !cs[0] && !zero.x;
  13686. #endif
  13687. ;
  13688. return 0;
  13689. }
  13690. _ACEOF
  13691. if ac_fn_c_try_compile "$LINENO"; then :
  13692. ac_cv_c_const=yes
  13693. else
  13694. ac_cv_c_const=no
  13695. fi
  13696. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13697. fi
  13698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13699. $as_echo "$ac_cv_c_const" >&6; }
  13700. if test $ac_cv_c_const = no; then
  13701. $as_echo "#define const /**/" >>confdefs.h
  13702. fi
  13703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13704. $as_echo_n "checking for inline... " >&6; }
  13705. if ${ac_cv_c_inline+:} false; then :
  13706. $as_echo_n "(cached) " >&6
  13707. else
  13708. ac_cv_c_inline=no
  13709. for ac_kw in inline __inline__ __inline; do
  13710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13711. /* end confdefs.h. */
  13712. #ifndef __cplusplus
  13713. typedef int foo_t;
  13714. static $ac_kw foo_t static_foo () {return 0; }
  13715. $ac_kw foo_t foo () {return 0; }
  13716. #endif
  13717. _ACEOF
  13718. if ac_fn_c_try_compile "$LINENO"; then :
  13719. ac_cv_c_inline=$ac_kw
  13720. fi
  13721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13722. test "$ac_cv_c_inline" != no && break
  13723. done
  13724. fi
  13725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13726. $as_echo "$ac_cv_c_inline" >&6; }
  13727. case $ac_cv_c_inline in
  13728. inline | yes) ;;
  13729. *)
  13730. case $ac_cv_c_inline in
  13731. no) ac_val=;;
  13732. *) ac_val=$ac_cv_c_inline;;
  13733. esac
  13734. cat >>confdefs.h <<_ACEOF
  13735. #ifndef __cplusplus
  13736. #define inline $ac_val
  13737. #endif
  13738. _ACEOF
  13739. ;;
  13740. esac
  13741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13742. $as_echo_n "checking for working volatile... " >&6; }
  13743. if ${ac_cv_c_volatile+:} false; then :
  13744. $as_echo_n "(cached) " >&6
  13745. else
  13746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13747. /* end confdefs.h. */
  13748. int
  13749. main ()
  13750. {
  13751. volatile int x;
  13752. int * volatile y = (int *) 0;
  13753. return !x && !y;
  13754. ;
  13755. return 0;
  13756. }
  13757. _ACEOF
  13758. if ac_fn_c_try_compile "$LINENO"; then :
  13759. ac_cv_c_volatile=yes
  13760. else
  13761. ac_cv_c_volatile=no
  13762. fi
  13763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13764. fi
  13765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13766. $as_echo "$ac_cv_c_volatile" >&6; }
  13767. if test $ac_cv_c_volatile = no; then
  13768. $as_echo "#define volatile /**/" >>confdefs.h
  13769. fi
  13770. # Check whether --enable-assertions was given.
  13771. if test "${enable_assertions+set}" = set; then :
  13772. enableval=$enable_assertions;
  13773. else
  13774. enable_assertions=auto
  13775. fi
  13776. case "$enable_assertions" in
  13777. auto) # Use optimization settings to determine assertion level
  13778. ;;
  13779. disabled)
  13780. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13781. ;;
  13782. release)
  13783. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13784. ;;
  13785. enabled)
  13786. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13787. ;;
  13788. paranoid)
  13789. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13790. ;;
  13791. *)
  13792. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13793. ;;
  13794. esac
  13795. # Check whether --enable-dependency-tracking was given.
  13796. if test "${enable_dependency_tracking+set}" = set; then :
  13797. enableval=$enable_dependency_tracking;
  13798. else
  13799. enable_dependency_tracking=yes
  13800. fi
  13801. if test x$enable_dependency_tracking = xyes; then
  13802. have_gcc_mmd_mt=no
  13803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13804. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13806. /* end confdefs.h. */
  13807. #if !defined(__GNUC__) || __GNUC__ < 3
  13808. #error Dependency tracking requires GCC 3.0 or newer
  13809. #endif
  13810. int
  13811. main ()
  13812. {
  13813. ;
  13814. return 0;
  13815. }
  13816. _ACEOF
  13817. if ac_fn_c_try_compile "$LINENO"; then :
  13818. have_gcc_mmd_mt=yes
  13819. fi
  13820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13822. $as_echo "$have_gcc_mmd_mt" >&6; }
  13823. if test x$have_gcc_mmd_mt = xyes; then
  13824. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13825. fi
  13826. fi
  13827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13828. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13829. have_no_undefined=no
  13830. case "$host" in
  13831. *-*-openbsd*)
  13832. ;;
  13833. *)
  13834. save_LDFLAGS="$LDFLAGS"
  13835. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13837. /* end confdefs.h. */
  13838. int
  13839. main ()
  13840. {
  13841. ;
  13842. return 0;
  13843. }
  13844. _ACEOF
  13845. if ac_fn_c_try_link "$LINENO"; then :
  13846. have_no_undefined=yes
  13847. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13848. fi
  13849. rm -f core conftest.err conftest.$ac_objext \
  13850. conftest$ac_exeext conftest.$ac_ext
  13851. LDFLAGS="$save_LDFLAGS"
  13852. ;;
  13853. esac
  13854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13855. $as_echo "$have_no_undefined" >&6; }
  13856. # Check whether --enable-libc was given.
  13857. if test "${enable_libc+set}" = set; then :
  13858. enableval=$enable_libc;
  13859. else
  13860. enable_libc=yes
  13861. fi
  13862. if test x$enable_libc = xyes; then
  13863. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13865. $as_echo_n "checking for ANSI C header files... " >&6; }
  13866. if ${ac_cv_header_stdc+:} false; then :
  13867. $as_echo_n "(cached) " >&6
  13868. else
  13869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13870. /* end confdefs.h. */
  13871. #include <stdlib.h>
  13872. #include <stdarg.h>
  13873. #include <string.h>
  13874. #include <float.h>
  13875. int
  13876. main ()
  13877. {
  13878. ;
  13879. return 0;
  13880. }
  13881. _ACEOF
  13882. if ac_fn_c_try_compile "$LINENO"; then :
  13883. ac_cv_header_stdc=yes
  13884. else
  13885. ac_cv_header_stdc=no
  13886. fi
  13887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13888. if test $ac_cv_header_stdc = yes; then
  13889. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13891. /* end confdefs.h. */
  13892. #include <string.h>
  13893. _ACEOF
  13894. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13895. $EGREP "memchr" >/dev/null 2>&1; then :
  13896. else
  13897. ac_cv_header_stdc=no
  13898. fi
  13899. rm -f conftest*
  13900. fi
  13901. if test $ac_cv_header_stdc = yes; then
  13902. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13904. /* end confdefs.h. */
  13905. #include <stdlib.h>
  13906. _ACEOF
  13907. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13908. $EGREP "free" >/dev/null 2>&1; then :
  13909. else
  13910. ac_cv_header_stdc=no
  13911. fi
  13912. rm -f conftest*
  13913. fi
  13914. if test $ac_cv_header_stdc = yes; then
  13915. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13916. if test "$cross_compiling" = yes; then :
  13917. :
  13918. else
  13919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13920. /* end confdefs.h. */
  13921. #include <ctype.h>
  13922. #include <stdlib.h>
  13923. #if ((' ' & 0x0FF) == 0x020)
  13924. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13925. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13926. #else
  13927. # define ISLOWER(c) \
  13928. (('a' <= (c) && (c) <= 'i') \
  13929. || ('j' <= (c) && (c) <= 'r') \
  13930. || ('s' <= (c) && (c) <= 'z'))
  13931. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13932. #endif
  13933. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13934. int
  13935. main ()
  13936. {
  13937. int i;
  13938. for (i = 0; i < 256; i++)
  13939. if (XOR (islower (i), ISLOWER (i))
  13940. || toupper (i) != TOUPPER (i))
  13941. return 2;
  13942. return 0;
  13943. }
  13944. _ACEOF
  13945. if ac_fn_c_try_run "$LINENO"; then :
  13946. else
  13947. ac_cv_header_stdc=no
  13948. fi
  13949. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13950. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13951. fi
  13952. fi
  13953. fi
  13954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13955. $as_echo "$ac_cv_header_stdc" >&6; }
  13956. if test $ac_cv_header_stdc = yes; then
  13957. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13958. fi
  13959. for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h
  13960. do :
  13961. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13962. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13963. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13964. cat >>confdefs.h <<_ACEOF
  13965. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13966. _ACEOF
  13967. fi
  13968. done
  13969. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13970. if test "x$ac_cv_type_size_t" = xyes; then :
  13971. else
  13972. cat >>confdefs.h <<_ACEOF
  13973. #define size_t unsigned int
  13974. _ACEOF
  13975. fi
  13976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13977. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13978. if ${ac_cv_define_M_PI+:} false; then :
  13979. $as_echo_n "(cached) " >&6
  13980. else
  13981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13982. /* end confdefs.h. */
  13983. #include <math.h>
  13984. #ifdef M_PI
  13985. YES_IS_DEFINED
  13986. #endif
  13987. _ACEOF
  13988. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13989. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13990. ac_cv_define_M_PI=yes
  13991. else
  13992. ac_cv_define_M_PI=no
  13993. fi
  13994. rm -f conftest*
  13995. fi
  13996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  13997. $as_echo "$ac_cv_define_M_PI" >&6; }
  13998. if test "$ac_cv_define_M_PI" = "yes" ; then
  13999. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14000. fi
  14001. case "$host" in
  14002. *-*-cygwin* | *-*-mingw32*)
  14003. ;;
  14004. *)
  14005. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14006. # for constant arguments. Useless!
  14007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14008. $as_echo_n "checking for working alloca.h... " >&6; }
  14009. if ${ac_cv_working_alloca_h+:} false; then :
  14010. $as_echo_n "(cached) " >&6
  14011. else
  14012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14013. /* end confdefs.h. */
  14014. #include <alloca.h>
  14015. int
  14016. main ()
  14017. {
  14018. char *p = (char *) alloca (2 * sizeof (int));
  14019. if (p) return 0;
  14020. ;
  14021. return 0;
  14022. }
  14023. _ACEOF
  14024. if ac_fn_c_try_link "$LINENO"; then :
  14025. ac_cv_working_alloca_h=yes
  14026. else
  14027. ac_cv_working_alloca_h=no
  14028. fi
  14029. rm -f core conftest.err conftest.$ac_objext \
  14030. conftest$ac_exeext conftest.$ac_ext
  14031. fi
  14032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14033. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14034. if test $ac_cv_working_alloca_h = yes; then
  14035. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14036. fi
  14037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14038. $as_echo_n "checking for alloca... " >&6; }
  14039. if ${ac_cv_func_alloca_works+:} false; then :
  14040. $as_echo_n "(cached) " >&6
  14041. else
  14042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14043. /* end confdefs.h. */
  14044. #ifdef __GNUC__
  14045. # define alloca __builtin_alloca
  14046. #else
  14047. # ifdef _MSC_VER
  14048. # include <malloc.h>
  14049. # define alloca _alloca
  14050. # else
  14051. # ifdef HAVE_ALLOCA_H
  14052. # include <alloca.h>
  14053. # else
  14054. # ifdef _AIX
  14055. #pragma alloca
  14056. # else
  14057. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14058. void *alloca (size_t);
  14059. # endif
  14060. # endif
  14061. # endif
  14062. # endif
  14063. #endif
  14064. int
  14065. main ()
  14066. {
  14067. char *p = (char *) alloca (1);
  14068. if (p) return 0;
  14069. ;
  14070. return 0;
  14071. }
  14072. _ACEOF
  14073. if ac_fn_c_try_link "$LINENO"; then :
  14074. ac_cv_func_alloca_works=yes
  14075. else
  14076. ac_cv_func_alloca_works=no
  14077. fi
  14078. rm -f core conftest.err conftest.$ac_objext \
  14079. conftest$ac_exeext conftest.$ac_ext
  14080. fi
  14081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14082. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14083. if test $ac_cv_func_alloca_works = yes; then
  14084. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14085. else
  14086. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14087. # that cause trouble. Some versions do not even contain alloca or
  14088. # contain a buggy version. If you still want to use their alloca,
  14089. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14090. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14091. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14093. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14094. if ${ac_cv_os_cray+:} false; then :
  14095. $as_echo_n "(cached) " >&6
  14096. else
  14097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14098. /* end confdefs.h. */
  14099. #if defined CRAY && ! defined CRAY2
  14100. webecray
  14101. #else
  14102. wenotbecray
  14103. #endif
  14104. _ACEOF
  14105. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14106. $EGREP "webecray" >/dev/null 2>&1; then :
  14107. ac_cv_os_cray=yes
  14108. else
  14109. ac_cv_os_cray=no
  14110. fi
  14111. rm -f conftest*
  14112. fi
  14113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14114. $as_echo "$ac_cv_os_cray" >&6; }
  14115. if test $ac_cv_os_cray = yes; then
  14116. for ac_func in _getb67 GETB67 getb67; do
  14117. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14118. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14119. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14120. cat >>confdefs.h <<_ACEOF
  14121. #define CRAY_STACKSEG_END $ac_func
  14122. _ACEOF
  14123. break
  14124. fi
  14125. done
  14126. fi
  14127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14128. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14129. if ${ac_cv_c_stack_direction+:} false; then :
  14130. $as_echo_n "(cached) " >&6
  14131. else
  14132. if test "$cross_compiling" = yes; then :
  14133. ac_cv_c_stack_direction=0
  14134. else
  14135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14136. /* end confdefs.h. */
  14137. $ac_includes_default
  14138. int
  14139. find_stack_direction (int *addr, int depth)
  14140. {
  14141. int dir, dummy = 0;
  14142. if (! addr)
  14143. addr = &dummy;
  14144. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14145. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14146. return dir + dummy;
  14147. }
  14148. int
  14149. main (int argc, char **argv)
  14150. {
  14151. return find_stack_direction (0, argc + !argv + 20) < 0;
  14152. }
  14153. _ACEOF
  14154. if ac_fn_c_try_run "$LINENO"; then :
  14155. ac_cv_c_stack_direction=1
  14156. else
  14157. ac_cv_c_stack_direction=-1
  14158. fi
  14159. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14160. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14161. fi
  14162. fi
  14163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14164. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14165. cat >>confdefs.h <<_ACEOF
  14166. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14167. _ACEOF
  14168. fi
  14169. ;;
  14170. esac
  14171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14172. $as_echo_n "checking for working memcmp... " >&6; }
  14173. if ${ac_cv_func_memcmp_working+:} false; then :
  14174. $as_echo_n "(cached) " >&6
  14175. else
  14176. if test "$cross_compiling" = yes; then :
  14177. ac_cv_func_memcmp_working=no
  14178. else
  14179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14180. /* end confdefs.h. */
  14181. $ac_includes_default
  14182. int
  14183. main ()
  14184. {
  14185. /* Some versions of memcmp are not 8-bit clean. */
  14186. char c0 = '\100', c1 = '\200', c2 = '\201';
  14187. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14188. return 1;
  14189. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14190. or more and with at least one buffer not starting on a 4-byte boundary.
  14191. William Lewis provided this test program. */
  14192. {
  14193. char foo[21];
  14194. char bar[21];
  14195. int i;
  14196. for (i = 0; i < 4; i++)
  14197. {
  14198. char *a = foo + i;
  14199. char *b = bar + i;
  14200. strcpy (a, "--------01111111");
  14201. strcpy (b, "--------10000000");
  14202. if (memcmp (a, b, 16) >= 0)
  14203. return 1;
  14204. }
  14205. return 0;
  14206. }
  14207. ;
  14208. return 0;
  14209. }
  14210. _ACEOF
  14211. if ac_fn_c_try_run "$LINENO"; then :
  14212. ac_cv_func_memcmp_working=yes
  14213. else
  14214. ac_cv_func_memcmp_working=no
  14215. fi
  14216. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14217. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14218. fi
  14219. fi
  14220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14221. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14222. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14223. *" memcmp.$ac_objext "* ) ;;
  14224. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14225. ;;
  14226. esac
  14227. if test x$ac_cv_func_memcmp_working = xyes; then
  14228. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14229. fi
  14230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14231. $as_echo_n "checking for working strtod... " >&6; }
  14232. if ${ac_cv_func_strtod+:} false; then :
  14233. $as_echo_n "(cached) " >&6
  14234. else
  14235. if test "$cross_compiling" = yes; then :
  14236. ac_cv_func_strtod=no
  14237. else
  14238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14239. /* end confdefs.h. */
  14240. $ac_includes_default
  14241. #ifndef strtod
  14242. double strtod ();
  14243. #endif
  14244. int
  14245. main()
  14246. {
  14247. {
  14248. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14249. char *string = " +69";
  14250. char *term;
  14251. double value;
  14252. value = strtod (string, &term);
  14253. if (value != 69 || term != (string + 4))
  14254. return 1;
  14255. }
  14256. {
  14257. /* Under Solaris 2.4, strtod returns the wrong value for the
  14258. terminating character under some conditions. */
  14259. char *string = "NaN";
  14260. char *term;
  14261. strtod (string, &term);
  14262. if (term != string && *(term - 1) == 0)
  14263. return 1;
  14264. }
  14265. return 0;
  14266. }
  14267. _ACEOF
  14268. if ac_fn_c_try_run "$LINENO"; then :
  14269. ac_cv_func_strtod=yes
  14270. else
  14271. ac_cv_func_strtod=no
  14272. fi
  14273. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14274. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14275. fi
  14276. fi
  14277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14278. $as_echo "$ac_cv_func_strtod" >&6; }
  14279. if test $ac_cv_func_strtod = no; then
  14280. case " $LIBOBJS " in
  14281. *" strtod.$ac_objext "* ) ;;
  14282. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14283. ;;
  14284. esac
  14285. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14286. if test "x$ac_cv_func_pow" = xyes; then :
  14287. fi
  14288. if test $ac_cv_func_pow = no; then
  14289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14290. $as_echo_n "checking for pow in -lm... " >&6; }
  14291. if ${ac_cv_lib_m_pow+:} false; then :
  14292. $as_echo_n "(cached) " >&6
  14293. else
  14294. ac_check_lib_save_LIBS=$LIBS
  14295. LIBS="-lm $LIBS"
  14296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14297. /* end confdefs.h. */
  14298. /* Override any GCC internal prototype to avoid an error.
  14299. Use char because int might match the return type of a GCC
  14300. builtin and then its argument prototype would still apply. */
  14301. #ifdef __cplusplus
  14302. extern "C"
  14303. #endif
  14304. char pow ();
  14305. int
  14306. main ()
  14307. {
  14308. return pow ();
  14309. ;
  14310. return 0;
  14311. }
  14312. _ACEOF
  14313. if ac_fn_c_try_link "$LINENO"; then :
  14314. ac_cv_lib_m_pow=yes
  14315. else
  14316. ac_cv_lib_m_pow=no
  14317. fi
  14318. rm -f core conftest.err conftest.$ac_objext \
  14319. conftest$ac_exeext conftest.$ac_ext
  14320. LIBS=$ac_check_lib_save_LIBS
  14321. fi
  14322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14323. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14324. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14325. POW_LIB=-lm
  14326. else
  14327. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14328. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14329. fi
  14330. fi
  14331. fi
  14332. if test x$ac_cv_func_strtod = xyes; then
  14333. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14334. fi
  14335. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14336. if test "x$ac_cv_func_mprotect" = xyes; then :
  14337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14338. /* end confdefs.h. */
  14339. #include <sys/types.h>
  14340. #include <sys/mman.h>
  14341. int
  14342. main ()
  14343. {
  14344. ;
  14345. return 0;
  14346. }
  14347. _ACEOF
  14348. if ac_fn_c_try_compile "$LINENO"; then :
  14349. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14350. fi
  14351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14352. fi
  14353. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove 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 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval
  14354. do :
  14355. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14356. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14357. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14358. cat >>confdefs.h <<_ACEOF
  14359. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14360. _ACEOF
  14361. fi
  14362. done
  14363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14364. $as_echo_n "checking for pow in -lm... " >&6; }
  14365. if ${ac_cv_lib_m_pow+:} false; then :
  14366. $as_echo_n "(cached) " >&6
  14367. else
  14368. ac_check_lib_save_LIBS=$LIBS
  14369. LIBS="-lm $LIBS"
  14370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14371. /* end confdefs.h. */
  14372. /* Override any GCC internal prototype to avoid an error.
  14373. Use char because int might match the return type of a GCC
  14374. builtin and then its argument prototype would still apply. */
  14375. #ifdef __cplusplus
  14376. extern "C"
  14377. #endif
  14378. char pow ();
  14379. int
  14380. main ()
  14381. {
  14382. return pow ();
  14383. ;
  14384. return 0;
  14385. }
  14386. _ACEOF
  14387. if ac_fn_c_try_link "$LINENO"; then :
  14388. ac_cv_lib_m_pow=yes
  14389. else
  14390. ac_cv_lib_m_pow=no
  14391. fi
  14392. rm -f core conftest.err conftest.$ac_objext \
  14393. conftest$ac_exeext conftest.$ac_ext
  14394. LIBS=$ac_check_lib_save_LIBS
  14395. fi
  14396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14397. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14398. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14399. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14400. fi
  14401. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
  14402. do :
  14403. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14404. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14405. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14406. cat >>confdefs.h <<_ACEOF
  14407. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14408. _ACEOF
  14409. fi
  14410. done
  14411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14412. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14413. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14414. $as_echo_n "(cached) " >&6
  14415. else
  14416. ac_check_lib_save_LIBS=$LIBS
  14417. LIBS="-liconv $LIBS"
  14418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14419. /* end confdefs.h. */
  14420. /* Override any GCC internal prototype to avoid an error.
  14421. Use char because int might match the return type of a GCC
  14422. builtin and then its argument prototype would still apply. */
  14423. #ifdef __cplusplus
  14424. extern "C"
  14425. #endif
  14426. char iconv_open ();
  14427. int
  14428. main ()
  14429. {
  14430. return iconv_open ();
  14431. ;
  14432. return 0;
  14433. }
  14434. _ACEOF
  14435. if ac_fn_c_try_link "$LINENO"; then :
  14436. ac_cv_lib_iconv_iconv_open=yes
  14437. else
  14438. ac_cv_lib_iconv_iconv_open=no
  14439. fi
  14440. rm -f core conftest.err conftest.$ac_objext \
  14441. conftest$ac_exeext conftest.$ac_ext
  14442. LIBS=$ac_check_lib_save_LIBS
  14443. fi
  14444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14445. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14446. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14447. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14448. fi
  14449. for ac_func in iconv
  14450. do :
  14451. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14452. if test "x$ac_cv_func_iconv" = xyes; then :
  14453. cat >>confdefs.h <<_ACEOF
  14454. #define HAVE_ICONV 1
  14455. _ACEOF
  14456. fi
  14457. done
  14458. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14459. "
  14460. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14461. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14462. fi
  14463. fi
  14464. # Check whether --enable-gcc-atomics was given.
  14465. if test "${enable_gcc_atomics+set}" = set; then :
  14466. enableval=$enable_gcc_atomics;
  14467. else
  14468. enable_gcc_atomics=yes
  14469. fi
  14470. if test x$enable_gcc_atomics = xyes; then
  14471. have_gcc_atomics=no
  14472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14473. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14475. /* end confdefs.h. */
  14476. int
  14477. main ()
  14478. {
  14479. int a;
  14480. void *x, *y, *z;
  14481. __sync_lock_test_and_set(&a, 4);
  14482. __sync_lock_test_and_set(&x, y);
  14483. __sync_fetch_and_add(&a, 1);
  14484. __sync_bool_compare_and_swap(&a, 5, 10);
  14485. __sync_bool_compare_and_swap(&x, y, z);
  14486. ;
  14487. return 0;
  14488. }
  14489. _ACEOF
  14490. if ac_fn_c_try_link "$LINENO"; then :
  14491. have_gcc_atomics=yes
  14492. fi
  14493. rm -f core conftest.err conftest.$ac_objext \
  14494. conftest$ac_exeext conftest.$ac_ext
  14495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14496. $as_echo "$have_gcc_atomics" >&6; }
  14497. if test x$have_gcc_atomics = xyes; then
  14498. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14499. else
  14500. # See if we have the minimum operation needed for GCC atomics
  14501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14502. /* end confdefs.h. */
  14503. int
  14504. main ()
  14505. {
  14506. int a;
  14507. __sync_lock_test_and_set(&a, 1);
  14508. __sync_lock_release(&a);
  14509. ;
  14510. return 0;
  14511. }
  14512. _ACEOF
  14513. if ac_fn_c_try_link "$LINENO"; then :
  14514. have_gcc_sync_lock_test_and_set=yes
  14515. fi
  14516. rm -f core conftest.err conftest.$ac_objext \
  14517. conftest$ac_exeext conftest.$ac_ext
  14518. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14519. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14520. fi
  14521. fi
  14522. fi
  14523. # Standard C sources
  14524. SOURCES="$SOURCES $srcdir/src/*.c"
  14525. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14526. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14527. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14528. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14529. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14530. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14531. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14532. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14533. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14534. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14535. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14536. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14537. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14538. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14539. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14540. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14541. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14542. # Check whether --enable-atomic was given.
  14543. if test "${enable_atomic+set}" = set; then :
  14544. enableval=$enable_atomic;
  14545. else
  14546. enable_atomic=yes
  14547. fi
  14548. if test x$enable_atomic != xyes; then
  14549. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14550. else
  14551. SUMMARY_modules="${SUMMARY_modules} atomic"
  14552. fi
  14553. # Check whether --enable-audio was given.
  14554. if test "${enable_audio+set}" = set; then :
  14555. enableval=$enable_audio;
  14556. else
  14557. enable_audio=yes
  14558. fi
  14559. if test x$enable_audio != xyes; then
  14560. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14561. else
  14562. SUMMARY_modules="${SUMMARY_modules} audio"
  14563. fi
  14564. # Check whether --enable-video was given.
  14565. if test "${enable_video+set}" = set; then :
  14566. enableval=$enable_video;
  14567. else
  14568. enable_video=yes
  14569. fi
  14570. if test x$enable_video != xyes; then
  14571. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14572. else
  14573. SUMMARY_modules="${SUMMARY_modules} video"
  14574. fi
  14575. # Check whether --enable-render was given.
  14576. if test "${enable_render+set}" = set; then :
  14577. enableval=$enable_render;
  14578. else
  14579. enable_render=yes
  14580. fi
  14581. if test x$enable_render != xyes; then
  14582. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14583. else
  14584. SUMMARY_modules="${SUMMARY_modules} render"
  14585. fi
  14586. # Check whether --enable-events was given.
  14587. if test "${enable_events+set}" = set; then :
  14588. enableval=$enable_events;
  14589. else
  14590. enable_events=yes
  14591. fi
  14592. if test x$enable_events != xyes; then
  14593. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14594. else
  14595. SUMMARY_modules="${SUMMARY_modules} events"
  14596. fi
  14597. # Check whether --enable-joystick was given.
  14598. if test "${enable_joystick+set}" = set; then :
  14599. enableval=$enable_joystick;
  14600. else
  14601. enable_joystick=yes
  14602. fi
  14603. if test x$enable_joystick != xyes; then
  14604. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14605. else
  14606. SUMMARY_modules="${SUMMARY_modules} joystick"
  14607. fi
  14608. # Check whether --enable-haptic was given.
  14609. if test "${enable_haptic+set}" = set; then :
  14610. enableval=$enable_haptic;
  14611. else
  14612. enable_haptic=yes
  14613. fi
  14614. if test x$enable_haptic != xyes; then
  14615. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14616. else
  14617. SUMMARY_modules="${SUMMARY_modules} haptic"
  14618. fi
  14619. # Check whether --enable-power was given.
  14620. if test "${enable_power+set}" = set; then :
  14621. enableval=$enable_power;
  14622. else
  14623. enable_power=yes
  14624. fi
  14625. if test x$enable_power != xyes; then
  14626. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14627. else
  14628. SUMMARY_modules="${SUMMARY_modules} power"
  14629. fi
  14630. # Check whether --enable-filesystem was given.
  14631. if test "${enable_filesystem+set}" = set; then :
  14632. enableval=$enable_filesystem;
  14633. else
  14634. enable_filesystem=yes
  14635. fi
  14636. if test x$enable_filesystem != xyes; then
  14637. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14638. else
  14639. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14640. fi
  14641. # Check whether --enable-threads was given.
  14642. if test "${enable_threads+set}" = set; then :
  14643. enableval=$enable_threads;
  14644. else
  14645. enable_threads=yes
  14646. fi
  14647. if test x$enable_threads != xyes; then
  14648. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14649. else
  14650. SUMMARY_modules="${SUMMARY_modules} threads"
  14651. fi
  14652. # Check whether --enable-timers was given.
  14653. if test "${enable_timers+set}" = set; then :
  14654. enableval=$enable_timers;
  14655. else
  14656. enable_timers=yes
  14657. fi
  14658. if test x$enable_timers != xyes; then
  14659. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14660. else
  14661. SUMMARY_modules="${SUMMARY_modules} timers"
  14662. fi
  14663. # Check whether --enable-file was given.
  14664. if test "${enable_file+set}" = set; then :
  14665. enableval=$enable_file;
  14666. else
  14667. enable_file=yes
  14668. fi
  14669. if test x$enable_file != xyes; then
  14670. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14671. else
  14672. SUMMARY_modules="${SUMMARY_modules} file"
  14673. fi
  14674. # Check whether --enable-loadso was given.
  14675. if test "${enable_loadso+set}" = set; then :
  14676. enableval=$enable_loadso;
  14677. else
  14678. enable_loadso=yes
  14679. fi
  14680. if test x$enable_loadso != xyes; then
  14681. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14682. else
  14683. SUMMARY_modules="${SUMMARY_modules} loadso"
  14684. fi
  14685. # Check whether --enable-cpuinfo was given.
  14686. if test "${enable_cpuinfo+set}" = set; then :
  14687. enableval=$enable_cpuinfo;
  14688. else
  14689. enable_cpuinfo=yes
  14690. fi
  14691. if test x$enable_cpuinfo != xyes; then
  14692. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14693. else
  14694. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14695. fi
  14696. # Check whether --enable-assembly was given.
  14697. if test "${enable_assembly+set}" = set; then :
  14698. enableval=$enable_assembly;
  14699. else
  14700. enable_assembly=yes
  14701. fi
  14702. if test x$enable_assembly = xyes; then
  14703. SUMMARY_modules="${SUMMARY_modules} assembly"
  14704. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14705. # Make sure that we don't generate floating point code that would
  14706. # cause illegal instruction exceptions on older processors
  14707. case "$host" in
  14708. *-*-darwin*)
  14709. # Don't need to worry about Apple hardware, it's all SSE capable
  14710. default_ssemath=yes
  14711. ;;
  14712. *64-*-*)
  14713. # x86 64-bit architectures all have SSE instructions
  14714. default_ssemath=yes
  14715. ;;
  14716. *)
  14717. default_ssemath=no
  14718. ;;
  14719. esac
  14720. # Check whether --enable-ssemath was given.
  14721. if test "${enable_ssemath+set}" = set; then :
  14722. enableval=$enable_ssemath;
  14723. else
  14724. enable_ssemath=$default_ssemath
  14725. fi
  14726. if test x$enable_ssemath = xno; then
  14727. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  14728. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14729. fi
  14730. fi
  14731. # Check whether --enable-mmx was given.
  14732. if test "${enable_mmx+set}" = set; then :
  14733. enableval=$enable_mmx;
  14734. else
  14735. enable_mmx=yes
  14736. fi
  14737. if test x$enable_mmx = xyes; then
  14738. save_CFLAGS="$CFLAGS"
  14739. have_gcc_mmx=no
  14740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14741. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14742. mmx_CFLAGS="-mmmx"
  14743. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14745. /* end confdefs.h. */
  14746. #ifdef __MINGW32__
  14747. #include <_mingw.h>
  14748. #ifdef __MINGW64_VERSION_MAJOR
  14749. #include <intrin.h>
  14750. #else
  14751. #include <mmintrin.h>
  14752. #endif
  14753. #else
  14754. #include <mmintrin.h>
  14755. #endif
  14756. #ifndef __MMX__
  14757. #error Assembler CPP flag not enabled
  14758. #endif
  14759. int
  14760. main ()
  14761. {
  14762. ;
  14763. return 0;
  14764. }
  14765. _ACEOF
  14766. if ac_fn_c_try_compile "$LINENO"; then :
  14767. have_gcc_mmx=yes
  14768. fi
  14769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14771. $as_echo "$have_gcc_mmx" >&6; }
  14772. CFLAGS="$save_CFLAGS"
  14773. if test x$have_gcc_mmx = xyes; then
  14774. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14775. SUMMARY_math="${SUMMARY_math} mmx"
  14776. fi
  14777. fi
  14778. # Check whether --enable-3dnow was given.
  14779. if test "${enable_3dnow+set}" = set; then :
  14780. enableval=$enable_3dnow;
  14781. else
  14782. enable_3dnow=yes
  14783. fi
  14784. if test x$enable_3dnow = xyes; then
  14785. save_CFLAGS="$CFLAGS"
  14786. have_gcc_3dnow=no
  14787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14788. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14789. amd3dnow_CFLAGS="-m3dnow"
  14790. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14792. /* end confdefs.h. */
  14793. #include <mm3dnow.h>
  14794. #ifndef __3dNOW__
  14795. #error Assembler CPP flag not enabled
  14796. #endif
  14797. int
  14798. main ()
  14799. {
  14800. void *p = 0;
  14801. _m_prefetch(p);
  14802. ;
  14803. return 0;
  14804. }
  14805. _ACEOF
  14806. if ac_fn_c_try_link "$LINENO"; then :
  14807. have_gcc_3dnow=yes
  14808. fi
  14809. rm -f core conftest.err conftest.$ac_objext \
  14810. conftest$ac_exeext conftest.$ac_ext
  14811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14812. $as_echo "$have_gcc_3dnow" >&6; }
  14813. CFLAGS="$save_CFLAGS"
  14814. if test x$have_gcc_3dnow = xyes; then
  14815. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14816. SUMMARY_math="${SUMMARY_math} 3dnow"
  14817. fi
  14818. fi
  14819. # Check whether --enable-sse was given.
  14820. if test "${enable_sse+set}" = set; then :
  14821. enableval=$enable_sse;
  14822. else
  14823. enable_sse=yes
  14824. fi
  14825. if test x$enable_sse = xyes; then
  14826. save_CFLAGS="$CFLAGS"
  14827. have_gcc_sse=no
  14828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14829. $as_echo_n "checking for GCC -msse option... " >&6; }
  14830. sse_CFLAGS="-msse"
  14831. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14833. /* end confdefs.h. */
  14834. #ifdef __MINGW32__
  14835. #include <_mingw.h>
  14836. #ifdef __MINGW64_VERSION_MAJOR
  14837. #include <intrin.h>
  14838. #else
  14839. #include <xmmintrin.h>
  14840. #endif
  14841. #else
  14842. #include <xmmintrin.h>
  14843. #endif
  14844. #ifndef __SSE__
  14845. #error Assembler CPP flag not enabled
  14846. #endif
  14847. int
  14848. main ()
  14849. {
  14850. ;
  14851. return 0;
  14852. }
  14853. _ACEOF
  14854. if ac_fn_c_try_compile "$LINENO"; then :
  14855. have_gcc_sse=yes
  14856. fi
  14857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14859. $as_echo "$have_gcc_sse" >&6; }
  14860. CFLAGS="$save_CFLAGS"
  14861. if test x$have_gcc_sse = xyes; then
  14862. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14863. SUMMARY_math="${SUMMARY_math} sse"
  14864. fi
  14865. fi
  14866. # Check whether --enable-sse2 was given.
  14867. if test "${enable_sse2+set}" = set; then :
  14868. enableval=$enable_sse2;
  14869. else
  14870. enable_sse2=$default_ssemath
  14871. fi
  14872. if test x$enable_sse2 = xyes; then
  14873. save_CFLAGS="$CFLAGS"
  14874. have_gcc_sse2=no
  14875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14876. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14877. sse2_CFLAGS="-msse2"
  14878. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14880. /* end confdefs.h. */
  14881. #ifdef __MINGW32__
  14882. #include <_mingw.h>
  14883. #ifdef __MINGW64_VERSION_MAJOR
  14884. #include <intrin.h>
  14885. #else
  14886. #include <emmintrin.h>
  14887. #endif
  14888. #else
  14889. #include <emmintrin.h>
  14890. #endif
  14891. #ifndef __SSE2__
  14892. #error Assembler CPP flag not enabled
  14893. #endif
  14894. int
  14895. main ()
  14896. {
  14897. ;
  14898. return 0;
  14899. }
  14900. _ACEOF
  14901. if ac_fn_c_try_compile "$LINENO"; then :
  14902. have_gcc_sse2=yes
  14903. fi
  14904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14906. $as_echo "$have_gcc_sse2" >&6; }
  14907. CFLAGS="$save_CFLAGS"
  14908. if test x$have_gcc_sse2 = xyes; then
  14909. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14910. SUMMARY_math="${SUMMARY_math} sse2"
  14911. fi
  14912. fi
  14913. # Check whether --enable-sse3 was given.
  14914. if test "${enable_sse3+set}" = set; then :
  14915. enableval=$enable_sse3;
  14916. else
  14917. enable_sse3=$default_ssemath
  14918. fi
  14919. if test x$enable_sse3 = xyes; then
  14920. save_CFLAGS="$CFLAGS"
  14921. have_gcc_sse3=no
  14922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  14923. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  14924. sse3_CFLAGS="-msse3"
  14925. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  14926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14927. /* end confdefs.h. */
  14928. #ifdef __MINGW32__
  14929. #include <_mingw.h>
  14930. #ifdef __MINGW64_VERSION_MAJOR
  14931. #include <intrin.h>
  14932. #else
  14933. #include <pmmintrin.h>
  14934. #endif
  14935. #else
  14936. #include <pmmintrin.h>
  14937. #endif
  14938. #ifndef __SSE2__
  14939. #error Assembler CPP flag not enabled
  14940. #endif
  14941. int
  14942. main ()
  14943. {
  14944. ;
  14945. return 0;
  14946. }
  14947. _ACEOF
  14948. if ac_fn_c_try_compile "$LINENO"; then :
  14949. have_gcc_sse3=yes
  14950. fi
  14951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  14953. $as_echo "$have_gcc_sse3" >&6; }
  14954. CFLAGS="$save_CFLAGS"
  14955. if test x$have_gcc_sse3 = xyes; then
  14956. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  14957. SUMMARY_math="${SUMMARY_math} sse3"
  14958. fi
  14959. fi
  14960. # Check whether --enable-altivec was given.
  14961. if test "${enable_altivec+set}" = set; then :
  14962. enableval=$enable_altivec;
  14963. else
  14964. enable_altivec=yes
  14965. fi
  14966. if test x$enable_altivec = xyes; then
  14967. save_CFLAGS="$CFLAGS"
  14968. have_gcc_altivec=no
  14969. have_altivec_h_hdr=no
  14970. altivec_CFLAGS="-maltivec"
  14971. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14973. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14975. /* end confdefs.h. */
  14976. #include <altivec.h>
  14977. vector unsigned int vzero() {
  14978. return vec_splat_u32(0);
  14979. }
  14980. int
  14981. main ()
  14982. {
  14983. ;
  14984. return 0;
  14985. }
  14986. _ACEOF
  14987. if ac_fn_c_try_compile "$LINENO"; then :
  14988. have_gcc_altivec=yes
  14989. have_altivec_h_hdr=yes
  14990. fi
  14991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14993. $as_echo "$have_gcc_altivec" >&6; }
  14994. if test x$have_gcc_altivec = xno; then
  14995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  14996. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  14997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14998. /* end confdefs.h. */
  14999. vector unsigned int vzero() {
  15000. return vec_splat_u32(0);
  15001. }
  15002. int
  15003. main ()
  15004. {
  15005. ;
  15006. return 0;
  15007. }
  15008. _ACEOF
  15009. if ac_fn_c_try_compile "$LINENO"; then :
  15010. have_gcc_altivec=yes
  15011. fi
  15012. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15014. $as_echo "$have_gcc_altivec" >&6; }
  15015. fi
  15016. if test x$have_gcc_altivec = xno; then
  15017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15018. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15019. altivec_CFLAGS="-faltivec"
  15020. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15022. /* end confdefs.h. */
  15023. #include <altivec.h>
  15024. vector unsigned int vzero() {
  15025. return vec_splat_u32(0);
  15026. }
  15027. int
  15028. main ()
  15029. {
  15030. ;
  15031. return 0;
  15032. }
  15033. _ACEOF
  15034. if ac_fn_c_try_compile "$LINENO"; then :
  15035. have_gcc_altivec=yes
  15036. have_altivec_h_hdr=yes
  15037. fi
  15038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15040. $as_echo "$have_gcc_altivec" >&6; }
  15041. fi
  15042. if test x$have_gcc_altivec = xno; then
  15043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15044. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15046. /* end confdefs.h. */
  15047. vector unsigned int vzero() {
  15048. return vec_splat_u32(0);
  15049. }
  15050. int
  15051. main ()
  15052. {
  15053. ;
  15054. return 0;
  15055. }
  15056. _ACEOF
  15057. if ac_fn_c_try_compile "$LINENO"; then :
  15058. have_gcc_altivec=yes
  15059. fi
  15060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15062. $as_echo "$have_gcc_altivec" >&6; }
  15063. fi
  15064. CFLAGS="$save_CFLAGS"
  15065. if test x$have_gcc_altivec = xyes; then
  15066. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15067. if test x$have_altivec_h_hdr = xyes; then
  15068. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15069. fi
  15070. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15071. SUMMARY_math="${SUMMARY_math} altivec"
  15072. fi
  15073. fi
  15074. fi
  15075. CheckOSS()
  15076. {
  15077. # Check whether --enable-oss was given.
  15078. if test "${enable_oss+set}" = set; then :
  15079. enableval=$enable_oss;
  15080. else
  15081. enable_oss=maybe
  15082. fi
  15083. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15084. # use sndio instead. So on there, we default to disabled. You can force
  15085. # it on if you really want, though.
  15086. if test x$enable_oss = xmaybe; then
  15087. enable_oss=yes
  15088. case "$host" in
  15089. *-*-openbsd*)
  15090. enable_oss=no;;
  15091. esac
  15092. fi
  15093. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15095. $as_echo_n "checking for OSS audio support... " >&6; }
  15096. have_oss=no
  15097. if test x$have_oss != xyes; then
  15098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15099. /* end confdefs.h. */
  15100. #include <sys/soundcard.h>
  15101. int
  15102. main ()
  15103. {
  15104. int arg = SNDCTL_DSP_SETFRAGMENT;
  15105. ;
  15106. return 0;
  15107. }
  15108. _ACEOF
  15109. if ac_fn_c_try_compile "$LINENO"; then :
  15110. have_oss=yes
  15111. fi
  15112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15113. fi
  15114. if test x$have_oss != xyes; then
  15115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15116. /* end confdefs.h. */
  15117. #include <soundcard.h>
  15118. int
  15119. main ()
  15120. {
  15121. int arg = SNDCTL_DSP_SETFRAGMENT;
  15122. ;
  15123. return 0;
  15124. }
  15125. _ACEOF
  15126. if ac_fn_c_try_compile "$LINENO"; then :
  15127. have_oss=yes
  15128. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15129. fi
  15130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15131. fi
  15132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15133. $as_echo "$have_oss" >&6; }
  15134. if test x$have_oss = xyes; then
  15135. SUMMARY_audio="${SUMMARY_audio} oss"
  15136. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15137. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15138. have_audio=yes
  15139. # We may need to link with ossaudio emulation library
  15140. case "$host" in
  15141. *-*-openbsd*|*-*-netbsd*)
  15142. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15143. esac
  15144. fi
  15145. fi
  15146. }
  15147. CheckALSA()
  15148. {
  15149. # Check whether --enable-alsa was given.
  15150. if test "${enable_alsa+set}" = set; then :
  15151. enableval=$enable_alsa;
  15152. else
  15153. enable_alsa=yes
  15154. fi
  15155. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15156. alsa_save_CFLAGS="$CFLAGS"
  15157. alsa_save_LDFLAGS="$LDFLAGS"
  15158. alsa_save_LIBS="$LIBS"
  15159. alsa_found=yes
  15160. # Check whether --with-alsa-prefix was given.
  15161. if test "${with_alsa_prefix+set}" = set; then :
  15162. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15163. else
  15164. alsa_prefix=""
  15165. fi
  15166. # Check whether --with-alsa-inc-prefix was given.
  15167. if test "${with_alsa_inc_prefix+set}" = set; then :
  15168. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15169. else
  15170. alsa_inc_prefix=""
  15171. fi
  15172. # Check whether --enable-alsatest was given.
  15173. if test "${enable_alsatest+set}" = set; then :
  15174. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15175. else
  15176. enable_alsatest=yes
  15177. fi
  15178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15179. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15180. if test "$alsa_inc_prefix" != "" ; then
  15181. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15182. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15183. fi
  15184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15185. $as_echo "$ALSA_CFLAGS" >&6; }
  15186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15187. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15188. if test "$alsa_prefix" != "" ; then
  15189. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15190. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15191. fi
  15192. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15193. LIBS=`echo $LIBS | sed 's/-lm//'`
  15194. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15195. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15196. LIBS=`echo $LIBS | sed 's/ //'`
  15197. LIBS="$ALSA_LIBS $LIBS"
  15198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15199. $as_echo "$ALSA_LIBS" >&6; }
  15200. min_alsa_version=1.0.11
  15201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15202. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15203. no_alsa=""
  15204. alsa_min_major_version=`echo $min_alsa_version | \
  15205. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15206. alsa_min_minor_version=`echo $min_alsa_version | \
  15207. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15208. alsa_min_micro_version=`echo $min_alsa_version | \
  15209. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15210. ac_ext=c
  15211. ac_cpp='$CPP $CPPFLAGS'
  15212. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15213. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15214. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15216. /* end confdefs.h. */
  15217. #include <alsa/asoundlib.h>
  15218. int
  15219. main ()
  15220. {
  15221. /* ensure backward compatibility */
  15222. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15223. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15224. #endif
  15225. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15226. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15227. #endif
  15228. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15229. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15230. #endif
  15231. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15232. exit(0);
  15233. # else
  15234. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15235. # error not present
  15236. # endif
  15237. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15238. exit(0);
  15239. # else
  15240. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15241. # error not present
  15242. # endif
  15243. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15244. # error not present
  15245. # endif
  15246. # endif
  15247. # endif
  15248. exit(0);
  15249. ;
  15250. return 0;
  15251. }
  15252. _ACEOF
  15253. if ac_fn_c_try_compile "$LINENO"; then :
  15254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15255. $as_echo "found." >&6; }
  15256. else
  15257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15258. $as_echo "not present." >&6; }
  15259. alsa_found=no
  15260. fi
  15261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15262. ac_ext=c
  15263. ac_cpp='$CPP $CPPFLAGS'
  15264. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15265. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15266. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15267. if test "x$enable_alsatest" = "xyes"; then
  15268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15269. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15270. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15271. $as_echo_n "(cached) " >&6
  15272. else
  15273. ac_check_lib_save_LIBS=$LIBS
  15274. LIBS="-lasound $LIBS"
  15275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15276. /* end confdefs.h. */
  15277. /* Override any GCC internal prototype to avoid an error.
  15278. Use char because int might match the return type of a GCC
  15279. builtin and then its argument prototype would still apply. */
  15280. #ifdef __cplusplus
  15281. extern "C"
  15282. #endif
  15283. char snd_ctl_open ();
  15284. int
  15285. main ()
  15286. {
  15287. return snd_ctl_open ();
  15288. ;
  15289. return 0;
  15290. }
  15291. _ACEOF
  15292. if ac_fn_c_try_link "$LINENO"; then :
  15293. ac_cv_lib_asound_snd_ctl_open=yes
  15294. else
  15295. ac_cv_lib_asound_snd_ctl_open=no
  15296. fi
  15297. rm -f core conftest.err conftest.$ac_objext \
  15298. conftest$ac_exeext conftest.$ac_ext
  15299. LIBS=$ac_check_lib_save_LIBS
  15300. fi
  15301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15302. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15303. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15304. cat >>confdefs.h <<_ACEOF
  15305. #define HAVE_LIBASOUND 1
  15306. _ACEOF
  15307. LIBS="-lasound $LIBS"
  15308. else
  15309. alsa_found=no
  15310. fi
  15311. fi
  15312. if test "x$alsa_found" = "xyes" ; then
  15313. have_alsa=yes
  15314. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15315. LIBS=`echo $LIBS | sed 's/ //'`
  15316. LIBS="-lasound $LIBS"
  15317. fi
  15318. if test "x$alsa_found" = "xno" ; then
  15319. have_alsa=no
  15320. CFLAGS="$alsa_save_CFLAGS"
  15321. LDFLAGS="$alsa_save_LDFLAGS"
  15322. LIBS="$alsa_save_LIBS"
  15323. ALSA_CFLAGS=""
  15324. ALSA_LIBS=""
  15325. fi
  15326. # Restore all flags from before the ALSA detection runs
  15327. CFLAGS="$alsa_save_CFLAGS"
  15328. LDFLAGS="$alsa_save_LDFLAGS"
  15329. LIBS="$alsa_save_LIBS"
  15330. if test x$have_alsa = xyes; then
  15331. # Check whether --enable-alsa-shared was given.
  15332. if test "${enable_alsa_shared+set}" = set; then :
  15333. enableval=$enable_alsa_shared;
  15334. else
  15335. enable_alsa_shared=yes
  15336. fi
  15337. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15338. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15339. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15340. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15341. if test x$have_loadso != xyes && \
  15342. test x$enable_alsa_shared = xyes; then
  15343. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15344. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15345. fi
  15346. if test x$have_loadso = xyes && \
  15347. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15348. echo "-- dynamic libasound -> $alsa_lib"
  15349. cat >>confdefs.h <<_ACEOF
  15350. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15351. _ACEOF
  15352. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15353. else
  15354. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15355. SUMMARY_audio="${SUMMARY_audio} alsa"
  15356. fi
  15357. have_audio=yes
  15358. fi
  15359. fi
  15360. }
  15361. CheckJACK()
  15362. {
  15363. # Check whether --enable-jack was given.
  15364. if test "${enable_jack+set}" = set; then :
  15365. enableval=$enable_jack;
  15366. else
  15367. enable_jack=yes
  15368. fi
  15369. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15370. audio_jack=no
  15371. JACK_REQUIRED_VERSION=0.125
  15372. # Extract the first word of "pkg-config", so it can be a program name with args.
  15373. set dummy pkg-config; ac_word=$2
  15374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15375. $as_echo_n "checking for $ac_word... " >&6; }
  15376. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15377. $as_echo_n "(cached) " >&6
  15378. else
  15379. case $PKG_CONFIG in
  15380. [\\/]* | ?:[\\/]*)
  15381. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15382. ;;
  15383. *)
  15384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15385. for as_dir in $PATH
  15386. do
  15387. IFS=$as_save_IFS
  15388. test -z "$as_dir" && as_dir=.
  15389. for ac_exec_ext in '' $ac_executable_extensions; do
  15390. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15391. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15392. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15393. break 2
  15394. fi
  15395. done
  15396. done
  15397. IFS=$as_save_IFS
  15398. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15399. ;;
  15400. esac
  15401. fi
  15402. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15403. if test -n "$PKG_CONFIG"; then
  15404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15405. $as_echo "$PKG_CONFIG" >&6; }
  15406. else
  15407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15408. $as_echo "no" >&6; }
  15409. fi
  15410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK $JACK_REQUIRED_VERSION support" >&5
  15411. $as_echo_n "checking for JACK $JACK_REQUIRED_VERSION support... " >&6; }
  15412. if test x$PKG_CONFIG != xno; then
  15413. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then
  15414. JACK_CFLAGS=`$PKG_CONFIG --cflags jack`
  15415. JACK_LIBS=`$PKG_CONFIG --libs jack`
  15416. audio_jack=yes
  15417. fi
  15418. fi
  15419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_jack" >&5
  15420. $as_echo "$audio_jack" >&6; }
  15421. if test x$audio_jack = xyes; then
  15422. # Check whether --enable-jack-shared was given.
  15423. if test "${enable_jack_shared+set}" = set; then :
  15424. enableval=$enable_jack_shared;
  15425. else
  15426. enable_jack_shared=yes
  15427. fi
  15428. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15429. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15430. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15431. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15432. if test x$have_loadso != xyes && \
  15433. test x$enable_jack_shared = xyes; then
  15434. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15435. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15436. fi
  15437. if test x$have_loadso = xyes && \
  15438. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15439. echo "-- dynamic libjack -> $jack_lib"
  15440. cat >>confdefs.h <<_ACEOF
  15441. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15442. _ACEOF
  15443. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15444. case "$host" in
  15445. # On Solaris, jack must be linked deferred explicitly
  15446. # to prevent undefined symbol failures.
  15447. *-*-solaris*)
  15448. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15449. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15450. esac
  15451. else
  15452. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15453. SUMMARY_audio="${SUMMARY_audio} jack"
  15454. fi
  15455. have_audio=yes
  15456. fi
  15457. fi
  15458. }
  15459. CheckESD()
  15460. {
  15461. # Check whether --enable-esd was given.
  15462. if test "${enable_esd+set}" = set; then :
  15463. enableval=$enable_esd;
  15464. else
  15465. enable_esd=yes
  15466. fi
  15467. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15468. # Check whether --with-esd-prefix was given.
  15469. if test "${with_esd_prefix+set}" = set; then :
  15470. withval=$with_esd_prefix; esd_prefix="$withval"
  15471. else
  15472. esd_prefix=""
  15473. fi
  15474. # Check whether --with-esd-exec-prefix was given.
  15475. if test "${with_esd_exec_prefix+set}" = set; then :
  15476. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15477. else
  15478. esd_exec_prefix=""
  15479. fi
  15480. # Check whether --enable-esdtest was given.
  15481. if test "${enable_esdtest+set}" = set; then :
  15482. enableval=$enable_esdtest;
  15483. else
  15484. enable_esdtest=yes
  15485. fi
  15486. if test x$esd_exec_prefix != x ; then
  15487. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15488. if test x${ESD_CONFIG+set} != xset ; then
  15489. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15490. fi
  15491. fi
  15492. if test x$esd_prefix != x ; then
  15493. esd_args="$esd_args --prefix=$esd_prefix"
  15494. if test x${ESD_CONFIG+set} != xset ; then
  15495. ESD_CONFIG=$esd_prefix/bin/esd-config
  15496. fi
  15497. fi
  15498. # Extract the first word of "esd-config", so it can be a program name with args.
  15499. set dummy esd-config; ac_word=$2
  15500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15501. $as_echo_n "checking for $ac_word... " >&6; }
  15502. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15503. $as_echo_n "(cached) " >&6
  15504. else
  15505. case $ESD_CONFIG in
  15506. [\\/]* | ?:[\\/]*)
  15507. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15508. ;;
  15509. *)
  15510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15511. for as_dir in $PATH
  15512. do
  15513. IFS=$as_save_IFS
  15514. test -z "$as_dir" && as_dir=.
  15515. for ac_exec_ext in '' $ac_executable_extensions; do
  15516. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15517. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15519. break 2
  15520. fi
  15521. done
  15522. done
  15523. IFS=$as_save_IFS
  15524. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15525. ;;
  15526. esac
  15527. fi
  15528. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15529. if test -n "$ESD_CONFIG"; then
  15530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15531. $as_echo "$ESD_CONFIG" >&6; }
  15532. else
  15533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15534. $as_echo "no" >&6; }
  15535. fi
  15536. min_esd_version=0.2.8
  15537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15538. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15539. no_esd=""
  15540. if test "$ESD_CONFIG" = "no" ; then
  15541. no_esd=yes
  15542. else
  15543. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15544. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15545. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15546. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15547. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15548. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15549. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15550. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15551. if test "x$enable_esdtest" = "xyes" ; then
  15552. ac_save_CFLAGS="$CFLAGS"
  15553. ac_save_LIBS="$LIBS"
  15554. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15555. LIBS="$LIBS $ESD_LIBS"
  15556. rm -f conf.esdtest
  15557. if test "$cross_compiling" = yes; then :
  15558. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15559. else
  15560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15561. /* end confdefs.h. */
  15562. #include <stdio.h>
  15563. #include <stdlib.h>
  15564. #include <string.h>
  15565. #include <esd.h>
  15566. char*
  15567. my_strdup (char *str)
  15568. {
  15569. char *new_str;
  15570. if (str)
  15571. {
  15572. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15573. strcpy (new_str, str);
  15574. }
  15575. else
  15576. new_str = NULL;
  15577. return new_str;
  15578. }
  15579. int main ()
  15580. {
  15581. int major, minor, micro;
  15582. char *tmp_version;
  15583. system ("touch conf.esdtest");
  15584. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15585. tmp_version = my_strdup("$min_esd_version");
  15586. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15587. printf("%s, bad version string\n", "$min_esd_version");
  15588. exit(1);
  15589. }
  15590. if (($esd_major_version > major) ||
  15591. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15592. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15593. {
  15594. return 0;
  15595. }
  15596. else
  15597. {
  15598. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15599. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15600. printf("*** best to upgrade to the required version.\n");
  15601. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15602. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15603. printf("*** config.cache before re-running configure\n");
  15604. return 1;
  15605. }
  15606. }
  15607. _ACEOF
  15608. if ac_fn_c_try_run "$LINENO"; then :
  15609. else
  15610. no_esd=yes
  15611. fi
  15612. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15613. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15614. fi
  15615. CFLAGS="$ac_save_CFLAGS"
  15616. LIBS="$ac_save_LIBS"
  15617. fi
  15618. fi
  15619. if test "x$no_esd" = x ; then
  15620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15621. $as_echo "yes" >&6; }
  15622. have_esd=yes
  15623. else
  15624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15625. $as_echo "no" >&6; }
  15626. if test "$ESD_CONFIG" = "no" ; then
  15627. echo "*** The esd-config script installed by ESD could not be found"
  15628. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15629. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15630. echo "*** full path to esd-config."
  15631. else
  15632. if test -f conf.esdtest ; then
  15633. :
  15634. else
  15635. echo "*** Could not run ESD test program, checking why..."
  15636. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15637. LIBS="$LIBS $ESD_LIBS"
  15638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15639. /* end confdefs.h. */
  15640. #include <stdio.h>
  15641. #include <esd.h>
  15642. int
  15643. main ()
  15644. {
  15645. return 0;
  15646. ;
  15647. return 0;
  15648. }
  15649. _ACEOF
  15650. if ac_fn_c_try_link "$LINENO"; then :
  15651. echo "*** The test program compiled, but did not run. This usually means"
  15652. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15653. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15654. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15655. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15656. echo "*** is required on your system"
  15657. echo "***"
  15658. echo "*** If you have an old version installed, it is best to remove it, although"
  15659. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15660. else
  15661. echo "*** The test program failed to compile or link. See the file config.log for the"
  15662. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15663. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15664. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15665. fi
  15666. rm -f core conftest.err conftest.$ac_objext \
  15667. conftest$ac_exeext conftest.$ac_ext
  15668. CFLAGS="$ac_save_CFLAGS"
  15669. LIBS="$ac_save_LIBS"
  15670. fi
  15671. fi
  15672. ESD_CFLAGS=""
  15673. ESD_LIBS=""
  15674. have_esd=no
  15675. fi
  15676. rm -f conf.esdtest
  15677. if test x$have_esd = xyes; then
  15678. # Check whether --enable-esd-shared was given.
  15679. if test "${enable_esd_shared+set}" = set; then :
  15680. enableval=$enable_esd_shared;
  15681. else
  15682. enable_esd_shared=yes
  15683. fi
  15684. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15685. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15686. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15687. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15688. if test x$have_loadso != xyes && \
  15689. test x$enable_esd_shared = xyes; then
  15690. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15691. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15692. fi
  15693. if test x$have_loadso = xyes && \
  15694. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15695. echo "-- dynamic libesd -> $esd_lib"
  15696. cat >>confdefs.h <<_ACEOF
  15697. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15698. _ACEOF
  15699. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15700. else
  15701. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15702. SUMMARY_audio="${SUMMARY_audio} esd"
  15703. fi
  15704. have_audio=yes
  15705. fi
  15706. fi
  15707. }
  15708. CheckPulseAudio()
  15709. {
  15710. # Check whether --enable-pulseaudio was given.
  15711. if test "${enable_pulseaudio+set}" = set; then :
  15712. enableval=$enable_pulseaudio;
  15713. else
  15714. enable_pulseaudio=yes
  15715. fi
  15716. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15717. audio_pulseaudio=no
  15718. PULSEAUDIO_REQUIRED_VERSION=0.9
  15719. # Extract the first word of "pkg-config", so it can be a program name with args.
  15720. set dummy pkg-config; ac_word=$2
  15721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15722. $as_echo_n "checking for $ac_word... " >&6; }
  15723. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15724. $as_echo_n "(cached) " >&6
  15725. else
  15726. case $PKG_CONFIG in
  15727. [\\/]* | ?:[\\/]*)
  15728. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15729. ;;
  15730. *)
  15731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15732. for as_dir in $PATH
  15733. do
  15734. IFS=$as_save_IFS
  15735. test -z "$as_dir" && as_dir=.
  15736. for ac_exec_ext in '' $ac_executable_extensions; do
  15737. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15738. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15739. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15740. break 2
  15741. fi
  15742. done
  15743. done
  15744. IFS=$as_save_IFS
  15745. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15746. ;;
  15747. esac
  15748. fi
  15749. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15750. if test -n "$PKG_CONFIG"; then
  15751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15752. $as_echo "$PKG_CONFIG" >&6; }
  15753. else
  15754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15755. $as_echo "no" >&6; }
  15756. fi
  15757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15758. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15759. if test x$PKG_CONFIG != xno; then
  15760. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15761. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15762. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15763. audio_pulseaudio=yes
  15764. fi
  15765. fi
  15766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15767. $as_echo "$audio_pulseaudio" >&6; }
  15768. if test x$audio_pulseaudio = xyes; then
  15769. # Check whether --enable-pulseaudio-shared was given.
  15770. if test "${enable_pulseaudio_shared+set}" = set; then :
  15771. enableval=$enable_pulseaudio_shared;
  15772. else
  15773. enable_pulseaudio_shared=yes
  15774. fi
  15775. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15776. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15777. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15778. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15779. if test x$have_loadso != xyes && \
  15780. test x$enable_pulseaudio_shared = xyes; then
  15781. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15782. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15783. fi
  15784. if test x$have_loadso = xyes && \
  15785. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15786. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15787. cat >>confdefs.h <<_ACEOF
  15788. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15789. _ACEOF
  15790. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15791. case "$host" in
  15792. # On Solaris, pulseaudio must be linked deferred explicitly
  15793. # to prevent undefined symbol failures.
  15794. *-*-solaris*)
  15795. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15796. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15797. esac
  15798. else
  15799. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15800. SUMMARY_audio="${SUMMARY_audio} pulse"
  15801. fi
  15802. have_audio=yes
  15803. fi
  15804. fi
  15805. }
  15806. CheckARTSC()
  15807. {
  15808. # Check whether --enable-arts was given.
  15809. if test "${enable_arts+set}" = set; then :
  15810. enableval=$enable_arts;
  15811. else
  15812. enable_arts=yes
  15813. fi
  15814. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15815. # Extract the first word of "artsc-config", so it can be a program name with args.
  15816. set dummy artsc-config; ac_word=$2
  15817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15818. $as_echo_n "checking for $ac_word... " >&6; }
  15819. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15820. $as_echo_n "(cached) " >&6
  15821. else
  15822. case $ARTSCONFIG in
  15823. [\\/]* | ?:[\\/]*)
  15824. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15825. ;;
  15826. *)
  15827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15828. for as_dir in $PATH
  15829. do
  15830. IFS=$as_save_IFS
  15831. test -z "$as_dir" && as_dir=.
  15832. for ac_exec_ext in '' $ac_executable_extensions; do
  15833. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15834. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15835. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15836. break 2
  15837. fi
  15838. done
  15839. done
  15840. IFS=$as_save_IFS
  15841. ;;
  15842. esac
  15843. fi
  15844. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15845. if test -n "$ARTSCONFIG"; then
  15846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15847. $as_echo "$ARTSCONFIG" >&6; }
  15848. else
  15849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15850. $as_echo "no" >&6; }
  15851. fi
  15852. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15853. : # arts isn't installed
  15854. else
  15855. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15856. ARTS_LIBS=`$ARTSCONFIG --libs`
  15857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15858. $as_echo_n "checking for aRts development environment... " >&6; }
  15859. audio_arts=no
  15860. save_CFLAGS="$CFLAGS"
  15861. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15863. /* end confdefs.h. */
  15864. #include <artsc.h>
  15865. int
  15866. main ()
  15867. {
  15868. arts_stream_t stream;
  15869. ;
  15870. return 0;
  15871. }
  15872. _ACEOF
  15873. if ac_fn_c_try_compile "$LINENO"; then :
  15874. audio_arts=yes
  15875. fi
  15876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15877. CFLAGS="$save_CFLAGS"
  15878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15879. $as_echo "$audio_arts" >&6; }
  15880. if test x$audio_arts = xyes; then
  15881. # Check whether --enable-arts-shared was given.
  15882. if test "${enable_arts_shared+set}" = set; then :
  15883. enableval=$enable_arts_shared;
  15884. else
  15885. enable_arts_shared=yes
  15886. fi
  15887. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15888. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15889. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15890. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15891. if test x$have_loadso != xyes && \
  15892. test x$enable_arts_shared = xyes; then
  15893. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15894. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15895. fi
  15896. if test x$have_loadso = xyes && \
  15897. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15898. echo "-- dynamic libartsc -> $arts_lib"
  15899. cat >>confdefs.h <<_ACEOF
  15900. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15901. _ACEOF
  15902. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15903. else
  15904. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15905. SUMMARY_audio="${SUMMARY_audio} arts"
  15906. fi
  15907. have_audio=yes
  15908. fi
  15909. fi
  15910. fi
  15911. }
  15912. CheckNAS()
  15913. {
  15914. # Check whether --enable-nas was given.
  15915. if test "${enable_nas+set}" = set; then :
  15916. enableval=$enable_nas;
  15917. else
  15918. enable_nas=yes
  15919. fi
  15920. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15921. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15922. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15923. have_nas_hdr=yes
  15924. fi
  15925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15926. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15927. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15928. $as_echo_n "(cached) " >&6
  15929. else
  15930. ac_check_lib_save_LIBS=$LIBS
  15931. LIBS="-laudio $LIBS"
  15932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15933. /* end confdefs.h. */
  15934. /* Override any GCC internal prototype to avoid an error.
  15935. Use char because int might match the return type of a GCC
  15936. builtin and then its argument prototype would still apply. */
  15937. #ifdef __cplusplus
  15938. extern "C"
  15939. #endif
  15940. char AuOpenServer ();
  15941. int
  15942. main ()
  15943. {
  15944. return AuOpenServer ();
  15945. ;
  15946. return 0;
  15947. }
  15948. _ACEOF
  15949. if ac_fn_c_try_link "$LINENO"; then :
  15950. ac_cv_lib_audio_AuOpenServer=yes
  15951. else
  15952. ac_cv_lib_audio_AuOpenServer=no
  15953. fi
  15954. rm -f core conftest.err conftest.$ac_objext \
  15955. conftest$ac_exeext conftest.$ac_ext
  15956. LIBS=$ac_check_lib_save_LIBS
  15957. fi
  15958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15959. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15960. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15961. have_nas_lib=yes
  15962. fi
  15963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15964. $as_echo_n "checking for NAS audio support... " >&6; }
  15965. have_nas=no
  15966. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15967. have_nas=yes
  15968. NAS_LIBS="-laudio"
  15969. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15970. have_nas=yes
  15971. NAS_CFLAGS="-I/usr/X11R6/include/"
  15972. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15973. fi
  15974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15975. $as_echo "$have_nas" >&6; }
  15976. if test x$have_nas = xyes; then
  15977. # Check whether --enable-nas-shared was given.
  15978. if test "${enable_nas_shared+set}" = set; then :
  15979. enableval=$enable_nas_shared;
  15980. else
  15981. enable_nas_shared=yes
  15982. fi
  15983. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15984. if test x$have_loadso != xyes && \
  15985. test x$enable_nas_shared = xyes; then
  15986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15987. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15988. fi
  15989. if test x$have_loadso = xyes && \
  15990. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15991. echo "-- dynamic libaudio -> $nas_lib"
  15992. cat >>confdefs.h <<_ACEOF
  15993. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15994. _ACEOF
  15995. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  15996. else
  15997. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15998. SUMMARY_audio="${SUMMARY_audio} nas"
  15999. fi
  16000. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16001. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16002. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16003. have_audio=yes
  16004. fi
  16005. fi
  16006. }
  16007. CheckSNDIO()
  16008. {
  16009. # Check whether --enable-sndio was given.
  16010. if test "${enable_sndio+set}" = set; then :
  16011. enableval=$enable_sndio;
  16012. else
  16013. enable_sndio=yes
  16014. fi
  16015. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16016. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16017. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16018. have_sndio_hdr=yes
  16019. fi
  16020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16021. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16022. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16023. $as_echo_n "(cached) " >&6
  16024. else
  16025. ac_check_lib_save_LIBS=$LIBS
  16026. LIBS="-lsndio $LIBS"
  16027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16028. /* end confdefs.h. */
  16029. /* Override any GCC internal prototype to avoid an error.
  16030. Use char because int might match the return type of a GCC
  16031. builtin and then its argument prototype would still apply. */
  16032. #ifdef __cplusplus
  16033. extern "C"
  16034. #endif
  16035. char sio_open ();
  16036. int
  16037. main ()
  16038. {
  16039. return sio_open ();
  16040. ;
  16041. return 0;
  16042. }
  16043. _ACEOF
  16044. if ac_fn_c_try_link "$LINENO"; then :
  16045. ac_cv_lib_sndio_sio_open=yes
  16046. else
  16047. ac_cv_lib_sndio_sio_open=no
  16048. fi
  16049. rm -f core conftest.err conftest.$ac_objext \
  16050. conftest$ac_exeext conftest.$ac_ext
  16051. LIBS=$ac_check_lib_save_LIBS
  16052. fi
  16053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16054. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16055. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16056. have_sndio_lib=yes
  16057. fi
  16058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16059. $as_echo_n "checking for sndio audio support... " >&6; }
  16060. have_sndio=no
  16061. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16062. have_sndio=yes
  16063. SNDIO_LIBS="-lsndio"
  16064. fi
  16065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16066. $as_echo "$have_sndio" >&6; }
  16067. if test x$have_sndio = xyes; then
  16068. # Check whether --enable-sndio-shared was given.
  16069. if test "${enable_sndio_shared+set}" = set; then :
  16070. enableval=$enable_sndio_shared;
  16071. else
  16072. enable_sndio_shared=yes
  16073. fi
  16074. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16075. if test x$have_loadso != xyes && \
  16076. test x$enable_sndio_shared = xyes; then
  16077. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16078. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16079. fi
  16080. if test x$have_loadso = xyes && \
  16081. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16082. echo "-- dynamic libsndio -> $sndio_lib"
  16083. cat >>confdefs.h <<_ACEOF
  16084. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16085. _ACEOF
  16086. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16087. else
  16088. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16089. SUMMARY_audio="${SUMMARY_audio} sndio"
  16090. fi
  16091. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16092. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16093. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16094. have_audio=yes
  16095. fi
  16096. fi
  16097. }
  16098. CheckFusionSound()
  16099. {
  16100. # Check whether --enable-fusionsound was given.
  16101. if test "${enable_fusionsound+set}" = set; then :
  16102. enableval=$enable_fusionsound;
  16103. else
  16104. enable_fusionsound=no
  16105. fi
  16106. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16107. fusionsound=no
  16108. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  16109. # Extract the first word of "pkg-config", so it can be a program name with args.
  16110. set dummy pkg-config; ac_word=$2
  16111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16112. $as_echo_n "checking for $ac_word... " >&6; }
  16113. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16114. $as_echo_n "(cached) " >&6
  16115. else
  16116. case $PKG_CONFIG in
  16117. [\\/]* | ?:[\\/]*)
  16118. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16119. ;;
  16120. *)
  16121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16122. for as_dir in $PATH
  16123. do
  16124. IFS=$as_save_IFS
  16125. test -z "$as_dir" && as_dir=.
  16126. for ac_exec_ext in '' $ac_executable_extensions; do
  16127. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16128. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16129. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16130. break 2
  16131. fi
  16132. done
  16133. done
  16134. IFS=$as_save_IFS
  16135. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16136. ;;
  16137. esac
  16138. fi
  16139. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16140. if test -n "$PKG_CONFIG"; then
  16141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16142. $as_echo "$PKG_CONFIG" >&6; }
  16143. else
  16144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16145. $as_echo "no" >&6; }
  16146. fi
  16147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  16148. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  16149. if test x$PKG_CONFIG != xno; then
  16150. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  16151. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  16152. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  16153. fusionsound=yes
  16154. fi
  16155. fi
  16156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  16157. $as_echo "$fusionsound" >&6; }
  16158. if test x$fusionsound = xyes; then
  16159. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16160. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16161. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16162. # Check whether --enable-fusionsound-shared was given.
  16163. if test "${enable_fusionsound_shared+set}" = set; then :
  16164. enableval=$enable_fusionsound_shared;
  16165. else
  16166. enable_fusionsound_shared=yes
  16167. fi
  16168. fusionsound_shared=no
  16169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16170. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16171. if test x$have_loadso != xyes && \
  16172. test x$enable_fusionsound_shared = xyes; then
  16173. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16174. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16175. fi
  16176. if test x$have_loadso = xyes && \
  16177. test x$enable_fusionsound_shared = xyes; then
  16178. cat >>confdefs.h <<_ACEOF
  16179. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16180. _ACEOF
  16181. fusionsound_shared=yes
  16182. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16183. else
  16184. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16185. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16186. fi
  16187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16188. $as_echo "$fusionsound_shared" >&6; }
  16189. have_audio=yes
  16190. fi
  16191. fi
  16192. }
  16193. CheckDiskAudio()
  16194. {
  16195. # Check whether --enable-diskaudio was given.
  16196. if test "${enable_diskaudio+set}" = set; then :
  16197. enableval=$enable_diskaudio;
  16198. else
  16199. enable_diskaudio=yes
  16200. fi
  16201. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16202. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16203. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16204. SUMMARY_audio="${SUMMARY_audio} disk"
  16205. fi
  16206. }
  16207. CheckDummyAudio()
  16208. {
  16209. # Check whether --enable-dummyaudio was given.
  16210. if test "${enable_dummyaudio+set}" = set; then :
  16211. enableval=$enable_dummyaudio;
  16212. else
  16213. enable_dummyaudio=yes
  16214. fi
  16215. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16216. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16217. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16218. SUMMARY_audio="${SUMMARY_audio} dummy"
  16219. fi
  16220. }
  16221. CheckLibSampleRate()
  16222. {
  16223. # Check whether --enable-libsamplerate was given.
  16224. if test "${enable_libsamplerate+set}" = set; then :
  16225. enableval=$enable_libsamplerate;
  16226. else
  16227. enable_libsamplerate=yes
  16228. fi
  16229. if test x$enable_libsamplerate = xyes; then
  16230. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16231. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16232. have_samplerate_h_hdr=yes
  16233. else
  16234. have_samplerate_h_hdr=no
  16235. fi
  16236. if test x$have_samplerate_h_hdr = xyes; then
  16237. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16238. # Check whether --enable-libsamplerate-shared was given.
  16239. if test "${enable_libsamplerate_shared+set}" = set; then :
  16240. enableval=$enable_libsamplerate_shared;
  16241. else
  16242. enable_libsamplerate_shared=yes
  16243. fi
  16244. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16245. if test x$have_loadso != xyes && \
  16246. test x$enable_libsamplerate_shared = xyes; then
  16247. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16248. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16249. fi
  16250. if test x$have_loadso = xyes && \
  16251. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16252. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16253. cat >>confdefs.h <<_ACEOF
  16254. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16255. _ACEOF
  16256. else
  16257. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16258. fi
  16259. fi
  16260. fi
  16261. }
  16262. CheckVisibilityHidden()
  16263. {
  16264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16265. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16266. have_gcc_fvisibility=no
  16267. visibility_CFLAGS="-fvisibility=hidden"
  16268. save_CFLAGS="$CFLAGS"
  16269. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16271. /* end confdefs.h. */
  16272. #if !defined(__GNUC__) || __GNUC__ < 4
  16273. #error SDL only uses visibility attributes in GCC 4 or newer
  16274. #endif
  16275. int
  16276. main ()
  16277. {
  16278. ;
  16279. return 0;
  16280. }
  16281. _ACEOF
  16282. if ac_fn_c_try_compile "$LINENO"; then :
  16283. have_gcc_fvisibility=yes
  16284. fi
  16285. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16287. $as_echo "$have_gcc_fvisibility" >&6; }
  16288. CFLAGS="$save_CFLAGS"
  16289. if test x$have_gcc_fvisibility = xyes; then
  16290. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16291. fi
  16292. }
  16293. CheckStackBoundary()
  16294. {
  16295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16296. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16297. have_gcc_preferred_stack_boundary=no
  16298. save_CFLAGS="$CFLAGS"
  16299. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16301. /* end confdefs.h. */
  16302. int x = 0;
  16303. int
  16304. main ()
  16305. {
  16306. ;
  16307. return 0;
  16308. }
  16309. _ACEOF
  16310. if ac_fn_c_try_compile "$LINENO"; then :
  16311. have_gcc_preferred_stack_boundary=yes
  16312. fi
  16313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16315. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16316. CFLAGS="$save_CFLAGS"
  16317. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16318. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16319. fi
  16320. }
  16321. CheckDeclarationAfterStatement()
  16322. {
  16323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16324. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16325. have_gcc_declaration_after_statement=no
  16326. save_CFLAGS="$CFLAGS"
  16327. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16329. /* end confdefs.h. */
  16330. int x = 0;
  16331. int
  16332. main ()
  16333. {
  16334. ;
  16335. return 0;
  16336. }
  16337. _ACEOF
  16338. if ac_fn_c_try_compile "$LINENO"; then :
  16339. have_gcc_declaration_after_statement=yes
  16340. fi
  16341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16343. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16344. CFLAGS="$save_CFLAGS"
  16345. if test x$have_gcc_declaration_after_statement = xyes; then
  16346. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16347. fi
  16348. }
  16349. CheckWarnAll()
  16350. {
  16351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16352. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16353. have_gcc_Wall=no
  16354. save_CFLAGS="$CFLAGS"
  16355. CFLAGS="$save_CFLAGS -Wall"
  16356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16357. /* end confdefs.h. */
  16358. int x = 0;
  16359. int
  16360. main ()
  16361. {
  16362. ;
  16363. return 0;
  16364. }
  16365. _ACEOF
  16366. if ac_fn_c_try_compile "$LINENO"; then :
  16367. have_gcc_Wall=yes
  16368. fi
  16369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16371. $as_echo "$have_gcc_Wall" >&6; }
  16372. CFLAGS="$save_CFLAGS"
  16373. if test x$have_gcc_Wall = xyes; then
  16374. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16376. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16377. need_gcc_Wno_multichar=no
  16378. case "$host" in
  16379. *-*-haiku*)
  16380. need_gcc_Wno_multichar=yes
  16381. ;;
  16382. esac
  16383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16384. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16385. if test x$need_gcc_Wno_multichar = xyes; then
  16386. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16387. fi
  16388. fi
  16389. }
  16390. CheckWayland()
  16391. {
  16392. # Check whether --enable-video-wayland was given.
  16393. if test "${enable_video_wayland+set}" = set; then :
  16394. enableval=$enable_video_wayland;
  16395. else
  16396. enable_video_wayland=yes
  16397. fi
  16398. # Check whether --enable-video-wayland-qt-touch was given.
  16399. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16400. enableval=$enable_video_wayland_qt_touch;
  16401. else
  16402. enable_video_wayland_qt_touch=yes
  16403. fi
  16404. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16405. # Extract the first word of "pkg-config", so it can be a program name with args.
  16406. set dummy pkg-config; ac_word=$2
  16407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16408. $as_echo_n "checking for $ac_word... " >&6; }
  16409. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16410. $as_echo_n "(cached) " >&6
  16411. else
  16412. case $PKG_CONFIG in
  16413. [\\/]* | ?:[\\/]*)
  16414. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16415. ;;
  16416. *)
  16417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16418. for as_dir in $PATH
  16419. do
  16420. IFS=$as_save_IFS
  16421. test -z "$as_dir" && as_dir=.
  16422. for ac_exec_ext in '' $ac_executable_extensions; do
  16423. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16424. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16425. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16426. break 2
  16427. fi
  16428. done
  16429. done
  16430. IFS=$as_save_IFS
  16431. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16432. ;;
  16433. esac
  16434. fi
  16435. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16436. if test -n "$PKG_CONFIG"; then
  16437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16438. $as_echo "$PKG_CONFIG" >&6; }
  16439. else
  16440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16441. $as_echo "no" >&6; }
  16442. fi
  16443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16444. $as_echo_n "checking for Wayland support... " >&6; }
  16445. video_wayland=no
  16446. if test x$PKG_CONFIG != xno && \
  16447. test x$video_opengl_egl = xyes && \
  16448. test x$video_opengles_v2 = xyes; then
  16449. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16450. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16451. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16452. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16453. WAYLAND_CORE_PROTOCOL_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-client`
  16454. WAYLAND_PROTOCOLS_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
  16455. video_wayland=yes
  16456. fi
  16457. fi
  16458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16459. $as_echo "$video_wayland" >&6; }
  16460. if test x$video_wayland = xyes; then
  16461. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16462. if test x$enable_video_wayland_qt_touch = xyes; then
  16463. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16464. fi
  16465. WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1"
  16466. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16467. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16468. # Check whether --enable-wayland-shared was given.
  16469. if test "${enable_wayland_shared+set}" = set; then :
  16470. enableval=$enable_wayland_shared;
  16471. else
  16472. enable_wayland_shared=maybe
  16473. fi
  16474. case "$host" in
  16475. *)
  16476. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16477. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16478. if test x$wayland_egl_lib = x; then
  16479. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16480. fi
  16481. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16482. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16483. ;;
  16484. esac
  16485. if test x$enable_wayland_shared = xmaybe; then
  16486. enable_wayland_shared=yes
  16487. fi
  16488. if test x$have_loadso != xyes && \
  16489. test x$enable_wayland_shared = xyes; then
  16490. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16491. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16492. enable_wayland_shared=no
  16493. fi
  16494. if test x$have_loadso = xyes && \
  16495. test x$enable_wayland_shared = xyes && \
  16496. test x$wayland_client_lib != x && \
  16497. test x$wayland_egl_lib != x && \
  16498. test x$wayland_cursor_lib != x && \
  16499. test x$xkbcommon_lib != x; then
  16500. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16501. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16502. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16503. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16504. cat >>confdefs.h <<_ACEOF
  16505. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16506. _ACEOF
  16507. cat >>confdefs.h <<_ACEOF
  16508. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16509. _ACEOF
  16510. cat >>confdefs.h <<_ACEOF
  16511. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16512. _ACEOF
  16513. cat >>confdefs.h <<_ACEOF
  16514. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16515. _ACEOF
  16516. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16517. else
  16518. enable_wayland_shared=no
  16519. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16520. SUMMARY_video="${SUMMARY_video} wayland"
  16521. fi
  16522. have_video=yes
  16523. fi
  16524. fi
  16525. }
  16526. CheckMir()
  16527. {
  16528. # Check whether --enable-video-mir was given.
  16529. if test "${enable_video_mir+set}" = set; then :
  16530. enableval=$enable_video_mir;
  16531. else
  16532. enable_video_mir=yes
  16533. fi
  16534. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16535. # Extract the first word of "pkg-config", so it can be a program name with args.
  16536. set dummy pkg-config; ac_word=$2
  16537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16538. $as_echo_n "checking for $ac_word... " >&6; }
  16539. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16540. $as_echo_n "(cached) " >&6
  16541. else
  16542. case $PKG_CONFIG in
  16543. [\\/]* | ?:[\\/]*)
  16544. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16545. ;;
  16546. *)
  16547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16548. for as_dir in $PATH
  16549. do
  16550. IFS=$as_save_IFS
  16551. test -z "$as_dir" && as_dir=.
  16552. for ac_exec_ext in '' $ac_executable_extensions; do
  16553. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16554. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16556. break 2
  16557. fi
  16558. done
  16559. done
  16560. IFS=$as_save_IFS
  16561. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16562. ;;
  16563. esac
  16564. fi
  16565. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16566. if test -n "$PKG_CONFIG"; then
  16567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16568. $as_echo "$PKG_CONFIG" >&6; }
  16569. else
  16570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16571. $as_echo "no" >&6; }
  16572. fi
  16573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16574. $as_echo_n "checking for Mir support... " >&6; }
  16575. video_mir=no
  16576. if test x$PKG_CONFIG != xno; then
  16577. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16578. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16579. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16580. save_CFLAGS="$CFLAGS"
  16581. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16583. /* end confdefs.h. */
  16584. #include <mir_toolkit/mir_client_library.h>
  16585. int
  16586. main ()
  16587. {
  16588. MirWindowAttrib attrib = mir_window_attrib_state
  16589. ;
  16590. return 0;
  16591. }
  16592. _ACEOF
  16593. if ac_fn_c_try_compile "$LINENO"; then :
  16594. video_mir=yes
  16595. fi
  16596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16597. CFLAGS="$save_CFLAGS"
  16598. fi
  16599. fi
  16600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16601. $as_echo "$video_mir" >&6; }
  16602. if test x$video_mir = xyes; then
  16603. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16604. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16605. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16606. # Check whether --enable-mir-shared was given.
  16607. if test "${enable_mir_shared+set}" = set; then :
  16608. enableval=$enable_mir_shared;
  16609. else
  16610. enable_mir_shared=maybe
  16611. fi
  16612. case "$host" in
  16613. *)
  16614. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16615. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16616. ;;
  16617. esac
  16618. if test x$enable_mir_shared = xmaybe; then
  16619. enable_mir_shared=yes
  16620. fi
  16621. if test x$have_loadso != xyes && \
  16622. test x$enable_mir_shared = xyes; then
  16623. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16624. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16625. enable_mir_shared=no
  16626. fi
  16627. if test x$have_loadso = xyes && \
  16628. test x$enable_mir_shared = xyes && \
  16629. test x$mirclient_lib != x && \
  16630. test x$xkbcommon_lib != x; then
  16631. echo "-- dynamic libmirclient -> $mirclient_lib"
  16632. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16633. cat >>confdefs.h <<_ACEOF
  16634. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16635. _ACEOF
  16636. cat >>confdefs.h <<_ACEOF
  16637. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16638. _ACEOF
  16639. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16640. else
  16641. enable_mir_shared=no
  16642. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16643. SUMMARY_video="${SUMMARY_video} mir"
  16644. fi
  16645. have_video=yes
  16646. fi
  16647. fi
  16648. }
  16649. CheckNativeClient()
  16650. {
  16651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16652. /* end confdefs.h. */
  16653. #if !defined(__native_client__)
  16654. #error "NO NACL"
  16655. #endif
  16656. int
  16657. main ()
  16658. {
  16659. ;
  16660. return 0;
  16661. }
  16662. _ACEOF
  16663. if ac_fn_c_try_compile "$LINENO"; then :
  16664. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16665. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16666. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16667. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16668. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16669. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16670. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16671. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16672. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16673. SUMMARY_audio="${SUMMARY_audio} nacl"
  16674. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16675. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16676. fi
  16677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16678. }
  16679. CheckX11()
  16680. {
  16681. # Check whether --enable-video-x11 was given.
  16682. if test "${enable_video_x11+set}" = set; then :
  16683. enableval=$enable_video_x11;
  16684. else
  16685. enable_video_x11=yes
  16686. fi
  16687. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16688. case "$host" in
  16689. *-*-darwin*)
  16690. # This isn't necessary for X11, but fixes GLX detection
  16691. if test "x$x_includes" = xNONE && \
  16692. test "x$x_libraries" = xNONE && \
  16693. test -d /usr/X11R6/include && \
  16694. test -d /usr/X11R6/lib; then
  16695. x_includes="/usr/X11R6/include"
  16696. x_libraries="/usr/X11R6/lib"
  16697. fi
  16698. ;;
  16699. esac
  16700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16701. $as_echo_n "checking for X... " >&6; }
  16702. # Check whether --with-x was given.
  16703. if test "${with_x+set}" = set; then :
  16704. withval=$with_x;
  16705. fi
  16706. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16707. if test "x$with_x" = xno; then
  16708. # The user explicitly disabled X.
  16709. have_x=disabled
  16710. else
  16711. case $x_includes,$x_libraries in #(
  16712. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16713. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16714. $as_echo_n "(cached) " >&6
  16715. else
  16716. # One or both of the vars are not set, and there is no cached value.
  16717. ac_x_includes=no ac_x_libraries=no
  16718. rm -f -r conftest.dir
  16719. if mkdir conftest.dir; then
  16720. cd conftest.dir
  16721. cat >Imakefile <<'_ACEOF'
  16722. incroot:
  16723. @echo incroot='${INCROOT}'
  16724. usrlibdir:
  16725. @echo usrlibdir='${USRLIBDIR}'
  16726. libdir:
  16727. @echo libdir='${LIBDIR}'
  16728. _ACEOF
  16729. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16730. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16731. for ac_var in incroot usrlibdir libdir; do
  16732. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16733. done
  16734. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16735. for ac_extension in a so sl dylib la dll; do
  16736. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16737. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16738. ac_im_usrlibdir=$ac_im_libdir; break
  16739. fi
  16740. done
  16741. # Screen out bogus values from the imake configuration. They are
  16742. # bogus both because they are the default anyway, and because
  16743. # using them would break gcc on systems where it needs fixed includes.
  16744. case $ac_im_incroot in
  16745. /usr/include) ac_x_includes= ;;
  16746. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16747. esac
  16748. case $ac_im_usrlibdir in
  16749. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16750. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16751. esac
  16752. fi
  16753. cd ..
  16754. rm -f -r conftest.dir
  16755. fi
  16756. # Standard set of common directories for X headers.
  16757. # Check X11 before X11Rn because it is often a symlink to the current release.
  16758. ac_x_header_dirs='
  16759. /usr/X11/include
  16760. /usr/X11R7/include
  16761. /usr/X11R6/include
  16762. /usr/X11R5/include
  16763. /usr/X11R4/include
  16764. /usr/include/X11
  16765. /usr/include/X11R7
  16766. /usr/include/X11R6
  16767. /usr/include/X11R5
  16768. /usr/include/X11R4
  16769. /usr/local/X11/include
  16770. /usr/local/X11R7/include
  16771. /usr/local/X11R6/include
  16772. /usr/local/X11R5/include
  16773. /usr/local/X11R4/include
  16774. /usr/local/include/X11
  16775. /usr/local/include/X11R7
  16776. /usr/local/include/X11R6
  16777. /usr/local/include/X11R5
  16778. /usr/local/include/X11R4
  16779. /usr/X386/include
  16780. /usr/x386/include
  16781. /usr/XFree86/include/X11
  16782. /usr/include
  16783. /usr/local/include
  16784. /usr/unsupported/include
  16785. /usr/athena/include
  16786. /usr/local/x11r5/include
  16787. /usr/lpp/Xamples/include
  16788. /usr/openwin/include
  16789. /usr/openwin/share/include'
  16790. if test "$ac_x_includes" = no; then
  16791. # Guess where to find include files, by looking for Xlib.h.
  16792. # First, try using that file with no special directory specified.
  16793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16794. /* end confdefs.h. */
  16795. #include <X11/Xlib.h>
  16796. _ACEOF
  16797. if ac_fn_c_try_cpp "$LINENO"; then :
  16798. # We can compile using X headers with no special include directory.
  16799. ac_x_includes=
  16800. else
  16801. for ac_dir in $ac_x_header_dirs; do
  16802. if test -r "$ac_dir/X11/Xlib.h"; then
  16803. ac_x_includes=$ac_dir
  16804. break
  16805. fi
  16806. done
  16807. fi
  16808. rm -f conftest.err conftest.i conftest.$ac_ext
  16809. fi # $ac_x_includes = no
  16810. if test "$ac_x_libraries" = no; then
  16811. # Check for the libraries.
  16812. # See if we find them without any special options.
  16813. # Don't add to $LIBS permanently.
  16814. ac_save_LIBS=$LIBS
  16815. LIBS="-lX11 $LIBS"
  16816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16817. /* end confdefs.h. */
  16818. #include <X11/Xlib.h>
  16819. int
  16820. main ()
  16821. {
  16822. XrmInitialize ()
  16823. ;
  16824. return 0;
  16825. }
  16826. _ACEOF
  16827. if ac_fn_c_try_link "$LINENO"; then :
  16828. LIBS=$ac_save_LIBS
  16829. # We can link X programs with no special library path.
  16830. ac_x_libraries=
  16831. else
  16832. LIBS=$ac_save_LIBS
  16833. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16834. do
  16835. # Don't even attempt the hair of trying to link an X program!
  16836. for ac_extension in a so sl dylib la dll; do
  16837. if test -r "$ac_dir/libX11.$ac_extension"; then
  16838. ac_x_libraries=$ac_dir
  16839. break 2
  16840. fi
  16841. done
  16842. done
  16843. fi
  16844. rm -f core conftest.err conftest.$ac_objext \
  16845. conftest$ac_exeext conftest.$ac_ext
  16846. fi # $ac_x_libraries = no
  16847. case $ac_x_includes,$ac_x_libraries in #(
  16848. no,* | *,no | *\'*)
  16849. # Didn't find X, or a directory has "'" in its name.
  16850. ac_cv_have_x="have_x=no";; #(
  16851. *)
  16852. # Record where we found X for the cache.
  16853. ac_cv_have_x="have_x=yes\
  16854. ac_x_includes='$ac_x_includes'\
  16855. ac_x_libraries='$ac_x_libraries'"
  16856. esac
  16857. fi
  16858. ;; #(
  16859. *) have_x=yes;;
  16860. esac
  16861. eval "$ac_cv_have_x"
  16862. fi # $with_x != no
  16863. if test "$have_x" != yes; then
  16864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16865. $as_echo "$have_x" >&6; }
  16866. no_x=yes
  16867. else
  16868. # If each of the values was on the command line, it overrides each guess.
  16869. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16870. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16871. # Update the cache value to reflect the command line values.
  16872. ac_cv_have_x="have_x=yes\
  16873. ac_x_includes='$x_includes'\
  16874. ac_x_libraries='$x_libraries'"
  16875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16876. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16877. fi
  16878. if test "$no_x" = yes; then
  16879. # Not all programs may use this symbol, but it does not hurt to define it.
  16880. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16881. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16882. else
  16883. if test -n "$x_includes"; then
  16884. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16885. fi
  16886. # It would also be nice to do this for all -L options, not just this one.
  16887. if test -n "$x_libraries"; then
  16888. X_LIBS="$X_LIBS -L$x_libraries"
  16889. # For Solaris; some versions of Sun CC require a space after -R and
  16890. # others require no space. Words are not sufficient . . . .
  16891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16892. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16893. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16894. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16895. ac_c_werror_flag=yes
  16896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16897. /* end confdefs.h. */
  16898. int
  16899. main ()
  16900. {
  16901. ;
  16902. return 0;
  16903. }
  16904. _ACEOF
  16905. if ac_fn_c_try_link "$LINENO"; then :
  16906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16907. $as_echo "no" >&6; }
  16908. X_LIBS="$X_LIBS -R$x_libraries"
  16909. else
  16910. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16912. /* end confdefs.h. */
  16913. int
  16914. main ()
  16915. {
  16916. ;
  16917. return 0;
  16918. }
  16919. _ACEOF
  16920. if ac_fn_c_try_link "$LINENO"; then :
  16921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16922. $as_echo "yes" >&6; }
  16923. X_LIBS="$X_LIBS -R $x_libraries"
  16924. else
  16925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16926. $as_echo "neither works" >&6; }
  16927. fi
  16928. rm -f core conftest.err conftest.$ac_objext \
  16929. conftest$ac_exeext conftest.$ac_ext
  16930. fi
  16931. rm -f core conftest.err conftest.$ac_objext \
  16932. conftest$ac_exeext conftest.$ac_ext
  16933. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16934. LIBS=$ac_xsave_LIBS
  16935. fi
  16936. # Check for system-dependent libraries X programs must link with.
  16937. # Do this before checking for the system-independent R6 libraries
  16938. # (-lICE), since we may need -lsocket or whatever for X linking.
  16939. if test "$ISC" = yes; then
  16940. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16941. else
  16942. # Martyn Johnson says this is needed for Ultrix, if the X
  16943. # libraries were built with DECnet support. And Karl Berry says
  16944. # the Alpha needs dnet_stub (dnet does not exist).
  16945. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16947. /* end confdefs.h. */
  16948. /* Override any GCC internal prototype to avoid an error.
  16949. Use char because int might match the return type of a GCC
  16950. builtin and then its argument prototype would still apply. */
  16951. #ifdef __cplusplus
  16952. extern "C"
  16953. #endif
  16954. char XOpenDisplay ();
  16955. int
  16956. main ()
  16957. {
  16958. return XOpenDisplay ();
  16959. ;
  16960. return 0;
  16961. }
  16962. _ACEOF
  16963. if ac_fn_c_try_link "$LINENO"; then :
  16964. else
  16965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16966. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16967. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16968. $as_echo_n "(cached) " >&6
  16969. else
  16970. ac_check_lib_save_LIBS=$LIBS
  16971. LIBS="-ldnet $LIBS"
  16972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16973. /* end confdefs.h. */
  16974. /* Override any GCC internal prototype to avoid an error.
  16975. Use char because int might match the return type of a GCC
  16976. builtin and then its argument prototype would still apply. */
  16977. #ifdef __cplusplus
  16978. extern "C"
  16979. #endif
  16980. char dnet_ntoa ();
  16981. int
  16982. main ()
  16983. {
  16984. return dnet_ntoa ();
  16985. ;
  16986. return 0;
  16987. }
  16988. _ACEOF
  16989. if ac_fn_c_try_link "$LINENO"; then :
  16990. ac_cv_lib_dnet_dnet_ntoa=yes
  16991. else
  16992. ac_cv_lib_dnet_dnet_ntoa=no
  16993. fi
  16994. rm -f core conftest.err conftest.$ac_objext \
  16995. conftest$ac_exeext conftest.$ac_ext
  16996. LIBS=$ac_check_lib_save_LIBS
  16997. fi
  16998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16999. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17000. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17001. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17002. fi
  17003. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17005. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17006. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17007. $as_echo_n "(cached) " >&6
  17008. else
  17009. ac_check_lib_save_LIBS=$LIBS
  17010. LIBS="-ldnet_stub $LIBS"
  17011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17012. /* end confdefs.h. */
  17013. /* Override any GCC internal prototype to avoid an error.
  17014. Use char because int might match the return type of a GCC
  17015. builtin and then its argument prototype would still apply. */
  17016. #ifdef __cplusplus
  17017. extern "C"
  17018. #endif
  17019. char dnet_ntoa ();
  17020. int
  17021. main ()
  17022. {
  17023. return dnet_ntoa ();
  17024. ;
  17025. return 0;
  17026. }
  17027. _ACEOF
  17028. if ac_fn_c_try_link "$LINENO"; then :
  17029. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17030. else
  17031. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17032. fi
  17033. rm -f core conftest.err conftest.$ac_objext \
  17034. conftest$ac_exeext conftest.$ac_ext
  17035. LIBS=$ac_check_lib_save_LIBS
  17036. fi
  17037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17038. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17039. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17040. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17041. fi
  17042. fi
  17043. fi
  17044. rm -f core conftest.err conftest.$ac_objext \
  17045. conftest$ac_exeext conftest.$ac_ext
  17046. LIBS="$ac_xsave_LIBS"
  17047. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17048. # to get the SysV transport functions.
  17049. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17050. # needs -lnsl.
  17051. # The nsl library prevents programs from opening the X display
  17052. # on Irix 5.2, according to T.E. Dickey.
  17053. # The functions gethostbyname, getservbyname, and inet_addr are
  17054. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17055. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17056. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17057. fi
  17058. if test $ac_cv_func_gethostbyname = no; then
  17059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17060. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17061. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17062. $as_echo_n "(cached) " >&6
  17063. else
  17064. ac_check_lib_save_LIBS=$LIBS
  17065. LIBS="-lnsl $LIBS"
  17066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17067. /* end confdefs.h. */
  17068. /* Override any GCC internal prototype to avoid an error.
  17069. Use char because int might match the return type of a GCC
  17070. builtin and then its argument prototype would still apply. */
  17071. #ifdef __cplusplus
  17072. extern "C"
  17073. #endif
  17074. char gethostbyname ();
  17075. int
  17076. main ()
  17077. {
  17078. return gethostbyname ();
  17079. ;
  17080. return 0;
  17081. }
  17082. _ACEOF
  17083. if ac_fn_c_try_link "$LINENO"; then :
  17084. ac_cv_lib_nsl_gethostbyname=yes
  17085. else
  17086. ac_cv_lib_nsl_gethostbyname=no
  17087. fi
  17088. rm -f core conftest.err conftest.$ac_objext \
  17089. conftest$ac_exeext conftest.$ac_ext
  17090. LIBS=$ac_check_lib_save_LIBS
  17091. fi
  17092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17093. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17094. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17095. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17096. fi
  17097. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17099. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17100. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17101. $as_echo_n "(cached) " >&6
  17102. else
  17103. ac_check_lib_save_LIBS=$LIBS
  17104. LIBS="-lbsd $LIBS"
  17105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17106. /* end confdefs.h. */
  17107. /* Override any GCC internal prototype to avoid an error.
  17108. Use char because int might match the return type of a GCC
  17109. builtin and then its argument prototype would still apply. */
  17110. #ifdef __cplusplus
  17111. extern "C"
  17112. #endif
  17113. char gethostbyname ();
  17114. int
  17115. main ()
  17116. {
  17117. return gethostbyname ();
  17118. ;
  17119. return 0;
  17120. }
  17121. _ACEOF
  17122. if ac_fn_c_try_link "$LINENO"; then :
  17123. ac_cv_lib_bsd_gethostbyname=yes
  17124. else
  17125. ac_cv_lib_bsd_gethostbyname=no
  17126. fi
  17127. rm -f core conftest.err conftest.$ac_objext \
  17128. conftest$ac_exeext conftest.$ac_ext
  17129. LIBS=$ac_check_lib_save_LIBS
  17130. fi
  17131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17132. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17133. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17134. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17135. fi
  17136. fi
  17137. fi
  17138. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17139. # socket/setsockopt and other routines are undefined under SCO ODT
  17140. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17141. # on later versions), says Simon Leinen: it contains gethostby*
  17142. # variants that don't use the name server (or something). -lsocket
  17143. # must be given before -lnsl if both are needed. We assume that
  17144. # if connect needs -lnsl, so does gethostbyname.
  17145. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17146. if test "x$ac_cv_func_connect" = xyes; then :
  17147. fi
  17148. if test $ac_cv_func_connect = no; then
  17149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17150. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17151. if ${ac_cv_lib_socket_connect+:} false; then :
  17152. $as_echo_n "(cached) " >&6
  17153. else
  17154. ac_check_lib_save_LIBS=$LIBS
  17155. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17157. /* end confdefs.h. */
  17158. /* Override any GCC internal prototype to avoid an error.
  17159. Use char because int might match the return type of a GCC
  17160. builtin and then its argument prototype would still apply. */
  17161. #ifdef __cplusplus
  17162. extern "C"
  17163. #endif
  17164. char connect ();
  17165. int
  17166. main ()
  17167. {
  17168. return connect ();
  17169. ;
  17170. return 0;
  17171. }
  17172. _ACEOF
  17173. if ac_fn_c_try_link "$LINENO"; then :
  17174. ac_cv_lib_socket_connect=yes
  17175. else
  17176. ac_cv_lib_socket_connect=no
  17177. fi
  17178. rm -f core conftest.err conftest.$ac_objext \
  17179. conftest$ac_exeext conftest.$ac_ext
  17180. LIBS=$ac_check_lib_save_LIBS
  17181. fi
  17182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17183. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17184. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17185. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17186. fi
  17187. fi
  17188. # Guillermo Gomez says -lposix is necessary on A/UX.
  17189. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17190. if test "x$ac_cv_func_remove" = xyes; then :
  17191. fi
  17192. if test $ac_cv_func_remove = no; then
  17193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17194. $as_echo_n "checking for remove in -lposix... " >&6; }
  17195. if ${ac_cv_lib_posix_remove+:} false; then :
  17196. $as_echo_n "(cached) " >&6
  17197. else
  17198. ac_check_lib_save_LIBS=$LIBS
  17199. LIBS="-lposix $LIBS"
  17200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17201. /* end confdefs.h. */
  17202. /* Override any GCC internal prototype to avoid an error.
  17203. Use char because int might match the return type of a GCC
  17204. builtin and then its argument prototype would still apply. */
  17205. #ifdef __cplusplus
  17206. extern "C"
  17207. #endif
  17208. char remove ();
  17209. int
  17210. main ()
  17211. {
  17212. return remove ();
  17213. ;
  17214. return 0;
  17215. }
  17216. _ACEOF
  17217. if ac_fn_c_try_link "$LINENO"; then :
  17218. ac_cv_lib_posix_remove=yes
  17219. else
  17220. ac_cv_lib_posix_remove=no
  17221. fi
  17222. rm -f core conftest.err conftest.$ac_objext \
  17223. conftest$ac_exeext conftest.$ac_ext
  17224. LIBS=$ac_check_lib_save_LIBS
  17225. fi
  17226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17227. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17228. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17229. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17230. fi
  17231. fi
  17232. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17233. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17234. if test "x$ac_cv_func_shmat" = xyes; then :
  17235. fi
  17236. if test $ac_cv_func_shmat = no; then
  17237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17238. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17239. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17240. $as_echo_n "(cached) " >&6
  17241. else
  17242. ac_check_lib_save_LIBS=$LIBS
  17243. LIBS="-lipc $LIBS"
  17244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17245. /* end confdefs.h. */
  17246. /* Override any GCC internal prototype to avoid an error.
  17247. Use char because int might match the return type of a GCC
  17248. builtin and then its argument prototype would still apply. */
  17249. #ifdef __cplusplus
  17250. extern "C"
  17251. #endif
  17252. char shmat ();
  17253. int
  17254. main ()
  17255. {
  17256. return shmat ();
  17257. ;
  17258. return 0;
  17259. }
  17260. _ACEOF
  17261. if ac_fn_c_try_link "$LINENO"; then :
  17262. ac_cv_lib_ipc_shmat=yes
  17263. else
  17264. ac_cv_lib_ipc_shmat=no
  17265. fi
  17266. rm -f core conftest.err conftest.$ac_objext \
  17267. conftest$ac_exeext conftest.$ac_ext
  17268. LIBS=$ac_check_lib_save_LIBS
  17269. fi
  17270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17271. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17272. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17273. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17274. fi
  17275. fi
  17276. fi
  17277. # Check for libraries that X11R6 Xt/Xaw programs need.
  17278. ac_save_LDFLAGS=$LDFLAGS
  17279. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17280. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17281. # check for ICE first), but we must link in the order -lSM -lICE or
  17282. # we get undefined symbols. So assume we have SM if we have ICE.
  17283. # These have to be linked with before -lX11, unlike the other
  17284. # libraries we check for below, so use a different variable.
  17285. # John Interrante, Karl Berry
  17286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17287. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17288. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17289. $as_echo_n "(cached) " >&6
  17290. else
  17291. ac_check_lib_save_LIBS=$LIBS
  17292. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17294. /* end confdefs.h. */
  17295. /* Override any GCC internal prototype to avoid an error.
  17296. Use char because int might match the return type of a GCC
  17297. builtin and then its argument prototype would still apply. */
  17298. #ifdef __cplusplus
  17299. extern "C"
  17300. #endif
  17301. char IceConnectionNumber ();
  17302. int
  17303. main ()
  17304. {
  17305. return IceConnectionNumber ();
  17306. ;
  17307. return 0;
  17308. }
  17309. _ACEOF
  17310. if ac_fn_c_try_link "$LINENO"; then :
  17311. ac_cv_lib_ICE_IceConnectionNumber=yes
  17312. else
  17313. ac_cv_lib_ICE_IceConnectionNumber=no
  17314. fi
  17315. rm -f core conftest.err conftest.$ac_objext \
  17316. conftest$ac_exeext conftest.$ac_ext
  17317. LIBS=$ac_check_lib_save_LIBS
  17318. fi
  17319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17320. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17321. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17322. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17323. fi
  17324. LDFLAGS=$ac_save_LDFLAGS
  17325. fi
  17326. if test x$have_x = xyes; then
  17327. # Check whether --enable-x11-shared was given.
  17328. if test "${enable_x11_shared+set}" = set; then :
  17329. enableval=$enable_x11_shared;
  17330. else
  17331. enable_x11_shared=maybe
  17332. fi
  17333. case "$host" in
  17334. *-*-darwin*)
  17335. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17336. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17337. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17338. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17339. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17340. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17341. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17342. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17343. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17344. ;;
  17345. *-*-openbsd*)
  17346. x11_lib='libX11.so'
  17347. x11ext_lib='libXext.so'
  17348. xcursor_lib='libXcursor.so'
  17349. xinerama_lib='libXinerama.so'
  17350. xinput_lib='libXi.so'
  17351. xrandr_lib='libXrandr.so'
  17352. xrender_lib='libXrender.so'
  17353. xss_lib='libXss.so'
  17354. xvidmode_lib='libXxf86vm.so'
  17355. ;;
  17356. *)
  17357. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17358. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17359. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17360. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17361. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17362. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17363. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17364. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17365. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17366. ;;
  17367. esac
  17368. if test x$ac_cv_func_shmat != xyes; then
  17369. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17370. fi
  17371. CFLAGS="$CFLAGS $X_CFLAGS"
  17372. LDFLAGS="$LDFLAGS $X_LIBS"
  17373. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17374. #include <X11/Xproto.h>
  17375. "
  17376. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17377. have_xext_h_hdr=yes
  17378. else
  17379. have_xext_h_hdr=no
  17380. fi
  17381. if test x$have_xext_h_hdr != xyes; then
  17382. as_fn_error $? "
  17383. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17384. " "$LINENO" 5
  17385. fi
  17386. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17387. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17388. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17389. # Needed so SDL applications can include SDL_syswm.h
  17390. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17391. if test x$enable_x11_shared = xmaybe; then
  17392. enable_x11_shared=yes
  17393. fi
  17394. if test x$have_loadso != xyes && \
  17395. test x$enable_x11_shared = xyes; then
  17396. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17397. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17398. enable_x11_shared=no
  17399. fi
  17400. if test x$have_loadso = xyes && \
  17401. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17402. echo "-- dynamic libX11 -> $x11_lib"
  17403. echo "-- dynamic libX11ext -> $x11ext_lib"
  17404. cat >>confdefs.h <<_ACEOF
  17405. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17406. _ACEOF
  17407. cat >>confdefs.h <<_ACEOF
  17408. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17409. _ACEOF
  17410. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17411. else
  17412. enable_x11_shared=no
  17413. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17414. SUMMARY_video="${SUMMARY_video} x11"
  17415. fi
  17416. have_video=yes
  17417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17418. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17419. have_const_param_XextAddDisplay=no
  17420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17421. /* end confdefs.h. */
  17422. #include <X11/Xlib.h>
  17423. #include <X11/Xproto.h>
  17424. #include <X11/extensions/Xext.h>
  17425. #include <X11/extensions/extutil.h>
  17426. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17427. int
  17428. main ()
  17429. {
  17430. ;
  17431. return 0;
  17432. }
  17433. _ACEOF
  17434. if ac_fn_c_try_compile "$LINENO"; then :
  17435. have_const_param_XextAddDisplay=yes
  17436. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17437. fi
  17438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17440. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17442. $as_echo_n "checking for XGenericEvent... " >&6; }
  17443. have_XGenericEvent=no
  17444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17445. /* end confdefs.h. */
  17446. #include <X11/Xlib.h>
  17447. int
  17448. main ()
  17449. {
  17450. Display *display;
  17451. XEvent event;
  17452. XGenericEventCookie *cookie = &event.xcookie;
  17453. XNextEvent(display, &event);
  17454. XGetEventData(display, cookie);
  17455. XFreeEventData(display, cookie);
  17456. ;
  17457. return 0;
  17458. }
  17459. _ACEOF
  17460. if ac_fn_c_try_compile "$LINENO"; then :
  17461. have_XGenericEvent=yes
  17462. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17463. fi
  17464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17466. $as_echo "$have_XGenericEvent" >&6; }
  17467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17468. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17469. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17470. $as_echo_n "(cached) " >&6
  17471. else
  17472. ac_check_lib_save_LIBS=$LIBS
  17473. LIBS="-lX11 $LIBS"
  17474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17475. /* end confdefs.h. */
  17476. /* Override any GCC internal prototype to avoid an error.
  17477. Use char because int might match the return type of a GCC
  17478. builtin and then its argument prototype would still apply. */
  17479. #ifdef __cplusplus
  17480. extern "C"
  17481. #endif
  17482. char XkbKeycodeToKeysym ();
  17483. int
  17484. main ()
  17485. {
  17486. return XkbKeycodeToKeysym ();
  17487. ;
  17488. return 0;
  17489. }
  17490. _ACEOF
  17491. if ac_fn_c_try_link "$LINENO"; then :
  17492. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17493. else
  17494. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17495. fi
  17496. rm -f core conftest.err conftest.$ac_objext \
  17497. conftest$ac_exeext conftest.$ac_ext
  17498. LIBS=$ac_check_lib_save_LIBS
  17499. fi
  17500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17501. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17502. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17503. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17504. fi
  17505. # Check whether --enable-video-x11-xcursor was given.
  17506. if test "${enable_video_x11_xcursor+set}" = set; then :
  17507. enableval=$enable_video_x11_xcursor;
  17508. else
  17509. enable_video_x11_xcursor=yes
  17510. fi
  17511. if test x$enable_video_x11_xcursor = xyes; then
  17512. definitely_enable_video_x11_xcursor=no
  17513. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17514. "
  17515. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17516. have_xcursor_h_hdr=yes
  17517. else
  17518. have_xcursor_h_hdr=no
  17519. fi
  17520. if test x$have_xcursor_h_hdr = xyes; then
  17521. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17522. echo "-- dynamic libXcursor -> $xcursor_lib"
  17523. cat >>confdefs.h <<_ACEOF
  17524. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17525. _ACEOF
  17526. definitely_enable_video_x11_xcursor=yes
  17527. else
  17528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17529. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17530. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17531. $as_echo_n "(cached) " >&6
  17532. else
  17533. ac_check_lib_save_LIBS=$LIBS
  17534. LIBS="-lXcursor $LIBS"
  17535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17536. /* end confdefs.h. */
  17537. /* Override any GCC internal prototype to avoid an error.
  17538. Use char because int might match the return type of a GCC
  17539. builtin and then its argument prototype would still apply. */
  17540. #ifdef __cplusplus
  17541. extern "C"
  17542. #endif
  17543. char XcursorImageCreate ();
  17544. int
  17545. main ()
  17546. {
  17547. return XcursorImageCreate ();
  17548. ;
  17549. return 0;
  17550. }
  17551. _ACEOF
  17552. if ac_fn_c_try_link "$LINENO"; then :
  17553. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17554. else
  17555. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17556. fi
  17557. rm -f core conftest.err conftest.$ac_objext \
  17558. conftest$ac_exeext conftest.$ac_ext
  17559. LIBS=$ac_check_lib_save_LIBS
  17560. fi
  17561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17562. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17563. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17564. have_xcursor_lib=yes
  17565. fi
  17566. if test x$have_xcursor_lib = xyes ; then
  17567. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17568. definitely_enable_video_x11_xcursor=yes
  17569. fi
  17570. fi
  17571. fi
  17572. fi
  17573. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17574. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17575. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17576. fi
  17577. # Check whether --enable-video-x11-xdbe was given.
  17578. if test "${enable_video_x11_xdbe+set}" = set; then :
  17579. enableval=$enable_video_x11_xdbe;
  17580. else
  17581. enable_video_x11_xdbe=yes
  17582. fi
  17583. if test x$enable_video_x11_xdbe = xyes; then
  17584. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17585. "
  17586. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17587. have_dbe_h_hdr=yes
  17588. else
  17589. have_dbe_h_hdr=no
  17590. fi
  17591. if test x$have_dbe_h_hdr = xyes; then
  17592. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17593. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17594. fi
  17595. fi
  17596. # Check whether --enable-video-x11-xinerama was given.
  17597. if test "${enable_video_x11_xinerama+set}" = set; then :
  17598. enableval=$enable_video_x11_xinerama;
  17599. else
  17600. enable_video_x11_xinerama=yes
  17601. fi
  17602. if test x$enable_video_x11_xinerama = xyes; then
  17603. definitely_enable_video_x11_xinerama=no
  17604. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17605. "
  17606. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17607. have_xinerama_h_hdr=yes
  17608. else
  17609. have_xinerama_h_hdr=no
  17610. fi
  17611. if test x$have_xinerama_h_hdr = xyes; then
  17612. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17613. echo "-- dynamic libXinerama -> $xinerama_lib"
  17614. cat >>confdefs.h <<_ACEOF
  17615. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17616. _ACEOF
  17617. definitely_enable_video_x11_xinerama=yes
  17618. else
  17619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17620. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17621. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17622. $as_echo_n "(cached) " >&6
  17623. else
  17624. ac_check_lib_save_LIBS=$LIBS
  17625. LIBS="-lXinerama $LIBS"
  17626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17627. /* end confdefs.h. */
  17628. /* Override any GCC internal prototype to avoid an error.
  17629. Use char because int might match the return type of a GCC
  17630. builtin and then its argument prototype would still apply. */
  17631. #ifdef __cplusplus
  17632. extern "C"
  17633. #endif
  17634. char XineramaQueryExtension ();
  17635. int
  17636. main ()
  17637. {
  17638. return XineramaQueryExtension ();
  17639. ;
  17640. return 0;
  17641. }
  17642. _ACEOF
  17643. if ac_fn_c_try_link "$LINENO"; then :
  17644. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17645. else
  17646. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17647. fi
  17648. rm -f core conftest.err conftest.$ac_objext \
  17649. conftest$ac_exeext conftest.$ac_ext
  17650. LIBS=$ac_check_lib_save_LIBS
  17651. fi
  17652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17653. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17654. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17655. have_xinerama_lib=yes
  17656. fi
  17657. if test x$have_xinerama_lib = xyes ; then
  17658. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17659. definitely_enable_video_x11_xinerama=yes
  17660. fi
  17661. fi
  17662. fi
  17663. fi
  17664. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17665. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17666. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17667. fi
  17668. # Check whether --enable-video-x11-xinput was given.
  17669. if test "${enable_video_x11_xinput+set}" = set; then :
  17670. enableval=$enable_video_x11_xinput;
  17671. else
  17672. enable_video_x11_xinput=yes
  17673. fi
  17674. if test x$enable_video_x11_xinput = xyes; then
  17675. definitely_enable_video_x11_xinput=no
  17676. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17677. "
  17678. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17679. have_xinput_h_hdr=yes
  17680. else
  17681. have_xinput_h_hdr=no
  17682. fi
  17683. if test x$have_xinput_h_hdr = xyes; then
  17684. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17685. echo "-- dynamic libXi -> $xinput_lib"
  17686. cat >>confdefs.h <<_ACEOF
  17687. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17688. _ACEOF
  17689. definitely_enable_video_x11_xinput=yes
  17690. else
  17691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17692. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17693. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17694. $as_echo_n "(cached) " >&6
  17695. else
  17696. ac_check_lib_save_LIBS=$LIBS
  17697. LIBS="-lXi $LIBS"
  17698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17699. /* end confdefs.h. */
  17700. /* Override any GCC internal prototype to avoid an error.
  17701. Use char because int might match the return type of a GCC
  17702. builtin and then its argument prototype would still apply. */
  17703. #ifdef __cplusplus
  17704. extern "C"
  17705. #endif
  17706. char XOpenDevice ();
  17707. int
  17708. main ()
  17709. {
  17710. return XOpenDevice ();
  17711. ;
  17712. return 0;
  17713. }
  17714. _ACEOF
  17715. if ac_fn_c_try_link "$LINENO"; then :
  17716. ac_cv_lib_Xi_XOpenDevice=yes
  17717. else
  17718. ac_cv_lib_Xi_XOpenDevice=no
  17719. fi
  17720. rm -f core conftest.err conftest.$ac_objext \
  17721. conftest$ac_exeext conftest.$ac_ext
  17722. LIBS=$ac_check_lib_save_LIBS
  17723. fi
  17724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17725. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17726. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17727. have_xinput_lib=yes
  17728. fi
  17729. if test x$have_xinput_lib = xyes ; then
  17730. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17731. definitely_enable_video_x11_xinput=yes
  17732. fi
  17733. fi
  17734. fi
  17735. fi
  17736. if test x$definitely_enable_video_x11_xinput = xyes; then
  17737. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17738. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17740. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17741. have_xinput2_multitouch=no
  17742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17743. /* end confdefs.h. */
  17744. #include <X11/Xlib.h>
  17745. #include <X11/Xproto.h>
  17746. #include <X11/extensions/XInput2.h>
  17747. int
  17748. main ()
  17749. {
  17750. int event_type = XI_TouchBegin;
  17751. XITouchClassInfo *t;
  17752. ;
  17753. return 0;
  17754. }
  17755. _ACEOF
  17756. if ac_fn_c_try_compile "$LINENO"; then :
  17757. have_xinput2_multitouch=yes
  17758. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17759. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17760. fi
  17761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17763. $as_echo "$have_xinput2_multitouch" >&6; }
  17764. fi
  17765. # Check whether --enable-video-x11-xrandr was given.
  17766. if test "${enable_video_x11_xrandr+set}" = set; then :
  17767. enableval=$enable_video_x11_xrandr;
  17768. else
  17769. enable_video_x11_xrandr=yes
  17770. fi
  17771. if test x$enable_video_x11_xrandr = xyes; then
  17772. definitely_enable_video_x11_xrandr=no
  17773. have_xrandr_h_hdr=no
  17774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17775. /* end confdefs.h. */
  17776. #include <X11/Xlib.h>
  17777. #include <X11/extensions/Xrandr.h>
  17778. int
  17779. main ()
  17780. {
  17781. XRRScreenResources *res = NULL;
  17782. ;
  17783. return 0;
  17784. }
  17785. _ACEOF
  17786. if ac_fn_c_try_compile "$LINENO"; then :
  17787. have_xrandr_h_hdr=yes
  17788. fi
  17789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17790. if test x$have_xrandr_h_hdr = xyes; then
  17791. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17792. echo "-- dynamic libXrandr -> $xrandr_lib"
  17793. cat >>confdefs.h <<_ACEOF
  17794. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17795. _ACEOF
  17796. definitely_enable_video_x11_xrandr=yes
  17797. else
  17798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17799. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17800. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17801. $as_echo_n "(cached) " >&6
  17802. else
  17803. ac_check_lib_save_LIBS=$LIBS
  17804. LIBS="-lXrandr $LIBS"
  17805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17806. /* end confdefs.h. */
  17807. /* Override any GCC internal prototype to avoid an error.
  17808. Use char because int might match the return type of a GCC
  17809. builtin and then its argument prototype would still apply. */
  17810. #ifdef __cplusplus
  17811. extern "C"
  17812. #endif
  17813. char XRRQueryExtension ();
  17814. int
  17815. main ()
  17816. {
  17817. return XRRQueryExtension ();
  17818. ;
  17819. return 0;
  17820. }
  17821. _ACEOF
  17822. if ac_fn_c_try_link "$LINENO"; then :
  17823. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17824. else
  17825. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17826. fi
  17827. rm -f core conftest.err conftest.$ac_objext \
  17828. conftest$ac_exeext conftest.$ac_ext
  17829. LIBS=$ac_check_lib_save_LIBS
  17830. fi
  17831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17832. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17833. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17834. have_xrandr_lib=yes
  17835. fi
  17836. if test x$have_xrandr_lib = xyes ; then
  17837. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17838. definitely_enable_video_x11_xrandr=yes
  17839. fi
  17840. fi
  17841. fi
  17842. fi
  17843. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17844. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17845. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17846. fi
  17847. # Check whether --enable-video-x11-scrnsaver was given.
  17848. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17849. enableval=$enable_video_x11_scrnsaver;
  17850. else
  17851. enable_video_x11_scrnsaver=yes
  17852. fi
  17853. if test x$enable_video_x11_scrnsaver = xyes; then
  17854. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17855. "
  17856. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17857. have_scrnsaver_h_hdr=yes
  17858. else
  17859. have_scrnsaver_h_hdr=no
  17860. fi
  17861. if test x$have_scrnsaver_h_hdr = xyes; then
  17862. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17863. echo "-- dynamic libXss -> $xss_lib"
  17864. cat >>confdefs.h <<_ACEOF
  17865. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17866. _ACEOF
  17867. definitely_enable_video_x11_scrnsaver=yes
  17868. else
  17869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17870. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17871. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17872. $as_echo_n "(cached) " >&6
  17873. else
  17874. ac_check_lib_save_LIBS=$LIBS
  17875. LIBS="-lXss $LIBS"
  17876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17877. /* end confdefs.h. */
  17878. /* Override any GCC internal prototype to avoid an error.
  17879. Use char because int might match the return type of a GCC
  17880. builtin and then its argument prototype would still apply. */
  17881. #ifdef __cplusplus
  17882. extern "C"
  17883. #endif
  17884. char XScreenSaverSuspend ();
  17885. int
  17886. main ()
  17887. {
  17888. return XScreenSaverSuspend ();
  17889. ;
  17890. return 0;
  17891. }
  17892. _ACEOF
  17893. if ac_fn_c_try_link "$LINENO"; then :
  17894. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17895. else
  17896. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17897. fi
  17898. rm -f core conftest.err conftest.$ac_objext \
  17899. conftest$ac_exeext conftest.$ac_ext
  17900. LIBS=$ac_check_lib_save_LIBS
  17901. fi
  17902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17903. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17904. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17905. have_xss_lib=yes
  17906. fi
  17907. if test x$have_xss_lib = xyes ; then
  17908. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17909. definitely_enable_video_x11_scrnsaver=yes
  17910. fi
  17911. fi
  17912. fi
  17913. fi
  17914. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17915. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17916. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17917. fi
  17918. # Check whether --enable-video-x11-xshape was given.
  17919. if test "${enable_video_x11_xshape+set}" = set; then :
  17920. enableval=$enable_video_x11_xshape;
  17921. else
  17922. enable_video_x11_xshape=yes
  17923. fi
  17924. if test x$enable_video_x11_xshape = xyes; then
  17925. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17926. "
  17927. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17928. have_shape_h_hdr=yes
  17929. else
  17930. have_shape_h_hdr=no
  17931. fi
  17932. if test x$have_shape_h_hdr = xyes; then
  17933. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17934. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  17935. fi
  17936. fi
  17937. # Check whether --enable-video-x11-vm was given.
  17938. if test "${enable_video_x11_vm+set}" = set; then :
  17939. enableval=$enable_video_x11_vm;
  17940. else
  17941. enable_video_x11_vm=yes
  17942. fi
  17943. if test x$enable_video_x11_vm = xyes; then
  17944. definitely_enable_video_x11_vm=no
  17945. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17946. "
  17947. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17948. have_vm_h_hdr=yes
  17949. else
  17950. have_vm_h_hdr=no
  17951. fi
  17952. if test x$have_vm_h_hdr = xyes; then
  17953. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17954. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17955. cat >>confdefs.h <<_ACEOF
  17956. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17957. _ACEOF
  17958. definitely_enable_video_x11_vm=yes
  17959. else
  17960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17961. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17962. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17963. $as_echo_n "(cached) " >&6
  17964. else
  17965. ac_check_lib_save_LIBS=$LIBS
  17966. LIBS="-lXxf86vm $LIBS"
  17967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17968. /* end confdefs.h. */
  17969. /* Override any GCC internal prototype to avoid an error.
  17970. Use char because int might match the return type of a GCC
  17971. builtin and then its argument prototype would still apply. */
  17972. #ifdef __cplusplus
  17973. extern "C"
  17974. #endif
  17975. char XF86VidModeQueryVersion ();
  17976. int
  17977. main ()
  17978. {
  17979. return XF86VidModeQueryVersion ();
  17980. ;
  17981. return 0;
  17982. }
  17983. _ACEOF
  17984. if ac_fn_c_try_link "$LINENO"; then :
  17985. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17986. else
  17987. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17988. fi
  17989. rm -f core conftest.err conftest.$ac_objext \
  17990. conftest$ac_exeext conftest.$ac_ext
  17991. LIBS=$ac_check_lib_save_LIBS
  17992. fi
  17993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17994. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17995. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17996. have_vm_lib=yes
  17997. fi
  17998. if test x$have_vm_lib = xyes ; then
  17999. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18000. definitely_enable_video_x11_vm=yes
  18001. fi
  18002. fi
  18003. fi
  18004. fi
  18005. if test x$definitely_enable_video_x11_vm = xyes; then
  18006. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18007. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18008. fi
  18009. fi
  18010. fi
  18011. }
  18012. CheckVivanteVideo()
  18013. {
  18014. # Check whether --enable-video-vivante was given.
  18015. if test "${enable_video_vivante+set}" = set; then :
  18016. enableval=$enable_video_vivante;
  18017. else
  18018. enable_video_vivante=yes
  18019. fi
  18020. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18022. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18023. have_vivante_vdk=no
  18024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18025. /* end confdefs.h. */
  18026. #define LINUX
  18027. #define EGL_API_FB
  18028. #include <gc_vdk.h>
  18029. int
  18030. main ()
  18031. {
  18032. ;
  18033. return 0;
  18034. }
  18035. _ACEOF
  18036. if ac_fn_c_try_compile "$LINENO"; then :
  18037. have_vivante_vdk=yes
  18038. fi
  18039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18041. $as_echo "$have_vivante_vdk" >&6; }
  18042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18043. $as_echo_n "checking for Vivante FB API... " >&6; }
  18044. have_vivante_egl=no
  18045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18046. /* end confdefs.h. */
  18047. #define LINUX
  18048. #define EGL_API_FB
  18049. #include <EGL/eglvivante.h>
  18050. int
  18051. main ()
  18052. {
  18053. ;
  18054. return 0;
  18055. }
  18056. _ACEOF
  18057. if ac_fn_c_try_compile "$LINENO"; then :
  18058. have_vivante_egl=yes
  18059. fi
  18060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18062. $as_echo "$have_vivante_egl" >&6; }
  18063. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18064. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18065. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18066. if test x$have_vivante_vdk = xyes; then
  18067. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18068. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18069. fi
  18070. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18071. SUMMARY_video="${SUMMARY_video} vivante"
  18072. have_video=yes
  18073. fi
  18074. fi
  18075. }
  18076. CheckHaikuVideo()
  18077. {
  18078. if test x$enable_video = xyes; then
  18079. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18080. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18081. have_video=yes
  18082. SUMMARY_video="${SUMMARY_video} haiku"
  18083. fi
  18084. }
  18085. CheckCOCOA()
  18086. {
  18087. # Check whether --enable-video-cocoa was given.
  18088. if test "${enable_video_cocoa+set}" = set; then :
  18089. enableval=$enable_video_cocoa;
  18090. else
  18091. enable_video_cocoa=yes
  18092. fi
  18093. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18094. save_CFLAGS="$CFLAGS"
  18095. CFLAGS="$CFLAGS -x objective-c"
  18096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18097. $as_echo_n "checking for Cocoa framework... " >&6; }
  18098. have_cocoa=no
  18099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18100. /* end confdefs.h. */
  18101. #import <Cocoa/Cocoa.h>
  18102. int
  18103. main ()
  18104. {
  18105. ;
  18106. return 0;
  18107. }
  18108. _ACEOF
  18109. if ac_fn_c_try_compile "$LINENO"; then :
  18110. have_cocoa=yes
  18111. fi
  18112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18114. $as_echo "$have_cocoa" >&6; }
  18115. CFLAGS="$save_CFLAGS"
  18116. if test x$have_cocoa = xyes; then
  18117. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18118. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18119. SUMMARY_video="${SUMMARY_video} cocoa"
  18120. have_video=yes
  18121. fi
  18122. fi
  18123. }
  18124. CheckDirectFB()
  18125. {
  18126. # Check whether --enable-video-directfb was given.
  18127. if test "${enable_video_directfb+set}" = set; then :
  18128. enableval=$enable_video_directfb;
  18129. else
  18130. enable_video_directfb=no
  18131. fi
  18132. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18133. video_directfb=no
  18134. DIRECTFB_REQUIRED_VERSION=1.0.0
  18135. for ac_prog in directfb-config
  18136. do
  18137. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18138. set dummy $ac_prog; ac_word=$2
  18139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18140. $as_echo_n "checking for $ac_word... " >&6; }
  18141. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  18142. $as_echo_n "(cached) " >&6
  18143. else
  18144. case $DIRECTFBCONFIG in
  18145. [\\/]* | ?:[\\/]*)
  18146. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  18147. ;;
  18148. *)
  18149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18150. as_dummy="$prefix/bin:$PATH"
  18151. for as_dir in $as_dummy
  18152. do
  18153. IFS=$as_save_IFS
  18154. test -z "$as_dir" && as_dir=.
  18155. for ac_exec_ext in '' $ac_executable_extensions; do
  18156. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18157. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18158. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18159. break 2
  18160. fi
  18161. done
  18162. done
  18163. IFS=$as_save_IFS
  18164. ;;
  18165. esac
  18166. fi
  18167. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  18168. if test -n "$DIRECTFBCONFIG"; then
  18169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  18170. $as_echo "$DIRECTFBCONFIG" >&6; }
  18171. else
  18172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18173. $as_echo "no" >&6; }
  18174. fi
  18175. test -n "$DIRECTFBCONFIG" && break
  18176. done
  18177. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  18178. if test x$DIRECTFBCONFIG = xno; then
  18179. # Extract the first word of "pkg-config", so it can be a program name with args.
  18180. set dummy pkg-config; ac_word=$2
  18181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18182. $as_echo_n "checking for $ac_word... " >&6; }
  18183. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18184. $as_echo_n "(cached) " >&6
  18185. else
  18186. case $PKG_CONFIG in
  18187. [\\/]* | ?:[\\/]*)
  18188. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18189. ;;
  18190. *)
  18191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18192. for as_dir in $PATH
  18193. do
  18194. IFS=$as_save_IFS
  18195. test -z "$as_dir" && as_dir=.
  18196. for ac_exec_ext in '' $ac_executable_extensions; do
  18197. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18198. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18199. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18200. break 2
  18201. fi
  18202. done
  18203. done
  18204. IFS=$as_save_IFS
  18205. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18206. ;;
  18207. esac
  18208. fi
  18209. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18210. if test -n "$PKG_CONFIG"; then
  18211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18212. $as_echo "$PKG_CONFIG" >&6; }
  18213. else
  18214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18215. $as_echo "no" >&6; }
  18216. fi
  18217. if test x$PKG_CONFIG != xno; then
  18218. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  18219. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  18220. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  18221. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  18222. video_directfb=yes
  18223. fi
  18224. fi
  18225. else
  18226. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  18227. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18228. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  18229. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18230. if test $HAVE_VERSION -ge $NEED_VERSION; then
  18231. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  18232. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  18233. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  18234. video_directfb=yes
  18235. fi
  18236. fi
  18237. if test x$video_directfb = xyes; then
  18238. # SuSE 11.1 installs directfb-config without directfb-devel
  18239. save_CPPFLAGS="$CPPFLAGS"
  18240. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18241. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18242. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18243. have_directfb_hdr=yes
  18244. else
  18245. have_directfb_hdr=no
  18246. fi
  18247. CPPFLAGS="$save_CPPFLAGS"
  18248. video_directfb=$have_directfb_hdr
  18249. fi
  18250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  18251. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  18252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  18253. $as_echo "$video_directfb" >&6; }
  18254. if test x$video_directfb = xyes; then
  18255. # Check whether --enable-directfb-shared was given.
  18256. if test "${enable_directfb_shared+set}" = set; then :
  18257. enableval=$enable_directfb_shared;
  18258. else
  18259. enable_directfb_shared=yes
  18260. fi
  18261. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18262. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18263. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18264. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18266. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18267. directfb_shared=no
  18268. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  18269. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18270. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18271. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18272. if test x$have_loadso != xyes && \
  18273. test x$enable_directfb_shared = xyes; then
  18274. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18275. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18276. fi
  18277. if test x$have_loadso = xyes && \
  18278. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18279. directfb_shared=yes
  18280. echo "-- $directfb_lib_spec -> $directfb_lib"
  18281. cat >>confdefs.h <<_ACEOF
  18282. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18283. _ACEOF
  18284. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18285. else
  18286. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18287. SUMMARY_video="${SUMMARY_video} directfb"
  18288. fi
  18289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18290. $as_echo "$directfb_shared" >&6; }
  18291. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18292. have_video=yes
  18293. fi
  18294. fi
  18295. }
  18296. CheckDummyVideo()
  18297. {
  18298. # Check whether --enable-video-dummy was given.
  18299. if test "${enable_video_dummy+set}" = set; then :
  18300. enableval=$enable_video_dummy;
  18301. else
  18302. enable_video_dummy=yes
  18303. fi
  18304. if test x$enable_video_dummy = xyes; then
  18305. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18306. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18307. have_video=yes
  18308. SUMMARY_video="${SUMMARY_video} dummy"
  18309. fi
  18310. }
  18311. # Check whether --enable-video-opengl was given.
  18312. if test "${enable_video_opengl+set}" = set; then :
  18313. enableval=$enable_video_opengl;
  18314. else
  18315. enable_video_opengl=yes
  18316. fi
  18317. CheckOpenGLX11()
  18318. {
  18319. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18321. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18322. video_opengl=no
  18323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18324. /* end confdefs.h. */
  18325. #include <GL/gl.h>
  18326. #include <GL/glx.h>
  18327. int
  18328. main ()
  18329. {
  18330. ;
  18331. return 0;
  18332. }
  18333. _ACEOF
  18334. if ac_fn_c_try_compile "$LINENO"; then :
  18335. video_opengl=yes
  18336. fi
  18337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18339. $as_echo "$video_opengl" >&6; }
  18340. if test x$video_opengl = xyes; then
  18341. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18342. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18343. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18344. SUMMARY_video="${SUMMARY_video} opengl"
  18345. fi
  18346. fi
  18347. }
  18348. # Check whether --enable-video-opengles was given.
  18349. if test "${enable_video_opengles+set}" = set; then :
  18350. enableval=$enable_video_opengles;
  18351. else
  18352. enable_video_opengles=yes
  18353. fi
  18354. # Check whether --enable-video-opengles1 was given.
  18355. if test "${enable_video_opengles1+set}" = set; then :
  18356. enableval=$enable_video_opengles1;
  18357. else
  18358. enable_video_opengles1=yes
  18359. fi
  18360. # Check whether --enable-video-opengles2 was given.
  18361. if test "${enable_video_opengles2+set}" = set; then :
  18362. enableval=$enable_video_opengles2;
  18363. else
  18364. enable_video_opengles2=yes
  18365. fi
  18366. CheckOpenGLESX11()
  18367. {
  18368. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18370. $as_echo_n "checking for EGL support... " >&6; }
  18371. video_opengl_egl=no
  18372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18373. /* end confdefs.h. */
  18374. #define LINUX
  18375. #define EGL_API_FB
  18376. #include <EGL/egl.h>
  18377. #include <EGL/eglext.h>
  18378. int
  18379. main ()
  18380. {
  18381. ;
  18382. return 0;
  18383. }
  18384. _ACEOF
  18385. if ac_fn_c_try_compile "$LINENO"; then :
  18386. video_opengl_egl=yes
  18387. fi
  18388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18390. $as_echo "$video_opengl_egl" >&6; }
  18391. if test x$video_opengl_egl = xyes; then
  18392. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18393. fi
  18394. if test x$enable_video_opengles1 = xyes; then
  18395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18396. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18397. video_opengles_v1=no
  18398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18399. /* end confdefs.h. */
  18400. #include <GLES/gl.h>
  18401. #include <GLES/glext.h>
  18402. int
  18403. main ()
  18404. {
  18405. ;
  18406. return 0;
  18407. }
  18408. _ACEOF
  18409. if ac_fn_c_try_compile "$LINENO"; then :
  18410. video_opengles_v1=yes
  18411. fi
  18412. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18414. $as_echo "$video_opengles_v1" >&6; }
  18415. if test x$video_opengles_v1 = xyes; then
  18416. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18417. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18418. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18419. fi
  18420. fi
  18421. if test x$enable_video_opengles2 = xyes; then
  18422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18423. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18424. video_opengles_v2=no
  18425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18426. /* end confdefs.h. */
  18427. #include <GLES2/gl2.h>
  18428. #include <GLES2/gl2ext.h>
  18429. int
  18430. main ()
  18431. {
  18432. ;
  18433. return 0;
  18434. }
  18435. _ACEOF
  18436. if ac_fn_c_try_compile "$LINENO"; then :
  18437. video_opengles_v2=yes
  18438. fi
  18439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18441. $as_echo "$video_opengles_v2" >&6; }
  18442. if test x$video_opengles_v2 = xyes; then
  18443. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18444. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18445. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18446. fi
  18447. fi
  18448. fi
  18449. }
  18450. CheckWINDOWSGL()
  18451. {
  18452. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18453. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18454. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18455. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18456. SUMMARY_video="${SUMMARY_video} opengl"
  18457. fi
  18458. }
  18459. CheckWINDOWSGLES()
  18460. {
  18461. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18463. $as_echo_n "checking for EGL support... " >&6; }
  18464. video_opengl_egl=no
  18465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18466. /* end confdefs.h. */
  18467. #include <EGL/egl.h>
  18468. int
  18469. main ()
  18470. {
  18471. ;
  18472. return 0;
  18473. }
  18474. _ACEOF
  18475. if ac_fn_c_try_compile "$LINENO"; then :
  18476. video_opengl_egl=yes
  18477. fi
  18478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18480. $as_echo "$video_opengl_egl" >&6; }
  18481. if test x$video_opengl_egl = xyes; then
  18482. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18483. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18484. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18485. fi
  18486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18487. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18488. video_opengles_v2=no
  18489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18490. /* end confdefs.h. */
  18491. #include <GLES2/gl2.h>
  18492. #include <GLES2/gl2ext.h>
  18493. int
  18494. main ()
  18495. {
  18496. ;
  18497. return 0;
  18498. }
  18499. _ACEOF
  18500. if ac_fn_c_try_compile "$LINENO"; then :
  18501. video_opengles_v2=yes
  18502. fi
  18503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18505. $as_echo "$video_opengles_v2" >&6; }
  18506. if test x$video_opengles_v2 = xyes; then
  18507. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18508. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18509. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18510. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18511. fi
  18512. fi
  18513. }
  18514. CheckHaikuGL()
  18515. {
  18516. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18517. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18518. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18519. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18520. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18521. SUMMARY_video="${SUMMARY_video} opengl"
  18522. fi
  18523. }
  18524. CheckMacGL()
  18525. {
  18526. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18527. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18528. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18529. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18530. SUMMARY_video="${SUMMARY_video} opengl"
  18531. fi
  18532. }
  18533. CheckEmscriptenGLES()
  18534. {
  18535. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18537. $as_echo_n "checking for EGL support... " >&6; }
  18538. video_opengl_egl=no
  18539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18540. /* end confdefs.h. */
  18541. #include <EGL/egl.h>
  18542. int
  18543. main ()
  18544. {
  18545. ;
  18546. return 0;
  18547. }
  18548. _ACEOF
  18549. if ac_fn_c_try_compile "$LINENO"; then :
  18550. video_opengl_egl=yes
  18551. fi
  18552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18554. $as_echo "$video_opengl_egl" >&6; }
  18555. if test x$video_opengl_egl = xyes; then
  18556. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18557. fi
  18558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18559. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18560. video_opengles_v2=no
  18561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18562. /* end confdefs.h. */
  18563. #include <GLES2/gl2.h>
  18564. #include <GLES2/gl2ext.h>
  18565. int
  18566. main ()
  18567. {
  18568. ;
  18569. return 0;
  18570. }
  18571. _ACEOF
  18572. if ac_fn_c_try_compile "$LINENO"; then :
  18573. video_opengles_v2=yes
  18574. fi
  18575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18577. $as_echo "$video_opengles_v2" >&6; }
  18578. if test x$video_opengles_v2 = xyes; then
  18579. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18580. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18581. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18582. fi
  18583. fi
  18584. }
  18585. CheckInputEvents()
  18586. {
  18587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18588. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18589. use_input_events=no
  18590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18591. /* end confdefs.h. */
  18592. #include <linux/input.h>
  18593. int
  18594. main ()
  18595. {
  18596. #ifndef EVIOCGNAME
  18597. #error EVIOCGNAME() ioctl not available
  18598. #endif
  18599. ;
  18600. return 0;
  18601. }
  18602. _ACEOF
  18603. if ac_fn_c_try_compile "$LINENO"; then :
  18604. use_input_events=yes
  18605. fi
  18606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18608. $as_echo "$use_input_events" >&6; }
  18609. if test x$use_input_events = xyes; then
  18610. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18611. SUMMARY_input="${SUMMARY_input} linuxev"
  18612. fi
  18613. }
  18614. CheckInputKD()
  18615. {
  18616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18617. $as_echo_n "checking for Linux kd.h... " >&6; }
  18618. use_input_kd=no
  18619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18620. /* end confdefs.h. */
  18621. #include <linux/kd.h>
  18622. #include <linux/keyboard.h>
  18623. int
  18624. main ()
  18625. {
  18626. struct kbentry kbe;
  18627. kbe.kb_table = KG_CTRL;
  18628. ioctl(0, KDGKBENT, &kbe);
  18629. ;
  18630. return 0;
  18631. }
  18632. _ACEOF
  18633. if ac_fn_c_try_compile "$LINENO"; then :
  18634. use_input_kd=yes
  18635. fi
  18636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18638. $as_echo "$use_input_kd" >&6; }
  18639. if test x$use_input_kd = xyes; then
  18640. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18641. SUMMARY_input="${SUMMARY_input} linuxkd"
  18642. fi
  18643. }
  18644. CheckLibUDev()
  18645. {
  18646. # Check whether --enable-libudev was given.
  18647. if test "${enable_libudev+set}" = set; then :
  18648. enableval=$enable_libudev;
  18649. else
  18650. enable_libudev=yes
  18651. fi
  18652. if test x$enable_libudev = xyes; then
  18653. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18654. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18655. have_libudev_h_hdr=yes
  18656. else
  18657. have_libudev_h_hdr=no
  18658. fi
  18659. if test x$have_libudev_h_hdr = xyes; then
  18660. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18661. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  18662. if test x$udev_lib != x; then
  18663. echo "-- dynamic udev -> $udev_lib"
  18664. cat >>confdefs.h <<_ACEOF
  18665. #define SDL_UDEV_DYNAMIC "$udev_lib"
  18666. _ACEOF
  18667. fi
  18668. fi
  18669. fi
  18670. }
  18671. CheckDBus()
  18672. {
  18673. # Check whether --enable-dbus was given.
  18674. if test "${enable_dbus+set}" = set; then :
  18675. enableval=$enable_dbus;
  18676. else
  18677. enable_dbus=yes
  18678. fi
  18679. if test x$enable_dbus = xyes; then
  18680. # Extract the first word of "pkg-config", so it can be a program name with args.
  18681. set dummy pkg-config; ac_word=$2
  18682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18683. $as_echo_n "checking for $ac_word... " >&6; }
  18684. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18685. $as_echo_n "(cached) " >&6
  18686. else
  18687. case $PKG_CONFIG in
  18688. [\\/]* | ?:[\\/]*)
  18689. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18690. ;;
  18691. *)
  18692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18693. for as_dir in $PATH
  18694. do
  18695. IFS=$as_save_IFS
  18696. test -z "$as_dir" && as_dir=.
  18697. for ac_exec_ext in '' $ac_executable_extensions; do
  18698. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18699. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18701. break 2
  18702. fi
  18703. done
  18704. done
  18705. IFS=$as_save_IFS
  18706. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18707. ;;
  18708. esac
  18709. fi
  18710. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18711. if test -n "$PKG_CONFIG"; then
  18712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18713. $as_echo "$PKG_CONFIG" >&6; }
  18714. else
  18715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18716. $as_echo "no" >&6; }
  18717. fi
  18718. if test x$PKG_CONFIG != xno; then
  18719. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18720. save_CFLAGS="$CFLAGS"
  18721. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18722. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18723. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18724. have_dbus_dbus_h_hdr=yes
  18725. else
  18726. have_dbus_dbus_h_hdr=no
  18727. fi
  18728. CFLAGS="$save_CFLAGS"
  18729. if test x$have_dbus_dbus_h_hdr = xyes; then
  18730. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18731. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18732. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  18733. fi
  18734. fi
  18735. fi
  18736. }
  18737. CheckIME()
  18738. {
  18739. # Check whether --enable-ime was given.
  18740. if test "${enable_ime+set}" = set; then :
  18741. enableval=$enable_ime;
  18742. else
  18743. enable_ime=yes
  18744. fi
  18745. if test x$enable_ime = xyes; then
  18746. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  18747. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  18748. fi
  18749. }
  18750. CheckIBus()
  18751. {
  18752. # Check whether --enable-ibus was given.
  18753. if test "${enable_ibus+set}" = set; then :
  18754. enableval=$enable_ibus;
  18755. else
  18756. enable_ibus=yes
  18757. fi
  18758. if test x$enable_ibus = xyes; then
  18759. # Extract the first word of "pkg-config", so it can be a program name with args.
  18760. set dummy pkg-config; ac_word=$2
  18761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18762. $as_echo_n "checking for $ac_word... " >&6; }
  18763. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18764. $as_echo_n "(cached) " >&6
  18765. else
  18766. case $PKG_CONFIG in
  18767. [\\/]* | ?:[\\/]*)
  18768. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18769. ;;
  18770. *)
  18771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18772. for as_dir in $PATH
  18773. do
  18774. IFS=$as_save_IFS
  18775. test -z "$as_dir" && as_dir=.
  18776. for ac_exec_ext in '' $ac_executable_extensions; do
  18777. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18778. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18779. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18780. break 2
  18781. fi
  18782. done
  18783. done
  18784. IFS=$as_save_IFS
  18785. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18786. ;;
  18787. esac
  18788. fi
  18789. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18790. if test -n "$PKG_CONFIG"; then
  18791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18792. $as_echo "$PKG_CONFIG" >&6; }
  18793. else
  18794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18795. $as_echo "no" >&6; }
  18796. fi
  18797. if test x$PKG_CONFIG != xno; then
  18798. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  18799. save_CFLAGS="$CFLAGS"
  18800. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  18801. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  18802. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  18803. have_ibus_ibus_h_hdr=yes
  18804. else
  18805. have_ibus_ibus_h_hdr=no
  18806. fi
  18807. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  18808. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  18809. have_inotify_inotify_h_hdr=yes
  18810. else
  18811. have_inotify_inotify_h_hdr=no
  18812. fi
  18813. CFLAGS="$save_CFLAGS"
  18814. if test x$have_ibus_ibus_h_hdr = xyes; then
  18815. if test x$enable_ime != xyes; then
  18816. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  18817. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  18818. have_ibus_ibus_h_hdr=no
  18819. elif test x$enable_dbus != xyes; then
  18820. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  18821. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  18822. have_ibus_ibus_h_hdr=no
  18823. elif test x$have_inotify_inotify_h_hdr != xyes; then
  18824. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  18825. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  18826. have_ibus_ibus_h_hdr=no
  18827. else
  18828. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  18829. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  18830. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  18831. fi
  18832. fi
  18833. fi
  18834. fi
  18835. }
  18836. CheckFcitx()
  18837. {
  18838. # Check whether --enable-fcitx was given.
  18839. if test "${enable_fcitx+set}" = set; then :
  18840. enableval=$enable_fcitx;
  18841. else
  18842. enable_fcitx=yes
  18843. fi
  18844. if test x$enable_fcitx = xyes; then
  18845. # Extract the first word of "pkg-config", so it can be a program name with args.
  18846. set dummy pkg-config; ac_word=$2
  18847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18848. $as_echo_n "checking for $ac_word... " >&6; }
  18849. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18850. $as_echo_n "(cached) " >&6
  18851. else
  18852. case $PKG_CONFIG in
  18853. [\\/]* | ?:[\\/]*)
  18854. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18855. ;;
  18856. *)
  18857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18858. for as_dir in $PATH
  18859. do
  18860. IFS=$as_save_IFS
  18861. test -z "$as_dir" && as_dir=.
  18862. for ac_exec_ext in '' $ac_executable_extensions; do
  18863. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18864. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18865. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18866. break 2
  18867. fi
  18868. done
  18869. done
  18870. IFS=$as_save_IFS
  18871. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18872. ;;
  18873. esac
  18874. fi
  18875. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18876. if test -n "$PKG_CONFIG"; then
  18877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18878. $as_echo "$PKG_CONFIG" >&6; }
  18879. else
  18880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18881. $as_echo "no" >&6; }
  18882. fi
  18883. if test x$PKG_CONFIG != xno; then
  18884. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  18885. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  18886. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  18887. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  18888. have_fcitx_frontend_h_hdr=yes
  18889. else
  18890. have_fcitx_frontend_h_hdr=no
  18891. fi
  18892. CFLAGS="$save_CFLAGS"
  18893. if test x$have_fcitx_frontend_h_hdr = xyes; then
  18894. if test x$enable_ime != xyes; then
  18895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  18896. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  18897. have_fcitx_frontend_h_hdr=no
  18898. elif test x$enable_dbus != xyes; then
  18899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  18900. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  18901. have_fcitx_frontend_h_hdr=no
  18902. else
  18903. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  18904. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  18905. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  18906. fi
  18907. fi
  18908. fi
  18909. fi
  18910. }
  18911. CheckTslib()
  18912. {
  18913. # Check whether --enable-input-tslib was given.
  18914. if test "${enable_input_tslib+set}" = set; then :
  18915. enableval=$enable_input_tslib;
  18916. else
  18917. enable_input_tslib=yes
  18918. fi
  18919. if test x$enable_input_tslib = xyes; then
  18920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  18921. $as_echo_n "checking for Touchscreen library support... " >&6; }
  18922. enable_input_tslib=no
  18923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18924. /* end confdefs.h. */
  18925. #include "tslib.h"
  18926. int
  18927. main ()
  18928. {
  18929. ;
  18930. return 0;
  18931. }
  18932. _ACEOF
  18933. if ac_fn_c_try_compile "$LINENO"; then :
  18934. enable_input_tslib=yes
  18935. fi
  18936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  18938. $as_echo "$enable_input_tslib" >&6; }
  18939. if test x$enable_input_tslib = xyes; then
  18940. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  18941. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  18942. SUMMARY_input="${SUMMARY_input} ts"
  18943. fi
  18944. fi
  18945. }
  18946. CheckPTHREAD()
  18947. {
  18948. # Check whether --enable-pthreads was given.
  18949. if test "${enable_pthreads+set}" = set; then :
  18950. enableval=$enable_pthreads;
  18951. else
  18952. enable_pthreads=yes
  18953. fi
  18954. # Check whether --enable-pthread-sem was given.
  18955. if test "${enable_pthread_sem+set}" = set; then :
  18956. enableval=$enable_pthread_sem;
  18957. else
  18958. enable_pthread_sem=yes
  18959. fi
  18960. case "$host" in
  18961. *-*-androideabi*)
  18962. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18963. pthread_lib=""
  18964. ;;
  18965. *-*-linux*|*-*-uclinux*)
  18966. pthread_cflags="-D_REENTRANT"
  18967. pthread_lib="-lpthread"
  18968. ;;
  18969. *-*-bsdi*)
  18970. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18971. pthread_lib=""
  18972. ;;
  18973. *-*-darwin*)
  18974. pthread_cflags="-D_THREAD_SAFE"
  18975. # causes Carbon.p complaints?
  18976. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18977. ;;
  18978. *-*-freebsd*|*-*-dragonfly*)
  18979. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18980. pthread_lib="-pthread"
  18981. ;;
  18982. *-*-netbsd*)
  18983. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18984. pthread_lib="-lpthread"
  18985. ;;
  18986. *-*-openbsd*)
  18987. pthread_cflags="-D_REENTRANT"
  18988. pthread_lib="-pthread"
  18989. ;;
  18990. *-*-solaris2.9)
  18991. # From Solaris 9+, posix4's preferred name is rt.
  18992. pthread_cflags="-D_REENTRANT"
  18993. pthread_lib="-lpthread -lrt"
  18994. ;;
  18995. *-*-solaris2.10)
  18996. # Solaris 10+ merged pthread into libc.
  18997. pthread_cflags="-D_REENTRANT"
  18998. pthread_lib="-lrt"
  18999. ;;
  19000. *-*-solaris*)
  19001. # Solaris 11+ merged rt into libc.
  19002. pthread_cflags="-D_REENTRANT"
  19003. pthread_lib=""
  19004. ;;
  19005. *-*-sysv5*)
  19006. pthread_cflags="-D_REENTRANT -Kthread"
  19007. pthread_lib=""
  19008. ;;
  19009. *-*-aix*)
  19010. pthread_cflags="-D_REENTRANT -mthreads"
  19011. pthread_lib="-lpthread"
  19012. ;;
  19013. *-*-hpux11*)
  19014. pthread_cflags="-D_REENTRANT"
  19015. pthread_lib="-L/usr/lib -lpthread"
  19016. ;;
  19017. *-*-haiku*)
  19018. pthread_cflags="-D_REENTRANT"
  19019. pthread_lib=""
  19020. ;;
  19021. *)
  19022. pthread_cflags="-D_REENTRANT"
  19023. pthread_lib="-lpthread"
  19024. ;;
  19025. esac
  19026. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19027. # Save the original compiler flags and libraries
  19028. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19029. # Add the pthread compiler flags and libraries
  19030. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19031. # Check to see if we have pthread support on this system
  19032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19033. $as_echo_n "checking for pthreads... " >&6; }
  19034. use_pthreads=no
  19035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19036. /* end confdefs.h. */
  19037. #include <pthread.h>
  19038. int
  19039. main ()
  19040. {
  19041. pthread_attr_t type;
  19042. pthread_attr_init(&type);
  19043. ;
  19044. return 0;
  19045. }
  19046. _ACEOF
  19047. if ac_fn_c_try_link "$LINENO"; then :
  19048. use_pthreads=yes
  19049. fi
  19050. rm -f core conftest.err conftest.$ac_objext \
  19051. conftest$ac_exeext conftest.$ac_ext
  19052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19053. $as_echo "$use_pthreads" >&6; }
  19054. # Restore the compiler flags and libraries
  19055. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19056. # Do futher testing if we have pthread support...
  19057. if test x$use_pthreads = xyes; then
  19058. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19059. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19060. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19061. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19062. # Save the original compiler flags and libraries
  19063. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19064. # Add the pthread compiler flags and libraries
  19065. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19066. # Check to see if recursive mutexes are available
  19067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19068. $as_echo_n "checking for recursive mutexes... " >&6; }
  19069. has_recursive_mutexes=no
  19070. if test x$has_recursive_mutexes = xno; then
  19071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19072. /* end confdefs.h. */
  19073. #define _GNU_SOURCE 1
  19074. #include <pthread.h>
  19075. int
  19076. main ()
  19077. {
  19078. pthread_mutexattr_t attr;
  19079. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19080. ;
  19081. return 0;
  19082. }
  19083. _ACEOF
  19084. if ac_fn_c_try_link "$LINENO"; then :
  19085. has_recursive_mutexes=yes
  19086. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19087. fi
  19088. rm -f core conftest.err conftest.$ac_objext \
  19089. conftest$ac_exeext conftest.$ac_ext
  19090. fi
  19091. if test x$has_recursive_mutexes = xno; then
  19092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19093. /* end confdefs.h. */
  19094. #define _GNU_SOURCE 1
  19095. #include <pthread.h>
  19096. int
  19097. main ()
  19098. {
  19099. pthread_mutexattr_t attr;
  19100. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19101. ;
  19102. return 0;
  19103. }
  19104. _ACEOF
  19105. if ac_fn_c_try_link "$LINENO"; then :
  19106. has_recursive_mutexes=yes
  19107. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19108. fi
  19109. rm -f core conftest.err conftest.$ac_objext \
  19110. conftest$ac_exeext conftest.$ac_ext
  19111. fi
  19112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19113. $as_echo "$has_recursive_mutexes" >&6; }
  19114. # Check to see if pthread semaphore support is missing
  19115. if test x$enable_pthread_sem = xyes; then
  19116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19117. $as_echo_n "checking for pthread semaphores... " >&6; }
  19118. have_pthread_sem=no
  19119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19120. /* end confdefs.h. */
  19121. #include <pthread.h>
  19122. #include <semaphore.h>
  19123. int
  19124. main ()
  19125. {
  19126. ;
  19127. return 0;
  19128. }
  19129. _ACEOF
  19130. if ac_fn_c_try_compile "$LINENO"; then :
  19131. have_pthread_sem=yes
  19132. fi
  19133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19135. $as_echo "$have_pthread_sem" >&6; }
  19136. fi
  19137. if test x$have_pthread_sem = xyes; then
  19138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19139. $as_echo_n "checking for sem_timedwait... " >&6; }
  19140. have_sem_timedwait=no
  19141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19142. /* end confdefs.h. */
  19143. #include <pthread.h>
  19144. #include <semaphore.h>
  19145. int
  19146. main ()
  19147. {
  19148. sem_timedwait(NULL, NULL);
  19149. ;
  19150. return 0;
  19151. }
  19152. _ACEOF
  19153. if ac_fn_c_try_link "$LINENO"; then :
  19154. have_sem_timedwait=yes
  19155. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19156. fi
  19157. rm -f core conftest.err conftest.$ac_objext \
  19158. conftest$ac_exeext conftest.$ac_ext
  19159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19160. $as_echo "$have_sem_timedwait" >&6; }
  19161. fi
  19162. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19163. "
  19164. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19165. have_pthread_np_h=yes
  19166. else
  19167. have_pthread_np_h=no
  19168. fi
  19169. if test x$have_pthread_np_h = xyes; then
  19170. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19171. fi
  19172. # Check to see if pthread naming is available
  19173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19174. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19176. /* end confdefs.h. */
  19177. /* Override any GCC internal prototype to avoid an error.
  19178. Use char because int might match the return type of a GCC
  19179. builtin and then its argument prototype would still apply. */
  19180. #ifdef __cplusplus
  19181. extern "C"
  19182. #endif
  19183. char pthread_setname_np ();
  19184. int
  19185. main ()
  19186. {
  19187. return pthread_setname_np ();
  19188. ;
  19189. return 0;
  19190. }
  19191. _ACEOF
  19192. if ac_fn_c_try_link "$LINENO"; then :
  19193. has_pthread_setname_np=yes
  19194. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19195. else
  19196. has_pthread_setname_np=no
  19197. fi
  19198. rm -f core conftest.err conftest.$ac_objext \
  19199. conftest$ac_exeext conftest.$ac_ext
  19200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19201. $as_echo "$has_pthread_setname_np" >&6; }
  19202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19203. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19205. /* end confdefs.h. */
  19206. /* Override any GCC internal prototype to avoid an error.
  19207. Use char because int might match the return type of a GCC
  19208. builtin and then its argument prototype would still apply. */
  19209. #ifdef __cplusplus
  19210. extern "C"
  19211. #endif
  19212. char pthread_set_name_np ();
  19213. int
  19214. main ()
  19215. {
  19216. return pthread_set_name_np ();
  19217. ;
  19218. return 0;
  19219. }
  19220. _ACEOF
  19221. if ac_fn_c_try_link "$LINENO"; then :
  19222. has_pthread_set_name_np=yes
  19223. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19224. else
  19225. has_pthread_set_name_np=no
  19226. fi
  19227. rm -f core conftest.err conftest.$ac_objext \
  19228. conftest$ac_exeext conftest.$ac_ext
  19229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19230. $as_echo "$has_pthread_set_name_np" >&6; }
  19231. # Restore the compiler flags and libraries
  19232. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19233. # Basic thread creation functions
  19234. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19235. # Semaphores
  19236. # We can fake these with mutexes and condition variables if necessary
  19237. if test x$have_pthread_sem = xyes; then
  19238. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19239. else
  19240. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19241. fi
  19242. # Mutexes
  19243. # We can fake these with semaphores if necessary
  19244. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19245. # Condition variables
  19246. # We can fake these with semaphores and mutexes if necessary
  19247. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19248. # Thread local storage
  19249. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19250. have_threads=yes
  19251. fi
  19252. fi
  19253. }
  19254. CheckWINDOWS()
  19255. {
  19256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19257. $as_echo_n "checking Windows compiler... " >&6; }
  19258. have_win32_gcc=no
  19259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19260. /* end confdefs.h. */
  19261. #include <windows.h>
  19262. int
  19263. main ()
  19264. {
  19265. ;
  19266. return 0;
  19267. }
  19268. _ACEOF
  19269. if ac_fn_c_try_compile "$LINENO"; then :
  19270. have_win32_gcc=yes
  19271. fi
  19272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19274. $as_echo "$have_win32_gcc" >&6; }
  19275. if test x$have_win32_gcc != xyes; then
  19276. as_fn_error $? "
  19277. *** Your compiler ($CC) does not produce Windows executables!
  19278. " "$LINENO" 5
  19279. fi
  19280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19281. $as_echo_n "checking Windows CE... " >&6; }
  19282. have_wince=no
  19283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19284. /* end confdefs.h. */
  19285. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19286. #error This is not Windows CE
  19287. #endif
  19288. int
  19289. main ()
  19290. {
  19291. ;
  19292. return 0;
  19293. }
  19294. _ACEOF
  19295. if ac_fn_c_try_compile "$LINENO"; then :
  19296. have_wince=yes
  19297. as_fn_error $? "
  19298. *** Sorry, Windows CE is no longer supported.
  19299. " "$LINENO" 5
  19300. fi
  19301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19303. $as_echo "$have_wince" >&6; }
  19304. # This fixes Windows stack alignment with newer GCC
  19305. CheckStackBoundary
  19306. }
  19307. CheckDIRECTX()
  19308. {
  19309. # Check whether --enable-directx was given.
  19310. if test "${enable_directx+set}" = set; then :
  19311. enableval=$enable_directx;
  19312. else
  19313. enable_directx=yes
  19314. fi
  19315. if test x$enable_directx = xyes; then
  19316. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19317. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19318. have_d3d=yes
  19319. fi
  19320. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19321. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19322. have_d3d11=yes
  19323. fi
  19324. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19325. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19326. have_ddraw=yes
  19327. fi
  19328. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19329. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19330. have_dsound=yes
  19331. fi
  19332. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19333. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19334. have_dinput=yes
  19335. fi
  19336. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19337. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19338. have_dxgi=yes
  19339. fi
  19340. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  19341. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  19342. have_xaudio2=yes
  19343. fi
  19344. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19345. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19346. have_xinput=yes
  19347. fi
  19348. if test x$have_ddraw = xyes; then
  19349. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19350. fi
  19351. if test x$have_dinput = xyes; then
  19352. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19353. fi
  19354. if test x$have_dsound = xyes; then
  19355. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19356. fi
  19357. if test x$have_dxgi = xyes; then
  19358. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19359. fi
  19360. if test x$have_xinput = xyes; then
  19361. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19362. fi
  19363. SUMMARY_video="${SUMMARY_video} directx"
  19364. SUMMARY_audio="${SUMMARY_audio} directx"
  19365. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19366. # FIXME: ...so force it off for now.
  19367. case "$host" in
  19368. *-*-cygwin*)
  19369. have_dinput=false
  19370. ;;
  19371. esac
  19372. fi
  19373. }
  19374. CheckDLOPEN()
  19375. {
  19376. # Check whether --enable-sdl-dlopen was given.
  19377. if test "${enable_sdl_dlopen+set}" = set; then :
  19378. enableval=$enable_sdl_dlopen;
  19379. else
  19380. enable_sdl_dlopen=yes
  19381. fi
  19382. if test x$enable_sdl_dlopen = xyes; then
  19383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19384. $as_echo_n "checking for dlopen... " >&6; }
  19385. have_dlopen=no
  19386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19387. /* end confdefs.h. */
  19388. #include <dlfcn.h>
  19389. int
  19390. main ()
  19391. {
  19392. void *handle = dlopen("", RTLD_NOW);
  19393. const char *loaderror = (char *) dlerror();
  19394. ;
  19395. return 0;
  19396. }
  19397. _ACEOF
  19398. if ac_fn_c_try_compile "$LINENO"; then :
  19399. have_dlopen=yes
  19400. fi
  19401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19403. $as_echo "$have_dlopen" >&6; }
  19404. if test x$have_dlopen = xyes; then
  19405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19406. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19407. if ${ac_cv_lib_c_dlopen+:} false; then :
  19408. $as_echo_n "(cached) " >&6
  19409. else
  19410. ac_check_lib_save_LIBS=$LIBS
  19411. LIBS="-lc $LIBS"
  19412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19413. /* end confdefs.h. */
  19414. /* Override any GCC internal prototype to avoid an error.
  19415. Use char because int might match the return type of a GCC
  19416. builtin and then its argument prototype would still apply. */
  19417. #ifdef __cplusplus
  19418. extern "C"
  19419. #endif
  19420. char dlopen ();
  19421. int
  19422. main ()
  19423. {
  19424. return dlopen ();
  19425. ;
  19426. return 0;
  19427. }
  19428. _ACEOF
  19429. if ac_fn_c_try_link "$LINENO"; then :
  19430. ac_cv_lib_c_dlopen=yes
  19431. else
  19432. ac_cv_lib_c_dlopen=no
  19433. fi
  19434. rm -f core conftest.err conftest.$ac_objext \
  19435. conftest$ac_exeext conftest.$ac_ext
  19436. LIBS=$ac_check_lib_save_LIBS
  19437. fi
  19438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19439. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19440. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19441. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19442. else
  19443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19444. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19445. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19446. $as_echo_n "(cached) " >&6
  19447. else
  19448. ac_check_lib_save_LIBS=$LIBS
  19449. LIBS="-ldl $LIBS"
  19450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19451. /* end confdefs.h. */
  19452. /* Override any GCC internal prototype to avoid an error.
  19453. Use char because int might match the return type of a GCC
  19454. builtin and then its argument prototype would still apply. */
  19455. #ifdef __cplusplus
  19456. extern "C"
  19457. #endif
  19458. char dlopen ();
  19459. int
  19460. main ()
  19461. {
  19462. return dlopen ();
  19463. ;
  19464. return 0;
  19465. }
  19466. _ACEOF
  19467. if ac_fn_c_try_link "$LINENO"; then :
  19468. ac_cv_lib_dl_dlopen=yes
  19469. else
  19470. ac_cv_lib_dl_dlopen=no
  19471. fi
  19472. rm -f core conftest.err conftest.$ac_objext \
  19473. conftest$ac_exeext conftest.$ac_ext
  19474. LIBS=$ac_check_lib_save_LIBS
  19475. fi
  19476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19477. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19478. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19479. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19480. else
  19481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19482. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19483. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19484. $as_echo_n "(cached) " >&6
  19485. else
  19486. ac_check_lib_save_LIBS=$LIBS
  19487. LIBS="-lltdl $LIBS"
  19488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19489. /* end confdefs.h. */
  19490. /* Override any GCC internal prototype to avoid an error.
  19491. Use char because int might match the return type of a GCC
  19492. builtin and then its argument prototype would still apply. */
  19493. #ifdef __cplusplus
  19494. extern "C"
  19495. #endif
  19496. char dlopen ();
  19497. int
  19498. main ()
  19499. {
  19500. return dlopen ();
  19501. ;
  19502. return 0;
  19503. }
  19504. _ACEOF
  19505. if ac_fn_c_try_link "$LINENO"; then :
  19506. ac_cv_lib_ltdl_dlopen=yes
  19507. else
  19508. ac_cv_lib_ltdl_dlopen=no
  19509. fi
  19510. rm -f core conftest.err conftest.$ac_objext \
  19511. conftest$ac_exeext conftest.$ac_ext
  19512. LIBS=$ac_check_lib_save_LIBS
  19513. fi
  19514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19515. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19516. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19517. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19518. fi
  19519. fi
  19520. fi
  19521. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19522. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19523. have_loadso=yes
  19524. fi
  19525. fi
  19526. }
  19527. CheckUSBHID()
  19528. {
  19529. case "$host" in
  19530. *-*-*bsd*)
  19531. if test x$enable_joystick = xyes; then
  19532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19533. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19534. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19535. $as_echo_n "(cached) " >&6
  19536. else
  19537. ac_check_lib_save_LIBS=$LIBS
  19538. LIBS="-lusbhid $LIBS"
  19539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19540. /* end confdefs.h. */
  19541. /* Override any GCC internal prototype to avoid an error.
  19542. Use char because int might match the return type of a GCC
  19543. builtin and then its argument prototype would still apply. */
  19544. #ifdef __cplusplus
  19545. extern "C"
  19546. #endif
  19547. char hid_init ();
  19548. int
  19549. main ()
  19550. {
  19551. return hid_init ();
  19552. ;
  19553. return 0;
  19554. }
  19555. _ACEOF
  19556. if ac_fn_c_try_link "$LINENO"; then :
  19557. ac_cv_lib_usbhid_hid_init=yes
  19558. else
  19559. ac_cv_lib_usbhid_hid_init=no
  19560. fi
  19561. rm -f core conftest.err conftest.$ac_objext \
  19562. conftest$ac_exeext conftest.$ac_ext
  19563. LIBS=$ac_check_lib_save_LIBS
  19564. fi
  19565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19566. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19567. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19568. have_libusbhid=yes
  19569. fi
  19570. if test x$have_libusbhid = xyes; then
  19571. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19572. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19573. USB_CFLAGS="-DHAVE_USBHID_H"
  19574. fi
  19575. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  19576. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  19577. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  19578. fi
  19579. USB_LIBS="$USB_LIBS -lusbhid"
  19580. else
  19581. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  19582. if test "x$ac_cv_header_usb_h" = xyes; then :
  19583. USB_CFLAGS="-DHAVE_USB_H"
  19584. fi
  19585. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  19586. if test "x$ac_cv_header_libusb_h" = xyes; then :
  19587. USB_CFLAGS="-DHAVE_LIBUSB_H"
  19588. fi
  19589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  19590. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  19591. if ${ac_cv_lib_usb_hid_init+:} false; then :
  19592. $as_echo_n "(cached) " >&6
  19593. else
  19594. ac_check_lib_save_LIBS=$LIBS
  19595. LIBS="-lusb $LIBS"
  19596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19597. /* end confdefs.h. */
  19598. /* Override any GCC internal prototype to avoid an error.
  19599. Use char because int might match the return type of a GCC
  19600. builtin and then its argument prototype would still apply. */
  19601. #ifdef __cplusplus
  19602. extern "C"
  19603. #endif
  19604. char hid_init ();
  19605. int
  19606. main ()
  19607. {
  19608. return hid_init ();
  19609. ;
  19610. return 0;
  19611. }
  19612. _ACEOF
  19613. if ac_fn_c_try_link "$LINENO"; then :
  19614. ac_cv_lib_usb_hid_init=yes
  19615. else
  19616. ac_cv_lib_usb_hid_init=no
  19617. fi
  19618. rm -f core conftest.err conftest.$ac_objext \
  19619. conftest$ac_exeext conftest.$ac_ext
  19620. LIBS=$ac_check_lib_save_LIBS
  19621. fi
  19622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19623. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19624. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19625. USB_LIBS="$USB_LIBS -lusb"
  19626. fi
  19627. fi
  19628. save_CFLAGS="$CFLAGS"
  19629. CFLAGS="$CFLAGS $USB_CFLAGS"
  19630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19631. $as_echo_n "checking for usbhid... " >&6; }
  19632. have_usbhid=no
  19633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19634. /* end confdefs.h. */
  19635. #include <sys/types.h>
  19636. #if defined(HAVE_USB_H)
  19637. #include <usb.h>
  19638. #endif
  19639. #ifdef __DragonFly__
  19640. # include <bus/usb/usb.h>
  19641. # include <bus/usb/usbhid.h>
  19642. #else
  19643. # include <dev/usb/usb.h>
  19644. # include <dev/usb/usbhid.h>
  19645. #endif
  19646. #if defined(HAVE_USBHID_H)
  19647. #include <usbhid.h>
  19648. #elif defined(HAVE_LIBUSB_H)
  19649. #include <libusb.h>
  19650. #elif defined(HAVE_LIBUSBHID_H)
  19651. #include <libusbhid.h>
  19652. #endif
  19653. int
  19654. main ()
  19655. {
  19656. struct report_desc *repdesc;
  19657. struct usb_ctl_report *repbuf;
  19658. hid_kind_t hidkind;
  19659. ;
  19660. return 0;
  19661. }
  19662. _ACEOF
  19663. if ac_fn_c_try_compile "$LINENO"; then :
  19664. have_usbhid=yes
  19665. fi
  19666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  19668. $as_echo "$have_usbhid" >&6; }
  19669. if test x$have_usbhid = xyes; then
  19670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  19671. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  19672. have_usbhid_ucr_data=no
  19673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19674. /* end confdefs.h. */
  19675. #include <sys/types.h>
  19676. #if defined(HAVE_USB_H)
  19677. #include <usb.h>
  19678. #endif
  19679. #ifdef __DragonFly__
  19680. # include <bus/usb/usb.h>
  19681. # include <bus/usb/usbhid.h>
  19682. #else
  19683. # include <dev/usb/usb.h>
  19684. # include <dev/usb/usbhid.h>
  19685. #endif
  19686. #if defined(HAVE_USBHID_H)
  19687. #include <usbhid.h>
  19688. #elif defined(HAVE_LIBUSB_H)
  19689. #include <libusb.h>
  19690. #elif defined(HAVE_LIBUSBHID_H)
  19691. #include <libusbhid.h>
  19692. #endif
  19693. int
  19694. main ()
  19695. {
  19696. struct usb_ctl_report buf;
  19697. if (buf.ucr_data) { }
  19698. ;
  19699. return 0;
  19700. }
  19701. _ACEOF
  19702. if ac_fn_c_try_compile "$LINENO"; then :
  19703. have_usbhid_ucr_data=yes
  19704. fi
  19705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19706. if test x$have_usbhid_ucr_data = xyes; then
  19707. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  19708. fi
  19709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  19710. $as_echo "$have_usbhid_ucr_data" >&6; }
  19711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  19712. $as_echo_n "checking for new usbhid API... " >&6; }
  19713. have_usbhid_new=no
  19714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19715. /* end confdefs.h. */
  19716. #include <sys/types.h>
  19717. #if defined(HAVE_USB_H)
  19718. #include <usb.h>
  19719. #endif
  19720. #ifdef __DragonFly__
  19721. #include <bus/usb/usb.h>
  19722. #include <bus/usb/usbhid.h>
  19723. #else
  19724. #include <dev/usb/usb.h>
  19725. #include <dev/usb/usbhid.h>
  19726. #endif
  19727. #if defined(HAVE_USBHID_H)
  19728. #include <usbhid.h>
  19729. #elif defined(HAVE_LIBUSB_H)
  19730. #include <libusb.h>
  19731. #elif defined(HAVE_LIBUSBHID_H)
  19732. #include <libusbhid.h>
  19733. #endif
  19734. int
  19735. main ()
  19736. {
  19737. report_desc_t d;
  19738. hid_start_parse(d, 1, 1);
  19739. ;
  19740. return 0;
  19741. }
  19742. _ACEOF
  19743. if ac_fn_c_try_compile "$LINENO"; then :
  19744. have_usbhid_new=yes
  19745. fi
  19746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19747. if test x$have_usbhid_new = xyes; then
  19748. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  19749. fi
  19750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  19751. $as_echo "$have_usbhid_new" >&6; }
  19752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  19753. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  19754. have_machine_joystick=no
  19755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19756. /* end confdefs.h. */
  19757. #include <machine/joystick.h>
  19758. int
  19759. main ()
  19760. {
  19761. struct joystick t;
  19762. ;
  19763. return 0;
  19764. }
  19765. _ACEOF
  19766. if ac_fn_c_try_compile "$LINENO"; then :
  19767. have_machine_joystick=yes
  19768. fi
  19769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19770. if test x$have_machine_joystick = xyes; then
  19771. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  19772. fi
  19773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  19774. $as_echo "$have_machine_joystick" >&6; }
  19775. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  19776. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  19777. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  19778. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  19779. have_joystick=yes
  19780. fi
  19781. CFLAGS="$save_CFLAGS"
  19782. fi
  19783. ;;
  19784. esac
  19785. }
  19786. CheckClockGettime()
  19787. {
  19788. # Check whether --enable-clock_gettime was given.
  19789. if test "${enable_clock_gettime+set}" = set; then :
  19790. enableval=$enable_clock_gettime;
  19791. else
  19792. enable_clock_gettime=yes
  19793. fi
  19794. if test x$enable_clock_gettime = xyes; then
  19795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  19796. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  19797. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  19798. $as_echo_n "(cached) " >&6
  19799. else
  19800. ac_check_lib_save_LIBS=$LIBS
  19801. LIBS="-lrt $LIBS"
  19802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19803. /* end confdefs.h. */
  19804. /* Override any GCC internal prototype to avoid an error.
  19805. Use char because int might match the return type of a GCC
  19806. builtin and then its argument prototype would still apply. */
  19807. #ifdef __cplusplus
  19808. extern "C"
  19809. #endif
  19810. char clock_gettime ();
  19811. int
  19812. main ()
  19813. {
  19814. return clock_gettime ();
  19815. ;
  19816. return 0;
  19817. }
  19818. _ACEOF
  19819. if ac_fn_c_try_link "$LINENO"; then :
  19820. ac_cv_lib_rt_clock_gettime=yes
  19821. else
  19822. ac_cv_lib_rt_clock_gettime=no
  19823. fi
  19824. rm -f core conftest.err conftest.$ac_objext \
  19825. conftest$ac_exeext conftest.$ac_ext
  19826. LIBS=$ac_check_lib_save_LIBS
  19827. fi
  19828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  19829. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  19830. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  19831. have_clock_gettime=yes
  19832. fi
  19833. if test x$have_clock_gettime = xyes; then
  19834. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19835. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  19836. else
  19837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  19838. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  19839. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  19840. $as_echo_n "(cached) " >&6
  19841. else
  19842. ac_check_lib_save_LIBS=$LIBS
  19843. LIBS="-lc $LIBS"
  19844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19845. /* end confdefs.h. */
  19846. /* Override any GCC internal prototype to avoid an error.
  19847. Use char because int might match the return type of a GCC
  19848. builtin and then its argument prototype would still apply. */
  19849. #ifdef __cplusplus
  19850. extern "C"
  19851. #endif
  19852. char clock_gettime ();
  19853. int
  19854. main ()
  19855. {
  19856. return clock_gettime ();
  19857. ;
  19858. return 0;
  19859. }
  19860. _ACEOF
  19861. if ac_fn_c_try_link "$LINENO"; then :
  19862. ac_cv_lib_c_clock_gettime=yes
  19863. else
  19864. ac_cv_lib_c_clock_gettime=no
  19865. fi
  19866. rm -f core conftest.err conftest.$ac_objext \
  19867. conftest$ac_exeext conftest.$ac_ext
  19868. LIBS=$ac_check_lib_save_LIBS
  19869. fi
  19870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  19871. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  19872. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  19873. have_clock_gettime=yes
  19874. fi
  19875. if test x$have_clock_gettime = xyes; then
  19876. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19877. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19878. fi
  19879. fi
  19880. fi
  19881. }
  19882. CheckLinuxVersion()
  19883. {
  19884. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  19885. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  19886. have_linux_version_h=yes
  19887. fi
  19888. if test x$have_linux_version_h = xyes; then
  19889. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  19890. fi
  19891. }
  19892. CheckRPATH()
  19893. {
  19894. # Check whether --enable-rpath was given.
  19895. if test "${enable_rpath+set}" = set; then :
  19896. enableval=$enable_rpath;
  19897. else
  19898. enable_rpath=yes
  19899. fi
  19900. }
  19901. CheckWarnAll
  19902. case "$host" in
  19903. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  19904. case "$host" in
  19905. *-raspberry-linux*)
  19906. # Raspberry Pi
  19907. ARCH=linux
  19908. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19909. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19910. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19911. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19912. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  19913. if test x$enable_video = xyes; then
  19914. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19915. # FIXME: confdefs? Not AC_DEFINE?
  19916. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19917. SUMMARY_video="${SUMMARY_video} rpi"
  19918. fi
  19919. ;;
  19920. *-*-androideabi*)
  19921. # Android
  19922. ARCH=android
  19923. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  19924. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  19925. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  19926. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  19927. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  19928. if test x$enable_video = xyes; then
  19929. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  19930. # FIXME: confdefs? Not AC_DEFINE?
  19931. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  19932. SUMMARY_video="${SUMMARY_video} android"
  19933. fi
  19934. ;;
  19935. *-*-linux*) ARCH=linux ;;
  19936. *-*-uclinux*) ARCH=linux ;;
  19937. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  19938. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  19939. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  19940. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  19941. *-*-bsdi*) ARCH=bsdi ;;
  19942. *-*-freebsd*) ARCH=freebsd ;;
  19943. *-*-dragonfly*) ARCH=freebsd ;;
  19944. *-raspberry-netbsd*)
  19945. # Raspberry Pi
  19946. ARCH=netbsd
  19947. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  19948. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19949. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19950. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19951. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host -ldl"
  19952. if test x$enable_video = xyes; then
  19953. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19954. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19955. SUMMARY_video="${SUMMARY_video} raspberry"
  19956. fi
  19957. ;;
  19958. *-*-netbsd*) ARCH=netbsd ;;
  19959. *-*-openbsd*) ARCH=openbsd ;;
  19960. *-*-sysv5*) ARCH=sysv5 ;;
  19961. *-*-solaris*) ARCH=solaris ;;
  19962. *-*-hpux*) ARCH=hpux ;;
  19963. *-*-aix*) ARCH=aix ;;
  19964. *-*-minix*) ARCH=minix ;;
  19965. esac
  19966. CheckVisibilityHidden
  19967. CheckDeclarationAfterStatement
  19968. CheckDummyVideo
  19969. CheckDiskAudio
  19970. CheckDummyAudio
  19971. CheckDLOPEN
  19972. CheckOSS
  19973. CheckALSA
  19974. CheckPulseAudio
  19975. CheckJACK
  19976. CheckARTSC
  19977. CheckESD
  19978. CheckNAS
  19979. CheckSNDIO
  19980. CheckFusionSound
  19981. CheckLibSampleRate
  19982. CheckX11
  19983. CheckDirectFB
  19984. CheckOpenGLX11
  19985. CheckOpenGLESX11
  19986. CheckMir
  19987. CheckWayland
  19988. CheckLibUDev
  19989. CheckDBus
  19990. CheckIME
  19991. CheckIBus
  19992. CheckFcitx
  19993. case $ARCH in
  19994. linux)
  19995. CheckInputEvents
  19996. CheckInputKD
  19997. ;;
  19998. esac
  19999. CheckTslib
  20000. CheckUSBHID
  20001. CheckPTHREAD
  20002. CheckClockGettime
  20003. CheckLinuxVersion
  20004. CheckRPATH
  20005. CheckVivanteVideo
  20006. # Set up files for the audio library
  20007. if test x$enable_audio = xyes; then
  20008. case $ARCH in
  20009. sysv5|solaris|hpux)
  20010. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  20011. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  20012. have_audio=yes
  20013. ;;
  20014. netbsd) # Don't use this on OpenBSD, it's busted.
  20015. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  20016. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  20017. have_audio=yes
  20018. ;;
  20019. aix)
  20020. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  20021. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  20022. have_audio=yes
  20023. ;;
  20024. android)
  20025. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  20026. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  20027. SUMMARY_audio="${SUMMARY_audio} android"
  20028. have_audio=yes
  20029. ;;
  20030. esac
  20031. fi
  20032. # Set up files for the joystick library
  20033. if test x$enable_joystick = xyes; then
  20034. case $ARCH in
  20035. linux)
  20036. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  20037. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  20038. have_joystick=yes
  20039. ;;
  20040. android)
  20041. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  20042. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  20043. have_joystick=yes
  20044. ;;
  20045. esac
  20046. fi
  20047. # Set up files for the haptic library
  20048. if test x$enable_haptic = xyes; then
  20049. if test x$use_input_events = xyes; then
  20050. case $ARCH in
  20051. linux)
  20052. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  20053. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  20054. have_haptic=yes
  20055. ;;
  20056. esac
  20057. fi
  20058. fi
  20059. # Set up files for the power library
  20060. if test x$enable_power = xyes; then
  20061. case $ARCH in
  20062. linux)
  20063. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  20064. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  20065. have_power=yes
  20066. ;;
  20067. android)
  20068. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  20069. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  20070. have_power=yes
  20071. ;;
  20072. esac
  20073. fi
  20074. # Set up files for the filesystem library
  20075. if test x$enable_filesystem = xyes; then
  20076. case $ARCH in
  20077. android)
  20078. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  20079. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  20080. have_filesystem=yes
  20081. ;;
  20082. *)
  20083. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  20084. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  20085. have_filesystem=yes
  20086. ;;
  20087. esac
  20088. fi
  20089. # Set up files for the timer library
  20090. if test x$enable_timers = xyes; then
  20091. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20092. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20093. have_timers=yes
  20094. fi
  20095. # Set up files for udev hotplugging support
  20096. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  20097. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  20098. fi
  20099. # Set up files for evdev input
  20100. if test x$use_input_events = xyes; then
  20101. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  20102. fi
  20103. ;;
  20104. *-*-cygwin* | *-*-mingw32*)
  20105. ARCH=win32
  20106. if test "$build" != "$host"; then # cross-compiling
  20107. # Default cross-compile location
  20108. ac_default_prefix=/usr/local/cross-tools/$host
  20109. else
  20110. # Look for the location of the tools and install there
  20111. if test "$BUILD_PREFIX" != ""; then
  20112. ac_default_prefix=$BUILD_PREFIX
  20113. fi
  20114. fi
  20115. CheckDeclarationAfterStatement
  20116. CheckDummyVideo
  20117. CheckDiskAudio
  20118. CheckDummyAudio
  20119. CheckWINDOWS
  20120. CheckWINDOWSGL
  20121. CheckWINDOWSGLES
  20122. CheckDIRECTX
  20123. # Set up the core platform files
  20124. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  20125. # Set up files for the video library
  20126. if test x$enable_video = xyes; then
  20127. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  20128. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  20129. have_video=yes
  20130. # Check whether --enable-render-d3d was given.
  20131. if test "${enable_render_d3d+set}" = set; then :
  20132. enableval=$enable_render_d3d;
  20133. else
  20134. enable_render_d3d=yes
  20135. fi
  20136. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  20137. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  20138. fi
  20139. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  20140. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  20141. fi
  20142. fi
  20143. # Set up files for the audio library
  20144. if test x$enable_audio = xyes; then
  20145. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  20146. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  20147. if test x$have_dsound = xyes; then
  20148. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  20149. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  20150. fi
  20151. if test x$have_xaudio2 = xyes; then
  20152. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  20153. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  20154. fi
  20155. have_audio=yes
  20156. fi
  20157. # Set up files for the joystick library
  20158. if test x$enable_joystick = xyes; then
  20159. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20160. if test x$have_xinput = xyes; then
  20161. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  20162. fi
  20163. if test x$have_dinput = xyes; then
  20164. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  20165. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  20166. fi
  20167. else
  20168. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  20169. fi
  20170. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  20171. have_joystick=yes
  20172. fi
  20173. if test x$enable_haptic = xyes; then
  20174. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20175. if test x$have_xinput = xyes; then
  20176. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  20177. fi
  20178. if test x$have_dinput = xyes; then
  20179. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  20180. fi
  20181. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  20182. have_haptic=yes
  20183. fi
  20184. fi
  20185. if test x$enable_power = xyes; then
  20186. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  20187. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  20188. have_power=yes
  20189. fi
  20190. if test x$enable_filesystem = xyes; then
  20191. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  20192. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  20193. have_filesystem=yes
  20194. fi
  20195. # Set up files for the thread library
  20196. if test x$enable_threads = xyes; then
  20197. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  20198. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  20199. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  20200. have_threads=yes
  20201. fi
  20202. # Set up files for the timer library
  20203. if test x$enable_timers = xyes; then
  20204. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  20205. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  20206. have_timers=yes
  20207. fi
  20208. # Set up files for the shared object loading library
  20209. if test x$enable_loadso = xyes; then
  20210. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20211. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20212. have_loadso=yes
  20213. fi
  20214. # Set up the system libraries we need
  20215. if test -f /lib/w32api/libuuid.a; then
  20216. LIBUUID=/lib/w32api/libuuid.a
  20217. else
  20218. LIBUUID=-luuid
  20219. fi
  20220. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
  20221. # The Windows platform requires special setup
  20222. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20223. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20224. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20225. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20226. # Check to see if this is a mingw or cygwin build
  20227. have_mingw32=
  20228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20229. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20230. if ${ac_cv_lib_mingw32_main+:} false; then :
  20231. $as_echo_n "(cached) " >&6
  20232. else
  20233. ac_check_lib_save_LIBS=$LIBS
  20234. LIBS="-lmingw32 $LIBS"
  20235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20236. /* end confdefs.h. */
  20237. int
  20238. main ()
  20239. {
  20240. return main ();
  20241. ;
  20242. return 0;
  20243. }
  20244. _ACEOF
  20245. if ac_fn_c_try_link "$LINENO"; then :
  20246. ac_cv_lib_mingw32_main=yes
  20247. else
  20248. ac_cv_lib_mingw32_main=no
  20249. fi
  20250. rm -f core conftest.err conftest.$ac_objext \
  20251. conftest$ac_exeext conftest.$ac_ext
  20252. LIBS=$ac_check_lib_save_LIBS
  20253. fi
  20254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20255. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20256. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20257. have_mingw32=yes
  20258. fi
  20259. if test x$have_mingw32 = xyes; then
  20260. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20261. else
  20262. SDL_LIBS="-lcygwin $SDL_LIBS"
  20263. fi
  20264. ;;
  20265. *-*-beos*)
  20266. as_fn_error $? "
  20267. *** BeOS support has been removed as of SDL 2.0.2.
  20268. " "$LINENO" 5
  20269. ;;
  20270. *-*-haiku*)
  20271. ARCH=haiku
  20272. ac_default_prefix=/boot/system
  20273. CheckDummyVideo
  20274. CheckDiskAudio
  20275. CheckDummyAudio
  20276. CheckDLOPEN
  20277. CheckHaikuVideo
  20278. CheckHaikuGL
  20279. CheckPTHREAD
  20280. # Set up files for the audio library
  20281. if test x$enable_audio = xyes; then
  20282. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20283. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20284. have_audio=yes
  20285. fi
  20286. # Set up files for the joystick library
  20287. if test x$enable_joystick = xyes; then
  20288. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20289. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20290. have_joystick=yes
  20291. fi
  20292. # Set up files for the timer library
  20293. if test x$enable_timers = xyes; then
  20294. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20295. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20296. have_timers=yes
  20297. fi
  20298. # Set up files for the system power library
  20299. if test x$enable_power = xyes; then
  20300. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20301. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20302. have_power=yes
  20303. fi
  20304. # Set up files for the system filesystem library
  20305. if test x$enable_filesystem = xyes; then
  20306. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20307. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20308. have_filesystem=yes
  20309. fi
  20310. # The Haiku platform requires special setup.
  20311. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20312. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding -lstdc++.r4"
  20313. ;;
  20314. arm*-apple-darwin*|*-ios-*)
  20315. ARCH=ios
  20316. CheckVisibilityHidden
  20317. CheckDeclarationAfterStatement
  20318. CheckDummyVideo
  20319. CheckDiskAudio
  20320. CheckDummyAudio
  20321. CheckDLOPEN
  20322. CheckPTHREAD
  20323. # Set up files for the audio library
  20324. if test x$enable_audio = xyes; then
  20325. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20326. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20327. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20328. have_audio=yes
  20329. fi
  20330. # Set up files for the joystick library
  20331. if test x$enable_joystick = xyes; then
  20332. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20333. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20334. have_joystick=yes
  20335. fi
  20336. # Set up files for the haptic library
  20337. #if test x$enable_haptic = xyes; then
  20338. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20339. # have_haptic=yes
  20340. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20341. #fi
  20342. # Set up files for the power library
  20343. if test x$enable_power = xyes; then
  20344. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  20345. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20346. have_power=yes
  20347. fi
  20348. # Set up files for the filesystem library
  20349. if test x$enable_filesystem = xyes; then
  20350. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20351. have_filesystem=yes
  20352. fi
  20353. # Set up additional files for the file library
  20354. if test x$enable_file = xyes; then
  20355. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20356. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20357. fi
  20358. # Set up files for the timer library
  20359. if test x$enable_timers = xyes; then
  20360. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20361. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20362. have_timers=yes
  20363. fi
  20364. # The iOS platform requires special setup.
  20365. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  20366. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20367. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20368. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20369. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20370. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20371. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20372. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20373. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  20374. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20375. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20376. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20377. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20378. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20379. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20380. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20381. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20382. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20383. ;;
  20384. *-*-darwin* )
  20385. # This could be either full "Mac OS X", or plain "Darwin" which is
  20386. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20387. # Next line is broken, and a few files below require Mac OS X (full)
  20388. ARCH=macosx
  20389. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20390. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20391. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20392. CheckVisibilityHidden
  20393. CheckDeclarationAfterStatement
  20394. CheckDummyVideo
  20395. CheckDiskAudio
  20396. CheckDummyAudio
  20397. CheckDLOPEN
  20398. CheckCOCOA
  20399. CheckX11
  20400. CheckMacGL
  20401. CheckOpenGLX11
  20402. CheckPTHREAD
  20403. # Set up files for the audio library
  20404. if test x$enable_audio = xyes; then
  20405. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20406. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20407. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  20408. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20409. have_audio=yes
  20410. fi
  20411. # Set up files for the joystick library
  20412. if test x$enable_joystick = xyes; then
  20413. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20414. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20415. have_joystick=yes
  20416. fi
  20417. # Set up files for the haptic library
  20418. if test x$enable_haptic = xyes; then
  20419. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20420. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20421. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20422. have_haptic=yes
  20423. fi
  20424. # Set up files for the power library
  20425. if test x$enable_power = xyes; then
  20426. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20427. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20428. have_power=yes
  20429. fi
  20430. # Set up files for the filesystem library
  20431. if test x$enable_filesystem = xyes; then
  20432. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20433. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20434. have_filesystem=yes
  20435. fi
  20436. # Set up files for the timer library
  20437. if test x$enable_timers = xyes; then
  20438. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20439. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20440. have_timers=yes
  20441. fi
  20442. # Set up additional files for the file library
  20443. if test x$enable_file = xyes; then
  20444. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20445. fi
  20446. # The Mac OS X platform requires special setup.
  20447. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20448. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  20449. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  20450. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  20451. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  20452. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  20453. ;;
  20454. *-nacl|*-pnacl)
  20455. ARCH=nacl
  20456. CheckNativeClient
  20457. CheckDummyAudio
  20458. CheckDummyVideo
  20459. CheckInputEvents
  20460. CheckPTHREAD
  20461. # Set up files for the timer library
  20462. if test x$enable_timers = xyes; then
  20463. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20464. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20465. have_timers=yes
  20466. fi
  20467. if test x$enable_filesystem = xyes; then
  20468. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20469. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20470. have_filesystem=yes
  20471. fi
  20472. ;;
  20473. *-*-emscripten* )
  20474. if test x$enable_video = xyes; then
  20475. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20476. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  20477. have_video=yes
  20478. SUMMARY_video="${SUMMARY_video} emscripten"
  20479. fi
  20480. if test x$enable_audio = xyes; then
  20481. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20482. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  20483. have_audio=yes
  20484. SUMMARY_audio="${SUMMARY_audio} emscripten"
  20485. fi
  20486. CheckVisibilityHidden
  20487. CheckDeclarationAfterStatement
  20488. CheckDummyVideo
  20489. CheckDiskAudio
  20490. CheckDummyAudio
  20491. CheckDLOPEN
  20492. CheckClockGettime
  20493. CheckEmscriptenGLES
  20494. # Set up files for the power library
  20495. if test x$enable_power = xyes; then
  20496. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  20497. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  20498. have_power=yes
  20499. fi
  20500. # Set up files for the power library
  20501. if test x$enable_joystick = xyes; then
  20502. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  20503. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  20504. have_joystick=yes
  20505. fi
  20506. # Set up files for the filesystem library
  20507. if test x$enable_filesystem = xyes; then
  20508. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  20509. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  20510. have_filesystem=yes
  20511. fi
  20512. # Set up files for the timer library
  20513. if test x$enable_timers = xyes; then
  20514. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20515. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20516. have_timers=yes
  20517. fi
  20518. ;;
  20519. *)
  20520. as_fn_error $? "
  20521. *** Unsupported host: Please add to configure.in
  20522. " "$LINENO" 5
  20523. ;;
  20524. esac
  20525. # Verify that we have all the platform specific files we need
  20526. if test x$have_joystick != xyes; then
  20527. if test x$enable_joystick = xyes; then
  20528. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  20529. fi
  20530. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  20531. fi
  20532. if test x$have_haptic != xyes; then
  20533. if test x$enable_haptic = xyes; then
  20534. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  20535. fi
  20536. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  20537. fi
  20538. if test x$have_threads != xyes; then
  20539. if test x$enable_threads = xyes; then
  20540. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  20541. fi
  20542. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  20543. fi
  20544. if test x$have_timers != xyes; then
  20545. if test x$enable_timers = xyes; then
  20546. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  20547. fi
  20548. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  20549. fi
  20550. if test x$have_filesystem != xyes; then
  20551. if test x$enable_filesystem = xyes; then
  20552. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  20553. fi
  20554. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  20555. fi
  20556. if test x$have_loadso != xyes; then
  20557. if test x$enable_loadso = xyes; then
  20558. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  20559. fi
  20560. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  20561. fi
  20562. if test x$SDLMAIN_SOURCES = x; then
  20563. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  20564. fi
  20565. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  20566. if test x$video_wayland = xyes; then
  20567. WAYLAND_CORE_PROTOCOL_SOURCE='$(gen)/wayland-protocol.c'
  20568. WAYLAND_CORE_PROTOCOL_HEADER='$(gen)/wayland-client-protocol.h'
  20569. WAYLAND_PROTOCOLS_UNSTABLE_SOURCES=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20570. sed 's,[^ ]\+,\\$(gen)/&-protocol.c,g'`
  20571. WAYLAND_PROTOCOLS_UNSTABLE_HEADERS=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20572. sed 's,[^ ]\+,\\$(gen)/&-client-protocol.h,g'`
  20573. GEN_SOURCES="$GEN_SOURCES $WAYLAND_CORE_PROTOCOL_SOURCE $WAYLAND_PROTOCOLS_UNSTABLE_SOURCES"
  20574. GEN_HEADERS="$GEN_HEADERS $WAYLAND_CORE_PROTOCOL_HEADER $WAYLAND_PROTOCOLS_UNSTABLE_HEADERS"
  20575. WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS="
  20576. $WAYLAND_CORE_PROTOCOL_SOURCE: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20577. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20578. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) code \$< \$@"
  20579. WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS="
  20580. $WAYLAND_CORE_PROTOCOL_HEADER: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20581. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20582. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) client-header \$< \$@"
  20583. WAYLAND_CORE_PROTOCOL_OBJECT="
  20584. \$(objects)/`echo $WAYLAND_CORE_PROTOCOL_SOURCE | sed 's/\$(gen)\/\(.*\).c$/\1.lo/'`: $WAYLAND_CORE_PROTOCOL_SOURCE
  20585. \$(RUN_CMD_CC)\$(LIBTOOL) --tag=CC --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \$< -o \$@"
  20586. WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20587. do echo ; echo \$p | sed\
  20588. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-client-protocol.h: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20589. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20590. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@," ; done`
  20591. WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20592. do echo ; echo \$p | sed\
  20593. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-protocol.c: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20594. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20595. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@," ; done`
  20596. WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20597. do echo ; echo \$p | sed\
  20598. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\\$(objects)/&-protocol.lo: \\$(gen)/&-protocol.c \\$(gen)/&-client-protocol.h\\\\
  20599. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@," ; done`
  20600. WAYLAND_PROTOCOLS_DEPENDS="
  20601. $WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS
  20602. $WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS
  20603. $WAYLAND_CORE_PROTOCOL_OBJECT
  20604. $WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS
  20605. $WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS
  20606. $WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE
  20607. "
  20608. fi
  20609. OBJECTS=`echo $SOURCES`
  20610. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  20611. for EXT in asm cc m c S; do
  20612. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  20613. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  20614. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  20615. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20616. done
  20617. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20618. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  20619. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  20620. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  20621. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  20622. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  20623. \\$(WINDRES) \\$< \\$@,g"`
  20624. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  20625. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  20626. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20627. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20628. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20629. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20630. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  20631. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  20632. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20633. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20634. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20635. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20636. # Set runtime shared library paths as needed
  20637. if test "x$enable_rpath" = "xyes"; then
  20638. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  20639. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  20640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  20641. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  20642. have_enable_new_dtags=no
  20643. save_LDFLAGS="$LDFLAGS"
  20644. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  20645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20646. /* end confdefs.h. */
  20647. int
  20648. main ()
  20649. {
  20650. ;
  20651. return 0;
  20652. }
  20653. _ACEOF
  20654. if ac_fn_c_try_link "$LINENO"; then :
  20655. have_enable_new_dtags=yes
  20656. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  20657. fi
  20658. rm -f core conftest.err conftest.$ac_objext \
  20659. conftest$ac_exeext conftest.$ac_ext
  20660. LDFLAGS="$save_LDFLAGS"
  20661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  20662. $as_echo "$have_enable_new_dtags" >&6; }
  20663. fi
  20664. if test $ARCH = solaris; then
  20665. SDL_RLD_FLAGS="-R\${libdir}"
  20666. fi
  20667. else
  20668. SDL_RLD_FLAGS=""
  20669. fi
  20670. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  20671. if test x$enable_shared = xyes; then
  20672. ENABLE_SHARED_TRUE=
  20673. ENABLE_SHARED_FALSE="#"
  20674. else
  20675. ENABLE_SHARED_TRUE="#"
  20676. ENABLE_SHARED_FALSE=
  20677. fi
  20678. if test x$enable_static = xyes; then
  20679. ENABLE_STATIC_TRUE=
  20680. ENABLE_STATIC_FALSE="#"
  20681. else
  20682. ENABLE_STATIC_TRUE="#"
  20683. ENABLE_STATIC_FALSE=
  20684. fi
  20685. cat >Makefile.rules <<__EOF__
  20686. # Build rules for objects
  20687. -include \$(OBJECTS:.lo=.d)
  20688. # Special dependency for SDL.c, since it depends on SDL_revision.h
  20689. $srcdir/src/SDL.c: update-revision
  20690. $DEPENDS
  20691. $VERSION_DEPENDS
  20692. $SDLMAIN_DEPENDS
  20693. $SDLTEST_DEPENDS
  20694. $WAYLAND_PROTOCOLS_DEPENDS
  20695. __EOF__
  20696. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  20697. ac_config_commands="$ac_config_commands sdl2_config"
  20698. SUMMARY="SDL2 Configure Summary:\n"
  20699. if test x$enable_shared = xyes; then
  20700. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  20701. fi
  20702. if test x$enable_static = xyes; then
  20703. SUMMARY="${SUMMARY}Building Static Libraries\n"
  20704. fi
  20705. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  20706. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  20707. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  20708. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  20709. if test x$have_x = xyes; then
  20710. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  20711. fi
  20712. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  20713. if test x$have_samplerate_h_hdr = xyes; then
  20714. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  20715. else
  20716. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  20717. fi
  20718. if test x$have_libudev_h_hdr = xyes; then
  20719. SUMMARY="${SUMMARY}Using libudev : YES\n"
  20720. else
  20721. SUMMARY="${SUMMARY}Using libudev : NO\n"
  20722. fi
  20723. if test x$have_dbus_dbus_h_hdr = xyes; then
  20724. SUMMARY="${SUMMARY}Using dbus : YES\n"
  20725. else
  20726. SUMMARY="${SUMMARY}Using dbus : NO\n"
  20727. fi
  20728. if test x$enable_ime = xyes; then
  20729. SUMMARY="${SUMMARY}Using ime : YES\n"
  20730. else
  20731. SUMMARY="${SUMMARY}Using ime : NO\n"
  20732. fi
  20733. if test x$have_ibus_ibus_h_hdr = xyes; then
  20734. SUMMARY="${SUMMARY}Using ibus : YES\n"
  20735. else
  20736. SUMMARY="${SUMMARY}Using ibus : NO\n"
  20737. fi
  20738. if test x$have_fcitx_frontend_h_hdr = xyes; then
  20739. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  20740. else
  20741. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  20742. fi
  20743. ac_config_commands="$ac_config_commands summary"
  20744. cat >confcache <<\_ACEOF
  20745. # This file is a shell script that caches the results of configure
  20746. # tests run on this system so they can be shared between configure
  20747. # scripts and configure runs, see configure's option --config-cache.
  20748. # It is not useful on other systems. If it contains results you don't
  20749. # want to keep, you may remove or edit it.
  20750. #
  20751. # config.status only pays attention to the cache file if you give it
  20752. # the --recheck option to rerun configure.
  20753. #
  20754. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20755. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20756. # following values.
  20757. _ACEOF
  20758. # The following way of writing the cache mishandles newlines in values,
  20759. # but we know of no workaround that is simple, portable, and efficient.
  20760. # So, we kill variables containing newlines.
  20761. # Ultrix sh set writes to stderr and can't be redirected directly,
  20762. # and sets the high bit in the cache file unless we assign to the vars.
  20763. (
  20764. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20765. eval ac_val=\$$ac_var
  20766. case $ac_val in #(
  20767. *${as_nl}*)
  20768. case $ac_var in #(
  20769. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  20770. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20771. esac
  20772. case $ac_var in #(
  20773. _ | IFS | as_nl) ;; #(
  20774. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20775. *) { eval $ac_var=; unset $ac_var;} ;;
  20776. esac ;;
  20777. esac
  20778. done
  20779. (set) 2>&1 |
  20780. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20781. *${as_nl}ac_space=\ *)
  20782. # `set' does not quote correctly, so add quotes: double-quote
  20783. # substitution turns \\\\ into \\, and sed turns \\ into \.
  20784. sed -n \
  20785. "s/'/'\\\\''/g;
  20786. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20787. ;; #(
  20788. *)
  20789. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20790. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20791. ;;
  20792. esac |
  20793. sort
  20794. ) |
  20795. sed '
  20796. /^ac_cv_env_/b end
  20797. t clear
  20798. :clear
  20799. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20800. t end
  20801. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20802. :end' >>confcache
  20803. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20804. if test -w "$cache_file"; then
  20805. if test "x$cache_file" != "x/dev/null"; then
  20806. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  20807. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20808. if test ! -f "$cache_file" || test -h "$cache_file"; then
  20809. cat confcache >"$cache_file"
  20810. else
  20811. case $cache_file in #(
  20812. */* | ?:*)
  20813. mv -f confcache "$cache_file"$$ &&
  20814. mv -f "$cache_file"$$ "$cache_file" ;; #(
  20815. *)
  20816. mv -f confcache "$cache_file" ;;
  20817. esac
  20818. fi
  20819. fi
  20820. else
  20821. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  20822. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20823. fi
  20824. fi
  20825. rm -f confcache
  20826. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20827. # Let make expand exec_prefix.
  20828. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20829. DEFS=-DHAVE_CONFIG_H
  20830. ac_libobjs=
  20831. ac_ltlibobjs=
  20832. U=
  20833. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20834. # 1. Remove the extension, and $U if already installed.
  20835. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20836. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20837. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20838. # will be set to the directory where LIBOBJS objects are built.
  20839. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20840. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  20841. done
  20842. LIBOBJS=$ac_libobjs
  20843. LTLIBOBJS=$ac_ltlibobjs
  20844. : "${CONFIG_STATUS=./config.status}"
  20845. ac_write_fail=0
  20846. ac_clean_files_save=$ac_clean_files
  20847. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20848. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  20849. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20850. as_write_fail=0
  20851. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  20852. #! $SHELL
  20853. # Generated by $as_me.
  20854. # Run this file to recreate the current configuration.
  20855. # Compiler output produced by configure, useful for debugging
  20856. # configure, is in config.log if it exists.
  20857. debug=false
  20858. ac_cs_recheck=false
  20859. ac_cs_silent=false
  20860. SHELL=\${CONFIG_SHELL-$SHELL}
  20861. export SHELL
  20862. _ASEOF
  20863. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  20864. ## -------------------- ##
  20865. ## M4sh Initialization. ##
  20866. ## -------------------- ##
  20867. # Be more Bourne compatible
  20868. DUALCASE=1; export DUALCASE # for MKS sh
  20869. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20870. emulate sh
  20871. NULLCMD=:
  20872. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20873. # is contrary to our usage. Disable this feature.
  20874. alias -g '${1+"$@"}'='"$@"'
  20875. setopt NO_GLOB_SUBST
  20876. else
  20877. case `(set -o) 2>/dev/null` in #(
  20878. *posix*) :
  20879. set -o posix ;; #(
  20880. *) :
  20881. ;;
  20882. esac
  20883. fi
  20884. as_nl='
  20885. '
  20886. export as_nl
  20887. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  20888. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20889. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20890. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20891. # Prefer a ksh shell builtin over an external printf program on Solaris,
  20892. # but without wasting forks for bash or zsh.
  20893. if test -z "$BASH_VERSION$ZSH_VERSION" \
  20894. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  20895. as_echo='print -r --'
  20896. as_echo_n='print -rn --'
  20897. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20898. as_echo='printf %s\n'
  20899. as_echo_n='printf %s'
  20900. else
  20901. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20902. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20903. as_echo_n='/usr/ucb/echo -n'
  20904. else
  20905. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20906. as_echo_n_body='eval
  20907. arg=$1;
  20908. case $arg in #(
  20909. *"$as_nl"*)
  20910. expr "X$arg" : "X\\(.*\\)$as_nl";
  20911. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20912. esac;
  20913. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20914. '
  20915. export as_echo_n_body
  20916. as_echo_n='sh -c $as_echo_n_body as_echo'
  20917. fi
  20918. export as_echo_body
  20919. as_echo='sh -c $as_echo_body as_echo'
  20920. fi
  20921. # The user is always right.
  20922. if test "${PATH_SEPARATOR+set}" != set; then
  20923. PATH_SEPARATOR=:
  20924. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20925. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20926. PATH_SEPARATOR=';'
  20927. }
  20928. fi
  20929. # IFS
  20930. # We need space, tab and new line, in precisely that order. Quoting is
  20931. # there to prevent editors from complaining about space-tab.
  20932. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20933. # splitting by setting IFS to empty value.)
  20934. IFS=" "" $as_nl"
  20935. # Find who we are. Look in the path if we contain no directory separator.
  20936. as_myself=
  20937. case $0 in #((
  20938. *[\\/]* ) as_myself=$0 ;;
  20939. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20940. for as_dir in $PATH
  20941. do
  20942. IFS=$as_save_IFS
  20943. test -z "$as_dir" && as_dir=.
  20944. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20945. done
  20946. IFS=$as_save_IFS
  20947. ;;
  20948. esac
  20949. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20950. # in which case we are not to be found in the path.
  20951. if test "x$as_myself" = x; then
  20952. as_myself=$0
  20953. fi
  20954. if test ! -f "$as_myself"; then
  20955. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20956. exit 1
  20957. fi
  20958. # Unset variables that we do not need and which cause bugs (e.g. in
  20959. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  20960. # suppresses any "Segmentation fault" message there. '((' could
  20961. # trigger a bug in pdksh 5.2.14.
  20962. for as_var in BASH_ENV ENV MAIL MAILPATH
  20963. do eval test x\${$as_var+set} = xset \
  20964. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  20965. done
  20966. PS1='$ '
  20967. PS2='> '
  20968. PS4='+ '
  20969. # NLS nuisances.
  20970. LC_ALL=C
  20971. export LC_ALL
  20972. LANGUAGE=C
  20973. export LANGUAGE
  20974. # CDPATH.
  20975. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20976. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  20977. # ----------------------------------------
  20978. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  20979. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  20980. # script with STATUS, using 1 if that was 0.
  20981. as_fn_error ()
  20982. {
  20983. as_status=$1; test $as_status -eq 0 && as_status=1
  20984. if test "$4"; then
  20985. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  20986. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  20987. fi
  20988. $as_echo "$as_me: error: $2" >&2
  20989. as_fn_exit $as_status
  20990. } # as_fn_error
  20991. # as_fn_set_status STATUS
  20992. # -----------------------
  20993. # Set $? to STATUS, without forking.
  20994. as_fn_set_status ()
  20995. {
  20996. return $1
  20997. } # as_fn_set_status
  20998. # as_fn_exit STATUS
  20999. # -----------------
  21000. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21001. as_fn_exit ()
  21002. {
  21003. set +e
  21004. as_fn_set_status $1
  21005. exit $1
  21006. } # as_fn_exit
  21007. # as_fn_unset VAR
  21008. # ---------------
  21009. # Portably unset VAR.
  21010. as_fn_unset ()
  21011. {
  21012. { eval $1=; unset $1;}
  21013. }
  21014. as_unset=as_fn_unset
  21015. # as_fn_append VAR VALUE
  21016. # ----------------------
  21017. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21018. # advantage of any shell optimizations that allow amortized linear growth over
  21019. # repeated appends, instead of the typical quadratic growth present in naive
  21020. # implementations.
  21021. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21022. eval 'as_fn_append ()
  21023. {
  21024. eval $1+=\$2
  21025. }'
  21026. else
  21027. as_fn_append ()
  21028. {
  21029. eval $1=\$$1\$2
  21030. }
  21031. fi # as_fn_append
  21032. # as_fn_arith ARG...
  21033. # ------------------
  21034. # Perform arithmetic evaluation on the ARGs, and store the result in the
  21035. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  21036. # must be portable across $(()) and expr.
  21037. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  21038. eval 'as_fn_arith ()
  21039. {
  21040. as_val=$(( $* ))
  21041. }'
  21042. else
  21043. as_fn_arith ()
  21044. {
  21045. as_val=`expr "$@" || test $? -eq 1`
  21046. }
  21047. fi # as_fn_arith
  21048. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21049. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21050. as_expr=expr
  21051. else
  21052. as_expr=false
  21053. fi
  21054. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21055. as_basename=basename
  21056. else
  21057. as_basename=false
  21058. fi
  21059. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21060. as_dirname=dirname
  21061. else
  21062. as_dirname=false
  21063. fi
  21064. as_me=`$as_basename -- "$0" ||
  21065. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21066. X"$0" : 'X\(//\)$' \| \
  21067. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21068. $as_echo X/"$0" |
  21069. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21070. s//\1/
  21071. q
  21072. }
  21073. /^X\/\(\/\/\)$/{
  21074. s//\1/
  21075. q
  21076. }
  21077. /^X\/\(\/\).*/{
  21078. s//\1/
  21079. q
  21080. }
  21081. s/.*/./; q'`
  21082. # Avoid depending upon Character Ranges.
  21083. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21084. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21085. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21086. as_cr_digits='0123456789'
  21087. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21088. ECHO_C= ECHO_N= ECHO_T=
  21089. case `echo -n x` in #(((((
  21090. -n*)
  21091. case `echo 'xy\c'` in
  21092. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21093. xy) ECHO_C='\c';;
  21094. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  21095. ECHO_T=' ';;
  21096. esac;;
  21097. *)
  21098. ECHO_N='-n';;
  21099. esac
  21100. rm -f conf$$ conf$$.exe conf$$.file
  21101. if test -d conf$$.dir; then
  21102. rm -f conf$$.dir/conf$$.file
  21103. else
  21104. rm -f conf$$.dir
  21105. mkdir conf$$.dir 2>/dev/null
  21106. fi
  21107. if (echo >conf$$.file) 2>/dev/null; then
  21108. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21109. as_ln_s='ln -s'
  21110. # ... but there are two gotchas:
  21111. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21112. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21113. # In both cases, we have to default to `cp -pR'.
  21114. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21115. as_ln_s='cp -pR'
  21116. elif ln conf$$.file conf$$ 2>/dev/null; then
  21117. as_ln_s=ln
  21118. else
  21119. as_ln_s='cp -pR'
  21120. fi
  21121. else
  21122. as_ln_s='cp -pR'
  21123. fi
  21124. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21125. rmdir conf$$.dir 2>/dev/null
  21126. # as_fn_mkdir_p
  21127. # -------------
  21128. # Create "$as_dir" as a directory, including parents if necessary.
  21129. as_fn_mkdir_p ()
  21130. {
  21131. case $as_dir in #(
  21132. -*) as_dir=./$as_dir;;
  21133. esac
  21134. test -d "$as_dir" || eval $as_mkdir_p || {
  21135. as_dirs=
  21136. while :; do
  21137. case $as_dir in #(
  21138. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21139. *) as_qdir=$as_dir;;
  21140. esac
  21141. as_dirs="'$as_qdir' $as_dirs"
  21142. as_dir=`$as_dirname -- "$as_dir" ||
  21143. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21144. X"$as_dir" : 'X\(//\)[^/]' \| \
  21145. X"$as_dir" : 'X\(//\)$' \| \
  21146. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21147. $as_echo X"$as_dir" |
  21148. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21149. s//\1/
  21150. q
  21151. }
  21152. /^X\(\/\/\)[^/].*/{
  21153. s//\1/
  21154. q
  21155. }
  21156. /^X\(\/\/\)$/{
  21157. s//\1/
  21158. q
  21159. }
  21160. /^X\(\/\).*/{
  21161. s//\1/
  21162. q
  21163. }
  21164. s/.*/./; q'`
  21165. test -d "$as_dir" && break
  21166. done
  21167. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21168. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  21169. } # as_fn_mkdir_p
  21170. if mkdir -p . 2>/dev/null; then
  21171. as_mkdir_p='mkdir -p "$as_dir"'
  21172. else
  21173. test -d ./-p && rmdir ./-p
  21174. as_mkdir_p=false
  21175. fi
  21176. # as_fn_executable_p FILE
  21177. # -----------------------
  21178. # Test if FILE is an executable regular file.
  21179. as_fn_executable_p ()
  21180. {
  21181. test -f "$1" && test -x "$1"
  21182. } # as_fn_executable_p
  21183. as_test_x='test -x'
  21184. as_executable_p=as_fn_executable_p
  21185. # Sed expression to map a string onto a valid CPP name.
  21186. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21187. # Sed expression to map a string onto a valid variable name.
  21188. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21189. exec 6>&1
  21190. ## ----------------------------------- ##
  21191. ## Main body of $CONFIG_STATUS script. ##
  21192. ## ----------------------------------- ##
  21193. _ASEOF
  21194. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21195. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21196. # Save the log message, to keep $0 and so on meaningful, and to
  21197. # report actual input values of CONFIG_FILES etc. instead of their
  21198. # values after options handling.
  21199. ac_log="
  21200. This file was extended by $as_me, which was
  21201. generated by GNU Autoconf 2.69. Invocation command line was
  21202. CONFIG_FILES = $CONFIG_FILES
  21203. CONFIG_HEADERS = $CONFIG_HEADERS
  21204. CONFIG_LINKS = $CONFIG_LINKS
  21205. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21206. $ $0 $@
  21207. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21208. "
  21209. _ACEOF
  21210. case $ac_config_files in *"
  21211. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21212. esac
  21213. case $ac_config_headers in *"
  21214. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21215. esac
  21216. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21217. # Files that config.status was made for.
  21218. config_files="$ac_config_files"
  21219. config_headers="$ac_config_headers"
  21220. config_commands="$ac_config_commands"
  21221. _ACEOF
  21222. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21223. ac_cs_usage="\
  21224. \`$as_me' instantiates files and other configuration actions
  21225. from templates according to the current configuration. Unless the files
  21226. and actions are specified as TAGs, all are instantiated by default.
  21227. Usage: $0 [OPTION]... [TAG]...
  21228. -h, --help print this help, then exit
  21229. -V, --version print version number and configuration settings, then exit
  21230. --config print configuration, then exit
  21231. -q, --quiet, --silent
  21232. do not print progress messages
  21233. -d, --debug don't remove temporary files
  21234. --recheck update $as_me by reconfiguring in the same conditions
  21235. --file=FILE[:TEMPLATE]
  21236. instantiate the configuration file FILE
  21237. --header=FILE[:TEMPLATE]
  21238. instantiate the configuration header FILE
  21239. Configuration files:
  21240. $config_files
  21241. Configuration headers:
  21242. $config_headers
  21243. Configuration commands:
  21244. $config_commands
  21245. Report bugs to the package provider."
  21246. _ACEOF
  21247. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21248. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21249. ac_cs_version="\\
  21250. config.status
  21251. configured by $0, generated by GNU Autoconf 2.69,
  21252. with options \\"\$ac_cs_config\\"
  21253. Copyright (C) 2012 Free Software Foundation, Inc.
  21254. This config.status script is free software; the Free Software Foundation
  21255. gives unlimited permission to copy, distribute and modify it."
  21256. ac_pwd='$ac_pwd'
  21257. srcdir='$srcdir'
  21258. INSTALL='$INSTALL'
  21259. AWK='$AWK'
  21260. test -n "\$AWK" || AWK=awk
  21261. _ACEOF
  21262. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21263. # The default lists apply if the user does not specify any file.
  21264. ac_need_defaults=:
  21265. while test $# != 0
  21266. do
  21267. case $1 in
  21268. --*=?*)
  21269. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21270. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21271. ac_shift=:
  21272. ;;
  21273. --*=)
  21274. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21275. ac_optarg=
  21276. ac_shift=:
  21277. ;;
  21278. *)
  21279. ac_option=$1
  21280. ac_optarg=$2
  21281. ac_shift=shift
  21282. ;;
  21283. esac
  21284. case $ac_option in
  21285. # Handling of the options.
  21286. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21287. ac_cs_recheck=: ;;
  21288. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21289. $as_echo "$ac_cs_version"; exit ;;
  21290. --config | --confi | --conf | --con | --co | --c )
  21291. $as_echo "$ac_cs_config"; exit ;;
  21292. --debug | --debu | --deb | --de | --d | -d )
  21293. debug=: ;;
  21294. --file | --fil | --fi | --f )
  21295. $ac_shift
  21296. case $ac_optarg in
  21297. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21298. '') as_fn_error $? "missing file argument" ;;
  21299. esac
  21300. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21301. ac_need_defaults=false;;
  21302. --header | --heade | --head | --hea )
  21303. $ac_shift
  21304. case $ac_optarg in
  21305. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21306. esac
  21307. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21308. ac_need_defaults=false;;
  21309. --he | --h)
  21310. # Conflict between --help and --header
  21311. as_fn_error $? "ambiguous option: \`$1'
  21312. Try \`$0 --help' for more information.";;
  21313. --help | --hel | -h )
  21314. $as_echo "$ac_cs_usage"; exit ;;
  21315. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21316. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21317. ac_cs_silent=: ;;
  21318. # This is an error.
  21319. -*) as_fn_error $? "unrecognized option: \`$1'
  21320. Try \`$0 --help' for more information." ;;
  21321. *) as_fn_append ac_config_targets " $1"
  21322. ac_need_defaults=false ;;
  21323. esac
  21324. shift
  21325. done
  21326. ac_configure_extra_args=
  21327. if $ac_cs_silent; then
  21328. exec 6>/dev/null
  21329. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21330. fi
  21331. _ACEOF
  21332. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21333. if \$ac_cs_recheck; then
  21334. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21335. shift
  21336. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21337. CONFIG_SHELL='$SHELL'
  21338. export CONFIG_SHELL
  21339. exec "\$@"
  21340. fi
  21341. _ACEOF
  21342. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21343. exec 5>>config.log
  21344. {
  21345. echo
  21346. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21347. ## Running $as_me. ##
  21348. _ASBOX
  21349. $as_echo "$ac_log"
  21350. } >&5
  21351. _ACEOF
  21352. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21353. #
  21354. # INIT-COMMANDS
  21355. #
  21356. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21357. # if CDPATH is set.
  21358. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21359. sed_quote_subst='$sed_quote_subst'
  21360. double_quote_subst='$double_quote_subst'
  21361. delay_variable_subst='$delay_variable_subst'
  21362. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21363. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21364. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21365. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21366. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21367. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21368. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21369. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21370. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21371. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21372. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21373. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21374. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21375. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21376. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21377. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21378. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21379. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21380. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21381. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21382. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21383. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21384. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21385. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21386. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21387. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21388. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21389. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21390. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21391. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21392. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21393. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21394. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21395. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21396. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21397. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21398. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21399. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21400. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21401. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21402. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21403. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21404. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21405. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21406. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21407. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21408. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21409. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21410. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21411. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21412. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21413. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21414. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21415. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21416. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21417. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21418. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21419. 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"`'
  21420. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21421. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21422. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21423. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21424. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21425. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21426. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21427. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21428. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21429. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21430. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21431. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21432. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21433. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21434. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21435. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21436. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21437. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21438. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21439. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21440. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21441. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21442. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21443. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21444. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21445. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21446. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21447. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21448. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21449. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21450. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21451. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21452. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21453. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21454. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21455. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21456. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21457. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21458. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21459. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21460. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21461. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21462. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21463. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21464. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21465. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21466. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21467. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21468. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21469. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21470. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21471. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21472. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21473. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21474. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21475. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21476. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21477. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21478. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21479. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21480. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21481. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21482. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21483. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21484. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21485. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21486. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  21487. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21488. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21489. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21490. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21491. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21492. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21493. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21494. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21495. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21496. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21497. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21498. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21499. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21500. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21501. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21502. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21503. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21504. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21505. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21506. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21507. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21508. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21509. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21510. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21511. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21512. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21513. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21514. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21515. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21516. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21517. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21518. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21519. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21520. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21521. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  21522. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21523. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21524. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21525. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  21526. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  21527. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  21528. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  21529. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  21530. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  21531. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  21532. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  21533. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  21534. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21535. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21536. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21537. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21538. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21539. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21540. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21541. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21542. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21543. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21544. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  21545. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  21546. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  21547. LTCC='$LTCC'
  21548. LTCFLAGS='$LTCFLAGS'
  21549. compiler='$compiler_DEFAULT'
  21550. # A function that is used when there is no print builtin or printf.
  21551. func_fallback_echo ()
  21552. {
  21553. eval 'cat <<_LTECHO_EOF
  21554. \$1
  21555. _LTECHO_EOF'
  21556. }
  21557. # Quote evaled strings.
  21558. for var in AS \
  21559. DLLTOOL \
  21560. OBJDUMP \
  21561. SHELL \
  21562. ECHO \
  21563. PATH_SEPARATOR \
  21564. SED \
  21565. GREP \
  21566. EGREP \
  21567. FGREP \
  21568. LD \
  21569. NM \
  21570. LN_S \
  21571. lt_SP2NL \
  21572. lt_NL2SP \
  21573. reload_flag \
  21574. deplibs_check_method \
  21575. file_magic_cmd \
  21576. file_magic_glob \
  21577. want_nocaseglob \
  21578. sharedlib_from_linklib_cmd \
  21579. AR \
  21580. AR_FLAGS \
  21581. archiver_list_spec \
  21582. STRIP \
  21583. RANLIB \
  21584. CC \
  21585. CFLAGS \
  21586. compiler \
  21587. lt_cv_sys_global_symbol_pipe \
  21588. lt_cv_sys_global_symbol_to_cdecl \
  21589. lt_cv_sys_global_symbol_to_c_name_address \
  21590. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21591. nm_file_list_spec \
  21592. lt_prog_compiler_no_builtin_flag \
  21593. lt_prog_compiler_pic \
  21594. lt_prog_compiler_wl \
  21595. lt_prog_compiler_static \
  21596. lt_cv_prog_compiler_c_o \
  21597. need_locks \
  21598. MANIFEST_TOOL \
  21599. DSYMUTIL \
  21600. NMEDIT \
  21601. LIPO \
  21602. OTOOL \
  21603. OTOOL64 \
  21604. shrext_cmds \
  21605. export_dynamic_flag_spec \
  21606. whole_archive_flag_spec \
  21607. compiler_needs_object \
  21608. with_gnu_ld \
  21609. allow_undefined_flag \
  21610. no_undefined_flag \
  21611. hardcode_libdir_flag_spec \
  21612. hardcode_libdir_separator \
  21613. exclude_expsyms \
  21614. include_expsyms \
  21615. file_list_spec \
  21616. variables_saved_for_relink \
  21617. libname_spec \
  21618. library_names_spec \
  21619. soname_spec \
  21620. install_override_mode \
  21621. finish_eval \
  21622. old_striplib \
  21623. striplib \
  21624. compiler_lib_search_dirs \
  21625. predep_objects \
  21626. postdep_objects \
  21627. predeps \
  21628. postdeps \
  21629. compiler_lib_search_path \
  21630. LD_CXX \
  21631. reload_flag_CXX \
  21632. compiler_CXX \
  21633. lt_prog_compiler_no_builtin_flag_CXX \
  21634. lt_prog_compiler_pic_CXX \
  21635. lt_prog_compiler_wl_CXX \
  21636. lt_prog_compiler_static_CXX \
  21637. lt_cv_prog_compiler_c_o_CXX \
  21638. export_dynamic_flag_spec_CXX \
  21639. whole_archive_flag_spec_CXX \
  21640. compiler_needs_object_CXX \
  21641. with_gnu_ld_CXX \
  21642. allow_undefined_flag_CXX \
  21643. no_undefined_flag_CXX \
  21644. hardcode_libdir_flag_spec_CXX \
  21645. hardcode_libdir_separator_CXX \
  21646. exclude_expsyms_CXX \
  21647. include_expsyms_CXX \
  21648. file_list_spec_CXX \
  21649. compiler_lib_search_dirs_CXX \
  21650. predep_objects_CXX \
  21651. postdep_objects_CXX \
  21652. predeps_CXX \
  21653. postdeps_CXX \
  21654. compiler_lib_search_path_CXX; do
  21655. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21656. *[\\\\\\\`\\"\\\$]*)
  21657. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  21658. ;;
  21659. *)
  21660. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21661. ;;
  21662. esac
  21663. done
  21664. # Double-quote double-evaled strings.
  21665. for var in reload_cmds \
  21666. old_postinstall_cmds \
  21667. old_postuninstall_cmds \
  21668. old_archive_cmds \
  21669. extract_expsyms_cmds \
  21670. old_archive_from_new_cmds \
  21671. old_archive_from_expsyms_cmds \
  21672. archive_cmds \
  21673. archive_expsym_cmds \
  21674. module_cmds \
  21675. module_expsym_cmds \
  21676. export_symbols_cmds \
  21677. prelink_cmds \
  21678. postlink_cmds \
  21679. postinstall_cmds \
  21680. postuninstall_cmds \
  21681. finish_cmds \
  21682. sys_lib_search_path_spec \
  21683. sys_lib_dlsearch_path_spec \
  21684. reload_cmds_CXX \
  21685. old_archive_cmds_CXX \
  21686. old_archive_from_new_cmds_CXX \
  21687. old_archive_from_expsyms_cmds_CXX \
  21688. archive_cmds_CXX \
  21689. archive_expsym_cmds_CXX \
  21690. module_cmds_CXX \
  21691. module_expsym_cmds_CXX \
  21692. export_symbols_cmds_CXX \
  21693. prelink_cmds_CXX \
  21694. postlink_cmds_CXX; do
  21695. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21696. *[\\\\\\\`\\"\\\$]*)
  21697. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  21698. ;;
  21699. *)
  21700. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21701. ;;
  21702. esac
  21703. done
  21704. ac_aux_dir='$ac_aux_dir'
  21705. xsi_shell='$xsi_shell'
  21706. lt_shell_append='$lt_shell_append'
  21707. # See if we are running on zsh, and set the options which allow our
  21708. # commands through without removal of \ escapes INIT.
  21709. if test -n "\${ZSH_VERSION+set}" ; then
  21710. setopt NO_GLOB_SUBST
  21711. fi
  21712. PACKAGE='$PACKAGE'
  21713. VERSION='$VERSION'
  21714. TIMESTAMP='$TIMESTAMP'
  21715. RM='$RM'
  21716. ofile='$ofile'
  21717. SUMMARY="$SUMMARY"
  21718. _ACEOF
  21719. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21720. # Handling of arguments.
  21721. for ac_config_target in $ac_config_targets
  21722. do
  21723. case $ac_config_target in
  21724. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  21725. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  21726. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  21727. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  21728. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  21729. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  21730. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  21731. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  21732. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  21733. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  21734. esac
  21735. done
  21736. # If the user did not use the arguments to specify the items to instantiate,
  21737. # then the envvar interface is used. Set only those that are not.
  21738. # We use the long form for the default assignment because of an extremely
  21739. # bizarre bug on SunOS 4.1.3.
  21740. if $ac_need_defaults; then
  21741. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21742. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21743. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21744. fi
  21745. # Have a temporary directory for convenience. Make it in the build tree
  21746. # simply because there is no reason against having it here, and in addition,
  21747. # creating and moving files from /tmp can sometimes cause problems.
  21748. # Hook for its removal unless debugging.
  21749. # Note that there is a small window in which the directory will not be cleaned:
  21750. # after its creation but before its name has been assigned to `$tmp'.
  21751. $debug ||
  21752. {
  21753. tmp= ac_tmp=
  21754. trap 'exit_status=$?
  21755. : "${ac_tmp:=$tmp}"
  21756. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  21757. ' 0
  21758. trap 'as_fn_exit 1' 1 2 13 15
  21759. }
  21760. # Create a (secure) tmp directory for tmp files.
  21761. {
  21762. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21763. test -d "$tmp"
  21764. } ||
  21765. {
  21766. tmp=./conf$$-$RANDOM
  21767. (umask 077 && mkdir "$tmp")
  21768. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  21769. ac_tmp=$tmp
  21770. # Set up the scripts for CONFIG_FILES section.
  21771. # No need to generate them if there are no CONFIG_FILES.
  21772. # This happens for instance with `./config.status config.h'.
  21773. if test -n "$CONFIG_FILES"; then
  21774. ac_cr=`echo X | tr X '\015'`
  21775. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  21776. # But we know of no other shell where ac_cr would be empty at this
  21777. # point, so we can use a bashism as a fallback.
  21778. if test "x$ac_cr" = x; then
  21779. eval ac_cr=\$\'\\r\'
  21780. fi
  21781. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21782. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21783. ac_cs_awk_cr='\\r'
  21784. else
  21785. ac_cs_awk_cr=$ac_cr
  21786. fi
  21787. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  21788. _ACEOF
  21789. {
  21790. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21791. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21792. echo "_ACEOF"
  21793. } >conf$$subs.sh ||
  21794. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21795. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  21796. ac_delim='%!_!# '
  21797. for ac_last_try in false false false false false :; do
  21798. . ./conf$$subs.sh ||
  21799. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21800. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21801. if test $ac_delim_n = $ac_delim_num; then
  21802. break
  21803. elif $ac_last_try; then
  21804. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21805. else
  21806. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21807. fi
  21808. done
  21809. rm -f conf$$subs.sh
  21810. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21811. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  21812. _ACEOF
  21813. sed -n '
  21814. h
  21815. s/^/S["/; s/!.*/"]=/
  21816. p
  21817. g
  21818. s/^[^!]*!//
  21819. :repl
  21820. t repl
  21821. s/'"$ac_delim"'$//
  21822. t delim
  21823. :nl
  21824. h
  21825. s/\(.\{148\}\)..*/\1/
  21826. t more1
  21827. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21828. p
  21829. n
  21830. b repl
  21831. :more1
  21832. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21833. p
  21834. g
  21835. s/.\{148\}//
  21836. t nl
  21837. :delim
  21838. h
  21839. s/\(.\{148\}\)..*/\1/
  21840. t more2
  21841. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21842. p
  21843. b
  21844. :more2
  21845. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21846. p
  21847. g
  21848. s/.\{148\}//
  21849. t delim
  21850. ' <conf$$subs.awk | sed '
  21851. /^[^""]/{
  21852. N
  21853. s/\n//
  21854. }
  21855. ' >>$CONFIG_STATUS || ac_write_fail=1
  21856. rm -f conf$$subs.awk
  21857. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21858. _ACAWK
  21859. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  21860. for (key in S) S_is_set[key] = 1
  21861. FS = ""
  21862. }
  21863. {
  21864. line = $ 0
  21865. nfields = split(line, field, "@")
  21866. substed = 0
  21867. len = length(field[1])
  21868. for (i = 2; i < nfields; i++) {
  21869. key = field[i]
  21870. keylen = length(key)
  21871. if (S_is_set[key]) {
  21872. value = S[key]
  21873. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21874. len += length(value) + length(field[++i])
  21875. substed = 1
  21876. } else
  21877. len += 1 + keylen
  21878. }
  21879. print line
  21880. }
  21881. _ACAWK
  21882. _ACEOF
  21883. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21884. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21885. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21886. else
  21887. cat
  21888. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  21889. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  21890. _ACEOF
  21891. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  21892. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  21893. # trailing colons and then remove the whole line if VPATH becomes empty
  21894. # (actually we leave an empty line to preserve line numbers).
  21895. if test "x$srcdir" = x.; then
  21896. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  21897. h
  21898. s///
  21899. s/^/:/
  21900. s/[ ]*$/:/
  21901. s/:\$(srcdir):/:/g
  21902. s/:\${srcdir}:/:/g
  21903. s/:@srcdir@:/:/g
  21904. s/^:*//
  21905. s/:*$//
  21906. x
  21907. s/\(=[ ]*\).*/\1/
  21908. G
  21909. s/\n//
  21910. s/^[^=]*=[ ]*$//
  21911. }'
  21912. fi
  21913. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21914. fi # test -n "$CONFIG_FILES"
  21915. # Set up the scripts for CONFIG_HEADERS section.
  21916. # No need to generate them if there are no CONFIG_HEADERS.
  21917. # This happens for instance with `./config.status Makefile'.
  21918. if test -n "$CONFIG_HEADERS"; then
  21919. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  21920. BEGIN {
  21921. _ACEOF
  21922. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21923. # here-document in config.status, that substitutes the proper values into
  21924. # config.h.in to produce config.h.
  21925. # Create a delimiter string that does not exist in confdefs.h, to ease
  21926. # handling of long lines.
  21927. ac_delim='%!_!# '
  21928. for ac_last_try in false false :; do
  21929. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  21930. if test -z "$ac_tt"; then
  21931. break
  21932. elif $ac_last_try; then
  21933. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  21934. else
  21935. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21936. fi
  21937. done
  21938. # For the awk script, D is an array of macro values keyed by name,
  21939. # likewise P contains macro parameters if any. Preserve backslash
  21940. # newline sequences.
  21941. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21942. sed -n '
  21943. s/.\{148\}/&'"$ac_delim"'/g
  21944. t rset
  21945. :rset
  21946. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21947. t def
  21948. d
  21949. :def
  21950. s/\\$//
  21951. t bsnl
  21952. s/["\\]/\\&/g
  21953. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21954. D["\1"]=" \3"/p
  21955. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21956. d
  21957. :bsnl
  21958. s/["\\]/\\&/g
  21959. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21960. D["\1"]=" \3\\\\\\n"\\/p
  21961. t cont
  21962. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21963. t cont
  21964. d
  21965. :cont
  21966. n
  21967. s/.\{148\}/&'"$ac_delim"'/g
  21968. t clear
  21969. :clear
  21970. s/\\$//
  21971. t bsnlc
  21972. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21973. d
  21974. :bsnlc
  21975. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21976. b cont
  21977. ' <confdefs.h | sed '
  21978. s/'"$ac_delim"'/"\\\
  21979. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21980. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21981. for (key in D) D_is_set[key] = 1
  21982. FS = ""
  21983. }
  21984. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21985. line = \$ 0
  21986. split(line, arg, " ")
  21987. if (arg[1] == "#") {
  21988. defundef = arg[2]
  21989. mac1 = arg[3]
  21990. } else {
  21991. defundef = substr(arg[1], 2)
  21992. mac1 = arg[2]
  21993. }
  21994. split(mac1, mac2, "(") #)
  21995. macro = mac2[1]
  21996. prefix = substr(line, 1, index(line, defundef) - 1)
  21997. if (D_is_set[macro]) {
  21998. # Preserve the white space surrounding the "#".
  21999. print prefix "define", macro P[macro] D[macro]
  22000. next
  22001. } else {
  22002. # Replace #undef with comments. This is necessary, for example,
  22003. # in the case of _POSIX_SOURCE, which is predefined and required
  22004. # on some systems where configure will not decide to define it.
  22005. if (defundef == "undef") {
  22006. print "/*", prefix defundef, macro, "*/"
  22007. next
  22008. }
  22009. }
  22010. }
  22011. { print }
  22012. _ACAWK
  22013. _ACEOF
  22014. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22015. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  22016. fi # test -n "$CONFIG_HEADERS"
  22017. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22018. shift
  22019. for ac_tag
  22020. do
  22021. case $ac_tag in
  22022. :[FHLC]) ac_mode=$ac_tag; continue;;
  22023. esac
  22024. case $ac_mode$ac_tag in
  22025. :[FHL]*:*);;
  22026. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  22027. :[FH]-) ac_tag=-:-;;
  22028. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22029. esac
  22030. ac_save_IFS=$IFS
  22031. IFS=:
  22032. set x $ac_tag
  22033. IFS=$ac_save_IFS
  22034. shift
  22035. ac_file=$1
  22036. shift
  22037. case $ac_mode in
  22038. :L) ac_source=$1;;
  22039. :[FH])
  22040. ac_file_inputs=
  22041. for ac_f
  22042. do
  22043. case $ac_f in
  22044. -) ac_f="$ac_tmp/stdin";;
  22045. *) # Look for the file first in the build tree, then in the source tree
  22046. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22047. # because $ac_f cannot contain `:'.
  22048. test -f "$ac_f" ||
  22049. case $ac_f in
  22050. [\\/$]*) false;;
  22051. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22052. esac ||
  22053. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  22054. esac
  22055. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22056. as_fn_append ac_file_inputs " '$ac_f'"
  22057. done
  22058. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22059. # use $as_me), people would be surprised to read:
  22060. # /* config.h. Generated by config.status. */
  22061. configure_input='Generated from '`
  22062. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22063. `' by configure.'
  22064. if test x"$ac_file" != x-; then
  22065. configure_input="$ac_file. $configure_input"
  22066. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  22067. $as_echo "$as_me: creating $ac_file" >&6;}
  22068. fi
  22069. # Neutralize special characters interpreted by sed in replacement strings.
  22070. case $configure_input in #(
  22071. *\&* | *\|* | *\\* )
  22072. ac_sed_conf_input=`$as_echo "$configure_input" |
  22073. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22074. *) ac_sed_conf_input=$configure_input;;
  22075. esac
  22076. case $ac_tag in
  22077. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  22078. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  22079. esac
  22080. ;;
  22081. esac
  22082. ac_dir=`$as_dirname -- "$ac_file" ||
  22083. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22084. X"$ac_file" : 'X\(//\)[^/]' \| \
  22085. X"$ac_file" : 'X\(//\)$' \| \
  22086. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22087. $as_echo X"$ac_file" |
  22088. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22089. s//\1/
  22090. q
  22091. }
  22092. /^X\(\/\/\)[^/].*/{
  22093. s//\1/
  22094. q
  22095. }
  22096. /^X\(\/\/\)$/{
  22097. s//\1/
  22098. q
  22099. }
  22100. /^X\(\/\).*/{
  22101. s//\1/
  22102. q
  22103. }
  22104. s/.*/./; q'`
  22105. as_dir="$ac_dir"; as_fn_mkdir_p
  22106. ac_builddir=.
  22107. case "$ac_dir" in
  22108. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22109. *)
  22110. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22111. # A ".." for each directory in $ac_dir_suffix.
  22112. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22113. case $ac_top_builddir_sub in
  22114. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22115. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22116. esac ;;
  22117. esac
  22118. ac_abs_top_builddir=$ac_pwd
  22119. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22120. # for backward compatibility:
  22121. ac_top_builddir=$ac_top_build_prefix
  22122. case $srcdir in
  22123. .) # We are building in place.
  22124. ac_srcdir=.
  22125. ac_top_srcdir=$ac_top_builddir_sub
  22126. ac_abs_top_srcdir=$ac_pwd ;;
  22127. [\\/]* | ?:[\\/]* ) # Absolute name.
  22128. ac_srcdir=$srcdir$ac_dir_suffix;
  22129. ac_top_srcdir=$srcdir
  22130. ac_abs_top_srcdir=$srcdir ;;
  22131. *) # Relative name.
  22132. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22133. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22134. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22135. esac
  22136. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22137. case $ac_mode in
  22138. :F)
  22139. #
  22140. # CONFIG_FILE
  22141. #
  22142. case $INSTALL in
  22143. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22144. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22145. esac
  22146. _ACEOF
  22147. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22148. # If the template does not know about datarootdir, expand it.
  22149. # FIXME: This hack should be removed a few years after 2.60.
  22150. ac_datarootdir_hack=; ac_datarootdir_seen=
  22151. ac_sed_dataroot='
  22152. /datarootdir/ {
  22153. p
  22154. q
  22155. }
  22156. /@datadir@/p
  22157. /@docdir@/p
  22158. /@infodir@/p
  22159. /@localedir@/p
  22160. /@mandir@/p'
  22161. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22162. *datarootdir*) ac_datarootdir_seen=yes;;
  22163. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22164. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22165. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22166. _ACEOF
  22167. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22168. ac_datarootdir_hack='
  22169. s&@datadir@&$datadir&g
  22170. s&@docdir@&$docdir&g
  22171. s&@infodir@&$infodir&g
  22172. s&@localedir@&$localedir&g
  22173. s&@mandir@&$mandir&g
  22174. s&\\\${datarootdir}&$datarootdir&g' ;;
  22175. esac
  22176. _ACEOF
  22177. # Neutralize VPATH when `$srcdir' = `.'.
  22178. # Shell code in configure.ac might set extrasub.
  22179. # FIXME: do we really want to maintain this feature?
  22180. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22181. ac_sed_extra="$ac_vpsub
  22182. $extrasub
  22183. _ACEOF
  22184. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22185. :t
  22186. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22187. s|@configure_input@|$ac_sed_conf_input|;t t
  22188. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22189. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22190. s&@srcdir@&$ac_srcdir&;t t
  22191. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22192. s&@top_srcdir@&$ac_top_srcdir&;t t
  22193. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22194. s&@builddir@&$ac_builddir&;t t
  22195. s&@abs_builddir@&$ac_abs_builddir&;t t
  22196. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22197. s&@INSTALL@&$ac_INSTALL&;t t
  22198. $ac_datarootdir_hack
  22199. "
  22200. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22201. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22202. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22203. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22204. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22205. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22206. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22207. which seems to be undefined. Please make sure it is defined" >&5
  22208. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22209. which seems to be undefined. Please make sure it is defined" >&2;}
  22210. rm -f "$ac_tmp/stdin"
  22211. case $ac_file in
  22212. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22213. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22214. esac \
  22215. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22216. ;;
  22217. :H)
  22218. #
  22219. # CONFIG_HEADER
  22220. #
  22221. if test x"$ac_file" != x-; then
  22222. {
  22223. $as_echo "/* $configure_input */" \
  22224. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22225. } >"$ac_tmp/config.h" \
  22226. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22227. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22228. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22229. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22230. else
  22231. rm -f "$ac_file"
  22232. mv "$ac_tmp/config.h" "$ac_file" \
  22233. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22234. fi
  22235. else
  22236. $as_echo "/* $configure_input */" \
  22237. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22238. || as_fn_error $? "could not create -" "$LINENO" 5
  22239. fi
  22240. ;;
  22241. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22242. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22243. ;;
  22244. esac
  22245. case $ac_file$ac_mode in
  22246. "libtool":C)
  22247. # See if we are running on zsh, and set the options which allow our
  22248. # commands through without removal of \ escapes.
  22249. if test -n "${ZSH_VERSION+set}" ; then
  22250. setopt NO_GLOB_SUBST
  22251. fi
  22252. cfgfile="${ofile}T"
  22253. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22254. $RM "$cfgfile"
  22255. cat <<_LT_EOF >> "$cfgfile"
  22256. #! $SHELL
  22257. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22258. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22259. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22260. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22261. #
  22262. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22263. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22264. # Foundation, Inc.
  22265. # Written by Gordon Matzigkeit, 1996
  22266. #
  22267. # This file is part of GNU Libtool.
  22268. #
  22269. # GNU Libtool is free software; you can redistribute it and/or
  22270. # modify it under the terms of the GNU General Public License as
  22271. # published by the Free Software Foundation; either version 2 of
  22272. # the License, or (at your option) any later version.
  22273. #
  22274. # As a special exception to the GNU General Public License,
  22275. # if you distribute this file as part of a program or library that
  22276. # is built using GNU Libtool, you may include this file under the
  22277. # same distribution terms that you use for the rest of that program.
  22278. #
  22279. # GNU Libtool is distributed in the hope that it will be useful,
  22280. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22281. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22282. # GNU General Public License for more details.
  22283. #
  22284. # You should have received a copy of the GNU General Public License
  22285. # along with GNU Libtool; see the file COPYING. If not, a copy
  22286. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22287. # obtained by writing to the Free Software Foundation, Inc.,
  22288. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22289. # The names of the tagged configurations supported by this script.
  22290. available_tags="CXX "
  22291. # ### BEGIN LIBTOOL CONFIG
  22292. # Which release of libtool.m4 was used?
  22293. macro_version=$macro_version
  22294. macro_revision=$macro_revision
  22295. # Assembler program.
  22296. AS=$lt_AS
  22297. # DLL creation program.
  22298. DLLTOOL=$lt_DLLTOOL
  22299. # Object dumper program.
  22300. OBJDUMP=$lt_OBJDUMP
  22301. # Whether or not to build shared libraries.
  22302. build_libtool_libs=$enable_shared
  22303. # Whether or not to build static libraries.
  22304. build_old_libs=$enable_static
  22305. # What type of objects to build.
  22306. pic_mode=$pic_mode
  22307. # Whether or not to optimize for fast installation.
  22308. fast_install=$enable_fast_install
  22309. # Shell to use when invoking shell scripts.
  22310. SHELL=$lt_SHELL
  22311. # An echo program that protects backslashes.
  22312. ECHO=$lt_ECHO
  22313. # The PATH separator for the build system.
  22314. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22315. # The host system.
  22316. host_alias=$host_alias
  22317. host=$host
  22318. host_os=$host_os
  22319. # The build system.
  22320. build_alias=$build_alias
  22321. build=$build
  22322. build_os=$build_os
  22323. # A sed program that does not truncate output.
  22324. SED=$lt_SED
  22325. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22326. Xsed="\$SED -e 1s/^X//"
  22327. # A grep program that handles long lines.
  22328. GREP=$lt_GREP
  22329. # An ERE matcher.
  22330. EGREP=$lt_EGREP
  22331. # A literal string matcher.
  22332. FGREP=$lt_FGREP
  22333. # A BSD- or MS-compatible name lister.
  22334. NM=$lt_NM
  22335. # Whether we need soft or hard links.
  22336. LN_S=$lt_LN_S
  22337. # What is the maximum length of a command?
  22338. max_cmd_len=$max_cmd_len
  22339. # Object file suffix (normally "o").
  22340. objext=$ac_objext
  22341. # Executable file suffix (normally "").
  22342. exeext=$exeext
  22343. # whether the shell understands "unset".
  22344. lt_unset=$lt_unset
  22345. # turn spaces into newlines.
  22346. SP2NL=$lt_lt_SP2NL
  22347. # turn newlines into spaces.
  22348. NL2SP=$lt_lt_NL2SP
  22349. # convert \$build file names to \$host format.
  22350. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22351. # convert \$build files to toolchain format.
  22352. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22353. # Method to check whether dependent libraries are shared objects.
  22354. deplibs_check_method=$lt_deplibs_check_method
  22355. # Command to use when deplibs_check_method = "file_magic".
  22356. file_magic_cmd=$lt_file_magic_cmd
  22357. # How to find potential files when deplibs_check_method = "file_magic".
  22358. file_magic_glob=$lt_file_magic_glob
  22359. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22360. want_nocaseglob=$lt_want_nocaseglob
  22361. # Command to associate shared and link libraries.
  22362. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22363. # The archiver.
  22364. AR=$lt_AR
  22365. # Flags to create an archive.
  22366. AR_FLAGS=$lt_AR_FLAGS
  22367. # How to feed a file listing to the archiver.
  22368. archiver_list_spec=$lt_archiver_list_spec
  22369. # A symbol stripping program.
  22370. STRIP=$lt_STRIP
  22371. # Commands used to install an old-style archive.
  22372. RANLIB=$lt_RANLIB
  22373. old_postinstall_cmds=$lt_old_postinstall_cmds
  22374. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22375. # Whether to use a lock for old archive extraction.
  22376. lock_old_archive_extraction=$lock_old_archive_extraction
  22377. # A C compiler.
  22378. LTCC=$lt_CC
  22379. # LTCC compiler flags.
  22380. LTCFLAGS=$lt_CFLAGS
  22381. # Take the output of nm and produce a listing of raw symbols and C names.
  22382. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22383. # Transform the output of nm in a proper C declaration.
  22384. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22385. # Transform the output of nm in a C name address pair.
  22386. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22387. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22388. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22389. # Specify filename containing input files for \$NM.
  22390. nm_file_list_spec=$lt_nm_file_list_spec
  22391. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22392. lt_sysroot=$lt_sysroot
  22393. # The name of the directory that contains temporary libtool files.
  22394. objdir=$objdir
  22395. # Used to examine libraries when file_magic_cmd begins with "file".
  22396. MAGIC_CMD=$MAGIC_CMD
  22397. # Must we lock files when doing compilation?
  22398. need_locks=$lt_need_locks
  22399. # Manifest tool.
  22400. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22401. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22402. DSYMUTIL=$lt_DSYMUTIL
  22403. # Tool to change global to local symbols on Mac OS X.
  22404. NMEDIT=$lt_NMEDIT
  22405. # Tool to manipulate fat objects and archives on Mac OS X.
  22406. LIPO=$lt_LIPO
  22407. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22408. OTOOL=$lt_OTOOL
  22409. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22410. OTOOL64=$lt_OTOOL64
  22411. # Old archive suffix (normally "a").
  22412. libext=$libext
  22413. # Shared library suffix (normally ".so").
  22414. shrext_cmds=$lt_shrext_cmds
  22415. # The commands to extract the exported symbol list from a shared archive.
  22416. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22417. # Variables whose values should be saved in libtool wrapper scripts and
  22418. # restored at link time.
  22419. variables_saved_for_relink=$lt_variables_saved_for_relink
  22420. # Do we need the "lib" prefix for modules?
  22421. need_lib_prefix=$need_lib_prefix
  22422. # Do we need a version for libraries?
  22423. need_version=$need_version
  22424. # Library versioning type.
  22425. version_type=$version_type
  22426. # Shared library runtime path variable.
  22427. runpath_var=$runpath_var
  22428. # Shared library path variable.
  22429. shlibpath_var=$shlibpath_var
  22430. # Is shlibpath searched before the hard-coded library search path?
  22431. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22432. # Format of library name prefix.
  22433. libname_spec=$lt_libname_spec
  22434. # List of archive names. First name is the real one, the rest are links.
  22435. # The last name is the one that the linker finds with -lNAME
  22436. library_names_spec=$lt_library_names_spec
  22437. # The coded name of the library, if different from the real name.
  22438. soname_spec=$lt_soname_spec
  22439. # Permission mode override for installation of shared libraries.
  22440. install_override_mode=$lt_install_override_mode
  22441. # Command to use after installation of a shared archive.
  22442. postinstall_cmds=$lt_postinstall_cmds
  22443. # Command to use after uninstallation of a shared archive.
  22444. postuninstall_cmds=$lt_postuninstall_cmds
  22445. # Commands used to finish a libtool library installation in a directory.
  22446. finish_cmds=$lt_finish_cmds
  22447. # As "finish_cmds", except a single script fragment to be evaled but
  22448. # not shown.
  22449. finish_eval=$lt_finish_eval
  22450. # Whether we should hardcode library paths into libraries.
  22451. hardcode_into_libs=$hardcode_into_libs
  22452. # Compile-time system search path for libraries.
  22453. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22454. # Run-time system search path for libraries.
  22455. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22456. # Whether dlopen is supported.
  22457. dlopen_support=$enable_dlopen
  22458. # Whether dlopen of programs is supported.
  22459. dlopen_self=$enable_dlopen_self
  22460. # Whether dlopen of statically linked programs is supported.
  22461. dlopen_self_static=$enable_dlopen_self_static
  22462. # Commands to strip libraries.
  22463. old_striplib=$lt_old_striplib
  22464. striplib=$lt_striplib
  22465. # The linker used to build libraries.
  22466. LD=$lt_LD
  22467. # How to create reloadable object files.
  22468. reload_flag=$lt_reload_flag
  22469. reload_cmds=$lt_reload_cmds
  22470. # Commands used to build an old-style archive.
  22471. old_archive_cmds=$lt_old_archive_cmds
  22472. # A language specific compiler.
  22473. CC=$lt_compiler
  22474. # Is the compiler the GNU compiler?
  22475. with_gcc=$GCC
  22476. # Compiler flag to turn off builtin functions.
  22477. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22478. # Additional compiler flags for building library objects.
  22479. pic_flag=$lt_lt_prog_compiler_pic
  22480. # How to pass a linker flag through the compiler.
  22481. wl=$lt_lt_prog_compiler_wl
  22482. # Compiler flag to prevent dynamic linking.
  22483. link_static_flag=$lt_lt_prog_compiler_static
  22484. # Does compiler simultaneously support -c and -o options?
  22485. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22486. # Whether or not to add -lc for building shared libraries.
  22487. build_libtool_need_lc=$archive_cmds_need_lc
  22488. # Whether or not to disallow shared libs when runtime libs are static.
  22489. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22490. # Compiler flag to allow reflexive dlopens.
  22491. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22492. # Compiler flag to generate shared objects directly from archives.
  22493. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22494. # Whether the compiler copes with passing no objects directly.
  22495. compiler_needs_object=$lt_compiler_needs_object
  22496. # Create an old-style archive from a shared archive.
  22497. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22498. # Create a temporary old-style archive to link instead of a shared archive.
  22499. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22500. # Commands used to build a shared archive.
  22501. archive_cmds=$lt_archive_cmds
  22502. archive_expsym_cmds=$lt_archive_expsym_cmds
  22503. # Commands used to build a loadable module if different from building
  22504. # a shared archive.
  22505. module_cmds=$lt_module_cmds
  22506. module_expsym_cmds=$lt_module_expsym_cmds
  22507. # Whether we are building with GNU ld or not.
  22508. with_gnu_ld=$lt_with_gnu_ld
  22509. # Flag that allows shared libraries with undefined symbols to be built.
  22510. allow_undefined_flag=$lt_allow_undefined_flag
  22511. # Flag that enforces no undefined symbols.
  22512. no_undefined_flag=$lt_no_undefined_flag
  22513. # Flag to hardcode \$libdir into a binary during linking.
  22514. # This must work even if \$libdir does not exist
  22515. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22516. # Whether we need a single "-rpath" flag with a separated argument.
  22517. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22518. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22519. # DIR into the resulting binary.
  22520. hardcode_direct=$hardcode_direct
  22521. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22522. # DIR into the resulting binary and the resulting library dependency is
  22523. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22524. # library is relocated.
  22525. hardcode_direct_absolute=$hardcode_direct_absolute
  22526. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22527. # into the resulting binary.
  22528. hardcode_minus_L=$hardcode_minus_L
  22529. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22530. # into the resulting binary.
  22531. hardcode_shlibpath_var=$hardcode_shlibpath_var
  22532. # Set to "yes" if building a shared library automatically hardcodes DIR
  22533. # into the library and all subsequent libraries and executables linked
  22534. # against it.
  22535. hardcode_automatic=$hardcode_automatic
  22536. # Set to yes if linker adds runtime paths of dependent libraries
  22537. # to runtime path list.
  22538. inherit_rpath=$inherit_rpath
  22539. # Whether libtool must link a program against all its dependency libraries.
  22540. link_all_deplibs=$link_all_deplibs
  22541. # Set to "yes" if exported symbols are required.
  22542. always_export_symbols=$always_export_symbols
  22543. # The commands to list exported symbols.
  22544. export_symbols_cmds=$lt_export_symbols_cmds
  22545. # Symbols that should not be listed in the preloaded symbols.
  22546. exclude_expsyms=$lt_exclude_expsyms
  22547. # Symbols that must always be exported.
  22548. include_expsyms=$lt_include_expsyms
  22549. # Commands necessary for linking programs (against libraries) with templates.
  22550. prelink_cmds=$lt_prelink_cmds
  22551. # Commands necessary for finishing linking programs.
  22552. postlink_cmds=$lt_postlink_cmds
  22553. # Specify filename containing input files.
  22554. file_list_spec=$lt_file_list_spec
  22555. # How to hardcode a shared library path into an executable.
  22556. hardcode_action=$hardcode_action
  22557. # The directories searched by this compiler when creating a shared library.
  22558. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22559. # Dependencies to place before and after the objects being linked to
  22560. # create a shared library.
  22561. predep_objects=$lt_predep_objects
  22562. postdep_objects=$lt_postdep_objects
  22563. predeps=$lt_predeps
  22564. postdeps=$lt_postdeps
  22565. # The library search path used internally by the compiler when linking
  22566. # a shared library.
  22567. compiler_lib_search_path=$lt_compiler_lib_search_path
  22568. # ### END LIBTOOL CONFIG
  22569. _LT_EOF
  22570. case $host_os in
  22571. aix3*)
  22572. cat <<\_LT_EOF >> "$cfgfile"
  22573. # AIX sometimes has problems with the GCC collect2 program. For some
  22574. # reason, if we set the COLLECT_NAMES environment variable, the problems
  22575. # vanish in a puff of smoke.
  22576. if test "X${COLLECT_NAMES+set}" != Xset; then
  22577. COLLECT_NAMES=
  22578. export COLLECT_NAMES
  22579. fi
  22580. _LT_EOF
  22581. ;;
  22582. esac
  22583. ltmain="$ac_aux_dir/ltmain.sh"
  22584. # We use sed instead of cat because bash on DJGPP gets confused if
  22585. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22586. # text mode, it properly converts lines to CR/LF. This bash problem
  22587. # is reportedly fixed, but why not run on old versions too?
  22588. sed '$q' "$ltmain" >> "$cfgfile" \
  22589. || (rm -f "$cfgfile"; exit 1)
  22590. if test x"$xsi_shell" = xyes; then
  22591. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  22592. func_dirname ()\
  22593. {\
  22594. \ case ${1} in\
  22595. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22596. \ * ) func_dirname_result="${3}" ;;\
  22597. \ esac\
  22598. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  22599. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22600. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22601. test 0 -eq $? || _lt_function_replace_fail=:
  22602. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  22603. func_basename ()\
  22604. {\
  22605. \ func_basename_result="${1##*/}"\
  22606. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22607. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22608. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22609. test 0 -eq $? || _lt_function_replace_fail=:
  22610. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  22611. func_dirname_and_basename ()\
  22612. {\
  22613. \ case ${1} in\
  22614. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22615. \ * ) func_dirname_result="${3}" ;;\
  22616. \ esac\
  22617. \ func_basename_result="${1##*/}"\
  22618. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22619. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22620. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22621. test 0 -eq $? || _lt_function_replace_fail=:
  22622. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  22623. func_stripname ()\
  22624. {\
  22625. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  22626. \ # positional parameters, so assign one to ordinary parameter first.\
  22627. \ func_stripname_result=${3}\
  22628. \ func_stripname_result=${func_stripname_result#"${1}"}\
  22629. \ func_stripname_result=${func_stripname_result%"${2}"}\
  22630. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22631. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22632. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22633. test 0 -eq $? || _lt_function_replace_fail=:
  22634. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22635. func_split_long_opt ()\
  22636. {\
  22637. \ func_split_long_opt_name=${1%%=*}\
  22638. \ func_split_long_opt_arg=${1#*=}\
  22639. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22640. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22641. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22642. test 0 -eq $? || _lt_function_replace_fail=:
  22643. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  22644. func_split_short_opt ()\
  22645. {\
  22646. \ func_split_short_opt_arg=${1#??}\
  22647. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  22648. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22649. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22650. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22651. test 0 -eq $? || _lt_function_replace_fail=:
  22652. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  22653. func_lo2o ()\
  22654. {\
  22655. \ case ${1} in\
  22656. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  22657. \ *) func_lo2o_result=${1} ;;\
  22658. \ esac\
  22659. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  22660. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22661. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22662. test 0 -eq $? || _lt_function_replace_fail=:
  22663. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  22664. func_xform ()\
  22665. {\
  22666. func_xform_result=${1%.*}.lo\
  22667. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  22668. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22669. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22670. test 0 -eq $? || _lt_function_replace_fail=:
  22671. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  22672. func_arith ()\
  22673. {\
  22674. func_arith_result=$(( $* ))\
  22675. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  22676. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22677. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22678. test 0 -eq $? || _lt_function_replace_fail=:
  22679. sed -e '/^func_len ()$/,/^} # func_len /c\
  22680. func_len ()\
  22681. {\
  22682. func_len_result=${#1}\
  22683. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  22684. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22685. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22686. test 0 -eq $? || _lt_function_replace_fail=:
  22687. fi
  22688. if test x"$lt_shell_append" = xyes; then
  22689. sed -e '/^func_append ()$/,/^} # func_append /c\
  22690. func_append ()\
  22691. {\
  22692. eval "${1}+=\\${2}"\
  22693. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  22694. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22695. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22696. test 0 -eq $? || _lt_function_replace_fail=:
  22697. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  22698. func_append_quoted ()\
  22699. {\
  22700. \ func_quote_for_eval "${2}"\
  22701. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  22702. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  22703. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22704. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22705. test 0 -eq $? || _lt_function_replace_fail=:
  22706. # Save a `func_append' function call where possible by direct use of '+='
  22707. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  22708. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22709. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22710. test 0 -eq $? || _lt_function_replace_fail=:
  22711. else
  22712. # Save a `func_append' function call even when '+=' is not available
  22713. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  22714. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22715. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22716. test 0 -eq $? || _lt_function_replace_fail=:
  22717. fi
  22718. if test x"$_lt_function_replace_fail" = x":"; then
  22719. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  22720. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  22721. fi
  22722. mv -f "$cfgfile" "$ofile" ||
  22723. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  22724. chmod +x "$ofile"
  22725. cat <<_LT_EOF >> "$ofile"
  22726. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  22727. # The linker used to build libraries.
  22728. LD=$lt_LD_CXX
  22729. # How to create reloadable object files.
  22730. reload_flag=$lt_reload_flag_CXX
  22731. reload_cmds=$lt_reload_cmds_CXX
  22732. # Commands used to build an old-style archive.
  22733. old_archive_cmds=$lt_old_archive_cmds_CXX
  22734. # A language specific compiler.
  22735. CC=$lt_compiler_CXX
  22736. # Is the compiler the GNU compiler?
  22737. with_gcc=$GCC_CXX
  22738. # Compiler flag to turn off builtin functions.
  22739. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  22740. # Additional compiler flags for building library objects.
  22741. pic_flag=$lt_lt_prog_compiler_pic_CXX
  22742. # How to pass a linker flag through the compiler.
  22743. wl=$lt_lt_prog_compiler_wl_CXX
  22744. # Compiler flag to prevent dynamic linking.
  22745. link_static_flag=$lt_lt_prog_compiler_static_CXX
  22746. # Does compiler simultaneously support -c and -o options?
  22747. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  22748. # Whether or not to add -lc for building shared libraries.
  22749. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  22750. # Whether or not to disallow shared libs when runtime libs are static.
  22751. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  22752. # Compiler flag to allow reflexive dlopens.
  22753. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  22754. # Compiler flag to generate shared objects directly from archives.
  22755. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  22756. # Whether the compiler copes with passing no objects directly.
  22757. compiler_needs_object=$lt_compiler_needs_object_CXX
  22758. # Create an old-style archive from a shared archive.
  22759. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  22760. # Create a temporary old-style archive to link instead of a shared archive.
  22761. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  22762. # Commands used to build a shared archive.
  22763. archive_cmds=$lt_archive_cmds_CXX
  22764. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  22765. # Commands used to build a loadable module if different from building
  22766. # a shared archive.
  22767. module_cmds=$lt_module_cmds_CXX
  22768. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  22769. # Whether we are building with GNU ld or not.
  22770. with_gnu_ld=$lt_with_gnu_ld_CXX
  22771. # Flag that allows shared libraries with undefined symbols to be built.
  22772. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  22773. # Flag that enforces no undefined symbols.
  22774. no_undefined_flag=$lt_no_undefined_flag_CXX
  22775. # Flag to hardcode \$libdir into a binary during linking.
  22776. # This must work even if \$libdir does not exist
  22777. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  22778. # Whether we need a single "-rpath" flag with a separated argument.
  22779. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  22780. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22781. # DIR into the resulting binary.
  22782. hardcode_direct=$hardcode_direct_CXX
  22783. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22784. # DIR into the resulting binary and the resulting library dependency is
  22785. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22786. # library is relocated.
  22787. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  22788. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22789. # into the resulting binary.
  22790. hardcode_minus_L=$hardcode_minus_L_CXX
  22791. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22792. # into the resulting binary.
  22793. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  22794. # Set to "yes" if building a shared library automatically hardcodes DIR
  22795. # into the library and all subsequent libraries and executables linked
  22796. # against it.
  22797. hardcode_automatic=$hardcode_automatic_CXX
  22798. # Set to yes if linker adds runtime paths of dependent libraries
  22799. # to runtime path list.
  22800. inherit_rpath=$inherit_rpath_CXX
  22801. # Whether libtool must link a program against all its dependency libraries.
  22802. link_all_deplibs=$link_all_deplibs_CXX
  22803. # Set to "yes" if exported symbols are required.
  22804. always_export_symbols=$always_export_symbols_CXX
  22805. # The commands to list exported symbols.
  22806. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  22807. # Symbols that should not be listed in the preloaded symbols.
  22808. exclude_expsyms=$lt_exclude_expsyms_CXX
  22809. # Symbols that must always be exported.
  22810. include_expsyms=$lt_include_expsyms_CXX
  22811. # Commands necessary for linking programs (against libraries) with templates.
  22812. prelink_cmds=$lt_prelink_cmds_CXX
  22813. # Commands necessary for finishing linking programs.
  22814. postlink_cmds=$lt_postlink_cmds_CXX
  22815. # Specify filename containing input files.
  22816. file_list_spec=$lt_file_list_spec_CXX
  22817. # How to hardcode a shared library path into an executable.
  22818. hardcode_action=$hardcode_action_CXX
  22819. # The directories searched by this compiler when creating a shared library.
  22820. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  22821. # Dependencies to place before and after the objects being linked to
  22822. # create a shared library.
  22823. predep_objects=$lt_predep_objects_CXX
  22824. postdep_objects=$lt_postdep_objects_CXX
  22825. predeps=$lt_predeps_CXX
  22826. postdeps=$lt_postdeps_CXX
  22827. # The library search path used internally by the compiler when linking
  22828. # a shared library.
  22829. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  22830. # ### END LIBTOOL TAG CONFIG: CXX
  22831. _LT_EOF
  22832. ;;
  22833. "sdl2_config":C) chmod a+x sdl2-config ;;
  22834. "summary":C) echo -en "$SUMMARY" ;;
  22835. esac
  22836. done # for ac_tag
  22837. as_fn_exit 0
  22838. _ACEOF
  22839. ac_clean_files=$ac_clean_files_save
  22840. test $ac_write_fail = 0 ||
  22841. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  22842. # configure is writing to config.log, and then calls config.status.
  22843. # config.status does its own redirection, appending to config.log.
  22844. # Unfortunately, on DOS this fails, as config.log is still kept open
  22845. # by configure, so config.status won't be able to write to it; its
  22846. # output is simply discarded. So we exec the FD to /dev/null,
  22847. # effectively closing config.log, so it can be properly (re)opened and
  22848. # appended to by config.status. When coming back to configure, we
  22849. # need to make the FD available again.
  22850. if test "$no_create" != yes; then
  22851. ac_cs_success=:
  22852. ac_config_status_args=
  22853. test "$silent" = yes &&
  22854. ac_config_status_args="$ac_config_status_args --quiet"
  22855. exec 5>/dev/null
  22856. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22857. exec 5>>config.log
  22858. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22859. # would make configure fail if this is the last instruction.
  22860. $ac_cs_success || as_fn_exit 1
  22861. fi
  22862. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22864. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22865. fi