configure 753 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721
  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. EXTRA_LDFLAGS
  582. BUILD_LDFLAGS
  583. EXTRA_CFLAGS
  584. BUILD_CFLAGS
  585. SDLTEST_OBJECTS
  586. SDLMAIN_OBJECTS
  587. VERSION_OBJECTS
  588. OBJECTS
  589. INCLUDE
  590. ac_aux_dir
  591. ENABLE_STATIC_FALSE
  592. ENABLE_STATIC_TRUE
  593. ENABLE_SHARED_FALSE
  594. ENABLE_SHARED_TRUE
  595. SDL_RLD_FLAGS
  596. SDL_STATIC_LIBS
  597. SDL_LIBS
  598. SDL_CFLAGS
  599. DIRECTFBCONFIG
  600. X_EXTRA_LIBS
  601. X_LIBS
  602. X_PRE_LIBS
  603. X_CFLAGS
  604. XMKMF
  605. ARTSCONFIG
  606. PKG_CONFIG
  607. ESD_LIBS
  608. ESD_CFLAGS
  609. ESD_CONFIG
  610. ALSA_LIBS
  611. ALSA_CFLAGS
  612. POW_LIB
  613. LIBOBJS
  614. ALLOCA
  615. WINDRES
  616. SET_MAKE
  617. INSTALL_DATA
  618. INSTALL_SCRIPT
  619. INSTALL_PROGRAM
  620. CXXCPP
  621. ac_ct_CXX
  622. CXXFLAGS
  623. CXX
  624. LT_AGE
  625. LT_REVISION
  626. LT_CURRENT
  627. LT_RELEASE
  628. CPP
  629. OTOOL64
  630. OTOOL
  631. LIPO
  632. NMEDIT
  633. DSYMUTIL
  634. MANIFEST_TOOL
  635. AWK
  636. RANLIB
  637. STRIP
  638. ac_ct_AR
  639. AR
  640. LN_S
  641. NM
  642. ac_ct_DUMPBIN
  643. DUMPBIN
  644. LD
  645. FGREP
  646. EGREP
  647. GREP
  648. SED
  649. OBJEXT
  650. EXEEXT
  651. ac_ct_CC
  652. CPPFLAGS
  653. LDFLAGS
  654. CFLAGS
  655. CC
  656. host_os
  657. host_vendor
  658. host_cpu
  659. host
  660. build_os
  661. build_vendor
  662. build_cpu
  663. build
  664. LIBTOOL
  665. OBJDUMP
  666. DLLTOOL
  667. AS
  668. SDL_VERSION
  669. SDL_BINARY_AGE
  670. SDL_INTERFACE_AGE
  671. SDL_MICRO_VERSION
  672. SDL_MINOR_VERSION
  673. SDL_MAJOR_VERSION
  674. target_alias
  675. host_alias
  676. build_alias
  677. LIBS
  678. ECHO_T
  679. ECHO_N
  680. ECHO_C
  681. DEFS
  682. mandir
  683. localedir
  684. libdir
  685. psdir
  686. pdfdir
  687. dvidir
  688. htmldir
  689. infodir
  690. docdir
  691. oldincludedir
  692. includedir
  693. localstatedir
  694. sharedstatedir
  695. sysconfdir
  696. datadir
  697. datarootdir
  698. libexecdir
  699. sbindir
  700. bindir
  701. program_transform_name
  702. prefix
  703. exec_prefix
  704. PACKAGE_URL
  705. PACKAGE_BUGREPORT
  706. PACKAGE_STRING
  707. PACKAGE_VERSION
  708. PACKAGE_TARNAME
  709. PACKAGE_NAME
  710. PATH_SEPARATOR
  711. SHELL'
  712. ac_subst_files=''
  713. ac_user_opts='
  714. enable_option_checking
  715. enable_shared
  716. enable_static
  717. with_pic
  718. enable_fast_install
  719. with_gnu_ld
  720. with_sysroot
  721. enable_libtool_lock
  722. enable_assertions
  723. enable_dependency_tracking
  724. enable_libc
  725. enable_gcc_atomics
  726. enable_atomic
  727. enable_audio
  728. enable_video
  729. enable_render
  730. enable_events
  731. enable_joystick
  732. enable_haptic
  733. enable_power
  734. enable_filesystem
  735. enable_threads
  736. enable_timers
  737. enable_file
  738. enable_loadso
  739. enable_cpuinfo
  740. enable_assembly
  741. enable_ssemath
  742. enable_mmx
  743. enable_3dnow
  744. enable_sse
  745. enable_sse2
  746. enable_altivec
  747. enable_oss
  748. enable_alsa
  749. with_alsa_prefix
  750. with_alsa_inc_prefix
  751. enable_alsatest
  752. enable_alsa_shared
  753. enable_esd
  754. with_esd_prefix
  755. with_esd_exec_prefix
  756. enable_esdtest
  757. enable_esd_shared
  758. enable_pulseaudio
  759. enable_pulseaudio_shared
  760. enable_arts
  761. enable_arts_shared
  762. enable_nas
  763. enable_nas_shared
  764. enable_sndio
  765. enable_sndio_shared
  766. enable_diskaudio
  767. enable_dummyaudio
  768. enable_video_mir
  769. enable_video_wayland
  770. enable_video_wayland_qt_touch
  771. enable_wayland_shared
  772. enable_video_x11
  773. with_x
  774. enable_x11_shared
  775. enable_video_x11_xcursor
  776. enable_video_x11_xinerama
  777. enable_video_x11_xinput
  778. enable_video_x11_xrandr
  779. enable_video_x11_scrnsaver
  780. enable_video_x11_xshape
  781. enable_video_x11_vm
  782. enable_video_cocoa
  783. enable_video_directfb
  784. enable_directfb_shared
  785. enable_fusionsound
  786. enable_fusionsound_shared
  787. enable_video_dummy
  788. enable_video_opengl
  789. enable_video_opengles
  790. enable_libudev
  791. enable_dbus
  792. enable_input_tslib
  793. enable_pthreads
  794. enable_pthread_sem
  795. enable_directx
  796. enable_sdl_dlopen
  797. enable_clock_gettime
  798. enable_rpath
  799. enable_render_d3d
  800. '
  801. ac_precious_vars='build_alias
  802. host_alias
  803. target_alias
  804. CC
  805. CFLAGS
  806. LDFLAGS
  807. LIBS
  808. CPPFLAGS
  809. CPP
  810. CXX
  811. CXXFLAGS
  812. CCC
  813. CXXCPP
  814. XMKMF'
  815. # Initialize some variables set by options.
  816. ac_init_help=
  817. ac_init_version=false
  818. ac_unrecognized_opts=
  819. ac_unrecognized_sep=
  820. # The variables have the same names as the options, with
  821. # dashes changed to underlines.
  822. cache_file=/dev/null
  823. exec_prefix=NONE
  824. no_create=
  825. no_recursion=
  826. prefix=NONE
  827. program_prefix=NONE
  828. program_suffix=NONE
  829. program_transform_name=s,x,x,
  830. silent=
  831. site=
  832. srcdir=
  833. verbose=
  834. x_includes=NONE
  835. x_libraries=NONE
  836. # Installation directory options.
  837. # These are left unexpanded so users can "make install exec_prefix=/foo"
  838. # and all the variables that are supposed to be based on exec_prefix
  839. # by default will actually change.
  840. # Use braces instead of parens because sh, perl, etc. also accept them.
  841. # (The list follows the same order as the GNU Coding Standards.)
  842. bindir='${exec_prefix}/bin'
  843. sbindir='${exec_prefix}/sbin'
  844. libexecdir='${exec_prefix}/libexec'
  845. datarootdir='${prefix}/share'
  846. datadir='${datarootdir}'
  847. sysconfdir='${prefix}/etc'
  848. sharedstatedir='${prefix}/com'
  849. localstatedir='${prefix}/var'
  850. includedir='${prefix}/include'
  851. oldincludedir='/usr/include'
  852. docdir='${datarootdir}/doc/${PACKAGE}'
  853. infodir='${datarootdir}/info'
  854. htmldir='${docdir}'
  855. dvidir='${docdir}'
  856. pdfdir='${docdir}'
  857. psdir='${docdir}'
  858. libdir='${exec_prefix}/lib'
  859. localedir='${datarootdir}/locale'
  860. mandir='${datarootdir}/man'
  861. ac_prev=
  862. ac_dashdash=
  863. for ac_option
  864. do
  865. # If the previous option needs an argument, assign it.
  866. if test -n "$ac_prev"; then
  867. eval $ac_prev=\$ac_option
  868. ac_prev=
  869. continue
  870. fi
  871. case $ac_option in
  872. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  873. *=) ac_optarg= ;;
  874. *) ac_optarg=yes ;;
  875. esac
  876. # Accept the important Cygnus configure options, so we can diagnose typos.
  877. case $ac_dashdash$ac_option in
  878. --)
  879. ac_dashdash=yes ;;
  880. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  881. ac_prev=bindir ;;
  882. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  883. bindir=$ac_optarg ;;
  884. -build | --build | --buil | --bui | --bu)
  885. ac_prev=build_alias ;;
  886. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  887. build_alias=$ac_optarg ;;
  888. -cache-file | --cache-file | --cache-fil | --cache-fi \
  889. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  890. ac_prev=cache_file ;;
  891. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  892. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  893. cache_file=$ac_optarg ;;
  894. --config-cache | -C)
  895. cache_file=config.cache ;;
  896. -datadir | --datadir | --datadi | --datad)
  897. ac_prev=datadir ;;
  898. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  899. datadir=$ac_optarg ;;
  900. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  901. | --dataroo | --dataro | --datar)
  902. ac_prev=datarootdir ;;
  903. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  904. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  905. datarootdir=$ac_optarg ;;
  906. -disable-* | --disable-*)
  907. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  908. # Reject names that are not valid shell variable names.
  909. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  910. as_fn_error $? "invalid feature name: $ac_useropt"
  911. ac_useropt_orig=$ac_useropt
  912. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  913. case $ac_user_opts in
  914. *"
  915. "enable_$ac_useropt"
  916. "*) ;;
  917. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  918. ac_unrecognized_sep=', ';;
  919. esac
  920. eval enable_$ac_useropt=no ;;
  921. -docdir | --docdir | --docdi | --doc | --do)
  922. ac_prev=docdir ;;
  923. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  924. docdir=$ac_optarg ;;
  925. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  926. ac_prev=dvidir ;;
  927. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  928. dvidir=$ac_optarg ;;
  929. -enable-* | --enable-*)
  930. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  931. # Reject names that are not valid shell variable names.
  932. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  933. as_fn_error $? "invalid feature name: $ac_useropt"
  934. ac_useropt_orig=$ac_useropt
  935. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  936. case $ac_user_opts in
  937. *"
  938. "enable_$ac_useropt"
  939. "*) ;;
  940. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  941. ac_unrecognized_sep=', ';;
  942. esac
  943. eval enable_$ac_useropt=\$ac_optarg ;;
  944. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  945. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  946. | --exec | --exe | --ex)
  947. ac_prev=exec_prefix ;;
  948. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  949. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  950. | --exec=* | --exe=* | --ex=*)
  951. exec_prefix=$ac_optarg ;;
  952. -gas | --gas | --ga | --g)
  953. # Obsolete; use --with-gas.
  954. with_gas=yes ;;
  955. -help | --help | --hel | --he | -h)
  956. ac_init_help=long ;;
  957. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  958. ac_init_help=recursive ;;
  959. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  960. ac_init_help=short ;;
  961. -host | --host | --hos | --ho)
  962. ac_prev=host_alias ;;
  963. -host=* | --host=* | --hos=* | --ho=*)
  964. host_alias=$ac_optarg ;;
  965. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  966. ac_prev=htmldir ;;
  967. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  968. | --ht=*)
  969. htmldir=$ac_optarg ;;
  970. -includedir | --includedir | --includedi | --included | --include \
  971. | --includ | --inclu | --incl | --inc)
  972. ac_prev=includedir ;;
  973. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  974. | --includ=* | --inclu=* | --incl=* | --inc=*)
  975. includedir=$ac_optarg ;;
  976. -infodir | --infodir | --infodi | --infod | --info | --inf)
  977. ac_prev=infodir ;;
  978. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  979. infodir=$ac_optarg ;;
  980. -libdir | --libdir | --libdi | --libd)
  981. ac_prev=libdir ;;
  982. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  983. libdir=$ac_optarg ;;
  984. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  985. | --libexe | --libex | --libe)
  986. ac_prev=libexecdir ;;
  987. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  988. | --libexe=* | --libex=* | --libe=*)
  989. libexecdir=$ac_optarg ;;
  990. -localedir | --localedir | --localedi | --localed | --locale)
  991. ac_prev=localedir ;;
  992. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  993. localedir=$ac_optarg ;;
  994. -localstatedir | --localstatedir | --localstatedi | --localstated \
  995. | --localstate | --localstat | --localsta | --localst | --locals)
  996. ac_prev=localstatedir ;;
  997. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  998. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  999. localstatedir=$ac_optarg ;;
  1000. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1001. ac_prev=mandir ;;
  1002. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1003. mandir=$ac_optarg ;;
  1004. -nfp | --nfp | --nf)
  1005. # Obsolete; use --without-fp.
  1006. with_fp=no ;;
  1007. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1008. | --no-cr | --no-c | -n)
  1009. no_create=yes ;;
  1010. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1011. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1012. no_recursion=yes ;;
  1013. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1014. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1015. | --oldin | --oldi | --old | --ol | --o)
  1016. ac_prev=oldincludedir ;;
  1017. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1018. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1019. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1020. oldincludedir=$ac_optarg ;;
  1021. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1022. ac_prev=prefix ;;
  1023. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1024. prefix=$ac_optarg ;;
  1025. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1026. | --program-pre | --program-pr | --program-p)
  1027. ac_prev=program_prefix ;;
  1028. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1029. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1030. program_prefix=$ac_optarg ;;
  1031. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1032. | --program-suf | --program-su | --program-s)
  1033. ac_prev=program_suffix ;;
  1034. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1035. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1036. program_suffix=$ac_optarg ;;
  1037. -program-transform-name | --program-transform-name \
  1038. | --program-transform-nam | --program-transform-na \
  1039. | --program-transform-n | --program-transform- \
  1040. | --program-transform | --program-transfor \
  1041. | --program-transfo | --program-transf \
  1042. | --program-trans | --program-tran \
  1043. | --progr-tra | --program-tr | --program-t)
  1044. ac_prev=program_transform_name ;;
  1045. -program-transform-name=* | --program-transform-name=* \
  1046. | --program-transform-nam=* | --program-transform-na=* \
  1047. | --program-transform-n=* | --program-transform-=* \
  1048. | --program-transform=* | --program-transfor=* \
  1049. | --program-transfo=* | --program-transf=* \
  1050. | --program-trans=* | --program-tran=* \
  1051. | --progr-tra=* | --program-tr=* | --program-t=*)
  1052. program_transform_name=$ac_optarg ;;
  1053. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1054. ac_prev=pdfdir ;;
  1055. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1056. pdfdir=$ac_optarg ;;
  1057. -psdir | --psdir | --psdi | --psd | --ps)
  1058. ac_prev=psdir ;;
  1059. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1060. psdir=$ac_optarg ;;
  1061. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1062. | -silent | --silent | --silen | --sile | --sil)
  1063. silent=yes ;;
  1064. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1065. ac_prev=sbindir ;;
  1066. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1067. | --sbi=* | --sb=*)
  1068. sbindir=$ac_optarg ;;
  1069. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1070. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1071. | --sharedst | --shareds | --shared | --share | --shar \
  1072. | --sha | --sh)
  1073. ac_prev=sharedstatedir ;;
  1074. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1075. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1076. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1077. | --sha=* | --sh=*)
  1078. sharedstatedir=$ac_optarg ;;
  1079. -site | --site | --sit)
  1080. ac_prev=site ;;
  1081. -site=* | --site=* | --sit=*)
  1082. site=$ac_optarg ;;
  1083. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1084. ac_prev=srcdir ;;
  1085. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1086. srcdir=$ac_optarg ;;
  1087. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1088. | --syscon | --sysco | --sysc | --sys | --sy)
  1089. ac_prev=sysconfdir ;;
  1090. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1091. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1092. sysconfdir=$ac_optarg ;;
  1093. -target | --target | --targe | --targ | --tar | --ta | --t)
  1094. ac_prev=target_alias ;;
  1095. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1096. target_alias=$ac_optarg ;;
  1097. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1098. verbose=yes ;;
  1099. -version | --version | --versio | --versi | --vers | -V)
  1100. ac_init_version=: ;;
  1101. -with-* | --with-*)
  1102. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1103. # Reject names that are not valid shell variable names.
  1104. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1105. as_fn_error $? "invalid package name: $ac_useropt"
  1106. ac_useropt_orig=$ac_useropt
  1107. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1108. case $ac_user_opts in
  1109. *"
  1110. "with_$ac_useropt"
  1111. "*) ;;
  1112. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1113. ac_unrecognized_sep=', ';;
  1114. esac
  1115. eval with_$ac_useropt=\$ac_optarg ;;
  1116. -without-* | --without-*)
  1117. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1118. # Reject names that are not valid shell variable names.
  1119. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1120. as_fn_error $? "invalid package name: $ac_useropt"
  1121. ac_useropt_orig=$ac_useropt
  1122. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1123. case $ac_user_opts in
  1124. *"
  1125. "with_$ac_useropt"
  1126. "*) ;;
  1127. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1128. ac_unrecognized_sep=', ';;
  1129. esac
  1130. eval with_$ac_useropt=no ;;
  1131. --x)
  1132. # Obsolete; use --with-x.
  1133. with_x=yes ;;
  1134. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1135. | --x-incl | --x-inc | --x-in | --x-i)
  1136. ac_prev=x_includes ;;
  1137. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1138. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1139. x_includes=$ac_optarg ;;
  1140. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1141. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1142. ac_prev=x_libraries ;;
  1143. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1144. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1145. x_libraries=$ac_optarg ;;
  1146. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1147. Try \`$0 --help' for more information"
  1148. ;;
  1149. *=*)
  1150. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1151. # Reject names that are not valid shell variable names.
  1152. case $ac_envvar in #(
  1153. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1154. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1155. esac
  1156. eval $ac_envvar=\$ac_optarg
  1157. export $ac_envvar ;;
  1158. *)
  1159. # FIXME: should be removed in autoconf 3.0.
  1160. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1161. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1162. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1163. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1164. ;;
  1165. esac
  1166. done
  1167. if test -n "$ac_prev"; then
  1168. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1169. as_fn_error $? "missing argument to $ac_option"
  1170. fi
  1171. if test -n "$ac_unrecognized_opts"; then
  1172. case $enable_option_checking in
  1173. no) ;;
  1174. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1175. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1176. esac
  1177. fi
  1178. # Check all directory arguments for consistency.
  1179. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1180. datadir sysconfdir sharedstatedir localstatedir includedir \
  1181. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1182. libdir localedir mandir
  1183. do
  1184. eval ac_val=\$$ac_var
  1185. # Remove trailing slashes.
  1186. case $ac_val in
  1187. */ )
  1188. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1189. eval $ac_var=\$ac_val;;
  1190. esac
  1191. # Be sure to have absolute directory names.
  1192. case $ac_val in
  1193. [\\/$]* | ?:[\\/]* ) continue;;
  1194. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1195. esac
  1196. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1197. done
  1198. # There might be people who depend on the old broken behavior: `$host'
  1199. # used to hold the argument of --host etc.
  1200. # FIXME: To remove some day.
  1201. build=$build_alias
  1202. host=$host_alias
  1203. target=$target_alias
  1204. # FIXME: To remove some day.
  1205. if test "x$host_alias" != x; then
  1206. if test "x$build_alias" = x; then
  1207. cross_compiling=maybe
  1208. elif test "x$build_alias" != "x$host_alias"; then
  1209. cross_compiling=yes
  1210. fi
  1211. fi
  1212. ac_tool_prefix=
  1213. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1214. test "$silent" = yes && exec 6>/dev/null
  1215. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1216. ac_ls_di=`ls -di .` &&
  1217. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1218. as_fn_error $? "working directory cannot be determined"
  1219. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1220. as_fn_error $? "pwd does not report name of working directory"
  1221. # Find the source files, if location was not specified.
  1222. if test -z "$srcdir"; then
  1223. ac_srcdir_defaulted=yes
  1224. # Try the directory containing this script, then the parent directory.
  1225. ac_confdir=`$as_dirname -- "$as_myself" ||
  1226. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1227. X"$as_myself" : 'X\(//\)[^/]' \| \
  1228. X"$as_myself" : 'X\(//\)$' \| \
  1229. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1230. $as_echo X"$as_myself" |
  1231. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1232. s//\1/
  1233. q
  1234. }
  1235. /^X\(\/\/\)[^/].*/{
  1236. s//\1/
  1237. q
  1238. }
  1239. /^X\(\/\/\)$/{
  1240. s//\1/
  1241. q
  1242. }
  1243. /^X\(\/\).*/{
  1244. s//\1/
  1245. q
  1246. }
  1247. s/.*/./; q'`
  1248. srcdir=$ac_confdir
  1249. if test ! -r "$srcdir/$ac_unique_file"; then
  1250. srcdir=..
  1251. fi
  1252. else
  1253. ac_srcdir_defaulted=no
  1254. fi
  1255. if test ! -r "$srcdir/$ac_unique_file"; then
  1256. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1257. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1258. fi
  1259. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1260. ac_abs_confdir=`(
  1261. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1262. pwd)`
  1263. # When building in place, set srcdir=.
  1264. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1265. srcdir=.
  1266. fi
  1267. # Remove unnecessary trailing slashes from srcdir.
  1268. # Double slashes in file names in object file debugging info
  1269. # mess up M-x gdb in Emacs.
  1270. case $srcdir in
  1271. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1272. esac
  1273. for ac_var in $ac_precious_vars; do
  1274. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1275. eval ac_env_${ac_var}_value=\$${ac_var}
  1276. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1277. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1278. done
  1279. #
  1280. # Report the --help message.
  1281. #
  1282. if test "$ac_init_help" = "long"; then
  1283. # Omit some internal or obsolete options to make the list less imposing.
  1284. # This message is too long to be a string in the A/UX 3.1 sh.
  1285. cat <<_ACEOF
  1286. \`configure' configures this package to adapt to many kinds of systems.
  1287. Usage: $0 [OPTION]... [VAR=VALUE]...
  1288. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1289. VAR=VALUE. See below for descriptions of some of the useful variables.
  1290. Defaults for the options are specified in brackets.
  1291. Configuration:
  1292. -h, --help display this help and exit
  1293. --help=short display options specific to this package
  1294. --help=recursive display the short help of all the included packages
  1295. -V, --version display version information and exit
  1296. -q, --quiet, --silent do not print \`checking ...' messages
  1297. --cache-file=FILE cache test results in FILE [disabled]
  1298. -C, --config-cache alias for \`--cache-file=config.cache'
  1299. -n, --no-create do not create output files
  1300. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1301. Installation directories:
  1302. --prefix=PREFIX install architecture-independent files in PREFIX
  1303. [$ac_default_prefix]
  1304. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1305. [PREFIX]
  1306. By default, \`make install' will install all the files in
  1307. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1308. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1309. for instance \`--prefix=\$HOME'.
  1310. For better control, use the options below.
  1311. Fine tuning of the installation directories:
  1312. --bindir=DIR user executables [EPREFIX/bin]
  1313. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1314. --libexecdir=DIR program executables [EPREFIX/libexec]
  1315. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1316. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1317. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1318. --libdir=DIR object code libraries [EPREFIX/lib]
  1319. --includedir=DIR C header files [PREFIX/include]
  1320. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1321. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1322. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1323. --infodir=DIR info documentation [DATAROOTDIR/info]
  1324. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1325. --mandir=DIR man documentation [DATAROOTDIR/man]
  1326. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1327. --htmldir=DIR html documentation [DOCDIR]
  1328. --dvidir=DIR dvi documentation [DOCDIR]
  1329. --pdfdir=DIR pdf documentation [DOCDIR]
  1330. --psdir=DIR ps documentation [DOCDIR]
  1331. _ACEOF
  1332. cat <<\_ACEOF
  1333. X features:
  1334. --x-includes=DIR X include files are in DIR
  1335. --x-libraries=DIR X library files are in DIR
  1336. System types:
  1337. --build=BUILD configure for building on BUILD [guessed]
  1338. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1339. _ACEOF
  1340. fi
  1341. if test -n "$ac_init_help"; then
  1342. cat <<\_ACEOF
  1343. Optional Features:
  1344. --disable-option-checking ignore unrecognized --enable/--with options
  1345. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1346. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1347. --enable-shared[=PKGS] build shared libraries [default=yes]
  1348. --enable-static[=PKGS] build static libraries [default=yes]
  1349. --enable-fast-install[=PKGS]
  1350. optimize for fast installation [default=yes]
  1351. --disable-libtool-lock avoid locking (might break parallel builds)
  1352. --enable-assertions Enable internal sanity checks
  1353. (auto/disabled/release/enabled/paranoid)
  1354. [[default=auto]]
  1355. --enable-dependency-tracking
  1356. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1357. --enable-libc Use the system C library [[default=yes]]
  1358. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1359. --enable-atomic Enable the atomic operations subsystem
  1360. [[default=yes]]
  1361. --enable-audio Enable the audio subsystem [[default=yes]]
  1362. --enable-video Enable the video subsystem [[default=yes]]
  1363. --enable-render Enable the render subsystem [[default=yes]]
  1364. --enable-events Enable the events subsystem [[default=yes]]
  1365. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1366. --enable-haptic Enable the haptic (force feedback) subsystem
  1367. [[default=yes]]
  1368. --enable-power Enable the power subsystem [[default=yes]]
  1369. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1370. --enable-threads Enable the threading subsystem [[default=yes]]
  1371. --enable-timers Enable the timer subsystem [[default=yes]]
  1372. --enable-file Enable the file subsystem [[default=yes]]
  1373. --enable-loadso Enable the shared object loading subsystem
  1374. [[default=yes]]
  1375. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1376. --enable-assembly Enable assembly routines [[default=yes]]
  1377. --enable-ssemath Allow GCC to use SSE floating point math
  1378. [[default=no]]
  1379. --enable-mmx use MMX assembly routines [[default=yes]]
  1380. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1381. --enable-sse use SSE assembly routines [[default=yes]]
  1382. --enable-sse2 use SSE2 assembly routines [[default=no]]
  1383. --enable-altivec use Altivec assembly routines [[default=yes]]
  1384. --enable-oss support the OSS audio API [[default=maybe]]
  1385. --enable-alsa support the ALSA audio API [[default=yes]]
  1386. --disable-alsatest Do not try to compile and run a test Alsa program
  1387. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1388. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1389. --disable-esdtest Do not try to compile and run a test ESD program
  1390. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1391. --enable-pulseaudio use PulseAudio [[default=yes]]
  1392. --enable-pulseaudio-shared
  1393. dynamically load PulseAudio support [[default=yes]]
  1394. --enable-arts support the Analog Real Time Synthesizer
  1395. [[default=yes]]
  1396. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1397. --enable-nas support the NAS audio API [[default=yes]]
  1398. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1399. --enable-sndio support the sndio audio API [[default=yes]]
  1400. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1401. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1402. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1403. --enable-video-mir use Mir video driver [[default=yes]]
  1404. --enable-video-wayland use Wayland video driver [[default=yes]]
  1405. --enable-video-wayland-qt-touch
  1406. QtWayland server support for Wayland video driver
  1407. [[default=yes]]
  1408. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1409. --enable-video-x11 use X11 video driver [[default=yes]]
  1410. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1411. --enable-video-x11-xcursor
  1412. enable X11 Xcursor support [[default=yes]]
  1413. --enable-video-x11-xinerama
  1414. enable X11 Xinerama support [[default=yes]]
  1415. --enable-video-x11-xinput
  1416. enable X11 XInput extension for manymouse, tablets,
  1417. etc [[default=yes]]
  1418. --enable-video-x11-xrandr
  1419. enable X11 Xrandr extension for fullscreen
  1420. [[default=yes]]
  1421. --enable-video-x11-scrnsaver
  1422. enable X11 screensaver extension [[default=yes]]
  1423. --enable-video-x11-xshape
  1424. enable X11 XShape support [[default=yes]]
  1425. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1426. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1427. --enable-video-directfb use DirectFB video driver [[default=no]]
  1428. --enable-directfb-shared
  1429. dynamically load directfb support [[default=yes]]
  1430. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1431. --enable-fusionsound-shared
  1432. dynamically load fusionsound audio support
  1433. [[default=yes]]
  1434. --enable-video-dummy use dummy video driver [[default=yes]]
  1435. --enable-video-opengl include OpenGL support [[default=yes]]
  1436. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1437. --enable-libudev enable libudev support [[default=yes]]
  1438. --enable-dbus enable D-Bus support [[default=yes]]
  1439. --enable-input-tslib use the Touchscreen library for input
  1440. [[default=yes]]
  1441. --enable-pthreads use POSIX threads for multi-threading
  1442. [[default=yes]]
  1443. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1444. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1445. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1446. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1447. UNIX [[default=yes]]
  1448. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1449. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1450. Optional Packages:
  1451. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1452. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1453. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1454. both]
  1455. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1456. --with-sysroot=DIR Search for dependent libraries within DIR
  1457. (or the compiler's sysroot if not specified).
  1458. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1459. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1460. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1461. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1462. --with-x use the X Window System
  1463. Some influential environment variables:
  1464. CC C compiler command
  1465. CFLAGS C compiler flags
  1466. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1467. nonstandard directory <lib dir>
  1468. LIBS libraries to pass to the linker, e.g. -l<library>
  1469. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1470. you have headers in a nonstandard directory <include dir>
  1471. CPP C preprocessor
  1472. CXX C++ compiler command
  1473. CXXFLAGS C++ compiler flags
  1474. CXXCPP C++ preprocessor
  1475. XMKMF Path to xmkmf, Makefile generator for X Window System
  1476. Use these variables to override the choices made by `configure' or to help
  1477. it to find libraries and programs with nonstandard names/locations.
  1478. Report bugs to the package provider.
  1479. _ACEOF
  1480. ac_status=$?
  1481. fi
  1482. if test "$ac_init_help" = "recursive"; then
  1483. # If there are subdirs, report their specific --help.
  1484. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1485. test -d "$ac_dir" ||
  1486. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1487. continue
  1488. ac_builddir=.
  1489. case "$ac_dir" in
  1490. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1491. *)
  1492. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1493. # A ".." for each directory in $ac_dir_suffix.
  1494. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1495. case $ac_top_builddir_sub in
  1496. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1497. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1498. esac ;;
  1499. esac
  1500. ac_abs_top_builddir=$ac_pwd
  1501. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1502. # for backward compatibility:
  1503. ac_top_builddir=$ac_top_build_prefix
  1504. case $srcdir in
  1505. .) # We are building in place.
  1506. ac_srcdir=.
  1507. ac_top_srcdir=$ac_top_builddir_sub
  1508. ac_abs_top_srcdir=$ac_pwd ;;
  1509. [\\/]* | ?:[\\/]* ) # Absolute name.
  1510. ac_srcdir=$srcdir$ac_dir_suffix;
  1511. ac_top_srcdir=$srcdir
  1512. ac_abs_top_srcdir=$srcdir ;;
  1513. *) # Relative name.
  1514. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1515. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1516. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1517. esac
  1518. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1519. cd "$ac_dir" || { ac_status=$?; continue; }
  1520. # Check for guested configure.
  1521. if test -f "$ac_srcdir/configure.gnu"; then
  1522. echo &&
  1523. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1524. elif test -f "$ac_srcdir/configure"; then
  1525. echo &&
  1526. $SHELL "$ac_srcdir/configure" --help=recursive
  1527. else
  1528. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1529. fi || ac_status=$?
  1530. cd "$ac_pwd" || { ac_status=$?; break; }
  1531. done
  1532. fi
  1533. test -n "$ac_init_help" && exit $ac_status
  1534. if $ac_init_version; then
  1535. cat <<\_ACEOF
  1536. configure
  1537. generated by GNU Autoconf 2.69
  1538. Copyright (C) 2012 Free Software Foundation, Inc.
  1539. This configure script is free software; the Free Software Foundation
  1540. gives unlimited permission to copy, distribute and modify it.
  1541. _ACEOF
  1542. exit
  1543. fi
  1544. ## ------------------------ ##
  1545. ## Autoconf initialization. ##
  1546. ## ------------------------ ##
  1547. # ac_fn_c_try_compile LINENO
  1548. # --------------------------
  1549. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1550. ac_fn_c_try_compile ()
  1551. {
  1552. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1553. rm -f conftest.$ac_objext
  1554. if { { ac_try="$ac_compile"
  1555. case "(($ac_try" in
  1556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1557. *) ac_try_echo=$ac_try;;
  1558. esac
  1559. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1560. $as_echo "$ac_try_echo"; } >&5
  1561. (eval "$ac_compile") 2>conftest.err
  1562. ac_status=$?
  1563. if test -s conftest.err; then
  1564. grep -v '^ *+' conftest.err >conftest.er1
  1565. cat conftest.er1 >&5
  1566. mv -f conftest.er1 conftest.err
  1567. fi
  1568. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1569. test $ac_status = 0; } && {
  1570. test -z "$ac_c_werror_flag" ||
  1571. test ! -s conftest.err
  1572. } && test -s conftest.$ac_objext; then :
  1573. ac_retval=0
  1574. else
  1575. $as_echo "$as_me: failed program was:" >&5
  1576. sed 's/^/| /' conftest.$ac_ext >&5
  1577. ac_retval=1
  1578. fi
  1579. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1580. as_fn_set_status $ac_retval
  1581. } # ac_fn_c_try_compile
  1582. # ac_fn_c_try_link LINENO
  1583. # -----------------------
  1584. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1585. ac_fn_c_try_link ()
  1586. {
  1587. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1588. rm -f conftest.$ac_objext conftest$ac_exeext
  1589. if { { ac_try="$ac_link"
  1590. case "(($ac_try" in
  1591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1592. *) ac_try_echo=$ac_try;;
  1593. esac
  1594. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1595. $as_echo "$ac_try_echo"; } >&5
  1596. (eval "$ac_link") 2>conftest.err
  1597. ac_status=$?
  1598. if test -s conftest.err; then
  1599. grep -v '^ *+' conftest.err >conftest.er1
  1600. cat conftest.er1 >&5
  1601. mv -f conftest.er1 conftest.err
  1602. fi
  1603. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1604. test $ac_status = 0; } && {
  1605. test -z "$ac_c_werror_flag" ||
  1606. test ! -s conftest.err
  1607. } && test -s conftest$ac_exeext && {
  1608. test "$cross_compiling" = yes ||
  1609. test -x conftest$ac_exeext
  1610. }; then :
  1611. ac_retval=0
  1612. else
  1613. $as_echo "$as_me: failed program was:" >&5
  1614. sed 's/^/| /' conftest.$ac_ext >&5
  1615. ac_retval=1
  1616. fi
  1617. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1618. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1619. # interfere with the next link command; also delete a directory that is
  1620. # left behind by Apple's compiler. We do this before executing the actions.
  1621. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1622. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1623. as_fn_set_status $ac_retval
  1624. } # ac_fn_c_try_link
  1625. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1626. # -------------------------------------------------------
  1627. # Tests whether HEADER exists and can be compiled using the include files in
  1628. # INCLUDES, setting the cache variable VAR accordingly.
  1629. ac_fn_c_check_header_compile ()
  1630. {
  1631. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1633. $as_echo_n "checking for $2... " >&6; }
  1634. if eval \${$3+:} false; then :
  1635. $as_echo_n "(cached) " >&6
  1636. else
  1637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1638. /* end confdefs.h. */
  1639. $4
  1640. #include <$2>
  1641. _ACEOF
  1642. if ac_fn_c_try_compile "$LINENO"; then :
  1643. eval "$3=yes"
  1644. else
  1645. eval "$3=no"
  1646. fi
  1647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1648. fi
  1649. eval ac_res=\$$3
  1650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1651. $as_echo "$ac_res" >&6; }
  1652. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1653. } # ac_fn_c_check_header_compile
  1654. # ac_fn_c_try_cpp LINENO
  1655. # ----------------------
  1656. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1657. ac_fn_c_try_cpp ()
  1658. {
  1659. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1660. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1661. case "(($ac_try" in
  1662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1663. *) ac_try_echo=$ac_try;;
  1664. esac
  1665. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1666. $as_echo "$ac_try_echo"; } >&5
  1667. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1668. ac_status=$?
  1669. if test -s conftest.err; then
  1670. grep -v '^ *+' conftest.err >conftest.er1
  1671. cat conftest.er1 >&5
  1672. mv -f conftest.er1 conftest.err
  1673. fi
  1674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1675. test $ac_status = 0; } > conftest.i && {
  1676. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1677. test ! -s conftest.err
  1678. }; then :
  1679. ac_retval=0
  1680. else
  1681. $as_echo "$as_me: failed program was:" >&5
  1682. sed 's/^/| /' conftest.$ac_ext >&5
  1683. ac_retval=1
  1684. fi
  1685. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1686. as_fn_set_status $ac_retval
  1687. } # ac_fn_c_try_cpp
  1688. # ac_fn_c_try_run LINENO
  1689. # ----------------------
  1690. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1691. # that executables *can* be run.
  1692. ac_fn_c_try_run ()
  1693. {
  1694. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1695. if { { ac_try="$ac_link"
  1696. case "(($ac_try" in
  1697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1698. *) ac_try_echo=$ac_try;;
  1699. esac
  1700. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1701. $as_echo "$ac_try_echo"; } >&5
  1702. (eval "$ac_link") 2>&5
  1703. ac_status=$?
  1704. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1705. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1706. { { case "(($ac_try" in
  1707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1708. *) ac_try_echo=$ac_try;;
  1709. esac
  1710. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1711. $as_echo "$ac_try_echo"; } >&5
  1712. (eval "$ac_try") 2>&5
  1713. ac_status=$?
  1714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1715. test $ac_status = 0; }; }; then :
  1716. ac_retval=0
  1717. else
  1718. $as_echo "$as_me: program exited with status $ac_status" >&5
  1719. $as_echo "$as_me: failed program was:" >&5
  1720. sed 's/^/| /' conftest.$ac_ext >&5
  1721. ac_retval=$ac_status
  1722. fi
  1723. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1724. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1725. as_fn_set_status $ac_retval
  1726. } # ac_fn_c_try_run
  1727. # ac_fn_c_check_func LINENO FUNC VAR
  1728. # ----------------------------------
  1729. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1730. ac_fn_c_check_func ()
  1731. {
  1732. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1734. $as_echo_n "checking for $2... " >&6; }
  1735. if eval \${$3+:} false; then :
  1736. $as_echo_n "(cached) " >&6
  1737. else
  1738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1739. /* end confdefs.h. */
  1740. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1741. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1742. #define $2 innocuous_$2
  1743. /* System header to define __stub macros and hopefully few prototypes,
  1744. which can conflict with char $2 (); below.
  1745. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1746. <limits.h> exists even on freestanding compilers. */
  1747. #ifdef __STDC__
  1748. # include <limits.h>
  1749. #else
  1750. # include <assert.h>
  1751. #endif
  1752. #undef $2
  1753. /* Override any GCC internal prototype to avoid an error.
  1754. Use char because int might match the return type of a GCC
  1755. builtin and then its argument prototype would still apply. */
  1756. #ifdef __cplusplus
  1757. extern "C"
  1758. #endif
  1759. char $2 ();
  1760. /* The GNU C library defines this for functions which it implements
  1761. to always fail with ENOSYS. Some functions are actually named
  1762. something starting with __ and the normal name is an alias. */
  1763. #if defined __stub_$2 || defined __stub___$2
  1764. choke me
  1765. #endif
  1766. int
  1767. main ()
  1768. {
  1769. return $2 ();
  1770. ;
  1771. return 0;
  1772. }
  1773. _ACEOF
  1774. if ac_fn_c_try_link "$LINENO"; then :
  1775. eval "$3=yes"
  1776. else
  1777. eval "$3=no"
  1778. fi
  1779. rm -f core conftest.err conftest.$ac_objext \
  1780. conftest$ac_exeext conftest.$ac_ext
  1781. fi
  1782. eval ac_res=\$$3
  1783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1784. $as_echo "$ac_res" >&6; }
  1785. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1786. } # ac_fn_c_check_func
  1787. # ac_fn_cxx_try_compile LINENO
  1788. # ----------------------------
  1789. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1790. ac_fn_cxx_try_compile ()
  1791. {
  1792. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1793. rm -f conftest.$ac_objext
  1794. if { { ac_try="$ac_compile"
  1795. case "(($ac_try" in
  1796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1797. *) ac_try_echo=$ac_try;;
  1798. esac
  1799. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1800. $as_echo "$ac_try_echo"; } >&5
  1801. (eval "$ac_compile") 2>conftest.err
  1802. ac_status=$?
  1803. if test -s conftest.err; then
  1804. grep -v '^ *+' conftest.err >conftest.er1
  1805. cat conftest.er1 >&5
  1806. mv -f conftest.er1 conftest.err
  1807. fi
  1808. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1809. test $ac_status = 0; } && {
  1810. test -z "$ac_cxx_werror_flag" ||
  1811. test ! -s conftest.err
  1812. } && test -s conftest.$ac_objext; then :
  1813. ac_retval=0
  1814. else
  1815. $as_echo "$as_me: failed program was:" >&5
  1816. sed 's/^/| /' conftest.$ac_ext >&5
  1817. ac_retval=1
  1818. fi
  1819. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1820. as_fn_set_status $ac_retval
  1821. } # ac_fn_cxx_try_compile
  1822. # ac_fn_cxx_try_cpp LINENO
  1823. # ------------------------
  1824. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1825. ac_fn_cxx_try_cpp ()
  1826. {
  1827. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1828. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1829. case "(($ac_try" in
  1830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1831. *) ac_try_echo=$ac_try;;
  1832. esac
  1833. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1834. $as_echo "$ac_try_echo"; } >&5
  1835. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1836. ac_status=$?
  1837. if test -s conftest.err; then
  1838. grep -v '^ *+' conftest.err >conftest.er1
  1839. cat conftest.er1 >&5
  1840. mv -f conftest.er1 conftest.err
  1841. fi
  1842. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1843. test $ac_status = 0; } > conftest.i && {
  1844. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1845. test ! -s conftest.err
  1846. }; then :
  1847. ac_retval=0
  1848. else
  1849. $as_echo "$as_me: failed program was:" >&5
  1850. sed 's/^/| /' conftest.$ac_ext >&5
  1851. ac_retval=1
  1852. fi
  1853. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1854. as_fn_set_status $ac_retval
  1855. } # ac_fn_cxx_try_cpp
  1856. # ac_fn_cxx_try_link LINENO
  1857. # -------------------------
  1858. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1859. ac_fn_cxx_try_link ()
  1860. {
  1861. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1862. rm -f conftest.$ac_objext conftest$ac_exeext
  1863. if { { ac_try="$ac_link"
  1864. case "(($ac_try" in
  1865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1866. *) ac_try_echo=$ac_try;;
  1867. esac
  1868. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1869. $as_echo "$ac_try_echo"; } >&5
  1870. (eval "$ac_link") 2>conftest.err
  1871. ac_status=$?
  1872. if test -s conftest.err; then
  1873. grep -v '^ *+' conftest.err >conftest.er1
  1874. cat conftest.er1 >&5
  1875. mv -f conftest.er1 conftest.err
  1876. fi
  1877. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1878. test $ac_status = 0; } && {
  1879. test -z "$ac_cxx_werror_flag" ||
  1880. test ! -s conftest.err
  1881. } && test -s conftest$ac_exeext && {
  1882. test "$cross_compiling" = yes ||
  1883. test -x conftest$ac_exeext
  1884. }; then :
  1885. ac_retval=0
  1886. else
  1887. $as_echo "$as_me: failed program was:" >&5
  1888. sed 's/^/| /' conftest.$ac_ext >&5
  1889. ac_retval=1
  1890. fi
  1891. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1892. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1893. # interfere with the next link command; also delete a directory that is
  1894. # left behind by Apple's compiler. We do this before executing the actions.
  1895. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1896. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1897. as_fn_set_status $ac_retval
  1898. } # ac_fn_cxx_try_link
  1899. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1900. # -------------------------------------------------------
  1901. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1902. # the include files in INCLUDES and setting the cache variable VAR
  1903. # accordingly.
  1904. ac_fn_c_check_header_mongrel ()
  1905. {
  1906. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1907. if eval \${$3+:} false; then :
  1908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1909. $as_echo_n "checking for $2... " >&6; }
  1910. if eval \${$3+:} false; then :
  1911. $as_echo_n "(cached) " >&6
  1912. fi
  1913. eval ac_res=\$$3
  1914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1915. $as_echo "$ac_res" >&6; }
  1916. else
  1917. # Is the header compilable?
  1918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1919. $as_echo_n "checking $2 usability... " >&6; }
  1920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1921. /* end confdefs.h. */
  1922. $4
  1923. #include <$2>
  1924. _ACEOF
  1925. if ac_fn_c_try_compile "$LINENO"; then :
  1926. ac_header_compiler=yes
  1927. else
  1928. ac_header_compiler=no
  1929. fi
  1930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1932. $as_echo "$ac_header_compiler" >&6; }
  1933. # Is the header present?
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1935. $as_echo_n "checking $2 presence... " >&6; }
  1936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1937. /* end confdefs.h. */
  1938. #include <$2>
  1939. _ACEOF
  1940. if ac_fn_c_try_cpp "$LINENO"; then :
  1941. ac_header_preproc=yes
  1942. else
  1943. ac_header_preproc=no
  1944. fi
  1945. rm -f conftest.err conftest.i conftest.$ac_ext
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1947. $as_echo "$ac_header_preproc" >&6; }
  1948. # So? What about this header?
  1949. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1950. yes:no: )
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1952. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1954. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1955. ;;
  1956. no:yes:* )
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1958. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1960. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1962. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1964. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1966. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1967. ;;
  1968. esac
  1969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1970. $as_echo_n "checking for $2... " >&6; }
  1971. if eval \${$3+:} false; then :
  1972. $as_echo_n "(cached) " >&6
  1973. else
  1974. eval "$3=\$ac_header_compiler"
  1975. fi
  1976. eval ac_res=\$$3
  1977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1978. $as_echo "$ac_res" >&6; }
  1979. fi
  1980. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1981. } # ac_fn_c_check_header_mongrel
  1982. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1983. # -------------------------------------------
  1984. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1985. # variable VAR accordingly.
  1986. ac_fn_c_check_type ()
  1987. {
  1988. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1990. $as_echo_n "checking for $2... " >&6; }
  1991. if eval \${$3+:} false; then :
  1992. $as_echo_n "(cached) " >&6
  1993. else
  1994. eval "$3=no"
  1995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1996. /* end confdefs.h. */
  1997. $4
  1998. int
  1999. main ()
  2000. {
  2001. if (sizeof ($2))
  2002. return 0;
  2003. ;
  2004. return 0;
  2005. }
  2006. _ACEOF
  2007. if ac_fn_c_try_compile "$LINENO"; then :
  2008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2009. /* end confdefs.h. */
  2010. $4
  2011. int
  2012. main ()
  2013. {
  2014. if (sizeof (($2)))
  2015. return 0;
  2016. ;
  2017. return 0;
  2018. }
  2019. _ACEOF
  2020. if ac_fn_c_try_compile "$LINENO"; then :
  2021. else
  2022. eval "$3=yes"
  2023. fi
  2024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2025. fi
  2026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2027. fi
  2028. eval ac_res=\$$3
  2029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2030. $as_echo "$ac_res" >&6; }
  2031. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2032. } # ac_fn_c_check_type
  2033. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2034. # ----------------------------------------------------
  2035. # Tries to find if the field MEMBER exists in type AGGR, after including
  2036. # INCLUDES, setting cache variable VAR accordingly.
  2037. ac_fn_c_check_member ()
  2038. {
  2039. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2041. $as_echo_n "checking for $2.$3... " >&6; }
  2042. if eval \${$4+:} false; then :
  2043. $as_echo_n "(cached) " >&6
  2044. else
  2045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2046. /* end confdefs.h. */
  2047. $5
  2048. int
  2049. main ()
  2050. {
  2051. static $2 ac_aggr;
  2052. if (ac_aggr.$3)
  2053. return 0;
  2054. ;
  2055. return 0;
  2056. }
  2057. _ACEOF
  2058. if ac_fn_c_try_compile "$LINENO"; then :
  2059. eval "$4=yes"
  2060. else
  2061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2062. /* end confdefs.h. */
  2063. $5
  2064. int
  2065. main ()
  2066. {
  2067. static $2 ac_aggr;
  2068. if (sizeof ac_aggr.$3)
  2069. return 0;
  2070. ;
  2071. return 0;
  2072. }
  2073. _ACEOF
  2074. if ac_fn_c_try_compile "$LINENO"; then :
  2075. eval "$4=yes"
  2076. else
  2077. eval "$4=no"
  2078. fi
  2079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2080. fi
  2081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2082. fi
  2083. eval ac_res=\$$4
  2084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2085. $as_echo "$ac_res" >&6; }
  2086. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2087. } # ac_fn_c_check_member
  2088. cat >config.log <<_ACEOF
  2089. This file contains any messages produced by compilers while
  2090. running configure, to aid debugging if configure makes a mistake.
  2091. It was created by $as_me, which was
  2092. generated by GNU Autoconf 2.69. Invocation command line was
  2093. $ $0 $@
  2094. _ACEOF
  2095. exec 5>>config.log
  2096. {
  2097. cat <<_ASUNAME
  2098. ## --------- ##
  2099. ## Platform. ##
  2100. ## --------- ##
  2101. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2102. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2103. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2104. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2105. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2106. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2107. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2108. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2109. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2110. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2111. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2112. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2113. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2114. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2115. _ASUNAME
  2116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2117. for as_dir in $PATH
  2118. do
  2119. IFS=$as_save_IFS
  2120. test -z "$as_dir" && as_dir=.
  2121. $as_echo "PATH: $as_dir"
  2122. done
  2123. IFS=$as_save_IFS
  2124. } >&5
  2125. cat >&5 <<_ACEOF
  2126. ## ----------- ##
  2127. ## Core tests. ##
  2128. ## ----------- ##
  2129. _ACEOF
  2130. # Keep a trace of the command line.
  2131. # Strip out --no-create and --no-recursion so they do not pile up.
  2132. # Strip out --silent because we don't want to record it for future runs.
  2133. # Also quote any args containing shell meta-characters.
  2134. # Make two passes to allow for proper duplicate-argument suppression.
  2135. ac_configure_args=
  2136. ac_configure_args0=
  2137. ac_configure_args1=
  2138. ac_must_keep_next=false
  2139. for ac_pass in 1 2
  2140. do
  2141. for ac_arg
  2142. do
  2143. case $ac_arg in
  2144. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2145. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2146. | -silent | --silent | --silen | --sile | --sil)
  2147. continue ;;
  2148. *\'*)
  2149. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2150. esac
  2151. case $ac_pass in
  2152. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2153. 2)
  2154. as_fn_append ac_configure_args1 " '$ac_arg'"
  2155. if test $ac_must_keep_next = true; then
  2156. ac_must_keep_next=false # Got value, back to normal.
  2157. else
  2158. case $ac_arg in
  2159. *=* | --config-cache | -C | -disable-* | --disable-* \
  2160. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2161. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2162. | -with-* | --with-* | -without-* | --without-* | --x)
  2163. case "$ac_configure_args0 " in
  2164. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2165. esac
  2166. ;;
  2167. -* ) ac_must_keep_next=true ;;
  2168. esac
  2169. fi
  2170. as_fn_append ac_configure_args " '$ac_arg'"
  2171. ;;
  2172. esac
  2173. done
  2174. done
  2175. { ac_configure_args0=; unset ac_configure_args0;}
  2176. { ac_configure_args1=; unset ac_configure_args1;}
  2177. # When interrupted or exit'd, cleanup temporary files, and complete
  2178. # config.log. We remove comments because anyway the quotes in there
  2179. # would cause problems or look ugly.
  2180. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2181. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2182. trap 'exit_status=$?
  2183. # Save into config.log some information that might help in debugging.
  2184. {
  2185. echo
  2186. $as_echo "## ---------------- ##
  2187. ## Cache variables. ##
  2188. ## ---------------- ##"
  2189. echo
  2190. # The following way of writing the cache mishandles newlines in values,
  2191. (
  2192. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2193. eval ac_val=\$$ac_var
  2194. case $ac_val in #(
  2195. *${as_nl}*)
  2196. case $ac_var in #(
  2197. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2198. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2199. esac
  2200. case $ac_var in #(
  2201. _ | IFS | as_nl) ;; #(
  2202. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2203. *) { eval $ac_var=; unset $ac_var;} ;;
  2204. esac ;;
  2205. esac
  2206. done
  2207. (set) 2>&1 |
  2208. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2209. *${as_nl}ac_space=\ *)
  2210. sed -n \
  2211. "s/'\''/'\''\\\\'\'''\''/g;
  2212. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2213. ;; #(
  2214. *)
  2215. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2216. ;;
  2217. esac |
  2218. sort
  2219. )
  2220. echo
  2221. $as_echo "## ----------------- ##
  2222. ## Output variables. ##
  2223. ## ----------------- ##"
  2224. echo
  2225. for ac_var in $ac_subst_vars
  2226. do
  2227. eval ac_val=\$$ac_var
  2228. case $ac_val in
  2229. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2230. esac
  2231. $as_echo "$ac_var='\''$ac_val'\''"
  2232. done | sort
  2233. echo
  2234. if test -n "$ac_subst_files"; then
  2235. $as_echo "## ------------------- ##
  2236. ## File substitutions. ##
  2237. ## ------------------- ##"
  2238. echo
  2239. for ac_var in $ac_subst_files
  2240. do
  2241. eval ac_val=\$$ac_var
  2242. case $ac_val in
  2243. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2244. esac
  2245. $as_echo "$ac_var='\''$ac_val'\''"
  2246. done | sort
  2247. echo
  2248. fi
  2249. if test -s confdefs.h; then
  2250. $as_echo "## ----------- ##
  2251. ## confdefs.h. ##
  2252. ## ----------- ##"
  2253. echo
  2254. cat confdefs.h
  2255. echo
  2256. fi
  2257. test "$ac_signal" != 0 &&
  2258. $as_echo "$as_me: caught signal $ac_signal"
  2259. $as_echo "$as_me: exit $exit_status"
  2260. } >&5
  2261. rm -f core *.core core.conftest.* &&
  2262. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2263. exit $exit_status
  2264. ' 0
  2265. for ac_signal in 1 2 13 15; do
  2266. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2267. done
  2268. ac_signal=0
  2269. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2270. rm -f -r conftest* confdefs.h
  2271. $as_echo "/* confdefs.h */" > confdefs.h
  2272. # Predefined preprocessor variables.
  2273. cat >>confdefs.h <<_ACEOF
  2274. #define PACKAGE_NAME "$PACKAGE_NAME"
  2275. _ACEOF
  2276. cat >>confdefs.h <<_ACEOF
  2277. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2278. _ACEOF
  2279. cat >>confdefs.h <<_ACEOF
  2280. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2281. _ACEOF
  2282. cat >>confdefs.h <<_ACEOF
  2283. #define PACKAGE_STRING "$PACKAGE_STRING"
  2284. _ACEOF
  2285. cat >>confdefs.h <<_ACEOF
  2286. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2287. _ACEOF
  2288. cat >>confdefs.h <<_ACEOF
  2289. #define PACKAGE_URL "$PACKAGE_URL"
  2290. _ACEOF
  2291. # Let the site file select an alternate cache file if it wants to.
  2292. # Prefer an explicitly selected file to automatically selected ones.
  2293. ac_site_file1=NONE
  2294. ac_site_file2=NONE
  2295. if test -n "$CONFIG_SITE"; then
  2296. # We do not want a PATH search for config.site.
  2297. case $CONFIG_SITE in #((
  2298. -*) ac_site_file1=./$CONFIG_SITE;;
  2299. */*) ac_site_file1=$CONFIG_SITE;;
  2300. *) ac_site_file1=./$CONFIG_SITE;;
  2301. esac
  2302. elif test "x$prefix" != xNONE; then
  2303. ac_site_file1=$prefix/share/config.site
  2304. ac_site_file2=$prefix/etc/config.site
  2305. else
  2306. ac_site_file1=$ac_default_prefix/share/config.site
  2307. ac_site_file2=$ac_default_prefix/etc/config.site
  2308. fi
  2309. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2310. do
  2311. test "x$ac_site_file" = xNONE && continue
  2312. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2313. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2314. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2315. sed 's/^/| /' "$ac_site_file" >&5
  2316. . "$ac_site_file" \
  2317. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2318. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2319. as_fn_error $? "failed to load site script $ac_site_file
  2320. See \`config.log' for more details" "$LINENO" 5; }
  2321. fi
  2322. done
  2323. if test -r "$cache_file"; then
  2324. # Some versions of bash will fail to source /dev/null (special files
  2325. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2326. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2327. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2328. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2329. case $cache_file in
  2330. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2331. *) . "./$cache_file";;
  2332. esac
  2333. fi
  2334. else
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2336. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2337. >$cache_file
  2338. fi
  2339. # Check that the precious variables saved in the cache have kept the same
  2340. # value.
  2341. ac_cache_corrupted=false
  2342. for ac_var in $ac_precious_vars; do
  2343. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2344. eval ac_new_set=\$ac_env_${ac_var}_set
  2345. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2346. eval ac_new_val=\$ac_env_${ac_var}_value
  2347. case $ac_old_set,$ac_new_set in
  2348. set,)
  2349. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2350. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2351. ac_cache_corrupted=: ;;
  2352. ,set)
  2353. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2354. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2355. ac_cache_corrupted=: ;;
  2356. ,);;
  2357. *)
  2358. if test "x$ac_old_val" != "x$ac_new_val"; then
  2359. # differences in whitespace do not lead to failure.
  2360. ac_old_val_w=`echo x $ac_old_val`
  2361. ac_new_val_w=`echo x $ac_new_val`
  2362. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2364. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2365. ac_cache_corrupted=:
  2366. else
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2368. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2369. eval $ac_var=\$ac_old_val
  2370. fi
  2371. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2372. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2373. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2374. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2375. fi;;
  2376. esac
  2377. # Pass precious variables to config.status.
  2378. if test "$ac_new_set" = set; then
  2379. case $ac_new_val in
  2380. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2381. *) ac_arg=$ac_var=$ac_new_val ;;
  2382. esac
  2383. case " $ac_configure_args " in
  2384. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2385. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2386. esac
  2387. fi
  2388. done
  2389. if $ac_cache_corrupted; then
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2391. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2393. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2394. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2395. fi
  2396. ## -------------------- ##
  2397. ## Main body of script. ##
  2398. ## -------------------- ##
  2399. ac_ext=c
  2400. ac_cpp='$CPP $CPPFLAGS'
  2401. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2402. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2403. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2404. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2405. ac_aux_dir=
  2406. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2407. if test -f "$ac_dir/install-sh"; then
  2408. ac_aux_dir=$ac_dir
  2409. ac_install_sh="$ac_aux_dir/install-sh -c"
  2410. break
  2411. elif test -f "$ac_dir/install.sh"; then
  2412. ac_aux_dir=$ac_dir
  2413. ac_install_sh="$ac_aux_dir/install.sh -c"
  2414. break
  2415. elif test -f "$ac_dir/shtool"; then
  2416. ac_aux_dir=$ac_dir
  2417. ac_install_sh="$ac_aux_dir/shtool install -c"
  2418. break
  2419. fi
  2420. done
  2421. if test -z "$ac_aux_dir"; then
  2422. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2423. fi
  2424. # These three variables are undocumented and unsupported,
  2425. # and are intended to be withdrawn in a future Autoconf release.
  2426. # They can cause serious problems if a builder's source tree is in a directory
  2427. # whose full name contains unusual characters.
  2428. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2429. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2430. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2431. orig_CFLAGS="$CFLAGS"
  2432. #
  2433. # Making releases:
  2434. # Edit include/SDL_version.h and change the version, then:
  2435. # SDL_MICRO_VERSION += 1;
  2436. # SDL_INTERFACE_AGE += 1;
  2437. # SDL_BINARY_AGE += 1;
  2438. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2439. # if backwards compatibility has been broken,
  2440. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2441. #
  2442. SDL_MAJOR_VERSION=2
  2443. SDL_MINOR_VERSION=0
  2444. SDL_MICRO_VERSION=1
  2445. SDL_INTERFACE_AGE=0
  2446. SDL_BINARY_AGE=1
  2447. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2448. # libtool versioning
  2449. case `pwd` in
  2450. *\ * | *\ *)
  2451. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2452. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2453. esac
  2454. macro_version='2.4.2'
  2455. macro_revision='1.3337'
  2456. ltmain="$ac_aux_dir/ltmain.sh"
  2457. # Make sure we can run config.sub.
  2458. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2459. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2461. $as_echo_n "checking build system type... " >&6; }
  2462. if ${ac_cv_build+:} false; then :
  2463. $as_echo_n "(cached) " >&6
  2464. else
  2465. ac_build_alias=$build_alias
  2466. test "x$ac_build_alias" = x &&
  2467. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2468. test "x$ac_build_alias" = x &&
  2469. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2470. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2471. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2472. fi
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2474. $as_echo "$ac_cv_build" >&6; }
  2475. case $ac_cv_build in
  2476. *-*-*) ;;
  2477. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2478. esac
  2479. build=$ac_cv_build
  2480. ac_save_IFS=$IFS; IFS='-'
  2481. set x $ac_cv_build
  2482. shift
  2483. build_cpu=$1
  2484. build_vendor=$2
  2485. shift; shift
  2486. # Remember, the first character of IFS is used to create $*,
  2487. # except with old shells:
  2488. build_os=$*
  2489. IFS=$ac_save_IFS
  2490. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2492. $as_echo_n "checking host system type... " >&6; }
  2493. if ${ac_cv_host+:} false; then :
  2494. $as_echo_n "(cached) " >&6
  2495. else
  2496. if test "x$host_alias" = x; then
  2497. ac_cv_host=$ac_cv_build
  2498. else
  2499. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2500. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2501. fi
  2502. fi
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2504. $as_echo "$ac_cv_host" >&6; }
  2505. case $ac_cv_host in
  2506. *-*-*) ;;
  2507. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2508. esac
  2509. host=$ac_cv_host
  2510. ac_save_IFS=$IFS; IFS='-'
  2511. set x $ac_cv_host
  2512. shift
  2513. host_cpu=$1
  2514. host_vendor=$2
  2515. shift; shift
  2516. # Remember, the first character of IFS is used to create $*,
  2517. # except with old shells:
  2518. host_os=$*
  2519. IFS=$ac_save_IFS
  2520. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2521. # Backslashify metacharacters that are still active within
  2522. # double-quoted strings.
  2523. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2524. # Same as above, but do not quote variable references.
  2525. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2526. # Sed substitution to delay expansion of an escaped shell variable in a
  2527. # double_quote_subst'ed string.
  2528. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2529. # Sed substitution to delay expansion of an escaped single quote.
  2530. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2531. # Sed substitution to avoid accidental globbing in evaled expressions
  2532. no_glob_subst='s/\*/\\\*/g'
  2533. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2534. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2535. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2537. $as_echo_n "checking how to print strings... " >&6; }
  2538. # Test print first, because it will be a builtin if present.
  2539. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2540. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2541. ECHO='print -r --'
  2542. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2543. ECHO='printf %s\n'
  2544. else
  2545. # Use this function as a fallback that always works.
  2546. func_fallback_echo ()
  2547. {
  2548. eval 'cat <<_LTECHO_EOF
  2549. $1
  2550. _LTECHO_EOF'
  2551. }
  2552. ECHO='func_fallback_echo'
  2553. fi
  2554. # func_echo_all arg...
  2555. # Invoke $ECHO with all args, space-separated.
  2556. func_echo_all ()
  2557. {
  2558. $ECHO ""
  2559. }
  2560. case "$ECHO" in
  2561. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2562. $as_echo "printf" >&6; } ;;
  2563. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2564. $as_echo "print -r" >&6; } ;;
  2565. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2566. $as_echo "cat" >&6; } ;;
  2567. esac
  2568. ac_ext=c
  2569. ac_cpp='$CPP $CPPFLAGS'
  2570. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2571. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2572. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2573. if test -n "$ac_tool_prefix"; then
  2574. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2575. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2577. $as_echo_n "checking for $ac_word... " >&6; }
  2578. if ${ac_cv_prog_CC+:} false; then :
  2579. $as_echo_n "(cached) " >&6
  2580. else
  2581. if test -n "$CC"; then
  2582. ac_cv_prog_CC="$CC" # Let the user override the test.
  2583. else
  2584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2585. for as_dir in $PATH
  2586. do
  2587. IFS=$as_save_IFS
  2588. test -z "$as_dir" && as_dir=.
  2589. for ac_exec_ext in '' $ac_executable_extensions; do
  2590. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2591. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2592. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2593. break 2
  2594. fi
  2595. done
  2596. done
  2597. IFS=$as_save_IFS
  2598. fi
  2599. fi
  2600. CC=$ac_cv_prog_CC
  2601. if test -n "$CC"; then
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2603. $as_echo "$CC" >&6; }
  2604. else
  2605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2606. $as_echo "no" >&6; }
  2607. fi
  2608. fi
  2609. if test -z "$ac_cv_prog_CC"; then
  2610. ac_ct_CC=$CC
  2611. # Extract the first word of "gcc", so it can be a program name with args.
  2612. set dummy gcc; ac_word=$2
  2613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2614. $as_echo_n "checking for $ac_word... " >&6; }
  2615. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2616. $as_echo_n "(cached) " >&6
  2617. else
  2618. if test -n "$ac_ct_CC"; then
  2619. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2620. else
  2621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2622. for as_dir in $PATH
  2623. do
  2624. IFS=$as_save_IFS
  2625. test -z "$as_dir" && as_dir=.
  2626. for ac_exec_ext in '' $ac_executable_extensions; do
  2627. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2628. ac_cv_prog_ac_ct_CC="gcc"
  2629. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2630. break 2
  2631. fi
  2632. done
  2633. done
  2634. IFS=$as_save_IFS
  2635. fi
  2636. fi
  2637. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2638. if test -n "$ac_ct_CC"; then
  2639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2640. $as_echo "$ac_ct_CC" >&6; }
  2641. else
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2643. $as_echo "no" >&6; }
  2644. fi
  2645. if test "x$ac_ct_CC" = x; then
  2646. CC=""
  2647. else
  2648. case $cross_compiling:$ac_tool_warned in
  2649. yes:)
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2651. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2652. ac_tool_warned=yes ;;
  2653. esac
  2654. CC=$ac_ct_CC
  2655. fi
  2656. else
  2657. CC="$ac_cv_prog_CC"
  2658. fi
  2659. if test -z "$CC"; then
  2660. if test -n "$ac_tool_prefix"; then
  2661. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2662. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2664. $as_echo_n "checking for $ac_word... " >&6; }
  2665. if ${ac_cv_prog_CC+:} false; then :
  2666. $as_echo_n "(cached) " >&6
  2667. else
  2668. if test -n "$CC"; then
  2669. ac_cv_prog_CC="$CC" # Let the user override the test.
  2670. else
  2671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2672. for as_dir in $PATH
  2673. do
  2674. IFS=$as_save_IFS
  2675. test -z "$as_dir" && as_dir=.
  2676. for ac_exec_ext in '' $ac_executable_extensions; do
  2677. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2678. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2680. break 2
  2681. fi
  2682. done
  2683. done
  2684. IFS=$as_save_IFS
  2685. fi
  2686. fi
  2687. CC=$ac_cv_prog_CC
  2688. if test -n "$CC"; then
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2690. $as_echo "$CC" >&6; }
  2691. else
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2693. $as_echo "no" >&6; }
  2694. fi
  2695. fi
  2696. fi
  2697. if test -z "$CC"; then
  2698. # Extract the first word of "cc", so it can be a program name with args.
  2699. set dummy cc; ac_word=$2
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2701. $as_echo_n "checking for $ac_word... " >&6; }
  2702. if ${ac_cv_prog_CC+:} false; then :
  2703. $as_echo_n "(cached) " >&6
  2704. else
  2705. if test -n "$CC"; then
  2706. ac_cv_prog_CC="$CC" # Let the user override the test.
  2707. else
  2708. ac_prog_rejected=no
  2709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2710. for as_dir in $PATH
  2711. do
  2712. IFS=$as_save_IFS
  2713. test -z "$as_dir" && as_dir=.
  2714. for ac_exec_ext in '' $ac_executable_extensions; do
  2715. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2716. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2717. ac_prog_rejected=yes
  2718. continue
  2719. fi
  2720. ac_cv_prog_CC="cc"
  2721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2722. break 2
  2723. fi
  2724. done
  2725. done
  2726. IFS=$as_save_IFS
  2727. if test $ac_prog_rejected = yes; then
  2728. # We found a bogon in the path, so make sure we never use it.
  2729. set dummy $ac_cv_prog_CC
  2730. shift
  2731. if test $# != 0; then
  2732. # We chose a different compiler from the bogus one.
  2733. # However, it has the same basename, so the bogon will be chosen
  2734. # first if we set CC to just the basename; use the full file name.
  2735. shift
  2736. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2737. fi
  2738. fi
  2739. fi
  2740. fi
  2741. CC=$ac_cv_prog_CC
  2742. if test -n "$CC"; then
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2744. $as_echo "$CC" >&6; }
  2745. else
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2747. $as_echo "no" >&6; }
  2748. fi
  2749. fi
  2750. if test -z "$CC"; then
  2751. if test -n "$ac_tool_prefix"; then
  2752. for ac_prog in cl.exe
  2753. do
  2754. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2755. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2757. $as_echo_n "checking for $ac_word... " >&6; }
  2758. if ${ac_cv_prog_CC+:} false; then :
  2759. $as_echo_n "(cached) " >&6
  2760. else
  2761. if test -n "$CC"; then
  2762. ac_cv_prog_CC="$CC" # Let the user override the test.
  2763. else
  2764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2765. for as_dir in $PATH
  2766. do
  2767. IFS=$as_save_IFS
  2768. test -z "$as_dir" && as_dir=.
  2769. for ac_exec_ext in '' $ac_executable_extensions; do
  2770. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2771. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2772. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2773. break 2
  2774. fi
  2775. done
  2776. done
  2777. IFS=$as_save_IFS
  2778. fi
  2779. fi
  2780. CC=$ac_cv_prog_CC
  2781. if test -n "$CC"; then
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2783. $as_echo "$CC" >&6; }
  2784. else
  2785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2786. $as_echo "no" >&6; }
  2787. fi
  2788. test -n "$CC" && break
  2789. done
  2790. fi
  2791. if test -z "$CC"; then
  2792. ac_ct_CC=$CC
  2793. for ac_prog in cl.exe
  2794. do
  2795. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2796. set dummy $ac_prog; ac_word=$2
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2798. $as_echo_n "checking for $ac_word... " >&6; }
  2799. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2800. $as_echo_n "(cached) " >&6
  2801. else
  2802. if test -n "$ac_ct_CC"; then
  2803. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2804. else
  2805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2806. for as_dir in $PATH
  2807. do
  2808. IFS=$as_save_IFS
  2809. test -z "$as_dir" && as_dir=.
  2810. for ac_exec_ext in '' $ac_executable_extensions; do
  2811. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2812. ac_cv_prog_ac_ct_CC="$ac_prog"
  2813. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2814. break 2
  2815. fi
  2816. done
  2817. done
  2818. IFS=$as_save_IFS
  2819. fi
  2820. fi
  2821. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2822. if test -n "$ac_ct_CC"; then
  2823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2824. $as_echo "$ac_ct_CC" >&6; }
  2825. else
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2827. $as_echo "no" >&6; }
  2828. fi
  2829. test -n "$ac_ct_CC" && break
  2830. done
  2831. if test "x$ac_ct_CC" = x; then
  2832. CC=""
  2833. else
  2834. case $cross_compiling:$ac_tool_warned in
  2835. yes:)
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2837. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2838. ac_tool_warned=yes ;;
  2839. esac
  2840. CC=$ac_ct_CC
  2841. fi
  2842. fi
  2843. fi
  2844. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2845. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2846. as_fn_error $? "no acceptable C compiler found in \$PATH
  2847. See \`config.log' for more details" "$LINENO" 5; }
  2848. # Provide some information about the compiler.
  2849. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2850. set X $ac_compile
  2851. ac_compiler=$2
  2852. for ac_option in --version -v -V -qversion; do
  2853. { { ac_try="$ac_compiler $ac_option >&5"
  2854. case "(($ac_try" in
  2855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2856. *) ac_try_echo=$ac_try;;
  2857. esac
  2858. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2859. $as_echo "$ac_try_echo"; } >&5
  2860. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2861. ac_status=$?
  2862. if test -s conftest.err; then
  2863. sed '10a\
  2864. ... rest of stderr output deleted ...
  2865. 10q' conftest.err >conftest.er1
  2866. cat conftest.er1 >&5
  2867. fi
  2868. rm -f conftest.er1 conftest.err
  2869. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2870. test $ac_status = 0; }
  2871. done
  2872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2873. /* end confdefs.h. */
  2874. int
  2875. main ()
  2876. {
  2877. ;
  2878. return 0;
  2879. }
  2880. _ACEOF
  2881. ac_clean_files_save=$ac_clean_files
  2882. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2883. # Try to create an executable without -o first, disregard a.out.
  2884. # It will help us diagnose broken compilers, and finding out an intuition
  2885. # of exeext.
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2887. $as_echo_n "checking whether the C compiler works... " >&6; }
  2888. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2889. # The possible output files:
  2890. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2891. ac_rmfiles=
  2892. for ac_file in $ac_files
  2893. do
  2894. case $ac_file in
  2895. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2896. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2897. esac
  2898. done
  2899. rm -f $ac_rmfiles
  2900. if { { ac_try="$ac_link_default"
  2901. case "(($ac_try" in
  2902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2903. *) ac_try_echo=$ac_try;;
  2904. esac
  2905. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2906. $as_echo "$ac_try_echo"; } >&5
  2907. (eval "$ac_link_default") 2>&5
  2908. ac_status=$?
  2909. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2910. test $ac_status = 0; }; then :
  2911. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2912. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2913. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2914. # so that the user can short-circuit this test for compilers unknown to
  2915. # Autoconf.
  2916. for ac_file in $ac_files ''
  2917. do
  2918. test -f "$ac_file" || continue
  2919. case $ac_file in
  2920. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2921. ;;
  2922. [ab].out )
  2923. # We found the default executable, but exeext='' is most
  2924. # certainly right.
  2925. break;;
  2926. *.* )
  2927. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2928. then :; else
  2929. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2930. fi
  2931. # We set ac_cv_exeext here because the later test for it is not
  2932. # safe: cross compilers may not add the suffix if given an `-o'
  2933. # argument, so we may need to know it at that point already.
  2934. # Even if this section looks crufty: it has the advantage of
  2935. # actually working.
  2936. break;;
  2937. * )
  2938. break;;
  2939. esac
  2940. done
  2941. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2942. else
  2943. ac_file=''
  2944. fi
  2945. if test -z "$ac_file"; then :
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2947. $as_echo "no" >&6; }
  2948. $as_echo "$as_me: failed program was:" >&5
  2949. sed 's/^/| /' conftest.$ac_ext >&5
  2950. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2951. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2952. as_fn_error 77 "C compiler cannot create executables
  2953. See \`config.log' for more details" "$LINENO" 5; }
  2954. else
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2956. $as_echo "yes" >&6; }
  2957. fi
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2959. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2961. $as_echo "$ac_file" >&6; }
  2962. ac_exeext=$ac_cv_exeext
  2963. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2964. ac_clean_files=$ac_clean_files_save
  2965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2966. $as_echo_n "checking for suffix of executables... " >&6; }
  2967. if { { ac_try="$ac_link"
  2968. case "(($ac_try" in
  2969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2970. *) ac_try_echo=$ac_try;;
  2971. esac
  2972. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2973. $as_echo "$ac_try_echo"; } >&5
  2974. (eval "$ac_link") 2>&5
  2975. ac_status=$?
  2976. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2977. test $ac_status = 0; }; then :
  2978. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2979. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2980. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2981. # `rm'.
  2982. for ac_file in conftest.exe conftest conftest.*; do
  2983. test -f "$ac_file" || continue
  2984. case $ac_file in
  2985. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2986. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2987. break;;
  2988. * ) break;;
  2989. esac
  2990. done
  2991. else
  2992. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2993. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2994. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2995. See \`config.log' for more details" "$LINENO" 5; }
  2996. fi
  2997. rm -f conftest conftest$ac_cv_exeext
  2998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2999. $as_echo "$ac_cv_exeext" >&6; }
  3000. rm -f conftest.$ac_ext
  3001. EXEEXT=$ac_cv_exeext
  3002. ac_exeext=$EXEEXT
  3003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3004. /* end confdefs.h. */
  3005. #include <stdio.h>
  3006. int
  3007. main ()
  3008. {
  3009. FILE *f = fopen ("conftest.out", "w");
  3010. return ferror (f) || fclose (f) != 0;
  3011. ;
  3012. return 0;
  3013. }
  3014. _ACEOF
  3015. ac_clean_files="$ac_clean_files conftest.out"
  3016. # Check that the compiler produces executables we can run. If not, either
  3017. # the compiler is broken, or we cross compile.
  3018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3019. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3020. if test "$cross_compiling" != yes; then
  3021. { { ac_try="$ac_link"
  3022. case "(($ac_try" in
  3023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3024. *) ac_try_echo=$ac_try;;
  3025. esac
  3026. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3027. $as_echo "$ac_try_echo"; } >&5
  3028. (eval "$ac_link") 2>&5
  3029. ac_status=$?
  3030. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3031. test $ac_status = 0; }
  3032. if { ac_try='./conftest$ac_cv_exeext'
  3033. { { case "(($ac_try" in
  3034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3035. *) ac_try_echo=$ac_try;;
  3036. esac
  3037. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3038. $as_echo "$ac_try_echo"; } >&5
  3039. (eval "$ac_try") 2>&5
  3040. ac_status=$?
  3041. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3042. test $ac_status = 0; }; }; then
  3043. cross_compiling=no
  3044. else
  3045. if test "$cross_compiling" = maybe; then
  3046. cross_compiling=yes
  3047. else
  3048. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3049. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3050. as_fn_error $? "cannot run C compiled programs.
  3051. If you meant to cross compile, use \`--host'.
  3052. See \`config.log' for more details" "$LINENO" 5; }
  3053. fi
  3054. fi
  3055. fi
  3056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3057. $as_echo "$cross_compiling" >&6; }
  3058. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3059. ac_clean_files=$ac_clean_files_save
  3060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3061. $as_echo_n "checking for suffix of object files... " >&6; }
  3062. if ${ac_cv_objext+:} false; then :
  3063. $as_echo_n "(cached) " >&6
  3064. else
  3065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3066. /* end confdefs.h. */
  3067. int
  3068. main ()
  3069. {
  3070. ;
  3071. return 0;
  3072. }
  3073. _ACEOF
  3074. rm -f conftest.o conftest.obj
  3075. if { { ac_try="$ac_compile"
  3076. case "(($ac_try" in
  3077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3078. *) ac_try_echo=$ac_try;;
  3079. esac
  3080. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3081. $as_echo "$ac_try_echo"; } >&5
  3082. (eval "$ac_compile") 2>&5
  3083. ac_status=$?
  3084. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3085. test $ac_status = 0; }; then :
  3086. for ac_file in conftest.o conftest.obj conftest.*; do
  3087. test -f "$ac_file" || continue;
  3088. case $ac_file in
  3089. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3090. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3091. break;;
  3092. esac
  3093. done
  3094. else
  3095. $as_echo "$as_me: failed program was:" >&5
  3096. sed 's/^/| /' conftest.$ac_ext >&5
  3097. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3098. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3099. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3100. See \`config.log' for more details" "$LINENO" 5; }
  3101. fi
  3102. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3103. fi
  3104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3105. $as_echo "$ac_cv_objext" >&6; }
  3106. OBJEXT=$ac_cv_objext
  3107. ac_objext=$OBJEXT
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3109. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3110. if ${ac_cv_c_compiler_gnu+:} false; then :
  3111. $as_echo_n "(cached) " >&6
  3112. else
  3113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3114. /* end confdefs.h. */
  3115. int
  3116. main ()
  3117. {
  3118. #ifndef __GNUC__
  3119. choke me
  3120. #endif
  3121. ;
  3122. return 0;
  3123. }
  3124. _ACEOF
  3125. if ac_fn_c_try_compile "$LINENO"; then :
  3126. ac_compiler_gnu=yes
  3127. else
  3128. ac_compiler_gnu=no
  3129. fi
  3130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3131. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3132. fi
  3133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3134. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3135. if test $ac_compiler_gnu = yes; then
  3136. GCC=yes
  3137. else
  3138. GCC=
  3139. fi
  3140. ac_test_CFLAGS=${CFLAGS+set}
  3141. ac_save_CFLAGS=$CFLAGS
  3142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3143. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3144. if ${ac_cv_prog_cc_g+:} false; then :
  3145. $as_echo_n "(cached) " >&6
  3146. else
  3147. ac_save_c_werror_flag=$ac_c_werror_flag
  3148. ac_c_werror_flag=yes
  3149. ac_cv_prog_cc_g=no
  3150. CFLAGS="-g"
  3151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3152. /* end confdefs.h. */
  3153. int
  3154. main ()
  3155. {
  3156. ;
  3157. return 0;
  3158. }
  3159. _ACEOF
  3160. if ac_fn_c_try_compile "$LINENO"; then :
  3161. ac_cv_prog_cc_g=yes
  3162. else
  3163. CFLAGS=""
  3164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3165. /* end confdefs.h. */
  3166. int
  3167. main ()
  3168. {
  3169. ;
  3170. return 0;
  3171. }
  3172. _ACEOF
  3173. if ac_fn_c_try_compile "$LINENO"; then :
  3174. else
  3175. ac_c_werror_flag=$ac_save_c_werror_flag
  3176. CFLAGS="-g"
  3177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3178. /* end confdefs.h. */
  3179. int
  3180. main ()
  3181. {
  3182. ;
  3183. return 0;
  3184. }
  3185. _ACEOF
  3186. if ac_fn_c_try_compile "$LINENO"; then :
  3187. ac_cv_prog_cc_g=yes
  3188. fi
  3189. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3190. fi
  3191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3192. fi
  3193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3194. ac_c_werror_flag=$ac_save_c_werror_flag
  3195. fi
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3197. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3198. if test "$ac_test_CFLAGS" = set; then
  3199. CFLAGS=$ac_save_CFLAGS
  3200. elif test $ac_cv_prog_cc_g = yes; then
  3201. if test "$GCC" = yes; then
  3202. CFLAGS="-g -O2"
  3203. else
  3204. CFLAGS="-g"
  3205. fi
  3206. else
  3207. if test "$GCC" = yes; then
  3208. CFLAGS="-O2"
  3209. else
  3210. CFLAGS=
  3211. fi
  3212. fi
  3213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3214. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3215. if ${ac_cv_prog_cc_c89+:} false; then :
  3216. $as_echo_n "(cached) " >&6
  3217. else
  3218. ac_cv_prog_cc_c89=no
  3219. ac_save_CC=$CC
  3220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3221. /* end confdefs.h. */
  3222. #include <stdarg.h>
  3223. #include <stdio.h>
  3224. struct stat;
  3225. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3226. struct buf { int x; };
  3227. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3228. static char *e (p, i)
  3229. char **p;
  3230. int i;
  3231. {
  3232. return p[i];
  3233. }
  3234. static char *f (char * (*g) (char **, int), char **p, ...)
  3235. {
  3236. char *s;
  3237. va_list v;
  3238. va_start (v,p);
  3239. s = g (p, va_arg (v,int));
  3240. va_end (v);
  3241. return s;
  3242. }
  3243. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3244. function prototypes and stuff, but not '\xHH' hex character constants.
  3245. These don't provoke an error unfortunately, instead are silently treated
  3246. as 'x'. The following induces an error, until -std is added to get
  3247. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3248. array size at least. It's necessary to write '\x00'==0 to get something
  3249. that's true only with -std. */
  3250. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3251. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3252. inside strings and character constants. */
  3253. #define FOO(x) 'x'
  3254. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3255. int test (int i, double x);
  3256. struct s1 {int (*f) (int a);};
  3257. struct s2 {int (*f) (double a);};
  3258. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3259. int argc;
  3260. char **argv;
  3261. int
  3262. main ()
  3263. {
  3264. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3265. ;
  3266. return 0;
  3267. }
  3268. _ACEOF
  3269. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3270. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3271. do
  3272. CC="$ac_save_CC $ac_arg"
  3273. if ac_fn_c_try_compile "$LINENO"; then :
  3274. ac_cv_prog_cc_c89=$ac_arg
  3275. fi
  3276. rm -f core conftest.err conftest.$ac_objext
  3277. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3278. done
  3279. rm -f conftest.$ac_ext
  3280. CC=$ac_save_CC
  3281. fi
  3282. # AC_CACHE_VAL
  3283. case "x$ac_cv_prog_cc_c89" in
  3284. x)
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3286. $as_echo "none needed" >&6; } ;;
  3287. xno)
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3289. $as_echo "unsupported" >&6; } ;;
  3290. *)
  3291. CC="$CC $ac_cv_prog_cc_c89"
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3293. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3294. esac
  3295. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3296. fi
  3297. ac_ext=c
  3298. ac_cpp='$CPP $CPPFLAGS'
  3299. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3300. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3301. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3303. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3304. if ${ac_cv_path_SED+:} false; then :
  3305. $as_echo_n "(cached) " >&6
  3306. else
  3307. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3308. for ac_i in 1 2 3 4 5 6 7; do
  3309. ac_script="$ac_script$as_nl$ac_script"
  3310. done
  3311. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3312. { ac_script=; unset ac_script;}
  3313. if test -z "$SED"; then
  3314. ac_path_SED_found=false
  3315. # Loop through the user's path and test for each of PROGNAME-LIST
  3316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3317. for as_dir in $PATH
  3318. do
  3319. IFS=$as_save_IFS
  3320. test -z "$as_dir" && as_dir=.
  3321. for ac_prog in sed gsed; do
  3322. for ac_exec_ext in '' $ac_executable_extensions; do
  3323. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3324. as_fn_executable_p "$ac_path_SED" || continue
  3325. # Check for GNU ac_path_SED and select it if it is found.
  3326. # Check for GNU $ac_path_SED
  3327. case `"$ac_path_SED" --version 2>&1` in
  3328. *GNU*)
  3329. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3330. *)
  3331. ac_count=0
  3332. $as_echo_n 0123456789 >"conftest.in"
  3333. while :
  3334. do
  3335. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3336. mv "conftest.tmp" "conftest.in"
  3337. cp "conftest.in" "conftest.nl"
  3338. $as_echo '' >> "conftest.nl"
  3339. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3340. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3341. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3342. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3343. # Best one so far, save it but keep looking for a better one
  3344. ac_cv_path_SED="$ac_path_SED"
  3345. ac_path_SED_max=$ac_count
  3346. fi
  3347. # 10*(2^10) chars as input seems more than enough
  3348. test $ac_count -gt 10 && break
  3349. done
  3350. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3351. esac
  3352. $ac_path_SED_found && break 3
  3353. done
  3354. done
  3355. done
  3356. IFS=$as_save_IFS
  3357. if test -z "$ac_cv_path_SED"; then
  3358. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3359. fi
  3360. else
  3361. ac_cv_path_SED=$SED
  3362. fi
  3363. fi
  3364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3365. $as_echo "$ac_cv_path_SED" >&6; }
  3366. SED="$ac_cv_path_SED"
  3367. rm -f conftest.sed
  3368. test -z "$SED" && SED=sed
  3369. Xsed="$SED -e 1s/^X//"
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3371. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3372. if ${ac_cv_path_GREP+:} false; then :
  3373. $as_echo_n "(cached) " >&6
  3374. else
  3375. if test -z "$GREP"; then
  3376. ac_path_GREP_found=false
  3377. # Loop through the user's path and test for each of PROGNAME-LIST
  3378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3379. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3380. do
  3381. IFS=$as_save_IFS
  3382. test -z "$as_dir" && as_dir=.
  3383. for ac_prog in grep ggrep; do
  3384. for ac_exec_ext in '' $ac_executable_extensions; do
  3385. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3386. as_fn_executable_p "$ac_path_GREP" || continue
  3387. # Check for GNU ac_path_GREP and select it if it is found.
  3388. # Check for GNU $ac_path_GREP
  3389. case `"$ac_path_GREP" --version 2>&1` in
  3390. *GNU*)
  3391. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3392. *)
  3393. ac_count=0
  3394. $as_echo_n 0123456789 >"conftest.in"
  3395. while :
  3396. do
  3397. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3398. mv "conftest.tmp" "conftest.in"
  3399. cp "conftest.in" "conftest.nl"
  3400. $as_echo 'GREP' >> "conftest.nl"
  3401. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3402. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3403. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3404. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3405. # Best one so far, save it but keep looking for a better one
  3406. ac_cv_path_GREP="$ac_path_GREP"
  3407. ac_path_GREP_max=$ac_count
  3408. fi
  3409. # 10*(2^10) chars as input seems more than enough
  3410. test $ac_count -gt 10 && break
  3411. done
  3412. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3413. esac
  3414. $ac_path_GREP_found && break 3
  3415. done
  3416. done
  3417. done
  3418. IFS=$as_save_IFS
  3419. if test -z "$ac_cv_path_GREP"; then
  3420. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3421. fi
  3422. else
  3423. ac_cv_path_GREP=$GREP
  3424. fi
  3425. fi
  3426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3427. $as_echo "$ac_cv_path_GREP" >&6; }
  3428. GREP="$ac_cv_path_GREP"
  3429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3430. $as_echo_n "checking for egrep... " >&6; }
  3431. if ${ac_cv_path_EGREP+:} false; then :
  3432. $as_echo_n "(cached) " >&6
  3433. else
  3434. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3435. then ac_cv_path_EGREP="$GREP -E"
  3436. else
  3437. if test -z "$EGREP"; then
  3438. ac_path_EGREP_found=false
  3439. # Loop through the user's path and test for each of PROGNAME-LIST
  3440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3441. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3442. do
  3443. IFS=$as_save_IFS
  3444. test -z "$as_dir" && as_dir=.
  3445. for ac_prog in egrep; do
  3446. for ac_exec_ext in '' $ac_executable_extensions; do
  3447. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3448. as_fn_executable_p "$ac_path_EGREP" || continue
  3449. # Check for GNU ac_path_EGREP and select it if it is found.
  3450. # Check for GNU $ac_path_EGREP
  3451. case `"$ac_path_EGREP" --version 2>&1` in
  3452. *GNU*)
  3453. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3454. *)
  3455. ac_count=0
  3456. $as_echo_n 0123456789 >"conftest.in"
  3457. while :
  3458. do
  3459. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3460. mv "conftest.tmp" "conftest.in"
  3461. cp "conftest.in" "conftest.nl"
  3462. $as_echo 'EGREP' >> "conftest.nl"
  3463. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3464. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3465. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3466. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3467. # Best one so far, save it but keep looking for a better one
  3468. ac_cv_path_EGREP="$ac_path_EGREP"
  3469. ac_path_EGREP_max=$ac_count
  3470. fi
  3471. # 10*(2^10) chars as input seems more than enough
  3472. test $ac_count -gt 10 && break
  3473. done
  3474. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3475. esac
  3476. $ac_path_EGREP_found && break 3
  3477. done
  3478. done
  3479. done
  3480. IFS=$as_save_IFS
  3481. if test -z "$ac_cv_path_EGREP"; then
  3482. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3483. fi
  3484. else
  3485. ac_cv_path_EGREP=$EGREP
  3486. fi
  3487. fi
  3488. fi
  3489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3490. $as_echo "$ac_cv_path_EGREP" >&6; }
  3491. EGREP="$ac_cv_path_EGREP"
  3492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3493. $as_echo_n "checking for fgrep... " >&6; }
  3494. if ${ac_cv_path_FGREP+:} false; then :
  3495. $as_echo_n "(cached) " >&6
  3496. else
  3497. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3498. then ac_cv_path_FGREP="$GREP -F"
  3499. else
  3500. if test -z "$FGREP"; then
  3501. ac_path_FGREP_found=false
  3502. # Loop through the user's path and test for each of PROGNAME-LIST
  3503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3504. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3505. do
  3506. IFS=$as_save_IFS
  3507. test -z "$as_dir" && as_dir=.
  3508. for ac_prog in fgrep; do
  3509. for ac_exec_ext in '' $ac_executable_extensions; do
  3510. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3511. as_fn_executable_p "$ac_path_FGREP" || continue
  3512. # Check for GNU ac_path_FGREP and select it if it is found.
  3513. # Check for GNU $ac_path_FGREP
  3514. case `"$ac_path_FGREP" --version 2>&1` in
  3515. *GNU*)
  3516. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3517. *)
  3518. ac_count=0
  3519. $as_echo_n 0123456789 >"conftest.in"
  3520. while :
  3521. do
  3522. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3523. mv "conftest.tmp" "conftest.in"
  3524. cp "conftest.in" "conftest.nl"
  3525. $as_echo 'FGREP' >> "conftest.nl"
  3526. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3527. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3528. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3529. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3530. # Best one so far, save it but keep looking for a better one
  3531. ac_cv_path_FGREP="$ac_path_FGREP"
  3532. ac_path_FGREP_max=$ac_count
  3533. fi
  3534. # 10*(2^10) chars as input seems more than enough
  3535. test $ac_count -gt 10 && break
  3536. done
  3537. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3538. esac
  3539. $ac_path_FGREP_found && break 3
  3540. done
  3541. done
  3542. done
  3543. IFS=$as_save_IFS
  3544. if test -z "$ac_cv_path_FGREP"; then
  3545. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3546. fi
  3547. else
  3548. ac_cv_path_FGREP=$FGREP
  3549. fi
  3550. fi
  3551. fi
  3552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3553. $as_echo "$ac_cv_path_FGREP" >&6; }
  3554. FGREP="$ac_cv_path_FGREP"
  3555. test -z "$GREP" && GREP=grep
  3556. # Check whether --with-gnu-ld was given.
  3557. if test "${with_gnu_ld+set}" = set; then :
  3558. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3559. else
  3560. with_gnu_ld=no
  3561. fi
  3562. ac_prog=ld
  3563. if test "$GCC" = yes; then
  3564. # Check if gcc -print-prog-name=ld gives a path.
  3565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3566. $as_echo_n "checking for ld used by $CC... " >&6; }
  3567. case $host in
  3568. *-*-mingw*)
  3569. # gcc leaves a trailing carriage return which upsets mingw
  3570. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3571. *)
  3572. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3573. esac
  3574. case $ac_prog in
  3575. # Accept absolute paths.
  3576. [\\/]* | ?:[\\/]*)
  3577. re_direlt='/[^/][^/]*/\.\./'
  3578. # Canonicalize the pathname of ld
  3579. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3580. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3581. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3582. done
  3583. test -z "$LD" && LD="$ac_prog"
  3584. ;;
  3585. "")
  3586. # If it fails, then pretend we aren't using GCC.
  3587. ac_prog=ld
  3588. ;;
  3589. *)
  3590. # If it is relative, then search for the first ld in PATH.
  3591. with_gnu_ld=unknown
  3592. ;;
  3593. esac
  3594. elif test "$with_gnu_ld" = yes; then
  3595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3596. $as_echo_n "checking for GNU ld... " >&6; }
  3597. else
  3598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3599. $as_echo_n "checking for non-GNU ld... " >&6; }
  3600. fi
  3601. if ${lt_cv_path_LD+:} false; then :
  3602. $as_echo_n "(cached) " >&6
  3603. else
  3604. if test -z "$LD"; then
  3605. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3606. for ac_dir in $PATH; do
  3607. IFS="$lt_save_ifs"
  3608. test -z "$ac_dir" && ac_dir=.
  3609. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3610. lt_cv_path_LD="$ac_dir/$ac_prog"
  3611. # Check to see if the program is GNU ld. I'd rather use --version,
  3612. # but apparently some variants of GNU ld only accept -v.
  3613. # Break only if it was the GNU/non-GNU ld that we prefer.
  3614. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3615. *GNU* | *'with BFD'*)
  3616. test "$with_gnu_ld" != no && break
  3617. ;;
  3618. *)
  3619. test "$with_gnu_ld" != yes && break
  3620. ;;
  3621. esac
  3622. fi
  3623. done
  3624. IFS="$lt_save_ifs"
  3625. else
  3626. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3627. fi
  3628. fi
  3629. LD="$lt_cv_path_LD"
  3630. if test -n "$LD"; then
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3632. $as_echo "$LD" >&6; }
  3633. else
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3635. $as_echo "no" >&6; }
  3636. fi
  3637. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3639. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3640. if ${lt_cv_prog_gnu_ld+:} false; then :
  3641. $as_echo_n "(cached) " >&6
  3642. else
  3643. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3644. case `$LD -v 2>&1 </dev/null` in
  3645. *GNU* | *'with BFD'*)
  3646. lt_cv_prog_gnu_ld=yes
  3647. ;;
  3648. *)
  3649. lt_cv_prog_gnu_ld=no
  3650. ;;
  3651. esac
  3652. fi
  3653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3654. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3655. with_gnu_ld=$lt_cv_prog_gnu_ld
  3656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3657. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3658. if ${lt_cv_path_NM+:} false; then :
  3659. $as_echo_n "(cached) " >&6
  3660. else
  3661. if test -n "$NM"; then
  3662. # Let the user override the test.
  3663. lt_cv_path_NM="$NM"
  3664. else
  3665. lt_nm_to_check="${ac_tool_prefix}nm"
  3666. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3667. lt_nm_to_check="$lt_nm_to_check nm"
  3668. fi
  3669. for lt_tmp_nm in $lt_nm_to_check; do
  3670. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3671. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3672. IFS="$lt_save_ifs"
  3673. test -z "$ac_dir" && ac_dir=.
  3674. tmp_nm="$ac_dir/$lt_tmp_nm"
  3675. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3676. # Check to see if the nm accepts a BSD-compat flag.
  3677. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3678. # nm: unknown option "B" ignored
  3679. # Tru64's nm complains that /dev/null is an invalid object file
  3680. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3681. */dev/null* | *'Invalid file or object type'*)
  3682. lt_cv_path_NM="$tmp_nm -B"
  3683. break
  3684. ;;
  3685. *)
  3686. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3687. */dev/null*)
  3688. lt_cv_path_NM="$tmp_nm -p"
  3689. break
  3690. ;;
  3691. *)
  3692. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3693. continue # so that we can try to find one that supports BSD flags
  3694. ;;
  3695. esac
  3696. ;;
  3697. esac
  3698. fi
  3699. done
  3700. IFS="$lt_save_ifs"
  3701. done
  3702. : ${lt_cv_path_NM=no}
  3703. fi
  3704. fi
  3705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3706. $as_echo "$lt_cv_path_NM" >&6; }
  3707. if test "$lt_cv_path_NM" != "no"; then
  3708. NM="$lt_cv_path_NM"
  3709. else
  3710. # Didn't find any BSD compatible name lister, look for dumpbin.
  3711. if test -n "$DUMPBIN"; then :
  3712. # Let the user override the test.
  3713. else
  3714. if test -n "$ac_tool_prefix"; then
  3715. for ac_prog in dumpbin "link -dump"
  3716. do
  3717. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3718. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3720. $as_echo_n "checking for $ac_word... " >&6; }
  3721. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3722. $as_echo_n "(cached) " >&6
  3723. else
  3724. if test -n "$DUMPBIN"; then
  3725. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3726. else
  3727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3728. for as_dir in $PATH
  3729. do
  3730. IFS=$as_save_IFS
  3731. test -z "$as_dir" && as_dir=.
  3732. for ac_exec_ext in '' $ac_executable_extensions; do
  3733. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3734. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3735. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3736. break 2
  3737. fi
  3738. done
  3739. done
  3740. IFS=$as_save_IFS
  3741. fi
  3742. fi
  3743. DUMPBIN=$ac_cv_prog_DUMPBIN
  3744. if test -n "$DUMPBIN"; then
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3746. $as_echo "$DUMPBIN" >&6; }
  3747. else
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3749. $as_echo "no" >&6; }
  3750. fi
  3751. test -n "$DUMPBIN" && break
  3752. done
  3753. fi
  3754. if test -z "$DUMPBIN"; then
  3755. ac_ct_DUMPBIN=$DUMPBIN
  3756. for ac_prog in dumpbin "link -dump"
  3757. do
  3758. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3759. set dummy $ac_prog; ac_word=$2
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3761. $as_echo_n "checking for $ac_word... " >&6; }
  3762. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3763. $as_echo_n "(cached) " >&6
  3764. else
  3765. if test -n "$ac_ct_DUMPBIN"; then
  3766. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3767. else
  3768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3769. for as_dir in $PATH
  3770. do
  3771. IFS=$as_save_IFS
  3772. test -z "$as_dir" && as_dir=.
  3773. for ac_exec_ext in '' $ac_executable_extensions; do
  3774. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3775. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3776. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3777. break 2
  3778. fi
  3779. done
  3780. done
  3781. IFS=$as_save_IFS
  3782. fi
  3783. fi
  3784. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3785. if test -n "$ac_ct_DUMPBIN"; then
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3787. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3788. else
  3789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3790. $as_echo "no" >&6; }
  3791. fi
  3792. test -n "$ac_ct_DUMPBIN" && break
  3793. done
  3794. if test "x$ac_ct_DUMPBIN" = x; then
  3795. DUMPBIN=":"
  3796. else
  3797. case $cross_compiling:$ac_tool_warned in
  3798. yes:)
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3800. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3801. ac_tool_warned=yes ;;
  3802. esac
  3803. DUMPBIN=$ac_ct_DUMPBIN
  3804. fi
  3805. fi
  3806. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3807. *COFF*)
  3808. DUMPBIN="$DUMPBIN -symbols"
  3809. ;;
  3810. *)
  3811. DUMPBIN=:
  3812. ;;
  3813. esac
  3814. fi
  3815. if test "$DUMPBIN" != ":"; then
  3816. NM="$DUMPBIN"
  3817. fi
  3818. fi
  3819. test -z "$NM" && NM=nm
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3821. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3822. if ${lt_cv_nm_interface+:} false; then :
  3823. $as_echo_n "(cached) " >&6
  3824. else
  3825. lt_cv_nm_interface="BSD nm"
  3826. echo "int some_variable = 0;" > conftest.$ac_ext
  3827. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3828. (eval "$ac_compile" 2>conftest.err)
  3829. cat conftest.err >&5
  3830. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3831. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3832. cat conftest.err >&5
  3833. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3834. cat conftest.out >&5
  3835. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3836. lt_cv_nm_interface="MS dumpbin"
  3837. fi
  3838. rm -f conftest*
  3839. fi
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3841. $as_echo "$lt_cv_nm_interface" >&6; }
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3843. $as_echo_n "checking whether ln -s works... " >&6; }
  3844. LN_S=$as_ln_s
  3845. if test "$LN_S" = "ln -s"; then
  3846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3847. $as_echo "yes" >&6; }
  3848. else
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3850. $as_echo "no, using $LN_S" >&6; }
  3851. fi
  3852. # find the maximum length of command line arguments
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3854. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3855. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3856. $as_echo_n "(cached) " >&6
  3857. else
  3858. i=0
  3859. teststring="ABCD"
  3860. case $build_os in
  3861. msdosdjgpp*)
  3862. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3863. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3864. # during glob expansion). Even if it were fixed, the result of this
  3865. # check would be larger than it should be.
  3866. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3867. ;;
  3868. gnu*)
  3869. # Under GNU Hurd, this test is not required because there is
  3870. # no limit to the length of command line arguments.
  3871. # Libtool will interpret -1 as no limit whatsoever
  3872. lt_cv_sys_max_cmd_len=-1;
  3873. ;;
  3874. cygwin* | mingw* | cegcc*)
  3875. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3876. # about 5 minutes as the teststring grows exponentially.
  3877. # Worse, since 9x/ME are not pre-emptively multitasking,
  3878. # you end up with a "frozen" computer, even though with patience
  3879. # the test eventually succeeds (with a max line length of 256k).
  3880. # Instead, let's just punt: use the minimum linelength reported by
  3881. # all of the supported platforms: 8192 (on NT/2K/XP).
  3882. lt_cv_sys_max_cmd_len=8192;
  3883. ;;
  3884. mint*)
  3885. # On MiNT this can take a long time and run out of memory.
  3886. lt_cv_sys_max_cmd_len=8192;
  3887. ;;
  3888. amigaos*)
  3889. # On AmigaOS with pdksh, this test takes hours, literally.
  3890. # So we just punt and use a minimum line length of 8192.
  3891. lt_cv_sys_max_cmd_len=8192;
  3892. ;;
  3893. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3894. # This has been around since 386BSD, at least. Likely further.
  3895. if test -x /sbin/sysctl; then
  3896. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3897. elif test -x /usr/sbin/sysctl; then
  3898. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3899. else
  3900. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3901. fi
  3902. # And add a safety zone
  3903. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3904. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3905. ;;
  3906. interix*)
  3907. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3908. lt_cv_sys_max_cmd_len=196608
  3909. ;;
  3910. os2*)
  3911. # The test takes a long time on OS/2.
  3912. lt_cv_sys_max_cmd_len=8192
  3913. ;;
  3914. osf*)
  3915. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3916. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3917. # nice to cause kernel panics so lets avoid the loop below.
  3918. # First set a reasonable default.
  3919. lt_cv_sys_max_cmd_len=16384
  3920. #
  3921. if test -x /sbin/sysconfig; then
  3922. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3923. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3924. esac
  3925. fi
  3926. ;;
  3927. sco3.2v5*)
  3928. lt_cv_sys_max_cmd_len=102400
  3929. ;;
  3930. sysv5* | sco5v6* | sysv4.2uw2*)
  3931. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3932. if test -n "$kargmax"; then
  3933. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3934. else
  3935. lt_cv_sys_max_cmd_len=32768
  3936. fi
  3937. ;;
  3938. *)
  3939. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3940. if test -n "$lt_cv_sys_max_cmd_len"; then
  3941. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3942. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3943. else
  3944. # Make teststring a little bigger before we do anything with it.
  3945. # a 1K string should be a reasonable start.
  3946. for i in 1 2 3 4 5 6 7 8 ; do
  3947. teststring=$teststring$teststring
  3948. done
  3949. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3950. # If test is not a shell built-in, we'll probably end up computing a
  3951. # maximum length that is only half of the actual maximum length, but
  3952. # we can't tell.
  3953. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3954. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3955. test $i != 17 # 1/2 MB should be enough
  3956. do
  3957. i=`expr $i + 1`
  3958. teststring=$teststring$teststring
  3959. done
  3960. # Only check the string length outside the loop.
  3961. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3962. teststring=
  3963. # Add a significant safety factor because C++ compilers can tack on
  3964. # massive amounts of additional arguments before passing them to the
  3965. # linker. It appears as though 1/2 is a usable value.
  3966. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3967. fi
  3968. ;;
  3969. esac
  3970. fi
  3971. if test -n $lt_cv_sys_max_cmd_len ; then
  3972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3973. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3974. else
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3976. $as_echo "none" >&6; }
  3977. fi
  3978. max_cmd_len=$lt_cv_sys_max_cmd_len
  3979. : ${CP="cp -f"}
  3980. : ${MV="mv -f"}
  3981. : ${RM="rm -f"}
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  3983. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  3984. # Try some XSI features
  3985. xsi_shell=no
  3986. ( _lt_dummy="a/b/c"
  3987. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  3988. = c,a/b,b/c, \
  3989. && eval 'test $(( 1 + 1 )) -eq 2 \
  3990. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  3991. && xsi_shell=yes
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  3993. $as_echo "$xsi_shell" >&6; }
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  3995. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  3996. lt_shell_append=no
  3997. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  3998. >/dev/null 2>&1 \
  3999. && lt_shell_append=yes
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4001. $as_echo "$lt_shell_append" >&6; }
  4002. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4003. lt_unset=unset
  4004. else
  4005. lt_unset=false
  4006. fi
  4007. # test EBCDIC or ASCII
  4008. case `echo X|tr X '\101'` in
  4009. A) # ASCII based system
  4010. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4011. lt_SP2NL='tr \040 \012'
  4012. lt_NL2SP='tr \015\012 \040\040'
  4013. ;;
  4014. *) # EBCDIC based system
  4015. lt_SP2NL='tr \100 \n'
  4016. lt_NL2SP='tr \r\n \100\100'
  4017. ;;
  4018. esac
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4020. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4021. if ${lt_cv_to_host_file_cmd+:} false; then :
  4022. $as_echo_n "(cached) " >&6
  4023. else
  4024. case $host in
  4025. *-*-mingw* )
  4026. case $build in
  4027. *-*-mingw* ) # actually msys
  4028. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4029. ;;
  4030. *-*-cygwin* )
  4031. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4032. ;;
  4033. * ) # otherwise, assume *nix
  4034. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4035. ;;
  4036. esac
  4037. ;;
  4038. *-*-cygwin* )
  4039. case $build in
  4040. *-*-mingw* ) # actually msys
  4041. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4042. ;;
  4043. *-*-cygwin* )
  4044. lt_cv_to_host_file_cmd=func_convert_file_noop
  4045. ;;
  4046. * ) # otherwise, assume *nix
  4047. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4048. ;;
  4049. esac
  4050. ;;
  4051. * ) # unhandled hosts (and "normal" native builds)
  4052. lt_cv_to_host_file_cmd=func_convert_file_noop
  4053. ;;
  4054. esac
  4055. fi
  4056. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4058. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4060. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4061. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4062. $as_echo_n "(cached) " >&6
  4063. else
  4064. #assume ordinary cross tools, or native build.
  4065. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4066. case $host in
  4067. *-*-mingw* )
  4068. case $build in
  4069. *-*-mingw* ) # actually msys
  4070. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4071. ;;
  4072. esac
  4073. ;;
  4074. esac
  4075. fi
  4076. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4078. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4080. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4081. if ${lt_cv_ld_reload_flag+:} false; then :
  4082. $as_echo_n "(cached) " >&6
  4083. else
  4084. lt_cv_ld_reload_flag='-r'
  4085. fi
  4086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4087. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4088. reload_flag=$lt_cv_ld_reload_flag
  4089. case $reload_flag in
  4090. "" | " "*) ;;
  4091. *) reload_flag=" $reload_flag" ;;
  4092. esac
  4093. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4094. case $host_os in
  4095. cygwin* | mingw* | pw32* | cegcc*)
  4096. if test "$GCC" != yes; then
  4097. reload_cmds=false
  4098. fi
  4099. ;;
  4100. darwin*)
  4101. if test "$GCC" = yes; then
  4102. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4103. else
  4104. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4105. fi
  4106. ;;
  4107. esac
  4108. if test -n "$ac_tool_prefix"; then
  4109. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4110. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4112. $as_echo_n "checking for $ac_word... " >&6; }
  4113. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4114. $as_echo_n "(cached) " >&6
  4115. else
  4116. if test -n "$OBJDUMP"; then
  4117. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4118. else
  4119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4120. for as_dir in $PATH
  4121. do
  4122. IFS=$as_save_IFS
  4123. test -z "$as_dir" && as_dir=.
  4124. for ac_exec_ext in '' $ac_executable_extensions; do
  4125. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4126. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4127. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4128. break 2
  4129. fi
  4130. done
  4131. done
  4132. IFS=$as_save_IFS
  4133. fi
  4134. fi
  4135. OBJDUMP=$ac_cv_prog_OBJDUMP
  4136. if test -n "$OBJDUMP"; then
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4138. $as_echo "$OBJDUMP" >&6; }
  4139. else
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4141. $as_echo "no" >&6; }
  4142. fi
  4143. fi
  4144. if test -z "$ac_cv_prog_OBJDUMP"; then
  4145. ac_ct_OBJDUMP=$OBJDUMP
  4146. # Extract the first word of "objdump", so it can be a program name with args.
  4147. set dummy objdump; ac_word=$2
  4148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4149. $as_echo_n "checking for $ac_word... " >&6; }
  4150. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4151. $as_echo_n "(cached) " >&6
  4152. else
  4153. if test -n "$ac_ct_OBJDUMP"; then
  4154. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4155. else
  4156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4157. for as_dir in $PATH
  4158. do
  4159. IFS=$as_save_IFS
  4160. test -z "$as_dir" && as_dir=.
  4161. for ac_exec_ext in '' $ac_executable_extensions; do
  4162. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4163. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4164. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4165. break 2
  4166. fi
  4167. done
  4168. done
  4169. IFS=$as_save_IFS
  4170. fi
  4171. fi
  4172. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4173. if test -n "$ac_ct_OBJDUMP"; then
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4175. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4176. else
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4178. $as_echo "no" >&6; }
  4179. fi
  4180. if test "x$ac_ct_OBJDUMP" = x; then
  4181. OBJDUMP="false"
  4182. else
  4183. case $cross_compiling:$ac_tool_warned in
  4184. yes:)
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4186. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4187. ac_tool_warned=yes ;;
  4188. esac
  4189. OBJDUMP=$ac_ct_OBJDUMP
  4190. fi
  4191. else
  4192. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4193. fi
  4194. test -z "$OBJDUMP" && OBJDUMP=objdump
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4196. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4197. if ${lt_cv_deplibs_check_method+:} false; then :
  4198. $as_echo_n "(cached) " >&6
  4199. else
  4200. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4201. lt_cv_file_magic_test_file=
  4202. lt_cv_deplibs_check_method='unknown'
  4203. # Need to set the preceding variable on all platforms that support
  4204. # interlibrary dependencies.
  4205. # 'none' -- dependencies not supported.
  4206. # `unknown' -- same as none, but documents that we really don't know.
  4207. # 'pass_all' -- all dependencies passed with no checks.
  4208. # 'test_compile' -- check by making test program.
  4209. # 'file_magic [[regex]]' -- check by looking for files in library path
  4210. # which responds to the $file_magic_cmd with a given extended regex.
  4211. # If you have `file' or equivalent on your system and you're not sure
  4212. # whether `pass_all' will *always* work, you probably want this one.
  4213. case $host_os in
  4214. aix[4-9]*)
  4215. lt_cv_deplibs_check_method=pass_all
  4216. ;;
  4217. beos*)
  4218. lt_cv_deplibs_check_method=pass_all
  4219. ;;
  4220. bsdi[45]*)
  4221. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4222. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4223. lt_cv_file_magic_test_file=/shlib/libc.so
  4224. ;;
  4225. cygwin*)
  4226. # func_win32_libid is a shell function defined in ltmain.sh
  4227. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4228. lt_cv_file_magic_cmd='func_win32_libid'
  4229. lt_cv_deplibs_check_method=pass_all
  4230. ;;
  4231. mingw* | pw32*)
  4232. # Base MSYS/MinGW do not provide the 'file' command needed by
  4233. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4234. # unless we find 'file', for example because we are cross-compiling.
  4235. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4236. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4237. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4238. lt_cv_file_magic_cmd='func_win32_libid'
  4239. else
  4240. # Keep this pattern in sync with the one in func_win32_libid.
  4241. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4242. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4243. fi
  4244. lt_cv_deplibs_check_method=pass_all
  4245. ;;
  4246. cegcc*)
  4247. # use the weaker test based on 'objdump'. See mingw*.
  4248. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4249. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4250. ;;
  4251. darwin* | rhapsody*)
  4252. lt_cv_deplibs_check_method=pass_all
  4253. ;;
  4254. freebsd* | dragonfly*)
  4255. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4256. case $host_cpu in
  4257. i*86 )
  4258. # Not sure whether the presence of OpenBSD here was a mistake.
  4259. # Let's accept both of them until this is cleared up.
  4260. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4261. lt_cv_file_magic_cmd=/usr/bin/file
  4262. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4263. ;;
  4264. esac
  4265. else
  4266. lt_cv_deplibs_check_method=pass_all
  4267. fi
  4268. ;;
  4269. gnu*)
  4270. lt_cv_deplibs_check_method=pass_all
  4271. ;;
  4272. haiku*)
  4273. lt_cv_deplibs_check_method=pass_all
  4274. ;;
  4275. hpux10.20* | hpux11*)
  4276. lt_cv_file_magic_cmd=/usr/bin/file
  4277. case $host_cpu in
  4278. ia64*)
  4279. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4280. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4281. ;;
  4282. hppa*64*)
  4283. 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]'
  4284. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4285. ;;
  4286. *)
  4287. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4288. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4289. ;;
  4290. esac
  4291. ;;
  4292. interix[3-9]*)
  4293. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4294. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4295. ;;
  4296. irix5* | irix6* | nonstopux*)
  4297. case $LD in
  4298. *-32|*"-32 ") libmagic=32-bit;;
  4299. *-n32|*"-n32 ") libmagic=N32;;
  4300. *-64|*"-64 ") libmagic=64-bit;;
  4301. *) libmagic=never-match;;
  4302. esac
  4303. lt_cv_deplibs_check_method=pass_all
  4304. ;;
  4305. # This must be glibc/ELF.
  4306. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4307. lt_cv_deplibs_check_method=pass_all
  4308. ;;
  4309. netbsd*)
  4310. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4311. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4312. else
  4313. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4314. fi
  4315. ;;
  4316. newos6*)
  4317. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4318. lt_cv_file_magic_cmd=/usr/bin/file
  4319. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4320. ;;
  4321. *nto* | *qnx*)
  4322. lt_cv_deplibs_check_method=pass_all
  4323. ;;
  4324. openbsd*)
  4325. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4326. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4327. else
  4328. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4329. fi
  4330. ;;
  4331. osf3* | osf4* | osf5*)
  4332. lt_cv_deplibs_check_method=pass_all
  4333. ;;
  4334. rdos*)
  4335. lt_cv_deplibs_check_method=pass_all
  4336. ;;
  4337. solaris*)
  4338. lt_cv_deplibs_check_method=pass_all
  4339. ;;
  4340. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4341. lt_cv_deplibs_check_method=pass_all
  4342. ;;
  4343. sysv4 | sysv4.3*)
  4344. case $host_vendor in
  4345. motorola)
  4346. 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]'
  4347. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4348. ;;
  4349. ncr)
  4350. lt_cv_deplibs_check_method=pass_all
  4351. ;;
  4352. sequent)
  4353. lt_cv_file_magic_cmd='/bin/file'
  4354. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4355. ;;
  4356. sni)
  4357. lt_cv_file_magic_cmd='/bin/file'
  4358. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4359. lt_cv_file_magic_test_file=/lib/libc.so
  4360. ;;
  4361. siemens)
  4362. lt_cv_deplibs_check_method=pass_all
  4363. ;;
  4364. pc)
  4365. lt_cv_deplibs_check_method=pass_all
  4366. ;;
  4367. esac
  4368. ;;
  4369. tpf*)
  4370. lt_cv_deplibs_check_method=pass_all
  4371. ;;
  4372. esac
  4373. fi
  4374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4375. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4376. file_magic_glob=
  4377. want_nocaseglob=no
  4378. if test "$build" = "$host"; then
  4379. case $host_os in
  4380. mingw* | pw32*)
  4381. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4382. want_nocaseglob=yes
  4383. else
  4384. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4385. fi
  4386. ;;
  4387. esac
  4388. fi
  4389. file_magic_cmd=$lt_cv_file_magic_cmd
  4390. deplibs_check_method=$lt_cv_deplibs_check_method
  4391. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4392. if test -n "$ac_tool_prefix"; then
  4393. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4394. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4396. $as_echo_n "checking for $ac_word... " >&6; }
  4397. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4398. $as_echo_n "(cached) " >&6
  4399. else
  4400. if test -n "$DLLTOOL"; then
  4401. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4402. else
  4403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4404. for as_dir in $PATH
  4405. do
  4406. IFS=$as_save_IFS
  4407. test -z "$as_dir" && as_dir=.
  4408. for ac_exec_ext in '' $ac_executable_extensions; do
  4409. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4410. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4411. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4412. break 2
  4413. fi
  4414. done
  4415. done
  4416. IFS=$as_save_IFS
  4417. fi
  4418. fi
  4419. DLLTOOL=$ac_cv_prog_DLLTOOL
  4420. if test -n "$DLLTOOL"; then
  4421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4422. $as_echo "$DLLTOOL" >&6; }
  4423. else
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4425. $as_echo "no" >&6; }
  4426. fi
  4427. fi
  4428. if test -z "$ac_cv_prog_DLLTOOL"; then
  4429. ac_ct_DLLTOOL=$DLLTOOL
  4430. # Extract the first word of "dlltool", so it can be a program name with args.
  4431. set dummy dlltool; ac_word=$2
  4432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4433. $as_echo_n "checking for $ac_word... " >&6; }
  4434. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4435. $as_echo_n "(cached) " >&6
  4436. else
  4437. if test -n "$ac_ct_DLLTOOL"; then
  4438. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4439. else
  4440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4441. for as_dir in $PATH
  4442. do
  4443. IFS=$as_save_IFS
  4444. test -z "$as_dir" && as_dir=.
  4445. for ac_exec_ext in '' $ac_executable_extensions; do
  4446. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4447. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4448. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4449. break 2
  4450. fi
  4451. done
  4452. done
  4453. IFS=$as_save_IFS
  4454. fi
  4455. fi
  4456. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4457. if test -n "$ac_ct_DLLTOOL"; then
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4459. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4460. else
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4462. $as_echo "no" >&6; }
  4463. fi
  4464. if test "x$ac_ct_DLLTOOL" = x; then
  4465. DLLTOOL="false"
  4466. else
  4467. case $cross_compiling:$ac_tool_warned in
  4468. yes:)
  4469. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4470. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4471. ac_tool_warned=yes ;;
  4472. esac
  4473. DLLTOOL=$ac_ct_DLLTOOL
  4474. fi
  4475. else
  4476. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4477. fi
  4478. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4480. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4481. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4482. $as_echo_n "(cached) " >&6
  4483. else
  4484. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4485. case $host_os in
  4486. cygwin* | mingw* | pw32* | cegcc*)
  4487. # two different shell functions defined in ltmain.sh
  4488. # decide which to use based on capabilities of $DLLTOOL
  4489. case `$DLLTOOL --help 2>&1` in
  4490. *--identify-strict*)
  4491. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4492. ;;
  4493. *)
  4494. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4495. ;;
  4496. esac
  4497. ;;
  4498. *)
  4499. # fallback: assume linklib IS sharedlib
  4500. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4501. ;;
  4502. esac
  4503. fi
  4504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4505. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4506. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4507. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4508. if test -n "$ac_tool_prefix"; then
  4509. for ac_prog in ar
  4510. do
  4511. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4512. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4514. $as_echo_n "checking for $ac_word... " >&6; }
  4515. if ${ac_cv_prog_AR+:} false; then :
  4516. $as_echo_n "(cached) " >&6
  4517. else
  4518. if test -n "$AR"; then
  4519. ac_cv_prog_AR="$AR" # Let the user override the test.
  4520. else
  4521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4522. for as_dir in $PATH
  4523. do
  4524. IFS=$as_save_IFS
  4525. test -z "$as_dir" && as_dir=.
  4526. for ac_exec_ext in '' $ac_executable_extensions; do
  4527. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4528. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4529. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4530. break 2
  4531. fi
  4532. done
  4533. done
  4534. IFS=$as_save_IFS
  4535. fi
  4536. fi
  4537. AR=$ac_cv_prog_AR
  4538. if test -n "$AR"; then
  4539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4540. $as_echo "$AR" >&6; }
  4541. else
  4542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4543. $as_echo "no" >&6; }
  4544. fi
  4545. test -n "$AR" && break
  4546. done
  4547. fi
  4548. if test -z "$AR"; then
  4549. ac_ct_AR=$AR
  4550. for ac_prog in ar
  4551. do
  4552. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4553. set dummy $ac_prog; ac_word=$2
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4555. $as_echo_n "checking for $ac_word... " >&6; }
  4556. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4557. $as_echo_n "(cached) " >&6
  4558. else
  4559. if test -n "$ac_ct_AR"; then
  4560. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4561. else
  4562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4563. for as_dir in $PATH
  4564. do
  4565. IFS=$as_save_IFS
  4566. test -z "$as_dir" && as_dir=.
  4567. for ac_exec_ext in '' $ac_executable_extensions; do
  4568. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4569. ac_cv_prog_ac_ct_AR="$ac_prog"
  4570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4571. break 2
  4572. fi
  4573. done
  4574. done
  4575. IFS=$as_save_IFS
  4576. fi
  4577. fi
  4578. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4579. if test -n "$ac_ct_AR"; then
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4581. $as_echo "$ac_ct_AR" >&6; }
  4582. else
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4584. $as_echo "no" >&6; }
  4585. fi
  4586. test -n "$ac_ct_AR" && break
  4587. done
  4588. if test "x$ac_ct_AR" = x; then
  4589. AR="false"
  4590. else
  4591. case $cross_compiling:$ac_tool_warned in
  4592. yes:)
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4594. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4595. ac_tool_warned=yes ;;
  4596. esac
  4597. AR=$ac_ct_AR
  4598. fi
  4599. fi
  4600. : ${AR=ar}
  4601. : ${AR_FLAGS=cru}
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4603. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4604. if ${lt_cv_ar_at_file+:} false; then :
  4605. $as_echo_n "(cached) " >&6
  4606. else
  4607. lt_cv_ar_at_file=no
  4608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4609. /* end confdefs.h. */
  4610. int
  4611. main ()
  4612. {
  4613. ;
  4614. return 0;
  4615. }
  4616. _ACEOF
  4617. if ac_fn_c_try_compile "$LINENO"; then :
  4618. echo conftest.$ac_objext > conftest.lst
  4619. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4620. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4621. (eval $lt_ar_try) 2>&5
  4622. ac_status=$?
  4623. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4624. test $ac_status = 0; }
  4625. if test "$ac_status" -eq 0; then
  4626. # Ensure the archiver fails upon bogus file names.
  4627. rm -f conftest.$ac_objext libconftest.a
  4628. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4629. (eval $lt_ar_try) 2>&5
  4630. ac_status=$?
  4631. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4632. test $ac_status = 0; }
  4633. if test "$ac_status" -ne 0; then
  4634. lt_cv_ar_at_file=@
  4635. fi
  4636. fi
  4637. rm -f conftest.* libconftest.a
  4638. fi
  4639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4640. fi
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4642. $as_echo "$lt_cv_ar_at_file" >&6; }
  4643. if test "x$lt_cv_ar_at_file" = xno; then
  4644. archiver_list_spec=
  4645. else
  4646. archiver_list_spec=$lt_cv_ar_at_file
  4647. fi
  4648. if test -n "$ac_tool_prefix"; then
  4649. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4650. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4652. $as_echo_n "checking for $ac_word... " >&6; }
  4653. if ${ac_cv_prog_STRIP+:} false; then :
  4654. $as_echo_n "(cached) " >&6
  4655. else
  4656. if test -n "$STRIP"; then
  4657. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4658. else
  4659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4660. for as_dir in $PATH
  4661. do
  4662. IFS=$as_save_IFS
  4663. test -z "$as_dir" && as_dir=.
  4664. for ac_exec_ext in '' $ac_executable_extensions; do
  4665. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4666. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4667. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4668. break 2
  4669. fi
  4670. done
  4671. done
  4672. IFS=$as_save_IFS
  4673. fi
  4674. fi
  4675. STRIP=$ac_cv_prog_STRIP
  4676. if test -n "$STRIP"; then
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4678. $as_echo "$STRIP" >&6; }
  4679. else
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4681. $as_echo "no" >&6; }
  4682. fi
  4683. fi
  4684. if test -z "$ac_cv_prog_STRIP"; then
  4685. ac_ct_STRIP=$STRIP
  4686. # Extract the first word of "strip", so it can be a program name with args.
  4687. set dummy strip; ac_word=$2
  4688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4689. $as_echo_n "checking for $ac_word... " >&6; }
  4690. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4691. $as_echo_n "(cached) " >&6
  4692. else
  4693. if test -n "$ac_ct_STRIP"; then
  4694. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4695. else
  4696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4697. for as_dir in $PATH
  4698. do
  4699. IFS=$as_save_IFS
  4700. test -z "$as_dir" && as_dir=.
  4701. for ac_exec_ext in '' $ac_executable_extensions; do
  4702. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4703. ac_cv_prog_ac_ct_STRIP="strip"
  4704. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4705. break 2
  4706. fi
  4707. done
  4708. done
  4709. IFS=$as_save_IFS
  4710. fi
  4711. fi
  4712. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4713. if test -n "$ac_ct_STRIP"; then
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4715. $as_echo "$ac_ct_STRIP" >&6; }
  4716. else
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4718. $as_echo "no" >&6; }
  4719. fi
  4720. if test "x$ac_ct_STRIP" = x; then
  4721. STRIP=":"
  4722. else
  4723. case $cross_compiling:$ac_tool_warned in
  4724. yes:)
  4725. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4726. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4727. ac_tool_warned=yes ;;
  4728. esac
  4729. STRIP=$ac_ct_STRIP
  4730. fi
  4731. else
  4732. STRIP="$ac_cv_prog_STRIP"
  4733. fi
  4734. test -z "$STRIP" && STRIP=:
  4735. if test -n "$ac_tool_prefix"; then
  4736. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4737. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4739. $as_echo_n "checking for $ac_word... " >&6; }
  4740. if ${ac_cv_prog_RANLIB+:} false; then :
  4741. $as_echo_n "(cached) " >&6
  4742. else
  4743. if test -n "$RANLIB"; then
  4744. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4745. else
  4746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4747. for as_dir in $PATH
  4748. do
  4749. IFS=$as_save_IFS
  4750. test -z "$as_dir" && as_dir=.
  4751. for ac_exec_ext in '' $ac_executable_extensions; do
  4752. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4753. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4755. break 2
  4756. fi
  4757. done
  4758. done
  4759. IFS=$as_save_IFS
  4760. fi
  4761. fi
  4762. RANLIB=$ac_cv_prog_RANLIB
  4763. if test -n "$RANLIB"; then
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4765. $as_echo "$RANLIB" >&6; }
  4766. else
  4767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4768. $as_echo "no" >&6; }
  4769. fi
  4770. fi
  4771. if test -z "$ac_cv_prog_RANLIB"; then
  4772. ac_ct_RANLIB=$RANLIB
  4773. # Extract the first word of "ranlib", so it can be a program name with args.
  4774. set dummy ranlib; ac_word=$2
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4776. $as_echo_n "checking for $ac_word... " >&6; }
  4777. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4778. $as_echo_n "(cached) " >&6
  4779. else
  4780. if test -n "$ac_ct_RANLIB"; then
  4781. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4782. else
  4783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4784. for as_dir in $PATH
  4785. do
  4786. IFS=$as_save_IFS
  4787. test -z "$as_dir" && as_dir=.
  4788. for ac_exec_ext in '' $ac_executable_extensions; do
  4789. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4790. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4792. break 2
  4793. fi
  4794. done
  4795. done
  4796. IFS=$as_save_IFS
  4797. fi
  4798. fi
  4799. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4800. if test -n "$ac_ct_RANLIB"; then
  4801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4802. $as_echo "$ac_ct_RANLIB" >&6; }
  4803. else
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4805. $as_echo "no" >&6; }
  4806. fi
  4807. if test "x$ac_ct_RANLIB" = x; then
  4808. RANLIB=":"
  4809. else
  4810. case $cross_compiling:$ac_tool_warned in
  4811. yes:)
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4813. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4814. ac_tool_warned=yes ;;
  4815. esac
  4816. RANLIB=$ac_ct_RANLIB
  4817. fi
  4818. else
  4819. RANLIB="$ac_cv_prog_RANLIB"
  4820. fi
  4821. test -z "$RANLIB" && RANLIB=:
  4822. # Determine commands to create old-style static archives.
  4823. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4824. old_postinstall_cmds='chmod 644 $oldlib'
  4825. old_postuninstall_cmds=
  4826. if test -n "$RANLIB"; then
  4827. case $host_os in
  4828. openbsd*)
  4829. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4830. ;;
  4831. *)
  4832. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4833. ;;
  4834. esac
  4835. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4836. fi
  4837. case $host_os in
  4838. darwin*)
  4839. lock_old_archive_extraction=yes ;;
  4840. *)
  4841. lock_old_archive_extraction=no ;;
  4842. esac
  4843. for ac_prog in gawk mawk nawk awk
  4844. do
  4845. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4846. set dummy $ac_prog; ac_word=$2
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4848. $as_echo_n "checking for $ac_word... " >&6; }
  4849. if ${ac_cv_prog_AWK+:} false; then :
  4850. $as_echo_n "(cached) " >&6
  4851. else
  4852. if test -n "$AWK"; then
  4853. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4854. else
  4855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4856. for as_dir in $PATH
  4857. do
  4858. IFS=$as_save_IFS
  4859. test -z "$as_dir" && as_dir=.
  4860. for ac_exec_ext in '' $ac_executable_extensions; do
  4861. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4862. ac_cv_prog_AWK="$ac_prog"
  4863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4864. break 2
  4865. fi
  4866. done
  4867. done
  4868. IFS=$as_save_IFS
  4869. fi
  4870. fi
  4871. AWK=$ac_cv_prog_AWK
  4872. if test -n "$AWK"; then
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4874. $as_echo "$AWK" >&6; }
  4875. else
  4876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4877. $as_echo "no" >&6; }
  4878. fi
  4879. test -n "$AWK" && break
  4880. done
  4881. # If no C compiler was specified, use CC.
  4882. LTCC=${LTCC-"$CC"}
  4883. # If no C compiler flags were specified, use CFLAGS.
  4884. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4885. # Allow CC to be a program name with arguments.
  4886. compiler=$CC
  4887. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4889. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4890. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4891. $as_echo_n "(cached) " >&6
  4892. else
  4893. # These are sane defaults that work on at least a few old systems.
  4894. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4895. # Character class describing NM global symbol codes.
  4896. symcode='[BCDEGRST]'
  4897. # Regexp to match symbols that can be accessed directly from C.
  4898. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4899. # Define system-specific variables.
  4900. case $host_os in
  4901. aix*)
  4902. symcode='[BCDT]'
  4903. ;;
  4904. cygwin* | mingw* | pw32* | cegcc*)
  4905. symcode='[ABCDGISTW]'
  4906. ;;
  4907. hpux*)
  4908. if test "$host_cpu" = ia64; then
  4909. symcode='[ABCDEGRST]'
  4910. fi
  4911. ;;
  4912. irix* | nonstopux*)
  4913. symcode='[BCDEGRST]'
  4914. ;;
  4915. osf*)
  4916. symcode='[BCDEGQRST]'
  4917. ;;
  4918. solaris*)
  4919. symcode='[BDRT]'
  4920. ;;
  4921. sco3.2v5*)
  4922. symcode='[DT]'
  4923. ;;
  4924. sysv4.2uw2*)
  4925. symcode='[DT]'
  4926. ;;
  4927. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4928. symcode='[ABDT]'
  4929. ;;
  4930. sysv4)
  4931. symcode='[DFNSTU]'
  4932. ;;
  4933. esac
  4934. # If we're using GNU nm, then use its standard symbol codes.
  4935. case `$NM -V 2>&1` in
  4936. *GNU* | *'with BFD'*)
  4937. symcode='[ABCDGIRSTW]' ;;
  4938. esac
  4939. # Transform an extracted symbol line into a proper C declaration.
  4940. # Some systems (esp. on ia64) link data and code symbols differently,
  4941. # so use this general approach.
  4942. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4943. # Transform an extracted symbol line into symbol name and symbol address
  4944. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4945. 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'"
  4946. # Handle CRLF in mingw tool chain
  4947. opt_cr=
  4948. case $build_os in
  4949. mingw*)
  4950. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4951. ;;
  4952. esac
  4953. # Try without a prefix underscore, then with it.
  4954. for ac_symprfx in "" "_"; do
  4955. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4956. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4957. # Write the raw and C identifiers.
  4958. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4959. # Fake it for dumpbin and say T for any non-static function
  4960. # and D for any global variable.
  4961. # Also find C++ and __fastcall symbols from MSVC++,
  4962. # which start with @ or ?.
  4963. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4964. " {last_section=section; section=\$ 3};"\
  4965. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4966. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4967. " \$ 0!~/External *\|/{next};"\
  4968. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4969. " {if(hide[section]) next};"\
  4970. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4971. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4972. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4973. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4974. " ' prfx=^$ac_symprfx"
  4975. else
  4976. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4977. fi
  4978. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4979. # Check to see that the pipe works correctly.
  4980. pipe_works=no
  4981. rm -f conftest*
  4982. cat > conftest.$ac_ext <<_LT_EOF
  4983. #ifdef __cplusplus
  4984. extern "C" {
  4985. #endif
  4986. char nm_test_var;
  4987. void nm_test_func(void);
  4988. void nm_test_func(void){}
  4989. #ifdef __cplusplus
  4990. }
  4991. #endif
  4992. int main(){nm_test_var='a';nm_test_func();return(0);}
  4993. _LT_EOF
  4994. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4995. (eval $ac_compile) 2>&5
  4996. ac_status=$?
  4997. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4998. test $ac_status = 0; }; then
  4999. # Now try to grab the symbols.
  5000. nlist=conftest.nm
  5001. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5002. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5003. ac_status=$?
  5004. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5005. test $ac_status = 0; } && test -s "$nlist"; then
  5006. # Try sorting and uniquifying the output.
  5007. if sort "$nlist" | uniq > "$nlist"T; then
  5008. mv -f "$nlist"T "$nlist"
  5009. else
  5010. rm -f "$nlist"T
  5011. fi
  5012. # Make sure that we snagged all the symbols we need.
  5013. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5014. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5015. cat <<_LT_EOF > conftest.$ac_ext
  5016. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5017. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5018. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5019. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5020. # define LT_DLSYM_CONST
  5021. #elif defined(__osf__)
  5022. /* This system does not cope well with relocations in const data. */
  5023. # define LT_DLSYM_CONST
  5024. #else
  5025. # define LT_DLSYM_CONST const
  5026. #endif
  5027. #ifdef __cplusplus
  5028. extern "C" {
  5029. #endif
  5030. _LT_EOF
  5031. # Now generate the symbol file.
  5032. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5033. cat <<_LT_EOF >> conftest.$ac_ext
  5034. /* The mapping between symbol names and symbols. */
  5035. LT_DLSYM_CONST struct {
  5036. const char *name;
  5037. void *address;
  5038. }
  5039. lt__PROGRAM__LTX_preloaded_symbols[] =
  5040. {
  5041. { "@PROGRAM@", (void *) 0 },
  5042. _LT_EOF
  5043. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5044. cat <<\_LT_EOF >> conftest.$ac_ext
  5045. {0, (void *) 0}
  5046. };
  5047. /* This works around a problem in FreeBSD linker */
  5048. #ifdef FREEBSD_WORKAROUND
  5049. static const void *lt_preloaded_setup() {
  5050. return lt__PROGRAM__LTX_preloaded_symbols;
  5051. }
  5052. #endif
  5053. #ifdef __cplusplus
  5054. }
  5055. #endif
  5056. _LT_EOF
  5057. # Now try linking the two files.
  5058. mv conftest.$ac_objext conftstm.$ac_objext
  5059. lt_globsym_save_LIBS=$LIBS
  5060. lt_globsym_save_CFLAGS=$CFLAGS
  5061. LIBS="conftstm.$ac_objext"
  5062. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5063. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5064. (eval $ac_link) 2>&5
  5065. ac_status=$?
  5066. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5067. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5068. pipe_works=yes
  5069. fi
  5070. LIBS=$lt_globsym_save_LIBS
  5071. CFLAGS=$lt_globsym_save_CFLAGS
  5072. else
  5073. echo "cannot find nm_test_func in $nlist" >&5
  5074. fi
  5075. else
  5076. echo "cannot find nm_test_var in $nlist" >&5
  5077. fi
  5078. else
  5079. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5080. fi
  5081. else
  5082. echo "$progname: failed program was:" >&5
  5083. cat conftest.$ac_ext >&5
  5084. fi
  5085. rm -rf conftest* conftst*
  5086. # Do not use the global_symbol_pipe unless it works.
  5087. if test "$pipe_works" = yes; then
  5088. break
  5089. else
  5090. lt_cv_sys_global_symbol_pipe=
  5091. fi
  5092. done
  5093. fi
  5094. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5095. lt_cv_sys_global_symbol_to_cdecl=
  5096. fi
  5097. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5099. $as_echo "failed" >&6; }
  5100. else
  5101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5102. $as_echo "ok" >&6; }
  5103. fi
  5104. # Response file support.
  5105. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5106. nm_file_list_spec='@'
  5107. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5108. nm_file_list_spec='@'
  5109. fi
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5111. $as_echo_n "checking for sysroot... " >&6; }
  5112. # Check whether --with-sysroot was given.
  5113. if test "${with_sysroot+set}" = set; then :
  5114. withval=$with_sysroot;
  5115. else
  5116. with_sysroot=no
  5117. fi
  5118. lt_sysroot=
  5119. case ${with_sysroot} in #(
  5120. yes)
  5121. if test "$GCC" = yes; then
  5122. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5123. fi
  5124. ;; #(
  5125. /*)
  5126. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5127. ;; #(
  5128. no|'')
  5129. ;; #(
  5130. *)
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5132. $as_echo "${with_sysroot}" >&6; }
  5133. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5134. ;;
  5135. esac
  5136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5137. $as_echo "${lt_sysroot:-no}" >&6; }
  5138. # Check whether --enable-libtool-lock was given.
  5139. if test "${enable_libtool_lock+set}" = set; then :
  5140. enableval=$enable_libtool_lock;
  5141. fi
  5142. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5143. # Some flags need to be propagated to the compiler or linker for good
  5144. # libtool support.
  5145. case $host in
  5146. ia64-*-hpux*)
  5147. # Find out which ABI we are using.
  5148. echo 'int i;' > conftest.$ac_ext
  5149. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5150. (eval $ac_compile) 2>&5
  5151. ac_status=$?
  5152. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5153. test $ac_status = 0; }; then
  5154. case `/usr/bin/file conftest.$ac_objext` in
  5155. *ELF-32*)
  5156. HPUX_IA64_MODE="32"
  5157. ;;
  5158. *ELF-64*)
  5159. HPUX_IA64_MODE="64"
  5160. ;;
  5161. esac
  5162. fi
  5163. rm -rf conftest*
  5164. ;;
  5165. *-*-irix6*)
  5166. # Find out which ABI we are using.
  5167. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5168. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5169. (eval $ac_compile) 2>&5
  5170. ac_status=$?
  5171. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5172. test $ac_status = 0; }; then
  5173. if test "$lt_cv_prog_gnu_ld" = yes; then
  5174. case `/usr/bin/file conftest.$ac_objext` in
  5175. *32-bit*)
  5176. LD="${LD-ld} -melf32bsmip"
  5177. ;;
  5178. *N32*)
  5179. LD="${LD-ld} -melf32bmipn32"
  5180. ;;
  5181. *64-bit*)
  5182. LD="${LD-ld} -melf64bmip"
  5183. ;;
  5184. esac
  5185. else
  5186. case `/usr/bin/file conftest.$ac_objext` in
  5187. *32-bit*)
  5188. LD="${LD-ld} -32"
  5189. ;;
  5190. *N32*)
  5191. LD="${LD-ld} -n32"
  5192. ;;
  5193. *64-bit*)
  5194. LD="${LD-ld} -64"
  5195. ;;
  5196. esac
  5197. fi
  5198. fi
  5199. rm -rf conftest*
  5200. ;;
  5201. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5202. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5203. # Find out which ABI we are using.
  5204. echo 'int i;' > conftest.$ac_ext
  5205. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5206. (eval $ac_compile) 2>&5
  5207. ac_status=$?
  5208. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5209. test $ac_status = 0; }; then
  5210. case `/usr/bin/file conftest.o` in
  5211. *32-bit*)
  5212. case $host in
  5213. x86_64-*kfreebsd*-gnu)
  5214. LD="${LD-ld} -m elf_i386_fbsd"
  5215. ;;
  5216. x86_64-*linux*)
  5217. LD="${LD-ld} -m elf_i386"
  5218. ;;
  5219. ppc64-*linux*|powerpc64-*linux*)
  5220. LD="${LD-ld} -m elf32ppclinux"
  5221. ;;
  5222. s390x-*linux*)
  5223. LD="${LD-ld} -m elf_s390"
  5224. ;;
  5225. sparc64-*linux*)
  5226. LD="${LD-ld} -m elf32_sparc"
  5227. ;;
  5228. esac
  5229. ;;
  5230. *64-bit*)
  5231. case $host in
  5232. x86_64-*kfreebsd*-gnu)
  5233. LD="${LD-ld} -m elf_x86_64_fbsd"
  5234. ;;
  5235. x86_64-*linux*)
  5236. LD="${LD-ld} -m elf_x86_64"
  5237. ;;
  5238. ppc*-*linux*|powerpc*-*linux*)
  5239. LD="${LD-ld} -m elf64ppc"
  5240. ;;
  5241. s390*-*linux*|s390*-*tpf*)
  5242. LD="${LD-ld} -m elf64_s390"
  5243. ;;
  5244. sparc*-*linux*)
  5245. LD="${LD-ld} -m elf64_sparc"
  5246. ;;
  5247. esac
  5248. ;;
  5249. esac
  5250. fi
  5251. rm -rf conftest*
  5252. ;;
  5253. *-*-sco3.2v5*)
  5254. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5255. SAVE_CFLAGS="$CFLAGS"
  5256. CFLAGS="$CFLAGS -belf"
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5258. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5259. if ${lt_cv_cc_needs_belf+:} false; then :
  5260. $as_echo_n "(cached) " >&6
  5261. else
  5262. ac_ext=c
  5263. ac_cpp='$CPP $CPPFLAGS'
  5264. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5265. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5266. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5268. /* end confdefs.h. */
  5269. int
  5270. main ()
  5271. {
  5272. ;
  5273. return 0;
  5274. }
  5275. _ACEOF
  5276. if ac_fn_c_try_link "$LINENO"; then :
  5277. lt_cv_cc_needs_belf=yes
  5278. else
  5279. lt_cv_cc_needs_belf=no
  5280. fi
  5281. rm -f core conftest.err conftest.$ac_objext \
  5282. conftest$ac_exeext conftest.$ac_ext
  5283. ac_ext=c
  5284. ac_cpp='$CPP $CPPFLAGS'
  5285. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5286. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5287. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5288. fi
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5290. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5291. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5292. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5293. CFLAGS="$SAVE_CFLAGS"
  5294. fi
  5295. ;;
  5296. *-*solaris*)
  5297. # Find out which ABI we are using.
  5298. echo 'int i;' > conftest.$ac_ext
  5299. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5300. (eval $ac_compile) 2>&5
  5301. ac_status=$?
  5302. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5303. test $ac_status = 0; }; then
  5304. case `/usr/bin/file conftest.o` in
  5305. *64-bit*)
  5306. case $lt_cv_prog_gnu_ld in
  5307. yes*)
  5308. case $host in
  5309. i?86-*-solaris*)
  5310. LD="${LD-ld} -m elf_x86_64"
  5311. ;;
  5312. sparc*-*-solaris*)
  5313. LD="${LD-ld} -m elf64_sparc"
  5314. ;;
  5315. esac
  5316. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5317. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5318. LD="${LD-ld}_sol2"
  5319. fi
  5320. ;;
  5321. *)
  5322. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5323. LD="${LD-ld} -64"
  5324. fi
  5325. ;;
  5326. esac
  5327. ;;
  5328. esac
  5329. fi
  5330. rm -rf conftest*
  5331. ;;
  5332. esac
  5333. need_locks="$enable_libtool_lock"
  5334. if test -n "$ac_tool_prefix"; then
  5335. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5336. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5338. $as_echo_n "checking for $ac_word... " >&6; }
  5339. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5340. $as_echo_n "(cached) " >&6
  5341. else
  5342. if test -n "$MANIFEST_TOOL"; then
  5343. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5344. else
  5345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5346. for as_dir in $PATH
  5347. do
  5348. IFS=$as_save_IFS
  5349. test -z "$as_dir" && as_dir=.
  5350. for ac_exec_ext in '' $ac_executable_extensions; do
  5351. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5352. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5353. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5354. break 2
  5355. fi
  5356. done
  5357. done
  5358. IFS=$as_save_IFS
  5359. fi
  5360. fi
  5361. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5362. if test -n "$MANIFEST_TOOL"; then
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5364. $as_echo "$MANIFEST_TOOL" >&6; }
  5365. else
  5366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5367. $as_echo "no" >&6; }
  5368. fi
  5369. fi
  5370. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5371. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5372. # Extract the first word of "mt", so it can be a program name with args.
  5373. set dummy mt; ac_word=$2
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5375. $as_echo_n "checking for $ac_word... " >&6; }
  5376. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5377. $as_echo_n "(cached) " >&6
  5378. else
  5379. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5380. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5381. else
  5382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5383. for as_dir in $PATH
  5384. do
  5385. IFS=$as_save_IFS
  5386. test -z "$as_dir" && as_dir=.
  5387. for ac_exec_ext in '' $ac_executable_extensions; do
  5388. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5389. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5390. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5391. break 2
  5392. fi
  5393. done
  5394. done
  5395. IFS=$as_save_IFS
  5396. fi
  5397. fi
  5398. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5399. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5401. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5402. else
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5404. $as_echo "no" >&6; }
  5405. fi
  5406. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5407. MANIFEST_TOOL=":"
  5408. else
  5409. case $cross_compiling:$ac_tool_warned in
  5410. yes:)
  5411. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5412. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5413. ac_tool_warned=yes ;;
  5414. esac
  5415. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5416. fi
  5417. else
  5418. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5419. fi
  5420. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5422. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5423. if ${lt_cv_path_mainfest_tool+:} false; then :
  5424. $as_echo_n "(cached) " >&6
  5425. else
  5426. lt_cv_path_mainfest_tool=no
  5427. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5428. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5429. cat conftest.err >&5
  5430. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5431. lt_cv_path_mainfest_tool=yes
  5432. fi
  5433. rm -f conftest*
  5434. fi
  5435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5436. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5437. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5438. MANIFEST_TOOL=:
  5439. fi
  5440. case $host_os in
  5441. rhapsody* | darwin*)
  5442. if test -n "$ac_tool_prefix"; then
  5443. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5444. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5446. $as_echo_n "checking for $ac_word... " >&6; }
  5447. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5448. $as_echo_n "(cached) " >&6
  5449. else
  5450. if test -n "$DSYMUTIL"; then
  5451. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5452. else
  5453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5454. for as_dir in $PATH
  5455. do
  5456. IFS=$as_save_IFS
  5457. test -z "$as_dir" && as_dir=.
  5458. for ac_exec_ext in '' $ac_executable_extensions; do
  5459. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5460. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5461. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5462. break 2
  5463. fi
  5464. done
  5465. done
  5466. IFS=$as_save_IFS
  5467. fi
  5468. fi
  5469. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5470. if test -n "$DSYMUTIL"; then
  5471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5472. $as_echo "$DSYMUTIL" >&6; }
  5473. else
  5474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5475. $as_echo "no" >&6; }
  5476. fi
  5477. fi
  5478. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5479. ac_ct_DSYMUTIL=$DSYMUTIL
  5480. # Extract the first word of "dsymutil", so it can be a program name with args.
  5481. set dummy dsymutil; ac_word=$2
  5482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5483. $as_echo_n "checking for $ac_word... " >&6; }
  5484. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5485. $as_echo_n "(cached) " >&6
  5486. else
  5487. if test -n "$ac_ct_DSYMUTIL"; then
  5488. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5489. else
  5490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5491. for as_dir in $PATH
  5492. do
  5493. IFS=$as_save_IFS
  5494. test -z "$as_dir" && as_dir=.
  5495. for ac_exec_ext in '' $ac_executable_extensions; do
  5496. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5497. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5498. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5499. break 2
  5500. fi
  5501. done
  5502. done
  5503. IFS=$as_save_IFS
  5504. fi
  5505. fi
  5506. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5507. if test -n "$ac_ct_DSYMUTIL"; then
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5509. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5510. else
  5511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5512. $as_echo "no" >&6; }
  5513. fi
  5514. if test "x$ac_ct_DSYMUTIL" = x; then
  5515. DSYMUTIL=":"
  5516. else
  5517. case $cross_compiling:$ac_tool_warned in
  5518. yes:)
  5519. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5520. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5521. ac_tool_warned=yes ;;
  5522. esac
  5523. DSYMUTIL=$ac_ct_DSYMUTIL
  5524. fi
  5525. else
  5526. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5527. fi
  5528. if test -n "$ac_tool_prefix"; then
  5529. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5530. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5532. $as_echo_n "checking for $ac_word... " >&6; }
  5533. if ${ac_cv_prog_NMEDIT+:} false; then :
  5534. $as_echo_n "(cached) " >&6
  5535. else
  5536. if test -n "$NMEDIT"; then
  5537. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5538. else
  5539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5540. for as_dir in $PATH
  5541. do
  5542. IFS=$as_save_IFS
  5543. test -z "$as_dir" && as_dir=.
  5544. for ac_exec_ext in '' $ac_executable_extensions; do
  5545. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5546. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5547. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5548. break 2
  5549. fi
  5550. done
  5551. done
  5552. IFS=$as_save_IFS
  5553. fi
  5554. fi
  5555. NMEDIT=$ac_cv_prog_NMEDIT
  5556. if test -n "$NMEDIT"; then
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5558. $as_echo "$NMEDIT" >&6; }
  5559. else
  5560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5561. $as_echo "no" >&6; }
  5562. fi
  5563. fi
  5564. if test -z "$ac_cv_prog_NMEDIT"; then
  5565. ac_ct_NMEDIT=$NMEDIT
  5566. # Extract the first word of "nmedit", so it can be a program name with args.
  5567. set dummy nmedit; ac_word=$2
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5569. $as_echo_n "checking for $ac_word... " >&6; }
  5570. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5571. $as_echo_n "(cached) " >&6
  5572. else
  5573. if test -n "$ac_ct_NMEDIT"; then
  5574. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5575. else
  5576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5577. for as_dir in $PATH
  5578. do
  5579. IFS=$as_save_IFS
  5580. test -z "$as_dir" && as_dir=.
  5581. for ac_exec_ext in '' $ac_executable_extensions; do
  5582. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5583. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5584. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5585. break 2
  5586. fi
  5587. done
  5588. done
  5589. IFS=$as_save_IFS
  5590. fi
  5591. fi
  5592. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5593. if test -n "$ac_ct_NMEDIT"; then
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5595. $as_echo "$ac_ct_NMEDIT" >&6; }
  5596. else
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5598. $as_echo "no" >&6; }
  5599. fi
  5600. if test "x$ac_ct_NMEDIT" = x; then
  5601. NMEDIT=":"
  5602. else
  5603. case $cross_compiling:$ac_tool_warned in
  5604. yes:)
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5606. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5607. ac_tool_warned=yes ;;
  5608. esac
  5609. NMEDIT=$ac_ct_NMEDIT
  5610. fi
  5611. else
  5612. NMEDIT="$ac_cv_prog_NMEDIT"
  5613. fi
  5614. if test -n "$ac_tool_prefix"; then
  5615. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5616. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5618. $as_echo_n "checking for $ac_word... " >&6; }
  5619. if ${ac_cv_prog_LIPO+:} false; then :
  5620. $as_echo_n "(cached) " >&6
  5621. else
  5622. if test -n "$LIPO"; then
  5623. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5624. else
  5625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5626. for as_dir in $PATH
  5627. do
  5628. IFS=$as_save_IFS
  5629. test -z "$as_dir" && as_dir=.
  5630. for ac_exec_ext in '' $ac_executable_extensions; do
  5631. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5632. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5634. break 2
  5635. fi
  5636. done
  5637. done
  5638. IFS=$as_save_IFS
  5639. fi
  5640. fi
  5641. LIPO=$ac_cv_prog_LIPO
  5642. if test -n "$LIPO"; then
  5643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5644. $as_echo "$LIPO" >&6; }
  5645. else
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5647. $as_echo "no" >&6; }
  5648. fi
  5649. fi
  5650. if test -z "$ac_cv_prog_LIPO"; then
  5651. ac_ct_LIPO=$LIPO
  5652. # Extract the first word of "lipo", so it can be a program name with args.
  5653. set dummy lipo; ac_word=$2
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5655. $as_echo_n "checking for $ac_word... " >&6; }
  5656. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5657. $as_echo_n "(cached) " >&6
  5658. else
  5659. if test -n "$ac_ct_LIPO"; then
  5660. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5661. else
  5662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5663. for as_dir in $PATH
  5664. do
  5665. IFS=$as_save_IFS
  5666. test -z "$as_dir" && as_dir=.
  5667. for ac_exec_ext in '' $ac_executable_extensions; do
  5668. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5669. ac_cv_prog_ac_ct_LIPO="lipo"
  5670. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5671. break 2
  5672. fi
  5673. done
  5674. done
  5675. IFS=$as_save_IFS
  5676. fi
  5677. fi
  5678. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5679. if test -n "$ac_ct_LIPO"; then
  5680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5681. $as_echo "$ac_ct_LIPO" >&6; }
  5682. else
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5684. $as_echo "no" >&6; }
  5685. fi
  5686. if test "x$ac_ct_LIPO" = x; then
  5687. LIPO=":"
  5688. else
  5689. case $cross_compiling:$ac_tool_warned in
  5690. yes:)
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5692. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5693. ac_tool_warned=yes ;;
  5694. esac
  5695. LIPO=$ac_ct_LIPO
  5696. fi
  5697. else
  5698. LIPO="$ac_cv_prog_LIPO"
  5699. fi
  5700. if test -n "$ac_tool_prefix"; then
  5701. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5702. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5704. $as_echo_n "checking for $ac_word... " >&6; }
  5705. if ${ac_cv_prog_OTOOL+:} false; then :
  5706. $as_echo_n "(cached) " >&6
  5707. else
  5708. if test -n "$OTOOL"; then
  5709. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5710. else
  5711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5712. for as_dir in $PATH
  5713. do
  5714. IFS=$as_save_IFS
  5715. test -z "$as_dir" && as_dir=.
  5716. for ac_exec_ext in '' $ac_executable_extensions; do
  5717. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5718. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5720. break 2
  5721. fi
  5722. done
  5723. done
  5724. IFS=$as_save_IFS
  5725. fi
  5726. fi
  5727. OTOOL=$ac_cv_prog_OTOOL
  5728. if test -n "$OTOOL"; then
  5729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5730. $as_echo "$OTOOL" >&6; }
  5731. else
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5733. $as_echo "no" >&6; }
  5734. fi
  5735. fi
  5736. if test -z "$ac_cv_prog_OTOOL"; then
  5737. ac_ct_OTOOL=$OTOOL
  5738. # Extract the first word of "otool", so it can be a program name with args.
  5739. set dummy otool; ac_word=$2
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5741. $as_echo_n "checking for $ac_word... " >&6; }
  5742. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5743. $as_echo_n "(cached) " >&6
  5744. else
  5745. if test -n "$ac_ct_OTOOL"; then
  5746. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5747. else
  5748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5749. for as_dir in $PATH
  5750. do
  5751. IFS=$as_save_IFS
  5752. test -z "$as_dir" && as_dir=.
  5753. for ac_exec_ext in '' $ac_executable_extensions; do
  5754. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5755. ac_cv_prog_ac_ct_OTOOL="otool"
  5756. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5757. break 2
  5758. fi
  5759. done
  5760. done
  5761. IFS=$as_save_IFS
  5762. fi
  5763. fi
  5764. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5765. if test -n "$ac_ct_OTOOL"; then
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5767. $as_echo "$ac_ct_OTOOL" >&6; }
  5768. else
  5769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5770. $as_echo "no" >&6; }
  5771. fi
  5772. if test "x$ac_ct_OTOOL" = x; then
  5773. OTOOL=":"
  5774. else
  5775. case $cross_compiling:$ac_tool_warned in
  5776. yes:)
  5777. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5778. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5779. ac_tool_warned=yes ;;
  5780. esac
  5781. OTOOL=$ac_ct_OTOOL
  5782. fi
  5783. else
  5784. OTOOL="$ac_cv_prog_OTOOL"
  5785. fi
  5786. if test -n "$ac_tool_prefix"; then
  5787. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5788. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5790. $as_echo_n "checking for $ac_word... " >&6; }
  5791. if ${ac_cv_prog_OTOOL64+:} false; then :
  5792. $as_echo_n "(cached) " >&6
  5793. else
  5794. if test -n "$OTOOL64"; then
  5795. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5796. else
  5797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5798. for as_dir in $PATH
  5799. do
  5800. IFS=$as_save_IFS
  5801. test -z "$as_dir" && as_dir=.
  5802. for ac_exec_ext in '' $ac_executable_extensions; do
  5803. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5804. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5806. break 2
  5807. fi
  5808. done
  5809. done
  5810. IFS=$as_save_IFS
  5811. fi
  5812. fi
  5813. OTOOL64=$ac_cv_prog_OTOOL64
  5814. if test -n "$OTOOL64"; then
  5815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5816. $as_echo "$OTOOL64" >&6; }
  5817. else
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5819. $as_echo "no" >&6; }
  5820. fi
  5821. fi
  5822. if test -z "$ac_cv_prog_OTOOL64"; then
  5823. ac_ct_OTOOL64=$OTOOL64
  5824. # Extract the first word of "otool64", so it can be a program name with args.
  5825. set dummy otool64; ac_word=$2
  5826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5827. $as_echo_n "checking for $ac_word... " >&6; }
  5828. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5829. $as_echo_n "(cached) " >&6
  5830. else
  5831. if test -n "$ac_ct_OTOOL64"; then
  5832. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5833. else
  5834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5835. for as_dir in $PATH
  5836. do
  5837. IFS=$as_save_IFS
  5838. test -z "$as_dir" && as_dir=.
  5839. for ac_exec_ext in '' $ac_executable_extensions; do
  5840. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5841. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5843. break 2
  5844. fi
  5845. done
  5846. done
  5847. IFS=$as_save_IFS
  5848. fi
  5849. fi
  5850. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5851. if test -n "$ac_ct_OTOOL64"; then
  5852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5853. $as_echo "$ac_ct_OTOOL64" >&6; }
  5854. else
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5856. $as_echo "no" >&6; }
  5857. fi
  5858. if test "x$ac_ct_OTOOL64" = x; then
  5859. OTOOL64=":"
  5860. else
  5861. case $cross_compiling:$ac_tool_warned in
  5862. yes:)
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5864. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5865. ac_tool_warned=yes ;;
  5866. esac
  5867. OTOOL64=$ac_ct_OTOOL64
  5868. fi
  5869. else
  5870. OTOOL64="$ac_cv_prog_OTOOL64"
  5871. fi
  5872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5873. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5874. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5875. $as_echo_n "(cached) " >&6
  5876. else
  5877. lt_cv_apple_cc_single_mod=no
  5878. if test -z "${LT_MULTI_MODULE}"; then
  5879. # By default we will add the -single_module flag. You can override
  5880. # by either setting the environment variable LT_MULTI_MODULE
  5881. # non-empty at configure time, or by adding -multi_module to the
  5882. # link flags.
  5883. rm -rf libconftest.dylib*
  5884. echo "int foo(void){return 1;}" > conftest.c
  5885. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5886. -dynamiclib -Wl,-single_module conftest.c" >&5
  5887. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5888. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5889. _lt_result=$?
  5890. # If there is a non-empty error log, and "single_module"
  5891. # appears in it, assume the flag caused a linker warning
  5892. if test -s conftest.err && $GREP single_module conftest.err; then
  5893. cat conftest.err >&5
  5894. # Otherwise, if the output was created with a 0 exit code from
  5895. # the compiler, it worked.
  5896. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5897. lt_cv_apple_cc_single_mod=yes
  5898. else
  5899. cat conftest.err >&5
  5900. fi
  5901. rm -rf libconftest.dylib*
  5902. rm -f conftest.*
  5903. fi
  5904. fi
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5906. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5908. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5909. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5910. $as_echo_n "(cached) " >&6
  5911. else
  5912. lt_cv_ld_exported_symbols_list=no
  5913. save_LDFLAGS=$LDFLAGS
  5914. echo "_main" > conftest.sym
  5915. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5917. /* end confdefs.h. */
  5918. int
  5919. main ()
  5920. {
  5921. ;
  5922. return 0;
  5923. }
  5924. _ACEOF
  5925. if ac_fn_c_try_link "$LINENO"; then :
  5926. lt_cv_ld_exported_symbols_list=yes
  5927. else
  5928. lt_cv_ld_exported_symbols_list=no
  5929. fi
  5930. rm -f core conftest.err conftest.$ac_objext \
  5931. conftest$ac_exeext conftest.$ac_ext
  5932. LDFLAGS="$save_LDFLAGS"
  5933. fi
  5934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5935. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5937. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5938. if ${lt_cv_ld_force_load+:} false; then :
  5939. $as_echo_n "(cached) " >&6
  5940. else
  5941. lt_cv_ld_force_load=no
  5942. cat > conftest.c << _LT_EOF
  5943. int forced_loaded() { return 2;}
  5944. _LT_EOF
  5945. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5946. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5947. echo "$AR cru libconftest.a conftest.o" >&5
  5948. $AR cru libconftest.a conftest.o 2>&5
  5949. echo "$RANLIB libconftest.a" >&5
  5950. $RANLIB libconftest.a 2>&5
  5951. cat > conftest.c << _LT_EOF
  5952. int main() { return 0;}
  5953. _LT_EOF
  5954. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5955. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5956. _lt_result=$?
  5957. if test -s conftest.err && $GREP force_load conftest.err; then
  5958. cat conftest.err >&5
  5959. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5960. lt_cv_ld_force_load=yes
  5961. else
  5962. cat conftest.err >&5
  5963. fi
  5964. rm -f conftest.err libconftest.a conftest conftest.c
  5965. rm -rf conftest.dSYM
  5966. fi
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5968. $as_echo "$lt_cv_ld_force_load" >&6; }
  5969. case $host_os in
  5970. rhapsody* | darwin1.[012])
  5971. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5972. darwin1.*)
  5973. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5974. darwin*) # darwin 5.x on
  5975. # if running on 10.5 or later, the deployment target defaults
  5976. # to the OS version, if on x86, and 10.4, the deployment
  5977. # target defaults to 10.4. Don't you love it?
  5978. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5979. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5980. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5981. 10.[012]*)
  5982. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5983. 10.*)
  5984. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5985. esac
  5986. ;;
  5987. esac
  5988. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5989. _lt_dar_single_mod='$single_module'
  5990. fi
  5991. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5992. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5993. else
  5994. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5995. fi
  5996. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  5997. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5998. else
  5999. _lt_dsymutil=
  6000. fi
  6001. ;;
  6002. esac
  6003. ac_ext=c
  6004. ac_cpp='$CPP $CPPFLAGS'
  6005. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6006. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6007. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6009. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6010. # On Suns, sometimes $CPP names a directory.
  6011. if test -n "$CPP" && test -d "$CPP"; then
  6012. CPP=
  6013. fi
  6014. if test -z "$CPP"; then
  6015. if ${ac_cv_prog_CPP+:} false; then :
  6016. $as_echo_n "(cached) " >&6
  6017. else
  6018. # Double quotes because CPP needs to be expanded
  6019. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6020. do
  6021. ac_preproc_ok=false
  6022. for ac_c_preproc_warn_flag in '' yes
  6023. do
  6024. # Use a header file that comes with gcc, so configuring glibc
  6025. # with a fresh cross-compiler works.
  6026. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6027. # <limits.h> exists even on freestanding compilers.
  6028. # On the NeXT, cc -E runs the code through the compiler's parser,
  6029. # not just through cpp. "Syntax error" is here to catch this case.
  6030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6031. /* end confdefs.h. */
  6032. #ifdef __STDC__
  6033. # include <limits.h>
  6034. #else
  6035. # include <assert.h>
  6036. #endif
  6037. Syntax error
  6038. _ACEOF
  6039. if ac_fn_c_try_cpp "$LINENO"; then :
  6040. else
  6041. # Broken: fails on valid input.
  6042. continue
  6043. fi
  6044. rm -f conftest.err conftest.i conftest.$ac_ext
  6045. # OK, works on sane cases. Now check whether nonexistent headers
  6046. # can be detected and how.
  6047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6048. /* end confdefs.h. */
  6049. #include <ac_nonexistent.h>
  6050. _ACEOF
  6051. if ac_fn_c_try_cpp "$LINENO"; then :
  6052. # Broken: success on invalid input.
  6053. continue
  6054. else
  6055. # Passes both tests.
  6056. ac_preproc_ok=:
  6057. break
  6058. fi
  6059. rm -f conftest.err conftest.i conftest.$ac_ext
  6060. done
  6061. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6062. rm -f conftest.i conftest.err conftest.$ac_ext
  6063. if $ac_preproc_ok; then :
  6064. break
  6065. fi
  6066. done
  6067. ac_cv_prog_CPP=$CPP
  6068. fi
  6069. CPP=$ac_cv_prog_CPP
  6070. else
  6071. ac_cv_prog_CPP=$CPP
  6072. fi
  6073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6074. $as_echo "$CPP" >&6; }
  6075. ac_preproc_ok=false
  6076. for ac_c_preproc_warn_flag in '' yes
  6077. do
  6078. # Use a header file that comes with gcc, so configuring glibc
  6079. # with a fresh cross-compiler works.
  6080. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6081. # <limits.h> exists even on freestanding compilers.
  6082. # On the NeXT, cc -E runs the code through the compiler's parser,
  6083. # not just through cpp. "Syntax error" is here to catch this case.
  6084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6085. /* end confdefs.h. */
  6086. #ifdef __STDC__
  6087. # include <limits.h>
  6088. #else
  6089. # include <assert.h>
  6090. #endif
  6091. Syntax error
  6092. _ACEOF
  6093. if ac_fn_c_try_cpp "$LINENO"; then :
  6094. else
  6095. # Broken: fails on valid input.
  6096. continue
  6097. fi
  6098. rm -f conftest.err conftest.i conftest.$ac_ext
  6099. # OK, works on sane cases. Now check whether nonexistent headers
  6100. # can be detected and how.
  6101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6102. /* end confdefs.h. */
  6103. #include <ac_nonexistent.h>
  6104. _ACEOF
  6105. if ac_fn_c_try_cpp "$LINENO"; then :
  6106. # Broken: success on invalid input.
  6107. continue
  6108. else
  6109. # Passes both tests.
  6110. ac_preproc_ok=:
  6111. break
  6112. fi
  6113. rm -f conftest.err conftest.i conftest.$ac_ext
  6114. done
  6115. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6116. rm -f conftest.i conftest.err conftest.$ac_ext
  6117. if $ac_preproc_ok; then :
  6118. else
  6119. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6120. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6121. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6122. See \`config.log' for more details" "$LINENO" 5; }
  6123. fi
  6124. ac_ext=c
  6125. ac_cpp='$CPP $CPPFLAGS'
  6126. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6127. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6128. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6130. $as_echo_n "checking for ANSI C header files... " >&6; }
  6131. if ${ac_cv_header_stdc+:} false; then :
  6132. $as_echo_n "(cached) " >&6
  6133. else
  6134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6135. /* end confdefs.h. */
  6136. #include <stdlib.h>
  6137. #include <stdarg.h>
  6138. #include <string.h>
  6139. #include <float.h>
  6140. int
  6141. main ()
  6142. {
  6143. ;
  6144. return 0;
  6145. }
  6146. _ACEOF
  6147. if ac_fn_c_try_compile "$LINENO"; then :
  6148. ac_cv_header_stdc=yes
  6149. else
  6150. ac_cv_header_stdc=no
  6151. fi
  6152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6153. if test $ac_cv_header_stdc = yes; then
  6154. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6156. /* end confdefs.h. */
  6157. #include <string.h>
  6158. _ACEOF
  6159. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6160. $EGREP "memchr" >/dev/null 2>&1; then :
  6161. else
  6162. ac_cv_header_stdc=no
  6163. fi
  6164. rm -f conftest*
  6165. fi
  6166. if test $ac_cv_header_stdc = yes; then
  6167. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6169. /* end confdefs.h. */
  6170. #include <stdlib.h>
  6171. _ACEOF
  6172. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6173. $EGREP "free" >/dev/null 2>&1; then :
  6174. else
  6175. ac_cv_header_stdc=no
  6176. fi
  6177. rm -f conftest*
  6178. fi
  6179. if test $ac_cv_header_stdc = yes; then
  6180. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6181. if test "$cross_compiling" = yes; then :
  6182. :
  6183. else
  6184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6185. /* end confdefs.h. */
  6186. #include <ctype.h>
  6187. #include <stdlib.h>
  6188. #if ((' ' & 0x0FF) == 0x020)
  6189. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6190. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6191. #else
  6192. # define ISLOWER(c) \
  6193. (('a' <= (c) && (c) <= 'i') \
  6194. || ('j' <= (c) && (c) <= 'r') \
  6195. || ('s' <= (c) && (c) <= 'z'))
  6196. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6197. #endif
  6198. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6199. int
  6200. main ()
  6201. {
  6202. int i;
  6203. for (i = 0; i < 256; i++)
  6204. if (XOR (islower (i), ISLOWER (i))
  6205. || toupper (i) != TOUPPER (i))
  6206. return 2;
  6207. return 0;
  6208. }
  6209. _ACEOF
  6210. if ac_fn_c_try_run "$LINENO"; then :
  6211. else
  6212. ac_cv_header_stdc=no
  6213. fi
  6214. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6215. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6216. fi
  6217. fi
  6218. fi
  6219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6220. $as_echo "$ac_cv_header_stdc" >&6; }
  6221. if test $ac_cv_header_stdc = yes; then
  6222. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6223. fi
  6224. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6225. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6226. inttypes.h stdint.h unistd.h
  6227. do :
  6228. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6229. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6230. "
  6231. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6232. cat >>confdefs.h <<_ACEOF
  6233. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6234. _ACEOF
  6235. fi
  6236. done
  6237. for ac_header in dlfcn.h
  6238. do :
  6239. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6240. "
  6241. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6242. cat >>confdefs.h <<_ACEOF
  6243. #define HAVE_DLFCN_H 1
  6244. _ACEOF
  6245. fi
  6246. done
  6247. # Set options
  6248. enable_win32_dll=yes
  6249. case $host in
  6250. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6251. if test -n "$ac_tool_prefix"; then
  6252. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6253. set dummy ${ac_tool_prefix}as; ac_word=$2
  6254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6255. $as_echo_n "checking for $ac_word... " >&6; }
  6256. if ${ac_cv_prog_AS+:} false; then :
  6257. $as_echo_n "(cached) " >&6
  6258. else
  6259. if test -n "$AS"; then
  6260. ac_cv_prog_AS="$AS" # Let the user override the test.
  6261. else
  6262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6263. for as_dir in $PATH
  6264. do
  6265. IFS=$as_save_IFS
  6266. test -z "$as_dir" && as_dir=.
  6267. for ac_exec_ext in '' $ac_executable_extensions; do
  6268. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6269. ac_cv_prog_AS="${ac_tool_prefix}as"
  6270. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6271. break 2
  6272. fi
  6273. done
  6274. done
  6275. IFS=$as_save_IFS
  6276. fi
  6277. fi
  6278. AS=$ac_cv_prog_AS
  6279. if test -n "$AS"; then
  6280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6281. $as_echo "$AS" >&6; }
  6282. else
  6283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6284. $as_echo "no" >&6; }
  6285. fi
  6286. fi
  6287. if test -z "$ac_cv_prog_AS"; then
  6288. ac_ct_AS=$AS
  6289. # Extract the first word of "as", so it can be a program name with args.
  6290. set dummy as; ac_word=$2
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6292. $as_echo_n "checking for $ac_word... " >&6; }
  6293. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6294. $as_echo_n "(cached) " >&6
  6295. else
  6296. if test -n "$ac_ct_AS"; then
  6297. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6298. else
  6299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6300. for as_dir in $PATH
  6301. do
  6302. IFS=$as_save_IFS
  6303. test -z "$as_dir" && as_dir=.
  6304. for ac_exec_ext in '' $ac_executable_extensions; do
  6305. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6306. ac_cv_prog_ac_ct_AS="as"
  6307. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6308. break 2
  6309. fi
  6310. done
  6311. done
  6312. IFS=$as_save_IFS
  6313. fi
  6314. fi
  6315. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6316. if test -n "$ac_ct_AS"; then
  6317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6318. $as_echo "$ac_ct_AS" >&6; }
  6319. else
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6321. $as_echo "no" >&6; }
  6322. fi
  6323. if test "x$ac_ct_AS" = x; then
  6324. AS="false"
  6325. else
  6326. case $cross_compiling:$ac_tool_warned in
  6327. yes:)
  6328. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6329. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6330. ac_tool_warned=yes ;;
  6331. esac
  6332. AS=$ac_ct_AS
  6333. fi
  6334. else
  6335. AS="$ac_cv_prog_AS"
  6336. fi
  6337. if test -n "$ac_tool_prefix"; then
  6338. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6339. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6341. $as_echo_n "checking for $ac_word... " >&6; }
  6342. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6343. $as_echo_n "(cached) " >&6
  6344. else
  6345. if test -n "$DLLTOOL"; then
  6346. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6347. else
  6348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6349. for as_dir in $PATH
  6350. do
  6351. IFS=$as_save_IFS
  6352. test -z "$as_dir" && as_dir=.
  6353. for ac_exec_ext in '' $ac_executable_extensions; do
  6354. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6355. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6356. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6357. break 2
  6358. fi
  6359. done
  6360. done
  6361. IFS=$as_save_IFS
  6362. fi
  6363. fi
  6364. DLLTOOL=$ac_cv_prog_DLLTOOL
  6365. if test -n "$DLLTOOL"; then
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6367. $as_echo "$DLLTOOL" >&6; }
  6368. else
  6369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6370. $as_echo "no" >&6; }
  6371. fi
  6372. fi
  6373. if test -z "$ac_cv_prog_DLLTOOL"; then
  6374. ac_ct_DLLTOOL=$DLLTOOL
  6375. # Extract the first word of "dlltool", so it can be a program name with args.
  6376. set dummy dlltool; ac_word=$2
  6377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6378. $as_echo_n "checking for $ac_word... " >&6; }
  6379. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6380. $as_echo_n "(cached) " >&6
  6381. else
  6382. if test -n "$ac_ct_DLLTOOL"; then
  6383. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6384. else
  6385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6386. for as_dir in $PATH
  6387. do
  6388. IFS=$as_save_IFS
  6389. test -z "$as_dir" && as_dir=.
  6390. for ac_exec_ext in '' $ac_executable_extensions; do
  6391. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6392. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6393. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6394. break 2
  6395. fi
  6396. done
  6397. done
  6398. IFS=$as_save_IFS
  6399. fi
  6400. fi
  6401. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6402. if test -n "$ac_ct_DLLTOOL"; then
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6404. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6405. else
  6406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6407. $as_echo "no" >&6; }
  6408. fi
  6409. if test "x$ac_ct_DLLTOOL" = x; then
  6410. DLLTOOL="false"
  6411. else
  6412. case $cross_compiling:$ac_tool_warned in
  6413. yes:)
  6414. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6415. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6416. ac_tool_warned=yes ;;
  6417. esac
  6418. DLLTOOL=$ac_ct_DLLTOOL
  6419. fi
  6420. else
  6421. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6422. fi
  6423. if test -n "$ac_tool_prefix"; then
  6424. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6425. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6427. $as_echo_n "checking for $ac_word... " >&6; }
  6428. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6429. $as_echo_n "(cached) " >&6
  6430. else
  6431. if test -n "$OBJDUMP"; then
  6432. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6433. else
  6434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6435. for as_dir in $PATH
  6436. do
  6437. IFS=$as_save_IFS
  6438. test -z "$as_dir" && as_dir=.
  6439. for ac_exec_ext in '' $ac_executable_extensions; do
  6440. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6441. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6442. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6443. break 2
  6444. fi
  6445. done
  6446. done
  6447. IFS=$as_save_IFS
  6448. fi
  6449. fi
  6450. OBJDUMP=$ac_cv_prog_OBJDUMP
  6451. if test -n "$OBJDUMP"; then
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6453. $as_echo "$OBJDUMP" >&6; }
  6454. else
  6455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6456. $as_echo "no" >&6; }
  6457. fi
  6458. fi
  6459. if test -z "$ac_cv_prog_OBJDUMP"; then
  6460. ac_ct_OBJDUMP=$OBJDUMP
  6461. # Extract the first word of "objdump", so it can be a program name with args.
  6462. set dummy objdump; ac_word=$2
  6463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6464. $as_echo_n "checking for $ac_word... " >&6; }
  6465. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6466. $as_echo_n "(cached) " >&6
  6467. else
  6468. if test -n "$ac_ct_OBJDUMP"; then
  6469. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6470. else
  6471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6472. for as_dir in $PATH
  6473. do
  6474. IFS=$as_save_IFS
  6475. test -z "$as_dir" && as_dir=.
  6476. for ac_exec_ext in '' $ac_executable_extensions; do
  6477. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6478. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6479. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6480. break 2
  6481. fi
  6482. done
  6483. done
  6484. IFS=$as_save_IFS
  6485. fi
  6486. fi
  6487. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6488. if test -n "$ac_ct_OBJDUMP"; then
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6490. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6491. else
  6492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6493. $as_echo "no" >&6; }
  6494. fi
  6495. if test "x$ac_ct_OBJDUMP" = x; then
  6496. OBJDUMP="false"
  6497. else
  6498. case $cross_compiling:$ac_tool_warned in
  6499. yes:)
  6500. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6501. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6502. ac_tool_warned=yes ;;
  6503. esac
  6504. OBJDUMP=$ac_ct_OBJDUMP
  6505. fi
  6506. else
  6507. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6508. fi
  6509. ;;
  6510. esac
  6511. test -z "$AS" && AS=as
  6512. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6513. test -z "$OBJDUMP" && OBJDUMP=objdump
  6514. enable_dlopen=no
  6515. # Check whether --enable-shared was given.
  6516. if test "${enable_shared+set}" = set; then :
  6517. enableval=$enable_shared; p=${PACKAGE-default}
  6518. case $enableval in
  6519. yes) enable_shared=yes ;;
  6520. no) enable_shared=no ;;
  6521. *)
  6522. enable_shared=no
  6523. # Look at the argument we got. We use all the common list separators.
  6524. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6525. for pkg in $enableval; do
  6526. IFS="$lt_save_ifs"
  6527. if test "X$pkg" = "X$p"; then
  6528. enable_shared=yes
  6529. fi
  6530. done
  6531. IFS="$lt_save_ifs"
  6532. ;;
  6533. esac
  6534. else
  6535. enable_shared=yes
  6536. fi
  6537. # Check whether --enable-static was given.
  6538. if test "${enable_static+set}" = set; then :
  6539. enableval=$enable_static; p=${PACKAGE-default}
  6540. case $enableval in
  6541. yes) enable_static=yes ;;
  6542. no) enable_static=no ;;
  6543. *)
  6544. enable_static=no
  6545. # Look at the argument we got. We use all the common list separators.
  6546. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6547. for pkg in $enableval; do
  6548. IFS="$lt_save_ifs"
  6549. if test "X$pkg" = "X$p"; then
  6550. enable_static=yes
  6551. fi
  6552. done
  6553. IFS="$lt_save_ifs"
  6554. ;;
  6555. esac
  6556. else
  6557. enable_static=yes
  6558. fi
  6559. # Check whether --with-pic was given.
  6560. if test "${with_pic+set}" = set; then :
  6561. withval=$with_pic; lt_p=${PACKAGE-default}
  6562. case $withval in
  6563. yes|no) pic_mode=$withval ;;
  6564. *)
  6565. pic_mode=default
  6566. # Look at the argument we got. We use all the common list separators.
  6567. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6568. for lt_pkg in $withval; do
  6569. IFS="$lt_save_ifs"
  6570. if test "X$lt_pkg" = "X$lt_p"; then
  6571. pic_mode=yes
  6572. fi
  6573. done
  6574. IFS="$lt_save_ifs"
  6575. ;;
  6576. esac
  6577. else
  6578. pic_mode=default
  6579. fi
  6580. test -z "$pic_mode" && pic_mode=default
  6581. # Check whether --enable-fast-install was given.
  6582. if test "${enable_fast_install+set}" = set; then :
  6583. enableval=$enable_fast_install; p=${PACKAGE-default}
  6584. case $enableval in
  6585. yes) enable_fast_install=yes ;;
  6586. no) enable_fast_install=no ;;
  6587. *)
  6588. enable_fast_install=no
  6589. # Look at the argument we got. We use all the common list separators.
  6590. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6591. for pkg in $enableval; do
  6592. IFS="$lt_save_ifs"
  6593. if test "X$pkg" = "X$p"; then
  6594. enable_fast_install=yes
  6595. fi
  6596. done
  6597. IFS="$lt_save_ifs"
  6598. ;;
  6599. esac
  6600. else
  6601. enable_fast_install=yes
  6602. fi
  6603. # This can be used to rebuild libtool when needed
  6604. LIBTOOL_DEPS="$ltmain"
  6605. # Always use our own libtool.
  6606. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6607. test -z "$LN_S" && LN_S="ln -s"
  6608. if test -n "${ZSH_VERSION+set}" ; then
  6609. setopt NO_GLOB_SUBST
  6610. fi
  6611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6612. $as_echo_n "checking for objdir... " >&6; }
  6613. if ${lt_cv_objdir+:} false; then :
  6614. $as_echo_n "(cached) " >&6
  6615. else
  6616. rm -f .libs 2>/dev/null
  6617. mkdir .libs 2>/dev/null
  6618. if test -d .libs; then
  6619. lt_cv_objdir=.libs
  6620. else
  6621. # MS-DOS does not allow filenames that begin with a dot.
  6622. lt_cv_objdir=_libs
  6623. fi
  6624. rmdir .libs 2>/dev/null
  6625. fi
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6627. $as_echo "$lt_cv_objdir" >&6; }
  6628. objdir=$lt_cv_objdir
  6629. cat >>confdefs.h <<_ACEOF
  6630. #define LT_OBJDIR "$lt_cv_objdir/"
  6631. _ACEOF
  6632. case $host_os in
  6633. aix3*)
  6634. # AIX sometimes has problems with the GCC collect2 program. For some
  6635. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6636. # vanish in a puff of smoke.
  6637. if test "X${COLLECT_NAMES+set}" != Xset; then
  6638. COLLECT_NAMES=
  6639. export COLLECT_NAMES
  6640. fi
  6641. ;;
  6642. esac
  6643. # Global variables:
  6644. ofile=libtool
  6645. can_build_shared=yes
  6646. # All known linkers require a `.a' archive for static linking (except MSVC,
  6647. # which needs '.lib').
  6648. libext=a
  6649. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6650. old_CC="$CC"
  6651. old_CFLAGS="$CFLAGS"
  6652. # Set sane defaults for various variables
  6653. test -z "$CC" && CC=cc
  6654. test -z "$LTCC" && LTCC=$CC
  6655. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6656. test -z "$LD" && LD=ld
  6657. test -z "$ac_objext" && ac_objext=o
  6658. for cc_temp in $compiler""; do
  6659. case $cc_temp in
  6660. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6661. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6662. \-*) ;;
  6663. *) break;;
  6664. esac
  6665. done
  6666. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6667. # Only perform the check for file, if the check method requires it
  6668. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6669. case $deplibs_check_method in
  6670. file_magic*)
  6671. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6673. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6674. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6675. $as_echo_n "(cached) " >&6
  6676. else
  6677. case $MAGIC_CMD in
  6678. [\\/*] | ?:[\\/]*)
  6679. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6680. ;;
  6681. *)
  6682. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6683. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6684. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6685. for ac_dir in $ac_dummy; do
  6686. IFS="$lt_save_ifs"
  6687. test -z "$ac_dir" && ac_dir=.
  6688. if test -f $ac_dir/${ac_tool_prefix}file; then
  6689. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6690. if test -n "$file_magic_test_file"; then
  6691. case $deplibs_check_method in
  6692. "file_magic "*)
  6693. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6694. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6695. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6696. $EGREP "$file_magic_regex" > /dev/null; then
  6697. :
  6698. else
  6699. cat <<_LT_EOF 1>&2
  6700. *** Warning: the command libtool uses to detect shared libraries,
  6701. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6702. *** The result is that libtool may fail to recognize shared libraries
  6703. *** as such. This will affect the creation of libtool libraries that
  6704. *** depend on shared libraries, but programs linked with such libtool
  6705. *** libraries will work regardless of this problem. Nevertheless, you
  6706. *** may want to report the problem to your system manager and/or to
  6707. *** bug-libtool@gnu.org
  6708. _LT_EOF
  6709. fi ;;
  6710. esac
  6711. fi
  6712. break
  6713. fi
  6714. done
  6715. IFS="$lt_save_ifs"
  6716. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6717. ;;
  6718. esac
  6719. fi
  6720. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6721. if test -n "$MAGIC_CMD"; then
  6722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6723. $as_echo "$MAGIC_CMD" >&6; }
  6724. else
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6726. $as_echo "no" >&6; }
  6727. fi
  6728. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6729. if test -n "$ac_tool_prefix"; then
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6731. $as_echo_n "checking for file... " >&6; }
  6732. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6733. $as_echo_n "(cached) " >&6
  6734. else
  6735. case $MAGIC_CMD in
  6736. [\\/*] | ?:[\\/]*)
  6737. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6738. ;;
  6739. *)
  6740. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6741. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6742. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6743. for ac_dir in $ac_dummy; do
  6744. IFS="$lt_save_ifs"
  6745. test -z "$ac_dir" && ac_dir=.
  6746. if test -f $ac_dir/file; then
  6747. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6748. if test -n "$file_magic_test_file"; then
  6749. case $deplibs_check_method in
  6750. "file_magic "*)
  6751. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6752. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6753. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6754. $EGREP "$file_magic_regex" > /dev/null; then
  6755. :
  6756. else
  6757. cat <<_LT_EOF 1>&2
  6758. *** Warning: the command libtool uses to detect shared libraries,
  6759. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6760. *** The result is that libtool may fail to recognize shared libraries
  6761. *** as such. This will affect the creation of libtool libraries that
  6762. *** depend on shared libraries, but programs linked with such libtool
  6763. *** libraries will work regardless of this problem. Nevertheless, you
  6764. *** may want to report the problem to your system manager and/or to
  6765. *** bug-libtool@gnu.org
  6766. _LT_EOF
  6767. fi ;;
  6768. esac
  6769. fi
  6770. break
  6771. fi
  6772. done
  6773. IFS="$lt_save_ifs"
  6774. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6775. ;;
  6776. esac
  6777. fi
  6778. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6779. if test -n "$MAGIC_CMD"; then
  6780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6781. $as_echo "$MAGIC_CMD" >&6; }
  6782. else
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6784. $as_echo "no" >&6; }
  6785. fi
  6786. else
  6787. MAGIC_CMD=:
  6788. fi
  6789. fi
  6790. fi
  6791. ;;
  6792. esac
  6793. # Use C for the default configuration in the libtool script
  6794. lt_save_CC="$CC"
  6795. ac_ext=c
  6796. ac_cpp='$CPP $CPPFLAGS'
  6797. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6798. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6799. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6800. # Source file extension for C test sources.
  6801. ac_ext=c
  6802. # Object file extension for compiled C test sources.
  6803. objext=o
  6804. objext=$objext
  6805. # Code to be used in simple compile tests
  6806. lt_simple_compile_test_code="int some_variable = 0;"
  6807. # Code to be used in simple link tests
  6808. lt_simple_link_test_code='int main(){return(0);}'
  6809. # If no C compiler was specified, use CC.
  6810. LTCC=${LTCC-"$CC"}
  6811. # If no C compiler flags were specified, use CFLAGS.
  6812. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6813. # Allow CC to be a program name with arguments.
  6814. compiler=$CC
  6815. # Save the default compiler, since it gets overwritten when the other
  6816. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6817. compiler_DEFAULT=$CC
  6818. # save warnings/boilerplate of simple test code
  6819. ac_outfile=conftest.$ac_objext
  6820. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6821. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6822. _lt_compiler_boilerplate=`cat conftest.err`
  6823. $RM conftest*
  6824. ac_outfile=conftest.$ac_objext
  6825. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6826. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6827. _lt_linker_boilerplate=`cat conftest.err`
  6828. $RM -r conftest*
  6829. ## CAVEAT EMPTOR:
  6830. ## There is no encapsulation within the following macros, do not change
  6831. ## the running order or otherwise move them around unless you know exactly
  6832. ## what you are doing...
  6833. if test -n "$compiler"; then
  6834. lt_prog_compiler_no_builtin_flag=
  6835. if test "$GCC" = yes; then
  6836. case $cc_basename in
  6837. nvcc*)
  6838. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6839. *)
  6840. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6841. esac
  6842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6843. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6844. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6845. $as_echo_n "(cached) " >&6
  6846. else
  6847. lt_cv_prog_compiler_rtti_exceptions=no
  6848. ac_outfile=conftest.$ac_objext
  6849. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6850. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6851. # Insert the option either (1) after the last *FLAGS variable, or
  6852. # (2) before a word containing "conftest.", or (3) at the end.
  6853. # Note that $ac_compile itself does not contain backslashes and begins
  6854. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6855. # The option is referenced via a variable to avoid confusing sed.
  6856. lt_compile=`echo "$ac_compile" | $SED \
  6857. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6858. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6859. -e 's:$: $lt_compiler_flag:'`
  6860. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6861. (eval "$lt_compile" 2>conftest.err)
  6862. ac_status=$?
  6863. cat conftest.err >&5
  6864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6865. if (exit $ac_status) && test -s "$ac_outfile"; then
  6866. # The compiler can only warn and ignore the option if not recognized
  6867. # So say no if there are warnings other than the usual output.
  6868. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6869. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6870. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6871. lt_cv_prog_compiler_rtti_exceptions=yes
  6872. fi
  6873. fi
  6874. $RM conftest*
  6875. fi
  6876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6877. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6878. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6879. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6880. else
  6881. :
  6882. fi
  6883. fi
  6884. lt_prog_compiler_wl=
  6885. lt_prog_compiler_pic=
  6886. lt_prog_compiler_static=
  6887. if test "$GCC" = yes; then
  6888. lt_prog_compiler_wl='-Wl,'
  6889. lt_prog_compiler_static='-static'
  6890. case $host_os in
  6891. aix*)
  6892. # All AIX code is PIC.
  6893. if test "$host_cpu" = ia64; then
  6894. # AIX 5 now supports IA64 processor
  6895. lt_prog_compiler_static='-Bstatic'
  6896. fi
  6897. ;;
  6898. amigaos*)
  6899. case $host_cpu in
  6900. powerpc)
  6901. # see comment about AmigaOS4 .so support
  6902. lt_prog_compiler_pic='-fPIC'
  6903. ;;
  6904. m68k)
  6905. # FIXME: we need at least 68020 code to build shared libraries, but
  6906. # adding the `-m68020' flag to GCC prevents building anything better,
  6907. # like `-m68040'.
  6908. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6909. ;;
  6910. esac
  6911. ;;
  6912. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6913. # PIC is the default for these OSes.
  6914. ;;
  6915. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6916. # This hack is so that the source file can tell whether it is being
  6917. # built for inclusion in a dll (and should export symbols for example).
  6918. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6919. # (--disable-auto-import) libraries
  6920. lt_prog_compiler_pic='-DDLL_EXPORT'
  6921. ;;
  6922. darwin* | rhapsody*)
  6923. # PIC is the default on this platform
  6924. # Common symbols not allowed in MH_DYLIB files
  6925. lt_prog_compiler_pic='-fno-common'
  6926. ;;
  6927. haiku*)
  6928. # PIC is the default for Haiku.
  6929. # The "-static" flag exists, but is broken.
  6930. lt_prog_compiler_static=
  6931. ;;
  6932. hpux*)
  6933. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6934. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6935. # sets the default TLS model and affects inlining.
  6936. case $host_cpu in
  6937. hppa*64*)
  6938. # +Z the default
  6939. ;;
  6940. *)
  6941. lt_prog_compiler_pic='-fPIC'
  6942. ;;
  6943. esac
  6944. ;;
  6945. interix[3-9]*)
  6946. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6947. # Instead, we relocate shared libraries at runtime.
  6948. ;;
  6949. msdosdjgpp*)
  6950. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6951. # on systems that don't support them.
  6952. lt_prog_compiler_can_build_shared=no
  6953. enable_shared=no
  6954. ;;
  6955. *nto* | *qnx*)
  6956. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6957. # it will coredump.
  6958. lt_prog_compiler_pic='-fPIC -shared'
  6959. ;;
  6960. sysv4*MP*)
  6961. if test -d /usr/nec; then
  6962. lt_prog_compiler_pic=-Kconform_pic
  6963. fi
  6964. ;;
  6965. *)
  6966. lt_prog_compiler_pic='-fPIC'
  6967. ;;
  6968. esac
  6969. case $cc_basename in
  6970. nvcc*) # Cuda Compiler Driver 2.2
  6971. lt_prog_compiler_wl='-Xlinker '
  6972. if test -n "$lt_prog_compiler_pic"; then
  6973. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6974. fi
  6975. ;;
  6976. esac
  6977. else
  6978. # PORTME Check for flag to pass linker flags through the system compiler.
  6979. case $host_os in
  6980. aix*)
  6981. lt_prog_compiler_wl='-Wl,'
  6982. if test "$host_cpu" = ia64; then
  6983. # AIX 5 now supports IA64 processor
  6984. lt_prog_compiler_static='-Bstatic'
  6985. else
  6986. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6987. fi
  6988. ;;
  6989. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6990. # This hack is so that the source file can tell whether it is being
  6991. # built for inclusion in a dll (and should export symbols for example).
  6992. lt_prog_compiler_pic='-DDLL_EXPORT'
  6993. ;;
  6994. hpux9* | hpux10* | hpux11*)
  6995. lt_prog_compiler_wl='-Wl,'
  6996. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6997. # not for PA HP-UX.
  6998. case $host_cpu in
  6999. hppa*64*|ia64*)
  7000. # +Z the default
  7001. ;;
  7002. *)
  7003. lt_prog_compiler_pic='+Z'
  7004. ;;
  7005. esac
  7006. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7007. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7008. ;;
  7009. irix5* | irix6* | nonstopux*)
  7010. lt_prog_compiler_wl='-Wl,'
  7011. # PIC (with -KPIC) is the default.
  7012. lt_prog_compiler_static='-non_shared'
  7013. ;;
  7014. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7015. case $cc_basename in
  7016. # old Intel for x86_64 which still supported -KPIC.
  7017. ecc*)
  7018. lt_prog_compiler_wl='-Wl,'
  7019. lt_prog_compiler_pic='-KPIC'
  7020. lt_prog_compiler_static='-static'
  7021. ;;
  7022. # icc used to be incompatible with GCC.
  7023. # ICC 10 doesn't accept -KPIC any more.
  7024. icc* | ifort*)
  7025. lt_prog_compiler_wl='-Wl,'
  7026. lt_prog_compiler_pic='-fPIC'
  7027. lt_prog_compiler_static='-static'
  7028. ;;
  7029. # Lahey Fortran 8.1.
  7030. lf95*)
  7031. lt_prog_compiler_wl='-Wl,'
  7032. lt_prog_compiler_pic='--shared'
  7033. lt_prog_compiler_static='--static'
  7034. ;;
  7035. nagfor*)
  7036. # NAG Fortran compiler
  7037. lt_prog_compiler_wl='-Wl,-Wl,,'
  7038. lt_prog_compiler_pic='-PIC'
  7039. lt_prog_compiler_static='-Bstatic'
  7040. ;;
  7041. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7042. # Portland Group compilers (*not* the Pentium gcc compiler,
  7043. # which looks to be a dead project)
  7044. lt_prog_compiler_wl='-Wl,'
  7045. lt_prog_compiler_pic='-fpic'
  7046. lt_prog_compiler_static='-Bstatic'
  7047. ;;
  7048. ccc*)
  7049. lt_prog_compiler_wl='-Wl,'
  7050. # All Alpha code is PIC.
  7051. lt_prog_compiler_static='-non_shared'
  7052. ;;
  7053. xl* | bgxl* | bgf* | mpixl*)
  7054. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7055. lt_prog_compiler_wl='-Wl,'
  7056. lt_prog_compiler_pic='-qpic'
  7057. lt_prog_compiler_static='-qstaticlink'
  7058. ;;
  7059. *)
  7060. case `$CC -V 2>&1 | sed 5q` in
  7061. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7062. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7063. lt_prog_compiler_pic='-KPIC'
  7064. lt_prog_compiler_static='-Bstatic'
  7065. lt_prog_compiler_wl=''
  7066. ;;
  7067. *Sun\ F* | *Sun*Fortran*)
  7068. lt_prog_compiler_pic='-KPIC'
  7069. lt_prog_compiler_static='-Bstatic'
  7070. lt_prog_compiler_wl='-Qoption ld '
  7071. ;;
  7072. *Sun\ C*)
  7073. # Sun C 5.9
  7074. lt_prog_compiler_pic='-KPIC'
  7075. lt_prog_compiler_static='-Bstatic'
  7076. lt_prog_compiler_wl='-Wl,'
  7077. ;;
  7078. *Intel*\ [CF]*Compiler*)
  7079. lt_prog_compiler_wl='-Wl,'
  7080. lt_prog_compiler_pic='-fPIC'
  7081. lt_prog_compiler_static='-static'
  7082. ;;
  7083. *Portland\ Group*)
  7084. lt_prog_compiler_wl='-Wl,'
  7085. lt_prog_compiler_pic='-fpic'
  7086. lt_prog_compiler_static='-Bstatic'
  7087. ;;
  7088. esac
  7089. ;;
  7090. esac
  7091. ;;
  7092. newsos6)
  7093. lt_prog_compiler_pic='-KPIC'
  7094. lt_prog_compiler_static='-Bstatic'
  7095. ;;
  7096. *nto* | *qnx*)
  7097. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7098. # it will coredump.
  7099. lt_prog_compiler_pic='-fPIC -shared'
  7100. ;;
  7101. osf3* | osf4* | osf5*)
  7102. lt_prog_compiler_wl='-Wl,'
  7103. # All OSF/1 code is PIC.
  7104. lt_prog_compiler_static='-non_shared'
  7105. ;;
  7106. rdos*)
  7107. lt_prog_compiler_static='-non_shared'
  7108. ;;
  7109. solaris*)
  7110. lt_prog_compiler_pic='-KPIC'
  7111. lt_prog_compiler_static='-Bstatic'
  7112. case $cc_basename in
  7113. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7114. lt_prog_compiler_wl='-Qoption ld ';;
  7115. *)
  7116. lt_prog_compiler_wl='-Wl,';;
  7117. esac
  7118. ;;
  7119. sunos4*)
  7120. lt_prog_compiler_wl='-Qoption ld '
  7121. lt_prog_compiler_pic='-PIC'
  7122. lt_prog_compiler_static='-Bstatic'
  7123. ;;
  7124. sysv4 | sysv4.2uw2* | sysv4.3*)
  7125. lt_prog_compiler_wl='-Wl,'
  7126. lt_prog_compiler_pic='-KPIC'
  7127. lt_prog_compiler_static='-Bstatic'
  7128. ;;
  7129. sysv4*MP*)
  7130. if test -d /usr/nec ;then
  7131. lt_prog_compiler_pic='-Kconform_pic'
  7132. lt_prog_compiler_static='-Bstatic'
  7133. fi
  7134. ;;
  7135. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7136. lt_prog_compiler_wl='-Wl,'
  7137. lt_prog_compiler_pic='-KPIC'
  7138. lt_prog_compiler_static='-Bstatic'
  7139. ;;
  7140. unicos*)
  7141. lt_prog_compiler_wl='-Wl,'
  7142. lt_prog_compiler_can_build_shared=no
  7143. ;;
  7144. uts4*)
  7145. lt_prog_compiler_pic='-pic'
  7146. lt_prog_compiler_static='-Bstatic'
  7147. ;;
  7148. *)
  7149. lt_prog_compiler_can_build_shared=no
  7150. ;;
  7151. esac
  7152. fi
  7153. case $host_os in
  7154. # For platforms which do not support PIC, -DPIC is meaningless:
  7155. *djgpp*)
  7156. lt_prog_compiler_pic=
  7157. ;;
  7158. *)
  7159. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7160. ;;
  7161. esac
  7162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7163. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7164. if ${lt_cv_prog_compiler_pic+:} false; then :
  7165. $as_echo_n "(cached) " >&6
  7166. else
  7167. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7168. fi
  7169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7170. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7171. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7172. #
  7173. # Check to make sure the PIC flag actually works.
  7174. #
  7175. if test -n "$lt_prog_compiler_pic"; then
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7177. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7178. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7179. $as_echo_n "(cached) " >&6
  7180. else
  7181. lt_cv_prog_compiler_pic_works=no
  7182. ac_outfile=conftest.$ac_objext
  7183. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7184. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7185. # Insert the option either (1) after the last *FLAGS variable, or
  7186. # (2) before a word containing "conftest.", or (3) at the end.
  7187. # Note that $ac_compile itself does not contain backslashes and begins
  7188. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7189. # The option is referenced via a variable to avoid confusing sed.
  7190. lt_compile=`echo "$ac_compile" | $SED \
  7191. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7192. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7193. -e 's:$: $lt_compiler_flag:'`
  7194. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7195. (eval "$lt_compile" 2>conftest.err)
  7196. ac_status=$?
  7197. cat conftest.err >&5
  7198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7199. if (exit $ac_status) && test -s "$ac_outfile"; then
  7200. # The compiler can only warn and ignore the option if not recognized
  7201. # So say no if there are warnings other than the usual output.
  7202. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7203. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7204. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7205. lt_cv_prog_compiler_pic_works=yes
  7206. fi
  7207. fi
  7208. $RM conftest*
  7209. fi
  7210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7211. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7212. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7213. case $lt_prog_compiler_pic in
  7214. "" | " "*) ;;
  7215. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7216. esac
  7217. else
  7218. lt_prog_compiler_pic=
  7219. lt_prog_compiler_can_build_shared=no
  7220. fi
  7221. fi
  7222. #
  7223. # Check to make sure the static flag actually works.
  7224. #
  7225. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7227. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7228. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7229. $as_echo_n "(cached) " >&6
  7230. else
  7231. lt_cv_prog_compiler_static_works=no
  7232. save_LDFLAGS="$LDFLAGS"
  7233. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7234. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7235. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7236. # The linker can only warn and ignore the option if not recognized
  7237. # So say no if there are warnings
  7238. if test -s conftest.err; then
  7239. # Append any errors to the config.log.
  7240. cat conftest.err 1>&5
  7241. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7242. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7243. if diff conftest.exp conftest.er2 >/dev/null; then
  7244. lt_cv_prog_compiler_static_works=yes
  7245. fi
  7246. else
  7247. lt_cv_prog_compiler_static_works=yes
  7248. fi
  7249. fi
  7250. $RM -r conftest*
  7251. LDFLAGS="$save_LDFLAGS"
  7252. fi
  7253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7254. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7255. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7256. :
  7257. else
  7258. lt_prog_compiler_static=
  7259. fi
  7260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7261. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7262. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7263. $as_echo_n "(cached) " >&6
  7264. else
  7265. lt_cv_prog_compiler_c_o=no
  7266. $RM -r conftest 2>/dev/null
  7267. mkdir conftest
  7268. cd conftest
  7269. mkdir out
  7270. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7271. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7272. # Insert the option either (1) after the last *FLAGS variable, or
  7273. # (2) before a word containing "conftest.", or (3) at the end.
  7274. # Note that $ac_compile itself does not contain backslashes and begins
  7275. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7276. lt_compile=`echo "$ac_compile" | $SED \
  7277. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7278. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7279. -e 's:$: $lt_compiler_flag:'`
  7280. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7281. (eval "$lt_compile" 2>out/conftest.err)
  7282. ac_status=$?
  7283. cat out/conftest.err >&5
  7284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7285. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7286. then
  7287. # The compiler can only warn and ignore the option if not recognized
  7288. # So say no if there are warnings
  7289. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7290. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7291. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7292. lt_cv_prog_compiler_c_o=yes
  7293. fi
  7294. fi
  7295. chmod u+w . 2>&5
  7296. $RM conftest*
  7297. # SGI C++ compiler will create directory out/ii_files/ for
  7298. # template instantiation
  7299. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7300. $RM out/* && rmdir out
  7301. cd ..
  7302. $RM -r conftest
  7303. $RM conftest*
  7304. fi
  7305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7306. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7308. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7309. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7310. $as_echo_n "(cached) " >&6
  7311. else
  7312. lt_cv_prog_compiler_c_o=no
  7313. $RM -r conftest 2>/dev/null
  7314. mkdir conftest
  7315. cd conftest
  7316. mkdir out
  7317. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7318. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7319. # Insert the option either (1) after the last *FLAGS variable, or
  7320. # (2) before a word containing "conftest.", or (3) at the end.
  7321. # Note that $ac_compile itself does not contain backslashes and begins
  7322. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7323. lt_compile=`echo "$ac_compile" | $SED \
  7324. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7325. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7326. -e 's:$: $lt_compiler_flag:'`
  7327. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7328. (eval "$lt_compile" 2>out/conftest.err)
  7329. ac_status=$?
  7330. cat out/conftest.err >&5
  7331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7332. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7333. then
  7334. # The compiler can only warn and ignore the option if not recognized
  7335. # So say no if there are warnings
  7336. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7337. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7338. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7339. lt_cv_prog_compiler_c_o=yes
  7340. fi
  7341. fi
  7342. chmod u+w . 2>&5
  7343. $RM conftest*
  7344. # SGI C++ compiler will create directory out/ii_files/ for
  7345. # template instantiation
  7346. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7347. $RM out/* && rmdir out
  7348. cd ..
  7349. $RM -r conftest
  7350. $RM conftest*
  7351. fi
  7352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7353. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7354. hard_links="nottested"
  7355. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7356. # do not overwrite the value of need_locks provided by the user
  7357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7358. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7359. hard_links=yes
  7360. $RM conftest*
  7361. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7362. touch conftest.a
  7363. ln conftest.a conftest.b 2>&5 || hard_links=no
  7364. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7366. $as_echo "$hard_links" >&6; }
  7367. if test "$hard_links" = no; then
  7368. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7369. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7370. need_locks=warn
  7371. fi
  7372. else
  7373. need_locks=no
  7374. fi
  7375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7376. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7377. runpath_var=
  7378. allow_undefined_flag=
  7379. always_export_symbols=no
  7380. archive_cmds=
  7381. archive_expsym_cmds=
  7382. compiler_needs_object=no
  7383. enable_shared_with_static_runtimes=no
  7384. export_dynamic_flag_spec=
  7385. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7386. hardcode_automatic=no
  7387. hardcode_direct=no
  7388. hardcode_direct_absolute=no
  7389. hardcode_libdir_flag_spec=
  7390. hardcode_libdir_separator=
  7391. hardcode_minus_L=no
  7392. hardcode_shlibpath_var=unsupported
  7393. inherit_rpath=no
  7394. link_all_deplibs=unknown
  7395. module_cmds=
  7396. module_expsym_cmds=
  7397. old_archive_from_new_cmds=
  7398. old_archive_from_expsyms_cmds=
  7399. thread_safe_flag_spec=
  7400. whole_archive_flag_spec=
  7401. # include_expsyms should be a list of space-separated symbols to be *always*
  7402. # included in the symbol list
  7403. include_expsyms=
  7404. # exclude_expsyms can be an extended regexp of symbols to exclude
  7405. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7406. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7407. # as well as any symbol that contains `d'.
  7408. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7409. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7410. # platforms (ab)use it in PIC code, but their linkers get confused if
  7411. # the symbol is explicitly referenced. Since portable code cannot
  7412. # rely on this symbol name, it's probably fine to never include it in
  7413. # preloaded symbol tables.
  7414. # Exclude shared library initialization/finalization symbols.
  7415. extract_expsyms_cmds=
  7416. case $host_os in
  7417. cygwin* | mingw* | pw32* | cegcc*)
  7418. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7419. # When not using gcc, we currently assume that we are using
  7420. # Microsoft Visual C++.
  7421. if test "$GCC" != yes; then
  7422. with_gnu_ld=no
  7423. fi
  7424. ;;
  7425. interix*)
  7426. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7427. with_gnu_ld=yes
  7428. ;;
  7429. openbsd*)
  7430. with_gnu_ld=no
  7431. ;;
  7432. esac
  7433. ld_shlibs=yes
  7434. # On some targets, GNU ld is compatible enough with the native linker
  7435. # that we're better off using the native interface for both.
  7436. lt_use_gnu_ld_interface=no
  7437. if test "$with_gnu_ld" = yes; then
  7438. case $host_os in
  7439. aix*)
  7440. # The AIX port of GNU ld has always aspired to compatibility
  7441. # with the native linker. However, as the warning in the GNU ld
  7442. # block says, versions before 2.19.5* couldn't really create working
  7443. # shared libraries, regardless of the interface used.
  7444. case `$LD -v 2>&1` in
  7445. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7446. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7447. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7448. *)
  7449. lt_use_gnu_ld_interface=yes
  7450. ;;
  7451. esac
  7452. ;;
  7453. *)
  7454. lt_use_gnu_ld_interface=yes
  7455. ;;
  7456. esac
  7457. fi
  7458. if test "$lt_use_gnu_ld_interface" = yes; then
  7459. # If archive_cmds runs LD, not CC, wlarc should be empty
  7460. wlarc='${wl}'
  7461. # Set some defaults for GNU ld with shared library support. These
  7462. # are reset later if shared libraries are not supported. Putting them
  7463. # here allows them to be overridden if necessary.
  7464. runpath_var=LD_RUN_PATH
  7465. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7466. export_dynamic_flag_spec='${wl}--export-dynamic'
  7467. # ancient GNU ld didn't support --whole-archive et. al.
  7468. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7469. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7470. else
  7471. whole_archive_flag_spec=
  7472. fi
  7473. supports_anon_versioning=no
  7474. case `$LD -v 2>&1` in
  7475. *GNU\ gold*) supports_anon_versioning=yes ;;
  7476. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7477. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7478. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7479. *\ 2.11.*) ;; # other 2.11 versions
  7480. *) supports_anon_versioning=yes ;;
  7481. esac
  7482. # See if GNU ld supports shared libraries.
  7483. case $host_os in
  7484. aix[3-9]*)
  7485. # On AIX/PPC, the GNU linker is very broken
  7486. if test "$host_cpu" != ia64; then
  7487. ld_shlibs=no
  7488. cat <<_LT_EOF 1>&2
  7489. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7490. *** to be unable to reliably create shared libraries on AIX.
  7491. *** Therefore, libtool is disabling shared libraries support. If you
  7492. *** really care for shared libraries, you may want to install binutils
  7493. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7494. *** You will then need to restart the configuration process.
  7495. _LT_EOF
  7496. fi
  7497. ;;
  7498. amigaos*)
  7499. case $host_cpu in
  7500. powerpc)
  7501. # see comment about AmigaOS4 .so support
  7502. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7503. archive_expsym_cmds=''
  7504. ;;
  7505. m68k)
  7506. 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)'
  7507. hardcode_libdir_flag_spec='-L$libdir'
  7508. hardcode_minus_L=yes
  7509. ;;
  7510. esac
  7511. ;;
  7512. beos*)
  7513. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7514. allow_undefined_flag=unsupported
  7515. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7516. # support --undefined. This deserves some investigation. FIXME
  7517. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7518. else
  7519. ld_shlibs=no
  7520. fi
  7521. ;;
  7522. cygwin* | mingw* | pw32* | cegcc*)
  7523. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7524. # as there is no search path for DLLs.
  7525. hardcode_libdir_flag_spec='-L$libdir'
  7526. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7527. allow_undefined_flag=unsupported
  7528. always_export_symbols=no
  7529. enable_shared_with_static_runtimes=yes
  7530. 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'
  7531. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7532. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7533. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7534. # If the export-symbols file already is a .def file (1st line
  7535. # is EXPORTS), use it as is; otherwise, prepend...
  7536. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7537. cp $export_symbols $output_objdir/$soname.def;
  7538. else
  7539. echo EXPORTS > $output_objdir/$soname.def;
  7540. cat $export_symbols >> $output_objdir/$soname.def;
  7541. fi~
  7542. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7543. else
  7544. ld_shlibs=no
  7545. fi
  7546. ;;
  7547. haiku*)
  7548. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7549. link_all_deplibs=yes
  7550. ;;
  7551. interix[3-9]*)
  7552. hardcode_direct=no
  7553. hardcode_shlibpath_var=no
  7554. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7555. export_dynamic_flag_spec='${wl}-E'
  7556. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7557. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7558. # default) and relocated if they conflict, which is a slow very memory
  7559. # consuming and fragmenting process. To avoid this, we pick a random,
  7560. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7561. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7562. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7563. 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'
  7564. ;;
  7565. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7566. tmp_diet=no
  7567. if test "$host_os" = linux-dietlibc; then
  7568. case $cc_basename in
  7569. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7570. esac
  7571. fi
  7572. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7573. && test "$tmp_diet" = no
  7574. then
  7575. tmp_addflag=' $pic_flag'
  7576. tmp_sharedflag='-shared'
  7577. case $cc_basename,$host_cpu in
  7578. pgcc*) # Portland Group C compiler
  7579. 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'
  7580. tmp_addflag=' $pic_flag'
  7581. ;;
  7582. pgf77* | pgf90* | pgf95* | pgfortran*)
  7583. # Portland Group f77 and f90 compilers
  7584. 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'
  7585. tmp_addflag=' $pic_flag -Mnomain' ;;
  7586. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7587. tmp_addflag=' -i_dynamic' ;;
  7588. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7589. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7590. ifc* | ifort*) # Intel Fortran compiler
  7591. tmp_addflag=' -nofor_main' ;;
  7592. lf95*) # Lahey Fortran 8.1
  7593. whole_archive_flag_spec=
  7594. tmp_sharedflag='--shared' ;;
  7595. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7596. tmp_sharedflag='-qmkshrobj'
  7597. tmp_addflag= ;;
  7598. nvcc*) # Cuda Compiler Driver 2.2
  7599. 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'
  7600. compiler_needs_object=yes
  7601. ;;
  7602. esac
  7603. case `$CC -V 2>&1 | sed 5q` in
  7604. *Sun\ C*) # Sun C 5.9
  7605. 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'
  7606. compiler_needs_object=yes
  7607. tmp_sharedflag='-G' ;;
  7608. *Sun\ F*) # Sun Fortran 8.3
  7609. tmp_sharedflag='-G' ;;
  7610. esac
  7611. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7612. if test "x$supports_anon_versioning" = xyes; then
  7613. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7614. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7615. echo "local: *; };" >> $output_objdir/$libname.ver~
  7616. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7617. fi
  7618. case $cc_basename in
  7619. xlf* | bgf* | bgxlf* | mpixlf*)
  7620. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7621. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7622. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7623. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7624. if test "x$supports_anon_versioning" = xyes; then
  7625. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7626. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7627. echo "local: *; };" >> $output_objdir/$libname.ver~
  7628. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7629. fi
  7630. ;;
  7631. esac
  7632. else
  7633. ld_shlibs=no
  7634. fi
  7635. ;;
  7636. netbsd*)
  7637. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7638. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7639. wlarc=
  7640. else
  7641. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7642. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7643. fi
  7644. ;;
  7645. solaris*)
  7646. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7647. ld_shlibs=no
  7648. cat <<_LT_EOF 1>&2
  7649. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7650. *** create shared libraries on Solaris systems. Therefore, libtool
  7651. *** is disabling shared libraries support. We urge you to upgrade GNU
  7652. *** binutils to release 2.9.1 or newer. Another option is to modify
  7653. *** your PATH or compiler configuration so that the native linker is
  7654. *** used, and then restart.
  7655. _LT_EOF
  7656. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7657. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7658. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7659. else
  7660. ld_shlibs=no
  7661. fi
  7662. ;;
  7663. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7664. case `$LD -v 2>&1` in
  7665. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7666. ld_shlibs=no
  7667. cat <<_LT_EOF 1>&2
  7668. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7669. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7670. *** is disabling shared libraries support. We urge you to upgrade GNU
  7671. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7672. *** your PATH or compiler configuration so that the native linker is
  7673. *** used, and then restart.
  7674. _LT_EOF
  7675. ;;
  7676. *)
  7677. # For security reasons, it is highly recommended that you always
  7678. # use absolute paths for naming shared libraries, and exclude the
  7679. # DT_RUNPATH tag from executables and libraries. But doing so
  7680. # requires that you compile everything twice, which is a pain.
  7681. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7682. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7683. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7684. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7685. else
  7686. ld_shlibs=no
  7687. fi
  7688. ;;
  7689. esac
  7690. ;;
  7691. sunos4*)
  7692. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7693. wlarc=
  7694. hardcode_direct=yes
  7695. hardcode_shlibpath_var=no
  7696. ;;
  7697. *)
  7698. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7699. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7700. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7701. else
  7702. ld_shlibs=no
  7703. fi
  7704. ;;
  7705. esac
  7706. if test "$ld_shlibs" = no; then
  7707. runpath_var=
  7708. hardcode_libdir_flag_spec=
  7709. export_dynamic_flag_spec=
  7710. whole_archive_flag_spec=
  7711. fi
  7712. else
  7713. # PORTME fill in a description of your system's linker (not GNU ld)
  7714. case $host_os in
  7715. aix3*)
  7716. allow_undefined_flag=unsupported
  7717. always_export_symbols=yes
  7718. 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'
  7719. # Note: this linker hardcodes the directories in LIBPATH if there
  7720. # are no directories specified by -L.
  7721. hardcode_minus_L=yes
  7722. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7723. # Neither direct hardcoding nor static linking is supported with a
  7724. # broken collect2.
  7725. hardcode_direct=unsupported
  7726. fi
  7727. ;;
  7728. aix[4-9]*)
  7729. if test "$host_cpu" = ia64; then
  7730. # On IA64, the linker does run time linking by default, so we don't
  7731. # have to do anything special.
  7732. aix_use_runtimelinking=no
  7733. exp_sym_flag='-Bexport'
  7734. no_entry_flag=""
  7735. else
  7736. # If we're using GNU nm, then we don't want the "-C" option.
  7737. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7738. # Also, AIX nm treats weak defined symbols like other global
  7739. # defined symbols, whereas GNU nm marks them as "W".
  7740. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7741. 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'
  7742. else
  7743. 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'
  7744. fi
  7745. aix_use_runtimelinking=no
  7746. # Test if we are trying to use run time linking or normal
  7747. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7748. # need to do runtime linking.
  7749. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7750. for ld_flag in $LDFLAGS; do
  7751. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7752. aix_use_runtimelinking=yes
  7753. break
  7754. fi
  7755. done
  7756. ;;
  7757. esac
  7758. exp_sym_flag='-bexport'
  7759. no_entry_flag='-bnoentry'
  7760. fi
  7761. # When large executables or shared objects are built, AIX ld can
  7762. # have problems creating the table of contents. If linking a library
  7763. # or program results in "error TOC overflow" add -mminimal-toc to
  7764. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7765. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7766. archive_cmds=''
  7767. hardcode_direct=yes
  7768. hardcode_direct_absolute=yes
  7769. hardcode_libdir_separator=':'
  7770. link_all_deplibs=yes
  7771. file_list_spec='${wl}-f,'
  7772. if test "$GCC" = yes; then
  7773. case $host_os in aix4.[012]|aix4.[012].*)
  7774. # We only want to do this on AIX 4.2 and lower, the check
  7775. # below for broken collect2 doesn't work under 4.3+
  7776. collect2name=`${CC} -print-prog-name=collect2`
  7777. if test -f "$collect2name" &&
  7778. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7779. then
  7780. # We have reworked collect2
  7781. :
  7782. else
  7783. # We have old collect2
  7784. hardcode_direct=unsupported
  7785. # It fails to find uninstalled libraries when the uninstalled
  7786. # path is not listed in the libpath. Setting hardcode_minus_L
  7787. # to unsupported forces relinking
  7788. hardcode_minus_L=yes
  7789. hardcode_libdir_flag_spec='-L$libdir'
  7790. hardcode_libdir_separator=
  7791. fi
  7792. ;;
  7793. esac
  7794. shared_flag='-shared'
  7795. if test "$aix_use_runtimelinking" = yes; then
  7796. shared_flag="$shared_flag "'${wl}-G'
  7797. fi
  7798. else
  7799. # not using gcc
  7800. if test "$host_cpu" = ia64; then
  7801. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7802. # chokes on -Wl,-G. The following line is correct:
  7803. shared_flag='-G'
  7804. else
  7805. if test "$aix_use_runtimelinking" = yes; then
  7806. shared_flag='${wl}-G'
  7807. else
  7808. shared_flag='${wl}-bM:SRE'
  7809. fi
  7810. fi
  7811. fi
  7812. export_dynamic_flag_spec='${wl}-bexpall'
  7813. # It seems that -bexpall does not export symbols beginning with
  7814. # underscore (_), so it is better to generate a list of symbols to export.
  7815. always_export_symbols=yes
  7816. if test "$aix_use_runtimelinking" = yes; then
  7817. # Warning - without using the other runtime loading flags (-brtl),
  7818. # -berok will link without error, but may produce a broken library.
  7819. allow_undefined_flag='-berok'
  7820. # Determine the default libpath from the value encoded in an
  7821. # empty executable.
  7822. if test "${lt_cv_aix_libpath+set}" = set; then
  7823. aix_libpath=$lt_cv_aix_libpath
  7824. else
  7825. if ${lt_cv_aix_libpath_+:} false; then :
  7826. $as_echo_n "(cached) " >&6
  7827. else
  7828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7829. /* end confdefs.h. */
  7830. int
  7831. main ()
  7832. {
  7833. ;
  7834. return 0;
  7835. }
  7836. _ACEOF
  7837. if ac_fn_c_try_link "$LINENO"; then :
  7838. lt_aix_libpath_sed='
  7839. /Import File Strings/,/^$/ {
  7840. /^0/ {
  7841. s/^0 *\([^ ]*\) *$/\1/
  7842. p
  7843. }
  7844. }'
  7845. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7846. # Check for a 64-bit object if we didn't find anything.
  7847. if test -z "$lt_cv_aix_libpath_"; then
  7848. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7849. fi
  7850. fi
  7851. rm -f core conftest.err conftest.$ac_objext \
  7852. conftest$ac_exeext conftest.$ac_ext
  7853. if test -z "$lt_cv_aix_libpath_"; then
  7854. lt_cv_aix_libpath_="/usr/lib:/lib"
  7855. fi
  7856. fi
  7857. aix_libpath=$lt_cv_aix_libpath_
  7858. fi
  7859. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7860. 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"
  7861. else
  7862. if test "$host_cpu" = ia64; then
  7863. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7864. allow_undefined_flag="-z nodefs"
  7865. 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"
  7866. else
  7867. # Determine the default libpath from the value encoded in an
  7868. # empty executable.
  7869. if test "${lt_cv_aix_libpath+set}" = set; then
  7870. aix_libpath=$lt_cv_aix_libpath
  7871. else
  7872. if ${lt_cv_aix_libpath_+:} false; then :
  7873. $as_echo_n "(cached) " >&6
  7874. else
  7875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7876. /* end confdefs.h. */
  7877. int
  7878. main ()
  7879. {
  7880. ;
  7881. return 0;
  7882. }
  7883. _ACEOF
  7884. if ac_fn_c_try_link "$LINENO"; then :
  7885. lt_aix_libpath_sed='
  7886. /Import File Strings/,/^$/ {
  7887. /^0/ {
  7888. s/^0 *\([^ ]*\) *$/\1/
  7889. p
  7890. }
  7891. }'
  7892. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7893. # Check for a 64-bit object if we didn't find anything.
  7894. if test -z "$lt_cv_aix_libpath_"; then
  7895. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7896. fi
  7897. fi
  7898. rm -f core conftest.err conftest.$ac_objext \
  7899. conftest$ac_exeext conftest.$ac_ext
  7900. if test -z "$lt_cv_aix_libpath_"; then
  7901. lt_cv_aix_libpath_="/usr/lib:/lib"
  7902. fi
  7903. fi
  7904. aix_libpath=$lt_cv_aix_libpath_
  7905. fi
  7906. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7907. # Warning - without using the other run time loading flags,
  7908. # -berok will link without error, but may produce a broken library.
  7909. no_undefined_flag=' ${wl}-bernotok'
  7910. allow_undefined_flag=' ${wl}-berok'
  7911. if test "$with_gnu_ld" = yes; then
  7912. # We only use this code for GNU lds that support --whole-archive.
  7913. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7914. else
  7915. # Exported symbols can be pulled into shared objects from archives
  7916. whole_archive_flag_spec='$convenience'
  7917. fi
  7918. archive_cmds_need_lc=yes
  7919. # This is similar to how AIX traditionally builds its shared libraries.
  7920. 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'
  7921. fi
  7922. fi
  7923. ;;
  7924. amigaos*)
  7925. case $host_cpu in
  7926. powerpc)
  7927. # see comment about AmigaOS4 .so support
  7928. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7929. archive_expsym_cmds=''
  7930. ;;
  7931. m68k)
  7932. 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)'
  7933. hardcode_libdir_flag_spec='-L$libdir'
  7934. hardcode_minus_L=yes
  7935. ;;
  7936. esac
  7937. ;;
  7938. bsdi[45]*)
  7939. export_dynamic_flag_spec=-rdynamic
  7940. ;;
  7941. cygwin* | mingw* | pw32* | cegcc*)
  7942. # When not using gcc, we currently assume that we are using
  7943. # Microsoft Visual C++.
  7944. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7945. # no search path for DLLs.
  7946. case $cc_basename in
  7947. cl*)
  7948. # Native MSVC
  7949. hardcode_libdir_flag_spec=' '
  7950. allow_undefined_flag=unsupported
  7951. always_export_symbols=yes
  7952. file_list_spec='@'
  7953. # Tell ltmain to make .lib files, not .a files.
  7954. libext=lib
  7955. # Tell ltmain to make .dll files, not .so files.
  7956. shrext_cmds=".dll"
  7957. # FIXME: Setting linknames here is a bad hack.
  7958. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7959. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7960. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7961. else
  7962. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7963. fi~
  7964. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7965. linknames='
  7966. # The linker will not automatically build a static lib if we build a DLL.
  7967. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7968. enable_shared_with_static_runtimes=yes
  7969. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7970. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7971. # Don't use ranlib
  7972. old_postinstall_cmds='chmod 644 $oldlib'
  7973. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7974. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7975. case $lt_outputfile in
  7976. *.exe|*.EXE) ;;
  7977. *)
  7978. lt_outputfile="$lt_outputfile.exe"
  7979. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7980. ;;
  7981. esac~
  7982. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7983. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7984. $RM "$lt_outputfile.manifest";
  7985. fi'
  7986. ;;
  7987. *)
  7988. # Assume MSVC wrapper
  7989. hardcode_libdir_flag_spec=' '
  7990. allow_undefined_flag=unsupported
  7991. # Tell ltmain to make .lib files, not .a files.
  7992. libext=lib
  7993. # Tell ltmain to make .dll files, not .so files.
  7994. shrext_cmds=".dll"
  7995. # FIXME: Setting linknames here is a bad hack.
  7996. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7997. # The linker will automatically build a .lib file if we build a DLL.
  7998. old_archive_from_new_cmds='true'
  7999. # FIXME: Should let the user specify the lib program.
  8000. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8001. enable_shared_with_static_runtimes=yes
  8002. ;;
  8003. esac
  8004. ;;
  8005. darwin* | rhapsody*)
  8006. archive_cmds_need_lc=no
  8007. hardcode_direct=no
  8008. hardcode_automatic=yes
  8009. hardcode_shlibpath_var=unsupported
  8010. if test "$lt_cv_ld_force_load" = "yes"; then
  8011. 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\"`'
  8012. else
  8013. whole_archive_flag_spec=''
  8014. fi
  8015. link_all_deplibs=yes
  8016. allow_undefined_flag="$_lt_dar_allow_undefined"
  8017. case $cc_basename in
  8018. ifort*) _lt_dar_can_shared=yes ;;
  8019. *) _lt_dar_can_shared=$GCC ;;
  8020. esac
  8021. if test "$_lt_dar_can_shared" = "yes"; then
  8022. output_verbose_link_cmd=func_echo_all
  8023. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8024. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8025. 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}"
  8026. 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}"
  8027. else
  8028. ld_shlibs=no
  8029. fi
  8030. ;;
  8031. dgux*)
  8032. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8033. hardcode_libdir_flag_spec='-L$libdir'
  8034. hardcode_shlibpath_var=no
  8035. ;;
  8036. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8037. # support. Future versions do this automatically, but an explicit c++rt0.o
  8038. # does not break anything, and helps significantly (at the cost of a little
  8039. # extra space).
  8040. freebsd2.2*)
  8041. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8042. hardcode_libdir_flag_spec='-R$libdir'
  8043. hardcode_direct=yes
  8044. hardcode_shlibpath_var=no
  8045. ;;
  8046. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8047. freebsd2.*)
  8048. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8049. hardcode_direct=yes
  8050. hardcode_minus_L=yes
  8051. hardcode_shlibpath_var=no
  8052. ;;
  8053. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8054. freebsd* | dragonfly*)
  8055. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8056. hardcode_libdir_flag_spec='-R$libdir'
  8057. hardcode_direct=yes
  8058. hardcode_shlibpath_var=no
  8059. ;;
  8060. hpux9*)
  8061. if test "$GCC" = yes; then
  8062. 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'
  8063. else
  8064. 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'
  8065. fi
  8066. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8067. hardcode_libdir_separator=:
  8068. hardcode_direct=yes
  8069. # hardcode_minus_L: Not really in the search PATH,
  8070. # but as the default location of the library.
  8071. hardcode_minus_L=yes
  8072. export_dynamic_flag_spec='${wl}-E'
  8073. ;;
  8074. hpux10*)
  8075. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8076. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8077. else
  8078. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8079. fi
  8080. if test "$with_gnu_ld" = no; then
  8081. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8082. hardcode_libdir_separator=:
  8083. hardcode_direct=yes
  8084. hardcode_direct_absolute=yes
  8085. export_dynamic_flag_spec='${wl}-E'
  8086. # hardcode_minus_L: Not really in the search PATH,
  8087. # but as the default location of the library.
  8088. hardcode_minus_L=yes
  8089. fi
  8090. ;;
  8091. hpux11*)
  8092. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8093. case $host_cpu in
  8094. hppa*64*)
  8095. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8096. ;;
  8097. ia64*)
  8098. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8099. ;;
  8100. *)
  8101. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8102. ;;
  8103. esac
  8104. else
  8105. case $host_cpu in
  8106. hppa*64*)
  8107. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8108. ;;
  8109. ia64*)
  8110. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8111. ;;
  8112. *)
  8113. # Older versions of the 11.00 compiler do not understand -b yet
  8114. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8116. $as_echo_n "checking if $CC understands -b... " >&6; }
  8117. if ${lt_cv_prog_compiler__b+:} false; then :
  8118. $as_echo_n "(cached) " >&6
  8119. else
  8120. lt_cv_prog_compiler__b=no
  8121. save_LDFLAGS="$LDFLAGS"
  8122. LDFLAGS="$LDFLAGS -b"
  8123. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8124. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8125. # The linker can only warn and ignore the option if not recognized
  8126. # So say no if there are warnings
  8127. if test -s conftest.err; then
  8128. # Append any errors to the config.log.
  8129. cat conftest.err 1>&5
  8130. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8131. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8132. if diff conftest.exp conftest.er2 >/dev/null; then
  8133. lt_cv_prog_compiler__b=yes
  8134. fi
  8135. else
  8136. lt_cv_prog_compiler__b=yes
  8137. fi
  8138. fi
  8139. $RM -r conftest*
  8140. LDFLAGS="$save_LDFLAGS"
  8141. fi
  8142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8143. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8144. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8145. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8146. else
  8147. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8148. fi
  8149. ;;
  8150. esac
  8151. fi
  8152. if test "$with_gnu_ld" = no; then
  8153. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8154. hardcode_libdir_separator=:
  8155. case $host_cpu in
  8156. hppa*64*|ia64*)
  8157. hardcode_direct=no
  8158. hardcode_shlibpath_var=no
  8159. ;;
  8160. *)
  8161. hardcode_direct=yes
  8162. hardcode_direct_absolute=yes
  8163. export_dynamic_flag_spec='${wl}-E'
  8164. # hardcode_minus_L: Not really in the search PATH,
  8165. # but as the default location of the library.
  8166. hardcode_minus_L=yes
  8167. ;;
  8168. esac
  8169. fi
  8170. ;;
  8171. irix5* | irix6* | nonstopux*)
  8172. if test "$GCC" = yes; then
  8173. 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'
  8174. # Try to use the -exported_symbol ld option, if it does not
  8175. # work, assume that -exports_file does not work either and
  8176. # implicitly export all symbols.
  8177. # This should be the same for all languages, so no per-tag cache variable.
  8178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8179. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8180. if ${lt_cv_irix_exported_symbol+:} false; then :
  8181. $as_echo_n "(cached) " >&6
  8182. else
  8183. save_LDFLAGS="$LDFLAGS"
  8184. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8186. /* end confdefs.h. */
  8187. int foo (void) { return 0; }
  8188. _ACEOF
  8189. if ac_fn_c_try_link "$LINENO"; then :
  8190. lt_cv_irix_exported_symbol=yes
  8191. else
  8192. lt_cv_irix_exported_symbol=no
  8193. fi
  8194. rm -f core conftest.err conftest.$ac_objext \
  8195. conftest$ac_exeext conftest.$ac_ext
  8196. LDFLAGS="$save_LDFLAGS"
  8197. fi
  8198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8199. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8200. if test "$lt_cv_irix_exported_symbol" = yes; then
  8201. 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'
  8202. fi
  8203. else
  8204. 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'
  8205. 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'
  8206. fi
  8207. archive_cmds_need_lc='no'
  8208. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8209. hardcode_libdir_separator=:
  8210. inherit_rpath=yes
  8211. link_all_deplibs=yes
  8212. ;;
  8213. netbsd*)
  8214. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8215. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8216. else
  8217. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8218. fi
  8219. hardcode_libdir_flag_spec='-R$libdir'
  8220. hardcode_direct=yes
  8221. hardcode_shlibpath_var=no
  8222. ;;
  8223. newsos6)
  8224. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8225. hardcode_direct=yes
  8226. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8227. hardcode_libdir_separator=:
  8228. hardcode_shlibpath_var=no
  8229. ;;
  8230. *nto* | *qnx*)
  8231. ;;
  8232. openbsd*)
  8233. if test -f /usr/libexec/ld.so; then
  8234. hardcode_direct=yes
  8235. hardcode_shlibpath_var=no
  8236. hardcode_direct_absolute=yes
  8237. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8238. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8239. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8240. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8241. export_dynamic_flag_spec='${wl}-E'
  8242. else
  8243. case $host_os in
  8244. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8245. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8246. hardcode_libdir_flag_spec='-R$libdir'
  8247. ;;
  8248. *)
  8249. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8250. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8251. ;;
  8252. esac
  8253. fi
  8254. else
  8255. ld_shlibs=no
  8256. fi
  8257. ;;
  8258. os2*)
  8259. hardcode_libdir_flag_spec='-L$libdir'
  8260. hardcode_minus_L=yes
  8261. allow_undefined_flag=unsupported
  8262. 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'
  8263. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8264. ;;
  8265. osf3*)
  8266. if test "$GCC" = yes; then
  8267. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8268. 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'
  8269. else
  8270. allow_undefined_flag=' -expect_unresolved \*'
  8271. 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'
  8272. fi
  8273. archive_cmds_need_lc='no'
  8274. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8275. hardcode_libdir_separator=:
  8276. ;;
  8277. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8278. if test "$GCC" = yes; then
  8279. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8280. 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'
  8281. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8282. else
  8283. allow_undefined_flag=' -expect_unresolved \*'
  8284. 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'
  8285. 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~
  8286. $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'
  8287. # Both c and cxx compiler support -rpath directly
  8288. hardcode_libdir_flag_spec='-rpath $libdir'
  8289. fi
  8290. archive_cmds_need_lc='no'
  8291. hardcode_libdir_separator=:
  8292. ;;
  8293. solaris*)
  8294. no_undefined_flag=' -z defs'
  8295. if test "$GCC" = yes; then
  8296. wlarc='${wl}'
  8297. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8298. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8299. $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'
  8300. else
  8301. case `$CC -V 2>&1` in
  8302. *"Compilers 5.0"*)
  8303. wlarc=''
  8304. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8305. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8306. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8307. ;;
  8308. *)
  8309. wlarc='${wl}'
  8310. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8311. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8312. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8313. ;;
  8314. esac
  8315. fi
  8316. hardcode_libdir_flag_spec='-R$libdir'
  8317. hardcode_shlibpath_var=no
  8318. case $host_os in
  8319. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8320. *)
  8321. # The compiler driver will combine and reorder linker options,
  8322. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8323. # but is careful enough not to reorder.
  8324. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8325. if test "$GCC" = yes; then
  8326. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8327. else
  8328. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8329. fi
  8330. ;;
  8331. esac
  8332. link_all_deplibs=yes
  8333. ;;
  8334. sunos4*)
  8335. if test "x$host_vendor" = xsequent; then
  8336. # Use $CC to link under sequent, because it throws in some extra .o
  8337. # files that make .init and .fini sections work.
  8338. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8339. else
  8340. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8341. fi
  8342. hardcode_libdir_flag_spec='-L$libdir'
  8343. hardcode_direct=yes
  8344. hardcode_minus_L=yes
  8345. hardcode_shlibpath_var=no
  8346. ;;
  8347. sysv4)
  8348. case $host_vendor in
  8349. sni)
  8350. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8351. hardcode_direct=yes # is this really true???
  8352. ;;
  8353. siemens)
  8354. ## LD is ld it makes a PLAMLIB
  8355. ## CC just makes a GrossModule.
  8356. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8357. reload_cmds='$CC -r -o $output$reload_objs'
  8358. hardcode_direct=no
  8359. ;;
  8360. motorola)
  8361. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8362. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8363. ;;
  8364. esac
  8365. runpath_var='LD_RUN_PATH'
  8366. hardcode_shlibpath_var=no
  8367. ;;
  8368. sysv4.3*)
  8369. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8370. hardcode_shlibpath_var=no
  8371. export_dynamic_flag_spec='-Bexport'
  8372. ;;
  8373. sysv4*MP*)
  8374. if test -d /usr/nec; then
  8375. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8376. hardcode_shlibpath_var=no
  8377. runpath_var=LD_RUN_PATH
  8378. hardcode_runpath_var=yes
  8379. ld_shlibs=yes
  8380. fi
  8381. ;;
  8382. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8383. no_undefined_flag='${wl}-z,text'
  8384. archive_cmds_need_lc=no
  8385. hardcode_shlibpath_var=no
  8386. runpath_var='LD_RUN_PATH'
  8387. if test "$GCC" = yes; then
  8388. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8389. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8390. else
  8391. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8392. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8393. fi
  8394. ;;
  8395. sysv5* | sco3.2v5* | sco5v6*)
  8396. # Note: We can NOT use -z defs as we might desire, because we do not
  8397. # link with -lc, and that would cause any symbols used from libc to
  8398. # always be unresolved, which means just about no library would
  8399. # ever link correctly. If we're not using GNU ld we use -z text
  8400. # though, which does catch some bad symbols but isn't as heavy-handed
  8401. # as -z defs.
  8402. no_undefined_flag='${wl}-z,text'
  8403. allow_undefined_flag='${wl}-z,nodefs'
  8404. archive_cmds_need_lc=no
  8405. hardcode_shlibpath_var=no
  8406. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8407. hardcode_libdir_separator=':'
  8408. link_all_deplibs=yes
  8409. export_dynamic_flag_spec='${wl}-Bexport'
  8410. runpath_var='LD_RUN_PATH'
  8411. if test "$GCC" = yes; then
  8412. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8413. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8414. else
  8415. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8416. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8417. fi
  8418. ;;
  8419. uts4*)
  8420. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8421. hardcode_libdir_flag_spec='-L$libdir'
  8422. hardcode_shlibpath_var=no
  8423. ;;
  8424. *)
  8425. ld_shlibs=no
  8426. ;;
  8427. esac
  8428. if test x$host_vendor = xsni; then
  8429. case $host in
  8430. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8431. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8432. ;;
  8433. esac
  8434. fi
  8435. fi
  8436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8437. $as_echo "$ld_shlibs" >&6; }
  8438. test "$ld_shlibs" = no && can_build_shared=no
  8439. with_gnu_ld=$with_gnu_ld
  8440. #
  8441. # Do we need to explicitly link libc?
  8442. #
  8443. case "x$archive_cmds_need_lc" in
  8444. x|xyes)
  8445. # Assume -lc should be added
  8446. archive_cmds_need_lc=yes
  8447. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8448. case $archive_cmds in
  8449. *'~'*)
  8450. # FIXME: we may have to deal with multi-command sequences.
  8451. ;;
  8452. '$CC '*)
  8453. # Test whether the compiler implicitly links with -lc since on some
  8454. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8455. # to ld, don't add -lc before -lgcc.
  8456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8457. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8458. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8459. $as_echo_n "(cached) " >&6
  8460. else
  8461. $RM conftest*
  8462. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8463. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8464. (eval $ac_compile) 2>&5
  8465. ac_status=$?
  8466. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8467. test $ac_status = 0; } 2>conftest.err; then
  8468. soname=conftest
  8469. lib=conftest
  8470. libobjs=conftest.$ac_objext
  8471. deplibs=
  8472. wl=$lt_prog_compiler_wl
  8473. pic_flag=$lt_prog_compiler_pic
  8474. compiler_flags=-v
  8475. linker_flags=-v
  8476. verstring=
  8477. output_objdir=.
  8478. libname=conftest
  8479. lt_save_allow_undefined_flag=$allow_undefined_flag
  8480. allow_undefined_flag=
  8481. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8482. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8483. ac_status=$?
  8484. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8485. test $ac_status = 0; }
  8486. then
  8487. lt_cv_archive_cmds_need_lc=no
  8488. else
  8489. lt_cv_archive_cmds_need_lc=yes
  8490. fi
  8491. allow_undefined_flag=$lt_save_allow_undefined_flag
  8492. else
  8493. cat conftest.err 1>&5
  8494. fi
  8495. $RM conftest*
  8496. fi
  8497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8498. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8499. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8500. ;;
  8501. esac
  8502. fi
  8503. ;;
  8504. esac
  8505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8506. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8507. if test "$GCC" = yes; then
  8508. case $host_os in
  8509. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8510. *) lt_awk_arg="/^libraries:/" ;;
  8511. esac
  8512. case $host_os in
  8513. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8514. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8515. esac
  8516. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8517. case $lt_search_path_spec in
  8518. *\;*)
  8519. # if the path contains ";" then we assume it to be the separator
  8520. # otherwise default to the standard path separator (i.e. ":") - it is
  8521. # assumed that no part of a normal pathname contains ";" but that should
  8522. # okay in the real world where ";" in dirpaths is itself problematic.
  8523. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8524. ;;
  8525. *)
  8526. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8527. ;;
  8528. esac
  8529. # Ok, now we have the path, separated by spaces, we can step through it
  8530. # and add multilib dir if necessary.
  8531. lt_tmp_lt_search_path_spec=
  8532. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8533. for lt_sys_path in $lt_search_path_spec; do
  8534. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8535. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8536. else
  8537. test -d "$lt_sys_path" && \
  8538. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8539. fi
  8540. done
  8541. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8542. BEGIN {RS=" "; FS="/|\n";} {
  8543. lt_foo="";
  8544. lt_count=0;
  8545. for (lt_i = NF; lt_i > 0; lt_i--) {
  8546. if ($lt_i != "" && $lt_i != ".") {
  8547. if ($lt_i == "..") {
  8548. lt_count++;
  8549. } else {
  8550. if (lt_count == 0) {
  8551. lt_foo="/" $lt_i lt_foo;
  8552. } else {
  8553. lt_count--;
  8554. }
  8555. }
  8556. }
  8557. }
  8558. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8559. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8560. }'`
  8561. # AWK program above erroneously prepends '/' to C:/dos/paths
  8562. # for these hosts.
  8563. case $host_os in
  8564. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8565. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8566. esac
  8567. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8568. else
  8569. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8570. fi
  8571. library_names_spec=
  8572. libname_spec='lib$name'
  8573. soname_spec=
  8574. shrext_cmds=".so"
  8575. postinstall_cmds=
  8576. postuninstall_cmds=
  8577. finish_cmds=
  8578. finish_eval=
  8579. shlibpath_var=
  8580. shlibpath_overrides_runpath=unknown
  8581. version_type=none
  8582. dynamic_linker="$host_os ld.so"
  8583. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8584. need_lib_prefix=unknown
  8585. hardcode_into_libs=no
  8586. # when you set need_version to no, make sure it does not cause -set_version
  8587. # flags to be left without arguments
  8588. need_version=unknown
  8589. case $host_os in
  8590. aix3*)
  8591. version_type=linux # correct to gnu/linux during the next big refactor
  8592. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8593. shlibpath_var=LIBPATH
  8594. # AIX 3 has no versioning support, so we append a major version to the name.
  8595. soname_spec='${libname}${release}${shared_ext}$major'
  8596. ;;
  8597. aix[4-9]*)
  8598. version_type=linux # correct to gnu/linux during the next big refactor
  8599. need_lib_prefix=no
  8600. need_version=no
  8601. hardcode_into_libs=yes
  8602. if test "$host_cpu" = ia64; then
  8603. # AIX 5 supports IA64
  8604. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8605. shlibpath_var=LD_LIBRARY_PATH
  8606. else
  8607. # With GCC up to 2.95.x, collect2 would create an import file
  8608. # for dependence libraries. The import file would start with
  8609. # the line `#! .'. This would cause the generated library to
  8610. # depend on `.', always an invalid library. This was fixed in
  8611. # development snapshots of GCC prior to 3.0.
  8612. case $host_os in
  8613. aix4 | aix4.[01] | aix4.[01].*)
  8614. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8615. echo ' yes '
  8616. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8617. :
  8618. else
  8619. can_build_shared=no
  8620. fi
  8621. ;;
  8622. esac
  8623. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8624. # soname into executable. Probably we can add versioning support to
  8625. # collect2, so additional links can be useful in future.
  8626. if test "$aix_use_runtimelinking" = yes; then
  8627. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8628. # instead of lib<name>.a to let people know that these are not
  8629. # typical AIX shared libraries.
  8630. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8631. else
  8632. # We preserve .a as extension for shared libraries through AIX4.2
  8633. # and later when we are not doing run time linking.
  8634. library_names_spec='${libname}${release}.a $libname.a'
  8635. soname_spec='${libname}${release}${shared_ext}$major'
  8636. fi
  8637. shlibpath_var=LIBPATH
  8638. fi
  8639. ;;
  8640. amigaos*)
  8641. case $host_cpu in
  8642. powerpc)
  8643. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8644. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8645. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8646. ;;
  8647. m68k)
  8648. library_names_spec='$libname.ixlibrary $libname.a'
  8649. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8650. 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'
  8651. ;;
  8652. esac
  8653. ;;
  8654. beos*)
  8655. library_names_spec='${libname}${shared_ext}'
  8656. dynamic_linker="$host_os ld.so"
  8657. shlibpath_var=LIBRARY_PATH
  8658. ;;
  8659. bsdi[45]*)
  8660. version_type=linux # correct to gnu/linux during the next big refactor
  8661. need_version=no
  8662. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8663. soname_spec='${libname}${release}${shared_ext}$major'
  8664. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8665. shlibpath_var=LD_LIBRARY_PATH
  8666. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8667. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8668. # the default ld.so.conf also contains /usr/contrib/lib and
  8669. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8670. # libtool to hard-code these into programs
  8671. ;;
  8672. cygwin* | mingw* | pw32* | cegcc*)
  8673. version_type=windows
  8674. shrext_cmds=".dll"
  8675. need_version=no
  8676. need_lib_prefix=no
  8677. case $GCC,$cc_basename in
  8678. yes,*)
  8679. # gcc
  8680. library_names_spec='$libname.dll.a'
  8681. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8682. postinstall_cmds='base_file=`basename \${file}`~
  8683. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8684. dldir=$destdir/`dirname \$dlpath`~
  8685. test -d \$dldir || mkdir -p \$dldir~
  8686. $install_prog $dir/$dlname \$dldir/$dlname~
  8687. chmod a+x \$dldir/$dlname~
  8688. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8689. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8690. fi'
  8691. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8692. dlpath=$dir/\$dldll~
  8693. $RM \$dlpath'
  8694. shlibpath_overrides_runpath=yes
  8695. case $host_os in
  8696. cygwin*)
  8697. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8698. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8699. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8700. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8701. ;;
  8702. mingw* | cegcc*)
  8703. # MinGW DLLs use traditional 'lib' prefix
  8704. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8705. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8706. ;;
  8707. pw32*)
  8708. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8709. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8710. ;;
  8711. esac
  8712. dynamic_linker='Win32 ld.exe'
  8713. ;;
  8714. *,cl*)
  8715. # Native MSVC
  8716. libname_spec='$name'
  8717. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8718. library_names_spec='${libname}.dll.lib'
  8719. case $build_os in
  8720. mingw*)
  8721. sys_lib_search_path_spec=
  8722. lt_save_ifs=$IFS
  8723. IFS=';'
  8724. for lt_path in $LIB
  8725. do
  8726. IFS=$lt_save_ifs
  8727. # Let DOS variable expansion print the short 8.3 style file name.
  8728. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8729. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8730. done
  8731. IFS=$lt_save_ifs
  8732. # Convert to MSYS style.
  8733. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8734. ;;
  8735. cygwin*)
  8736. # Convert to unix form, then to dos form, then back to unix form
  8737. # but this time dos style (no spaces!) so that the unix form looks
  8738. # like /cygdrive/c/PROGRA~1:/cygdr...
  8739. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8740. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8741. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8742. ;;
  8743. *)
  8744. sys_lib_search_path_spec="$LIB"
  8745. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8746. # It is most probably a Windows format PATH.
  8747. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8748. else
  8749. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8750. fi
  8751. # FIXME: find the short name or the path components, as spaces are
  8752. # common. (e.g. "Program Files" -> "PROGRA~1")
  8753. ;;
  8754. esac
  8755. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8756. postinstall_cmds='base_file=`basename \${file}`~
  8757. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8758. dldir=$destdir/`dirname \$dlpath`~
  8759. test -d \$dldir || mkdir -p \$dldir~
  8760. $install_prog $dir/$dlname \$dldir/$dlname'
  8761. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8762. dlpath=$dir/\$dldll~
  8763. $RM \$dlpath'
  8764. shlibpath_overrides_runpath=yes
  8765. dynamic_linker='Win32 link.exe'
  8766. ;;
  8767. *)
  8768. # Assume MSVC wrapper
  8769. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8770. dynamic_linker='Win32 ld.exe'
  8771. ;;
  8772. esac
  8773. # FIXME: first we should search . and the directory the executable is in
  8774. shlibpath_var=PATH
  8775. ;;
  8776. darwin* | rhapsody*)
  8777. dynamic_linker="$host_os dyld"
  8778. version_type=darwin
  8779. need_lib_prefix=no
  8780. need_version=no
  8781. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8782. soname_spec='${libname}${release}${major}$shared_ext'
  8783. shlibpath_overrides_runpath=yes
  8784. shlibpath_var=DYLD_LIBRARY_PATH
  8785. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8786. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8787. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8788. ;;
  8789. dgux*)
  8790. version_type=linux # correct to gnu/linux during the next big refactor
  8791. need_lib_prefix=no
  8792. need_version=no
  8793. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8794. soname_spec='${libname}${release}${shared_ext}$major'
  8795. shlibpath_var=LD_LIBRARY_PATH
  8796. ;;
  8797. freebsd* | dragonfly*)
  8798. # DragonFly does not have aout. When/if they implement a new
  8799. # versioning mechanism, adjust this.
  8800. if test -x /usr/bin/objformat; then
  8801. objformat=`/usr/bin/objformat`
  8802. else
  8803. case $host_os in
  8804. freebsd[23].*) objformat=aout ;;
  8805. *) objformat=elf ;;
  8806. esac
  8807. fi
  8808. version_type=freebsd-$objformat
  8809. case $version_type in
  8810. freebsd-elf*)
  8811. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8812. need_version=no
  8813. need_lib_prefix=no
  8814. ;;
  8815. freebsd-*)
  8816. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8817. need_version=yes
  8818. ;;
  8819. esac
  8820. shlibpath_var=LD_LIBRARY_PATH
  8821. case $host_os in
  8822. freebsd2.*)
  8823. shlibpath_overrides_runpath=yes
  8824. ;;
  8825. freebsd3.[01]* | freebsdelf3.[01]*)
  8826. shlibpath_overrides_runpath=yes
  8827. hardcode_into_libs=yes
  8828. ;;
  8829. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8830. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8831. shlibpath_overrides_runpath=no
  8832. hardcode_into_libs=yes
  8833. ;;
  8834. *) # from 4.6 on, and DragonFly
  8835. shlibpath_overrides_runpath=yes
  8836. hardcode_into_libs=yes
  8837. ;;
  8838. esac
  8839. ;;
  8840. gnu*)
  8841. version_type=linux # correct to gnu/linux during the next big refactor
  8842. need_lib_prefix=no
  8843. need_version=no
  8844. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8845. soname_spec='${libname}${release}${shared_ext}$major'
  8846. shlibpath_var=LD_LIBRARY_PATH
  8847. shlibpath_overrides_runpath=no
  8848. hardcode_into_libs=yes
  8849. ;;
  8850. haiku*)
  8851. version_type=linux # correct to gnu/linux during the next big refactor
  8852. need_lib_prefix=no
  8853. need_version=no
  8854. dynamic_linker="$host_os runtime_loader"
  8855. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8856. soname_spec='${libname}${release}${shared_ext}$major'
  8857. shlibpath_var=LIBRARY_PATH
  8858. shlibpath_overrides_runpath=yes
  8859. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8860. hardcode_into_libs=yes
  8861. ;;
  8862. hpux9* | hpux10* | hpux11*)
  8863. # Give a soname corresponding to the major version so that dld.sl refuses to
  8864. # link against other versions.
  8865. version_type=sunos
  8866. need_lib_prefix=no
  8867. need_version=no
  8868. case $host_cpu in
  8869. ia64*)
  8870. shrext_cmds='.so'
  8871. hardcode_into_libs=yes
  8872. dynamic_linker="$host_os dld.so"
  8873. shlibpath_var=LD_LIBRARY_PATH
  8874. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8875. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8876. soname_spec='${libname}${release}${shared_ext}$major'
  8877. if test "X$HPUX_IA64_MODE" = X32; then
  8878. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8879. else
  8880. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8881. fi
  8882. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8883. ;;
  8884. hppa*64*)
  8885. shrext_cmds='.sl'
  8886. hardcode_into_libs=yes
  8887. dynamic_linker="$host_os dld.sl"
  8888. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8889. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8890. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8891. soname_spec='${libname}${release}${shared_ext}$major'
  8892. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8893. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8894. ;;
  8895. *)
  8896. shrext_cmds='.sl'
  8897. dynamic_linker="$host_os dld.sl"
  8898. shlibpath_var=SHLIB_PATH
  8899. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8900. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8901. soname_spec='${libname}${release}${shared_ext}$major'
  8902. ;;
  8903. esac
  8904. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8905. postinstall_cmds='chmod 555 $lib'
  8906. # or fails outright, so override atomically:
  8907. install_override_mode=555
  8908. ;;
  8909. interix[3-9]*)
  8910. version_type=linux # correct to gnu/linux during the next big refactor
  8911. need_lib_prefix=no
  8912. need_version=no
  8913. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8914. soname_spec='${libname}${release}${shared_ext}$major'
  8915. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8916. shlibpath_var=LD_LIBRARY_PATH
  8917. shlibpath_overrides_runpath=no
  8918. hardcode_into_libs=yes
  8919. ;;
  8920. irix5* | irix6* | nonstopux*)
  8921. case $host_os in
  8922. nonstopux*) version_type=nonstopux ;;
  8923. *)
  8924. if test "$lt_cv_prog_gnu_ld" = yes; then
  8925. version_type=linux # correct to gnu/linux during the next big refactor
  8926. else
  8927. version_type=irix
  8928. fi ;;
  8929. esac
  8930. need_lib_prefix=no
  8931. need_version=no
  8932. soname_spec='${libname}${release}${shared_ext}$major'
  8933. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8934. case $host_os in
  8935. irix5* | nonstopux*)
  8936. libsuff= shlibsuff=
  8937. ;;
  8938. *)
  8939. case $LD in # libtool.m4 will add one of these switches to LD
  8940. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8941. libsuff= shlibsuff= libmagic=32-bit;;
  8942. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8943. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8944. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8945. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8946. *) libsuff= shlibsuff= libmagic=never-match;;
  8947. esac
  8948. ;;
  8949. esac
  8950. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8951. shlibpath_overrides_runpath=no
  8952. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8953. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8954. hardcode_into_libs=yes
  8955. ;;
  8956. # No shared lib support for Linux oldld, aout, or coff.
  8957. linux*oldld* | linux*aout* | linux*coff*)
  8958. dynamic_linker=no
  8959. ;;
  8960. # This must be glibc/ELF.
  8961. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8962. version_type=linux # correct to gnu/linux during the next big refactor
  8963. need_lib_prefix=no
  8964. need_version=no
  8965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8966. soname_spec='${libname}${release}${shared_ext}$major'
  8967. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8968. shlibpath_var=LD_LIBRARY_PATH
  8969. shlibpath_overrides_runpath=no
  8970. # Some binutils ld are patched to set DT_RUNPATH
  8971. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8972. $as_echo_n "(cached) " >&6
  8973. else
  8974. lt_cv_shlibpath_overrides_runpath=no
  8975. save_LDFLAGS=$LDFLAGS
  8976. save_libdir=$libdir
  8977. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8978. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8980. /* end confdefs.h. */
  8981. int
  8982. main ()
  8983. {
  8984. ;
  8985. return 0;
  8986. }
  8987. _ACEOF
  8988. if ac_fn_c_try_link "$LINENO"; then :
  8989. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8990. lt_cv_shlibpath_overrides_runpath=yes
  8991. fi
  8992. fi
  8993. rm -f core conftest.err conftest.$ac_objext \
  8994. conftest$ac_exeext conftest.$ac_ext
  8995. LDFLAGS=$save_LDFLAGS
  8996. libdir=$save_libdir
  8997. fi
  8998. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8999. # This implies no fast_install, which is unacceptable.
  9000. # Some rework will be needed to allow for fast_install
  9001. # before this can be enabled.
  9002. hardcode_into_libs=yes
  9003. # Append ld.so.conf contents to the search path
  9004. if test -f /etc/ld.so.conf; then
  9005. 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' ' '`
  9006. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9007. fi
  9008. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9009. # powerpc, because MkLinux only supported shared libraries with the
  9010. # GNU dynamic linker. Since this was broken with cross compilers,
  9011. # most powerpc-linux boxes support dynamic linking these days and
  9012. # people can always --disable-shared, the test was removed, and we
  9013. # assume the GNU/Linux dynamic linker is in use.
  9014. dynamic_linker='GNU/Linux ld.so'
  9015. ;;
  9016. netbsd*)
  9017. version_type=sunos
  9018. need_lib_prefix=no
  9019. need_version=no
  9020. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9022. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9023. dynamic_linker='NetBSD (a.out) ld.so'
  9024. else
  9025. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9026. soname_spec='${libname}${release}${shared_ext}$major'
  9027. dynamic_linker='NetBSD ld.elf_so'
  9028. fi
  9029. shlibpath_var=LD_LIBRARY_PATH
  9030. shlibpath_overrides_runpath=yes
  9031. hardcode_into_libs=yes
  9032. ;;
  9033. newsos6)
  9034. version_type=linux # correct to gnu/linux during the next big refactor
  9035. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9036. shlibpath_var=LD_LIBRARY_PATH
  9037. shlibpath_overrides_runpath=yes
  9038. ;;
  9039. *nto* | *qnx*)
  9040. version_type=qnx
  9041. need_lib_prefix=no
  9042. need_version=no
  9043. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9044. soname_spec='${libname}${release}${shared_ext}$major'
  9045. shlibpath_var=LD_LIBRARY_PATH
  9046. shlibpath_overrides_runpath=no
  9047. hardcode_into_libs=yes
  9048. dynamic_linker='ldqnx.so'
  9049. ;;
  9050. openbsd*)
  9051. version_type=sunos
  9052. sys_lib_dlsearch_path_spec="/usr/lib"
  9053. need_lib_prefix=no
  9054. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9055. case $host_os in
  9056. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9057. *) need_version=no ;;
  9058. esac
  9059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9060. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9061. shlibpath_var=LD_LIBRARY_PATH
  9062. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9063. case $host_os in
  9064. openbsd2.[89] | openbsd2.[89].*)
  9065. shlibpath_overrides_runpath=no
  9066. ;;
  9067. *)
  9068. shlibpath_overrides_runpath=yes
  9069. ;;
  9070. esac
  9071. else
  9072. shlibpath_overrides_runpath=yes
  9073. fi
  9074. ;;
  9075. os2*)
  9076. libname_spec='$name'
  9077. shrext_cmds=".dll"
  9078. need_lib_prefix=no
  9079. library_names_spec='$libname${shared_ext} $libname.a'
  9080. dynamic_linker='OS/2 ld.exe'
  9081. shlibpath_var=LIBPATH
  9082. ;;
  9083. osf3* | osf4* | osf5*)
  9084. version_type=osf
  9085. need_lib_prefix=no
  9086. need_version=no
  9087. soname_spec='${libname}${release}${shared_ext}$major'
  9088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9089. shlibpath_var=LD_LIBRARY_PATH
  9090. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9091. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9092. ;;
  9093. rdos*)
  9094. dynamic_linker=no
  9095. ;;
  9096. solaris*)
  9097. version_type=linux # correct to gnu/linux during the next big refactor
  9098. need_lib_prefix=no
  9099. need_version=no
  9100. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9101. soname_spec='${libname}${release}${shared_ext}$major'
  9102. shlibpath_var=LD_LIBRARY_PATH
  9103. shlibpath_overrides_runpath=yes
  9104. hardcode_into_libs=yes
  9105. # ldd complains unless libraries are executable
  9106. postinstall_cmds='chmod +x $lib'
  9107. ;;
  9108. sunos4*)
  9109. version_type=sunos
  9110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9111. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9112. shlibpath_var=LD_LIBRARY_PATH
  9113. shlibpath_overrides_runpath=yes
  9114. if test "$with_gnu_ld" = yes; then
  9115. need_lib_prefix=no
  9116. fi
  9117. need_version=yes
  9118. ;;
  9119. sysv4 | sysv4.3*)
  9120. version_type=linux # correct to gnu/linux during the next big refactor
  9121. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9122. soname_spec='${libname}${release}${shared_ext}$major'
  9123. shlibpath_var=LD_LIBRARY_PATH
  9124. case $host_vendor in
  9125. sni)
  9126. shlibpath_overrides_runpath=no
  9127. need_lib_prefix=no
  9128. runpath_var=LD_RUN_PATH
  9129. ;;
  9130. siemens)
  9131. need_lib_prefix=no
  9132. ;;
  9133. motorola)
  9134. need_lib_prefix=no
  9135. need_version=no
  9136. shlibpath_overrides_runpath=no
  9137. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9138. ;;
  9139. esac
  9140. ;;
  9141. sysv4*MP*)
  9142. if test -d /usr/nec ;then
  9143. version_type=linux # correct to gnu/linux during the next big refactor
  9144. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9145. soname_spec='$libname${shared_ext}.$major'
  9146. shlibpath_var=LD_LIBRARY_PATH
  9147. fi
  9148. ;;
  9149. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9150. version_type=freebsd-elf
  9151. need_lib_prefix=no
  9152. need_version=no
  9153. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9154. soname_spec='${libname}${release}${shared_ext}$major'
  9155. shlibpath_var=LD_LIBRARY_PATH
  9156. shlibpath_overrides_runpath=yes
  9157. hardcode_into_libs=yes
  9158. if test "$with_gnu_ld" = yes; then
  9159. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9160. else
  9161. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9162. case $host_os in
  9163. sco3.2v5*)
  9164. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9165. ;;
  9166. esac
  9167. fi
  9168. sys_lib_dlsearch_path_spec='/usr/lib'
  9169. ;;
  9170. tpf*)
  9171. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9172. version_type=linux # correct to gnu/linux during the next big refactor
  9173. need_lib_prefix=no
  9174. need_version=no
  9175. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9176. shlibpath_var=LD_LIBRARY_PATH
  9177. shlibpath_overrides_runpath=no
  9178. hardcode_into_libs=yes
  9179. ;;
  9180. uts4*)
  9181. version_type=linux # correct to gnu/linux during the next big refactor
  9182. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9183. soname_spec='${libname}${release}${shared_ext}$major'
  9184. shlibpath_var=LD_LIBRARY_PATH
  9185. ;;
  9186. *)
  9187. dynamic_linker=no
  9188. ;;
  9189. esac
  9190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9191. $as_echo "$dynamic_linker" >&6; }
  9192. test "$dynamic_linker" = no && can_build_shared=no
  9193. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9194. if test "$GCC" = yes; then
  9195. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9196. fi
  9197. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9198. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9199. fi
  9200. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9201. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9202. fi
  9203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9204. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9205. hardcode_action=
  9206. if test -n "$hardcode_libdir_flag_spec" ||
  9207. test -n "$runpath_var" ||
  9208. test "X$hardcode_automatic" = "Xyes" ; then
  9209. # We can hardcode non-existent directories.
  9210. if test "$hardcode_direct" != no &&
  9211. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9212. # have to relink, otherwise we might link with an installed library
  9213. # when we should be linking with a yet-to-be-installed one
  9214. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9215. test "$hardcode_minus_L" != no; then
  9216. # Linking always hardcodes the temporary library directory.
  9217. hardcode_action=relink
  9218. else
  9219. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9220. hardcode_action=immediate
  9221. fi
  9222. else
  9223. # We cannot hardcode anything, or else we can only hardcode existing
  9224. # directories.
  9225. hardcode_action=unsupported
  9226. fi
  9227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9228. $as_echo "$hardcode_action" >&6; }
  9229. if test "$hardcode_action" = relink ||
  9230. test "$inherit_rpath" = yes; then
  9231. # Fast installation is not supported
  9232. enable_fast_install=no
  9233. elif test "$shlibpath_overrides_runpath" = yes ||
  9234. test "$enable_shared" = no; then
  9235. # Fast installation is not necessary
  9236. enable_fast_install=needless
  9237. fi
  9238. if test "x$enable_dlopen" != xyes; then
  9239. enable_dlopen=unknown
  9240. enable_dlopen_self=unknown
  9241. enable_dlopen_self_static=unknown
  9242. else
  9243. lt_cv_dlopen=no
  9244. lt_cv_dlopen_libs=
  9245. case $host_os in
  9246. beos*)
  9247. lt_cv_dlopen="load_add_on"
  9248. lt_cv_dlopen_libs=
  9249. lt_cv_dlopen_self=yes
  9250. ;;
  9251. mingw* | pw32* | cegcc*)
  9252. lt_cv_dlopen="LoadLibrary"
  9253. lt_cv_dlopen_libs=
  9254. ;;
  9255. cygwin*)
  9256. lt_cv_dlopen="dlopen"
  9257. lt_cv_dlopen_libs=
  9258. ;;
  9259. darwin*)
  9260. # if libdl is installed we need to link against it
  9261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9262. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9263. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9264. $as_echo_n "(cached) " >&6
  9265. else
  9266. ac_check_lib_save_LIBS=$LIBS
  9267. LIBS="-ldl $LIBS"
  9268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9269. /* end confdefs.h. */
  9270. /* Override any GCC internal prototype to avoid an error.
  9271. Use char because int might match the return type of a GCC
  9272. builtin and then its argument prototype would still apply. */
  9273. #ifdef __cplusplus
  9274. extern "C"
  9275. #endif
  9276. char dlopen ();
  9277. int
  9278. main ()
  9279. {
  9280. return dlopen ();
  9281. ;
  9282. return 0;
  9283. }
  9284. _ACEOF
  9285. if ac_fn_c_try_link "$LINENO"; then :
  9286. ac_cv_lib_dl_dlopen=yes
  9287. else
  9288. ac_cv_lib_dl_dlopen=no
  9289. fi
  9290. rm -f core conftest.err conftest.$ac_objext \
  9291. conftest$ac_exeext conftest.$ac_ext
  9292. LIBS=$ac_check_lib_save_LIBS
  9293. fi
  9294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9295. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9296. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9297. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9298. else
  9299. lt_cv_dlopen="dyld"
  9300. lt_cv_dlopen_libs=
  9301. lt_cv_dlopen_self=yes
  9302. fi
  9303. ;;
  9304. *)
  9305. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9306. if test "x$ac_cv_func_shl_load" = xyes; then :
  9307. lt_cv_dlopen="shl_load"
  9308. else
  9309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9310. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9311. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9312. $as_echo_n "(cached) " >&6
  9313. else
  9314. ac_check_lib_save_LIBS=$LIBS
  9315. LIBS="-ldld $LIBS"
  9316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9317. /* end confdefs.h. */
  9318. /* Override any GCC internal prototype to avoid an error.
  9319. Use char because int might match the return type of a GCC
  9320. builtin and then its argument prototype would still apply. */
  9321. #ifdef __cplusplus
  9322. extern "C"
  9323. #endif
  9324. char shl_load ();
  9325. int
  9326. main ()
  9327. {
  9328. return shl_load ();
  9329. ;
  9330. return 0;
  9331. }
  9332. _ACEOF
  9333. if ac_fn_c_try_link "$LINENO"; then :
  9334. ac_cv_lib_dld_shl_load=yes
  9335. else
  9336. ac_cv_lib_dld_shl_load=no
  9337. fi
  9338. rm -f core conftest.err conftest.$ac_objext \
  9339. conftest$ac_exeext conftest.$ac_ext
  9340. LIBS=$ac_check_lib_save_LIBS
  9341. fi
  9342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9343. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9344. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9345. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9346. else
  9347. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9348. if test "x$ac_cv_func_dlopen" = xyes; then :
  9349. lt_cv_dlopen="dlopen"
  9350. else
  9351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9352. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9353. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9354. $as_echo_n "(cached) " >&6
  9355. else
  9356. ac_check_lib_save_LIBS=$LIBS
  9357. LIBS="-ldl $LIBS"
  9358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9359. /* end confdefs.h. */
  9360. /* Override any GCC internal prototype to avoid an error.
  9361. Use char because int might match the return type of a GCC
  9362. builtin and then its argument prototype would still apply. */
  9363. #ifdef __cplusplus
  9364. extern "C"
  9365. #endif
  9366. char dlopen ();
  9367. int
  9368. main ()
  9369. {
  9370. return dlopen ();
  9371. ;
  9372. return 0;
  9373. }
  9374. _ACEOF
  9375. if ac_fn_c_try_link "$LINENO"; then :
  9376. ac_cv_lib_dl_dlopen=yes
  9377. else
  9378. ac_cv_lib_dl_dlopen=no
  9379. fi
  9380. rm -f core conftest.err conftest.$ac_objext \
  9381. conftest$ac_exeext conftest.$ac_ext
  9382. LIBS=$ac_check_lib_save_LIBS
  9383. fi
  9384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9385. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9386. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9387. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9388. else
  9389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9390. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9391. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9392. $as_echo_n "(cached) " >&6
  9393. else
  9394. ac_check_lib_save_LIBS=$LIBS
  9395. LIBS="-lsvld $LIBS"
  9396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9397. /* end confdefs.h. */
  9398. /* Override any GCC internal prototype to avoid an error.
  9399. Use char because int might match the return type of a GCC
  9400. builtin and then its argument prototype would still apply. */
  9401. #ifdef __cplusplus
  9402. extern "C"
  9403. #endif
  9404. char dlopen ();
  9405. int
  9406. main ()
  9407. {
  9408. return dlopen ();
  9409. ;
  9410. return 0;
  9411. }
  9412. _ACEOF
  9413. if ac_fn_c_try_link "$LINENO"; then :
  9414. ac_cv_lib_svld_dlopen=yes
  9415. else
  9416. ac_cv_lib_svld_dlopen=no
  9417. fi
  9418. rm -f core conftest.err conftest.$ac_objext \
  9419. conftest$ac_exeext conftest.$ac_ext
  9420. LIBS=$ac_check_lib_save_LIBS
  9421. fi
  9422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9423. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9424. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9425. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9426. else
  9427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9428. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9429. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9430. $as_echo_n "(cached) " >&6
  9431. else
  9432. ac_check_lib_save_LIBS=$LIBS
  9433. LIBS="-ldld $LIBS"
  9434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9435. /* end confdefs.h. */
  9436. /* Override any GCC internal prototype to avoid an error.
  9437. Use char because int might match the return type of a GCC
  9438. builtin and then its argument prototype would still apply. */
  9439. #ifdef __cplusplus
  9440. extern "C"
  9441. #endif
  9442. char dld_link ();
  9443. int
  9444. main ()
  9445. {
  9446. return dld_link ();
  9447. ;
  9448. return 0;
  9449. }
  9450. _ACEOF
  9451. if ac_fn_c_try_link "$LINENO"; then :
  9452. ac_cv_lib_dld_dld_link=yes
  9453. else
  9454. ac_cv_lib_dld_dld_link=no
  9455. fi
  9456. rm -f core conftest.err conftest.$ac_objext \
  9457. conftest$ac_exeext conftest.$ac_ext
  9458. LIBS=$ac_check_lib_save_LIBS
  9459. fi
  9460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9461. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9462. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9463. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9464. fi
  9465. fi
  9466. fi
  9467. fi
  9468. fi
  9469. fi
  9470. ;;
  9471. esac
  9472. if test "x$lt_cv_dlopen" != xno; then
  9473. enable_dlopen=yes
  9474. else
  9475. enable_dlopen=no
  9476. fi
  9477. case $lt_cv_dlopen in
  9478. dlopen)
  9479. save_CPPFLAGS="$CPPFLAGS"
  9480. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9481. save_LDFLAGS="$LDFLAGS"
  9482. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9483. save_LIBS="$LIBS"
  9484. LIBS="$lt_cv_dlopen_libs $LIBS"
  9485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9486. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9487. if ${lt_cv_dlopen_self+:} false; then :
  9488. $as_echo_n "(cached) " >&6
  9489. else
  9490. if test "$cross_compiling" = yes; then :
  9491. lt_cv_dlopen_self=cross
  9492. else
  9493. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9494. lt_status=$lt_dlunknown
  9495. cat > conftest.$ac_ext <<_LT_EOF
  9496. #line $LINENO "configure"
  9497. #include "confdefs.h"
  9498. #if HAVE_DLFCN_H
  9499. #include <dlfcn.h>
  9500. #endif
  9501. #include <stdio.h>
  9502. #ifdef RTLD_GLOBAL
  9503. # define LT_DLGLOBAL RTLD_GLOBAL
  9504. #else
  9505. # ifdef DL_GLOBAL
  9506. # define LT_DLGLOBAL DL_GLOBAL
  9507. # else
  9508. # define LT_DLGLOBAL 0
  9509. # endif
  9510. #endif
  9511. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9512. find out it does not work in some platform. */
  9513. #ifndef LT_DLLAZY_OR_NOW
  9514. # ifdef RTLD_LAZY
  9515. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9516. # else
  9517. # ifdef DL_LAZY
  9518. # define LT_DLLAZY_OR_NOW DL_LAZY
  9519. # else
  9520. # ifdef RTLD_NOW
  9521. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9522. # else
  9523. # ifdef DL_NOW
  9524. # define LT_DLLAZY_OR_NOW DL_NOW
  9525. # else
  9526. # define LT_DLLAZY_OR_NOW 0
  9527. # endif
  9528. # endif
  9529. # endif
  9530. # endif
  9531. #endif
  9532. /* When -fvisbility=hidden is used, assume the code has been annotated
  9533. correspondingly for the symbols needed. */
  9534. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9535. int fnord () __attribute__((visibility("default")));
  9536. #endif
  9537. int fnord () { return 42; }
  9538. int main ()
  9539. {
  9540. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9541. int status = $lt_dlunknown;
  9542. if (self)
  9543. {
  9544. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9545. else
  9546. {
  9547. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9548. else puts (dlerror ());
  9549. }
  9550. /* dlclose (self); */
  9551. }
  9552. else
  9553. puts (dlerror ());
  9554. return status;
  9555. }
  9556. _LT_EOF
  9557. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9558. (eval $ac_link) 2>&5
  9559. ac_status=$?
  9560. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9561. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9562. (./conftest; exit; ) >&5 2>/dev/null
  9563. lt_status=$?
  9564. case x$lt_status in
  9565. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9566. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9567. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9568. esac
  9569. else :
  9570. # compilation failed
  9571. lt_cv_dlopen_self=no
  9572. fi
  9573. fi
  9574. rm -fr conftest*
  9575. fi
  9576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9577. $as_echo "$lt_cv_dlopen_self" >&6; }
  9578. if test "x$lt_cv_dlopen_self" = xyes; then
  9579. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9581. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9582. if ${lt_cv_dlopen_self_static+:} false; then :
  9583. $as_echo_n "(cached) " >&6
  9584. else
  9585. if test "$cross_compiling" = yes; then :
  9586. lt_cv_dlopen_self_static=cross
  9587. else
  9588. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9589. lt_status=$lt_dlunknown
  9590. cat > conftest.$ac_ext <<_LT_EOF
  9591. #line $LINENO "configure"
  9592. #include "confdefs.h"
  9593. #if HAVE_DLFCN_H
  9594. #include <dlfcn.h>
  9595. #endif
  9596. #include <stdio.h>
  9597. #ifdef RTLD_GLOBAL
  9598. # define LT_DLGLOBAL RTLD_GLOBAL
  9599. #else
  9600. # ifdef DL_GLOBAL
  9601. # define LT_DLGLOBAL DL_GLOBAL
  9602. # else
  9603. # define LT_DLGLOBAL 0
  9604. # endif
  9605. #endif
  9606. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9607. find out it does not work in some platform. */
  9608. #ifndef LT_DLLAZY_OR_NOW
  9609. # ifdef RTLD_LAZY
  9610. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9611. # else
  9612. # ifdef DL_LAZY
  9613. # define LT_DLLAZY_OR_NOW DL_LAZY
  9614. # else
  9615. # ifdef RTLD_NOW
  9616. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9617. # else
  9618. # ifdef DL_NOW
  9619. # define LT_DLLAZY_OR_NOW DL_NOW
  9620. # else
  9621. # define LT_DLLAZY_OR_NOW 0
  9622. # endif
  9623. # endif
  9624. # endif
  9625. # endif
  9626. #endif
  9627. /* When -fvisbility=hidden is used, assume the code has been annotated
  9628. correspondingly for the symbols needed. */
  9629. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9630. int fnord () __attribute__((visibility("default")));
  9631. #endif
  9632. int fnord () { return 42; }
  9633. int main ()
  9634. {
  9635. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9636. int status = $lt_dlunknown;
  9637. if (self)
  9638. {
  9639. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9640. else
  9641. {
  9642. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9643. else puts (dlerror ());
  9644. }
  9645. /* dlclose (self); */
  9646. }
  9647. else
  9648. puts (dlerror ());
  9649. return status;
  9650. }
  9651. _LT_EOF
  9652. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9653. (eval $ac_link) 2>&5
  9654. ac_status=$?
  9655. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9656. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9657. (./conftest; exit; ) >&5 2>/dev/null
  9658. lt_status=$?
  9659. case x$lt_status in
  9660. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9661. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9662. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9663. esac
  9664. else :
  9665. # compilation failed
  9666. lt_cv_dlopen_self_static=no
  9667. fi
  9668. fi
  9669. rm -fr conftest*
  9670. fi
  9671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9672. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9673. fi
  9674. CPPFLAGS="$save_CPPFLAGS"
  9675. LDFLAGS="$save_LDFLAGS"
  9676. LIBS="$save_LIBS"
  9677. ;;
  9678. esac
  9679. case $lt_cv_dlopen_self in
  9680. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9681. *) enable_dlopen_self=unknown ;;
  9682. esac
  9683. case $lt_cv_dlopen_self_static in
  9684. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9685. *) enable_dlopen_self_static=unknown ;;
  9686. esac
  9687. fi
  9688. striplib=
  9689. old_striplib=
  9690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9691. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9692. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9693. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9694. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9696. $as_echo "yes" >&6; }
  9697. else
  9698. # FIXME - insert some real tests, host_os isn't really good enough
  9699. case $host_os in
  9700. darwin*)
  9701. if test -n "$STRIP" ; then
  9702. striplib="$STRIP -x"
  9703. old_striplib="$STRIP -S"
  9704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9705. $as_echo "yes" >&6; }
  9706. else
  9707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9708. $as_echo "no" >&6; }
  9709. fi
  9710. ;;
  9711. *)
  9712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9713. $as_echo "no" >&6; }
  9714. ;;
  9715. esac
  9716. fi
  9717. # Report which library types will actually be built
  9718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9719. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9721. $as_echo "$can_build_shared" >&6; }
  9722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9723. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9724. test "$can_build_shared" = "no" && enable_shared=no
  9725. # On AIX, shared libraries and static libraries use the same namespace, and
  9726. # are all built from PIC.
  9727. case $host_os in
  9728. aix3*)
  9729. test "$enable_shared" = yes && enable_static=no
  9730. if test -n "$RANLIB"; then
  9731. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9732. postinstall_cmds='$RANLIB $lib'
  9733. fi
  9734. ;;
  9735. aix[4-9]*)
  9736. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9737. test "$enable_shared" = yes && enable_static=no
  9738. fi
  9739. ;;
  9740. esac
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9742. $as_echo "$enable_shared" >&6; }
  9743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9744. $as_echo_n "checking whether to build static libraries... " >&6; }
  9745. # Make sure either enable_shared or enable_static is yes.
  9746. test "$enable_shared" = yes || enable_static=yes
  9747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9748. $as_echo "$enable_static" >&6; }
  9749. fi
  9750. ac_ext=c
  9751. ac_cpp='$CPP $CPPFLAGS'
  9752. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9753. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9754. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9755. CC="$lt_save_CC"
  9756. ac_config_commands="$ac_config_commands libtool"
  9757. # Only expand once:
  9758. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9759. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9760. LT_REVISION=$SDL_INTERFACE_AGE
  9761. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9762. ac_ext=c
  9763. ac_cpp='$CPP $CPPFLAGS'
  9764. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9765. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9766. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9767. if test -n "$ac_tool_prefix"; then
  9768. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9769. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9771. $as_echo_n "checking for $ac_word... " >&6; }
  9772. if ${ac_cv_prog_CC+:} false; then :
  9773. $as_echo_n "(cached) " >&6
  9774. else
  9775. if test -n "$CC"; then
  9776. ac_cv_prog_CC="$CC" # Let the user override the test.
  9777. else
  9778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9779. for as_dir in $PATH
  9780. do
  9781. IFS=$as_save_IFS
  9782. test -z "$as_dir" && as_dir=.
  9783. for ac_exec_ext in '' $ac_executable_extensions; do
  9784. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9785. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9786. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9787. break 2
  9788. fi
  9789. done
  9790. done
  9791. IFS=$as_save_IFS
  9792. fi
  9793. fi
  9794. CC=$ac_cv_prog_CC
  9795. if test -n "$CC"; then
  9796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9797. $as_echo "$CC" >&6; }
  9798. else
  9799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9800. $as_echo "no" >&6; }
  9801. fi
  9802. fi
  9803. if test -z "$ac_cv_prog_CC"; then
  9804. ac_ct_CC=$CC
  9805. # Extract the first word of "gcc", so it can be a program name with args.
  9806. set dummy gcc; ac_word=$2
  9807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9808. $as_echo_n "checking for $ac_word... " >&6; }
  9809. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9810. $as_echo_n "(cached) " >&6
  9811. else
  9812. if test -n "$ac_ct_CC"; then
  9813. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9814. else
  9815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9816. for as_dir in $PATH
  9817. do
  9818. IFS=$as_save_IFS
  9819. test -z "$as_dir" && as_dir=.
  9820. for ac_exec_ext in '' $ac_executable_extensions; do
  9821. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9822. ac_cv_prog_ac_ct_CC="gcc"
  9823. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9824. break 2
  9825. fi
  9826. done
  9827. done
  9828. IFS=$as_save_IFS
  9829. fi
  9830. fi
  9831. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9832. if test -n "$ac_ct_CC"; then
  9833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9834. $as_echo "$ac_ct_CC" >&6; }
  9835. else
  9836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9837. $as_echo "no" >&6; }
  9838. fi
  9839. if test "x$ac_ct_CC" = x; then
  9840. CC=""
  9841. else
  9842. case $cross_compiling:$ac_tool_warned in
  9843. yes:)
  9844. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9845. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9846. ac_tool_warned=yes ;;
  9847. esac
  9848. CC=$ac_ct_CC
  9849. fi
  9850. else
  9851. CC="$ac_cv_prog_CC"
  9852. fi
  9853. if test -z "$CC"; then
  9854. if test -n "$ac_tool_prefix"; then
  9855. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9856. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9858. $as_echo_n "checking for $ac_word... " >&6; }
  9859. if ${ac_cv_prog_CC+:} false; then :
  9860. $as_echo_n "(cached) " >&6
  9861. else
  9862. if test -n "$CC"; then
  9863. ac_cv_prog_CC="$CC" # Let the user override the test.
  9864. else
  9865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9866. for as_dir in $PATH
  9867. do
  9868. IFS=$as_save_IFS
  9869. test -z "$as_dir" && as_dir=.
  9870. for ac_exec_ext in '' $ac_executable_extensions; do
  9871. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9872. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9873. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9874. break 2
  9875. fi
  9876. done
  9877. done
  9878. IFS=$as_save_IFS
  9879. fi
  9880. fi
  9881. CC=$ac_cv_prog_CC
  9882. if test -n "$CC"; then
  9883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9884. $as_echo "$CC" >&6; }
  9885. else
  9886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9887. $as_echo "no" >&6; }
  9888. fi
  9889. fi
  9890. fi
  9891. if test -z "$CC"; then
  9892. # Extract the first word of "cc", so it can be a program name with args.
  9893. set dummy cc; ac_word=$2
  9894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9895. $as_echo_n "checking for $ac_word... " >&6; }
  9896. if ${ac_cv_prog_CC+:} false; then :
  9897. $as_echo_n "(cached) " >&6
  9898. else
  9899. if test -n "$CC"; then
  9900. ac_cv_prog_CC="$CC" # Let the user override the test.
  9901. else
  9902. ac_prog_rejected=no
  9903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9904. for as_dir in $PATH
  9905. do
  9906. IFS=$as_save_IFS
  9907. test -z "$as_dir" && as_dir=.
  9908. for ac_exec_ext in '' $ac_executable_extensions; do
  9909. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9910. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9911. ac_prog_rejected=yes
  9912. continue
  9913. fi
  9914. ac_cv_prog_CC="cc"
  9915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9916. break 2
  9917. fi
  9918. done
  9919. done
  9920. IFS=$as_save_IFS
  9921. if test $ac_prog_rejected = yes; then
  9922. # We found a bogon in the path, so make sure we never use it.
  9923. set dummy $ac_cv_prog_CC
  9924. shift
  9925. if test $# != 0; then
  9926. # We chose a different compiler from the bogus one.
  9927. # However, it has the same basename, so the bogon will be chosen
  9928. # first if we set CC to just the basename; use the full file name.
  9929. shift
  9930. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9931. fi
  9932. fi
  9933. fi
  9934. fi
  9935. CC=$ac_cv_prog_CC
  9936. if test -n "$CC"; then
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9938. $as_echo "$CC" >&6; }
  9939. else
  9940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9941. $as_echo "no" >&6; }
  9942. fi
  9943. fi
  9944. if test -z "$CC"; then
  9945. if test -n "$ac_tool_prefix"; then
  9946. for ac_prog in cl.exe
  9947. do
  9948. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9949. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9951. $as_echo_n "checking for $ac_word... " >&6; }
  9952. if ${ac_cv_prog_CC+:} false; then :
  9953. $as_echo_n "(cached) " >&6
  9954. else
  9955. if test -n "$CC"; then
  9956. ac_cv_prog_CC="$CC" # Let the user override the test.
  9957. else
  9958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9959. for as_dir in $PATH
  9960. do
  9961. IFS=$as_save_IFS
  9962. test -z "$as_dir" && as_dir=.
  9963. for ac_exec_ext in '' $ac_executable_extensions; do
  9964. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9965. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9966. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9967. break 2
  9968. fi
  9969. done
  9970. done
  9971. IFS=$as_save_IFS
  9972. fi
  9973. fi
  9974. CC=$ac_cv_prog_CC
  9975. if test -n "$CC"; then
  9976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9977. $as_echo "$CC" >&6; }
  9978. else
  9979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9980. $as_echo "no" >&6; }
  9981. fi
  9982. test -n "$CC" && break
  9983. done
  9984. fi
  9985. if test -z "$CC"; then
  9986. ac_ct_CC=$CC
  9987. for ac_prog in cl.exe
  9988. do
  9989. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9990. set dummy $ac_prog; ac_word=$2
  9991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9992. $as_echo_n "checking for $ac_word... " >&6; }
  9993. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9994. $as_echo_n "(cached) " >&6
  9995. else
  9996. if test -n "$ac_ct_CC"; then
  9997. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9998. else
  9999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10000. for as_dir in $PATH
  10001. do
  10002. IFS=$as_save_IFS
  10003. test -z "$as_dir" && as_dir=.
  10004. for ac_exec_ext in '' $ac_executable_extensions; do
  10005. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10006. ac_cv_prog_ac_ct_CC="$ac_prog"
  10007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10008. break 2
  10009. fi
  10010. done
  10011. done
  10012. IFS=$as_save_IFS
  10013. fi
  10014. fi
  10015. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10016. if test -n "$ac_ct_CC"; then
  10017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10018. $as_echo "$ac_ct_CC" >&6; }
  10019. else
  10020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10021. $as_echo "no" >&6; }
  10022. fi
  10023. test -n "$ac_ct_CC" && break
  10024. done
  10025. if test "x$ac_ct_CC" = x; then
  10026. CC=""
  10027. else
  10028. case $cross_compiling:$ac_tool_warned in
  10029. yes:)
  10030. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10031. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10032. ac_tool_warned=yes ;;
  10033. esac
  10034. CC=$ac_ct_CC
  10035. fi
  10036. fi
  10037. fi
  10038. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10039. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10040. as_fn_error $? "no acceptable C compiler found in \$PATH
  10041. See \`config.log' for more details" "$LINENO" 5; }
  10042. # Provide some information about the compiler.
  10043. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10044. set X $ac_compile
  10045. ac_compiler=$2
  10046. for ac_option in --version -v -V -qversion; do
  10047. { { ac_try="$ac_compiler $ac_option >&5"
  10048. case "(($ac_try" in
  10049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10050. *) ac_try_echo=$ac_try;;
  10051. esac
  10052. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10053. $as_echo "$ac_try_echo"; } >&5
  10054. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10055. ac_status=$?
  10056. if test -s conftest.err; then
  10057. sed '10a\
  10058. ... rest of stderr output deleted ...
  10059. 10q' conftest.err >conftest.er1
  10060. cat conftest.er1 >&5
  10061. fi
  10062. rm -f conftest.er1 conftest.err
  10063. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10064. test $ac_status = 0; }
  10065. done
  10066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10067. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10068. if ${ac_cv_c_compiler_gnu+:} false; then :
  10069. $as_echo_n "(cached) " >&6
  10070. else
  10071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10072. /* end confdefs.h. */
  10073. int
  10074. main ()
  10075. {
  10076. #ifndef __GNUC__
  10077. choke me
  10078. #endif
  10079. ;
  10080. return 0;
  10081. }
  10082. _ACEOF
  10083. if ac_fn_c_try_compile "$LINENO"; then :
  10084. ac_compiler_gnu=yes
  10085. else
  10086. ac_compiler_gnu=no
  10087. fi
  10088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10089. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10090. fi
  10091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10092. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10093. if test $ac_compiler_gnu = yes; then
  10094. GCC=yes
  10095. else
  10096. GCC=
  10097. fi
  10098. ac_test_CFLAGS=${CFLAGS+set}
  10099. ac_save_CFLAGS=$CFLAGS
  10100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10101. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10102. if ${ac_cv_prog_cc_g+:} false; then :
  10103. $as_echo_n "(cached) " >&6
  10104. else
  10105. ac_save_c_werror_flag=$ac_c_werror_flag
  10106. ac_c_werror_flag=yes
  10107. ac_cv_prog_cc_g=no
  10108. CFLAGS="-g"
  10109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10110. /* end confdefs.h. */
  10111. int
  10112. main ()
  10113. {
  10114. ;
  10115. return 0;
  10116. }
  10117. _ACEOF
  10118. if ac_fn_c_try_compile "$LINENO"; then :
  10119. ac_cv_prog_cc_g=yes
  10120. else
  10121. CFLAGS=""
  10122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10123. /* end confdefs.h. */
  10124. int
  10125. main ()
  10126. {
  10127. ;
  10128. return 0;
  10129. }
  10130. _ACEOF
  10131. if ac_fn_c_try_compile "$LINENO"; then :
  10132. else
  10133. ac_c_werror_flag=$ac_save_c_werror_flag
  10134. CFLAGS="-g"
  10135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10136. /* end confdefs.h. */
  10137. int
  10138. main ()
  10139. {
  10140. ;
  10141. return 0;
  10142. }
  10143. _ACEOF
  10144. if ac_fn_c_try_compile "$LINENO"; then :
  10145. ac_cv_prog_cc_g=yes
  10146. fi
  10147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10148. fi
  10149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10150. fi
  10151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10152. ac_c_werror_flag=$ac_save_c_werror_flag
  10153. fi
  10154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10155. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10156. if test "$ac_test_CFLAGS" = set; then
  10157. CFLAGS=$ac_save_CFLAGS
  10158. elif test $ac_cv_prog_cc_g = yes; then
  10159. if test "$GCC" = yes; then
  10160. CFLAGS="-g -O2"
  10161. else
  10162. CFLAGS="-g"
  10163. fi
  10164. else
  10165. if test "$GCC" = yes; then
  10166. CFLAGS="-O2"
  10167. else
  10168. CFLAGS=
  10169. fi
  10170. fi
  10171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10172. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10173. if ${ac_cv_prog_cc_c89+:} false; then :
  10174. $as_echo_n "(cached) " >&6
  10175. else
  10176. ac_cv_prog_cc_c89=no
  10177. ac_save_CC=$CC
  10178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10179. /* end confdefs.h. */
  10180. #include <stdarg.h>
  10181. #include <stdio.h>
  10182. struct stat;
  10183. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10184. struct buf { int x; };
  10185. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10186. static char *e (p, i)
  10187. char **p;
  10188. int i;
  10189. {
  10190. return p[i];
  10191. }
  10192. static char *f (char * (*g) (char **, int), char **p, ...)
  10193. {
  10194. char *s;
  10195. va_list v;
  10196. va_start (v,p);
  10197. s = g (p, va_arg (v,int));
  10198. va_end (v);
  10199. return s;
  10200. }
  10201. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10202. function prototypes and stuff, but not '\xHH' hex character constants.
  10203. These don't provoke an error unfortunately, instead are silently treated
  10204. as 'x'. The following induces an error, until -std is added to get
  10205. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10206. array size at least. It's necessary to write '\x00'==0 to get something
  10207. that's true only with -std. */
  10208. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10209. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10210. inside strings and character constants. */
  10211. #define FOO(x) 'x'
  10212. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10213. int test (int i, double x);
  10214. struct s1 {int (*f) (int a);};
  10215. struct s2 {int (*f) (double a);};
  10216. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10217. int argc;
  10218. char **argv;
  10219. int
  10220. main ()
  10221. {
  10222. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10223. ;
  10224. return 0;
  10225. }
  10226. _ACEOF
  10227. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10228. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10229. do
  10230. CC="$ac_save_CC $ac_arg"
  10231. if ac_fn_c_try_compile "$LINENO"; then :
  10232. ac_cv_prog_cc_c89=$ac_arg
  10233. fi
  10234. rm -f core conftest.err conftest.$ac_objext
  10235. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10236. done
  10237. rm -f conftest.$ac_ext
  10238. CC=$ac_save_CC
  10239. fi
  10240. # AC_CACHE_VAL
  10241. case "x$ac_cv_prog_cc_c89" in
  10242. x)
  10243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10244. $as_echo "none needed" >&6; } ;;
  10245. xno)
  10246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10247. $as_echo "unsupported" >&6; } ;;
  10248. *)
  10249. CC="$CC $ac_cv_prog_cc_c89"
  10250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10251. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10252. esac
  10253. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10254. fi
  10255. ac_ext=c
  10256. ac_cpp='$CPP $CPPFLAGS'
  10257. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10258. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10259. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10260. ac_ext=cpp
  10261. ac_cpp='$CXXCPP $CPPFLAGS'
  10262. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10263. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10264. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10265. if test -z "$CXX"; then
  10266. if test -n "$CCC"; then
  10267. CXX=$CCC
  10268. else
  10269. if test -n "$ac_tool_prefix"; then
  10270. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10271. do
  10272. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10273. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10275. $as_echo_n "checking for $ac_word... " >&6; }
  10276. if ${ac_cv_prog_CXX+:} false; then :
  10277. $as_echo_n "(cached) " >&6
  10278. else
  10279. if test -n "$CXX"; then
  10280. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10281. else
  10282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10283. for as_dir in $PATH
  10284. do
  10285. IFS=$as_save_IFS
  10286. test -z "$as_dir" && as_dir=.
  10287. for ac_exec_ext in '' $ac_executable_extensions; do
  10288. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10289. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10290. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10291. break 2
  10292. fi
  10293. done
  10294. done
  10295. IFS=$as_save_IFS
  10296. fi
  10297. fi
  10298. CXX=$ac_cv_prog_CXX
  10299. if test -n "$CXX"; then
  10300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10301. $as_echo "$CXX" >&6; }
  10302. else
  10303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10304. $as_echo "no" >&6; }
  10305. fi
  10306. test -n "$CXX" && break
  10307. done
  10308. fi
  10309. if test -z "$CXX"; then
  10310. ac_ct_CXX=$CXX
  10311. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10312. do
  10313. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10314. set dummy $ac_prog; ac_word=$2
  10315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10316. $as_echo_n "checking for $ac_word... " >&6; }
  10317. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10318. $as_echo_n "(cached) " >&6
  10319. else
  10320. if test -n "$ac_ct_CXX"; then
  10321. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10322. else
  10323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10324. for as_dir in $PATH
  10325. do
  10326. IFS=$as_save_IFS
  10327. test -z "$as_dir" && as_dir=.
  10328. for ac_exec_ext in '' $ac_executable_extensions; do
  10329. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10330. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10331. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10332. break 2
  10333. fi
  10334. done
  10335. done
  10336. IFS=$as_save_IFS
  10337. fi
  10338. fi
  10339. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10340. if test -n "$ac_ct_CXX"; then
  10341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10342. $as_echo "$ac_ct_CXX" >&6; }
  10343. else
  10344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10345. $as_echo "no" >&6; }
  10346. fi
  10347. test -n "$ac_ct_CXX" && break
  10348. done
  10349. if test "x$ac_ct_CXX" = x; then
  10350. CXX="g++"
  10351. else
  10352. case $cross_compiling:$ac_tool_warned in
  10353. yes:)
  10354. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10355. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10356. ac_tool_warned=yes ;;
  10357. esac
  10358. CXX=$ac_ct_CXX
  10359. fi
  10360. fi
  10361. fi
  10362. fi
  10363. # Provide some information about the compiler.
  10364. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10365. set X $ac_compile
  10366. ac_compiler=$2
  10367. for ac_option in --version -v -V -qversion; do
  10368. { { ac_try="$ac_compiler $ac_option >&5"
  10369. case "(($ac_try" in
  10370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10371. *) ac_try_echo=$ac_try;;
  10372. esac
  10373. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10374. $as_echo "$ac_try_echo"; } >&5
  10375. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10376. ac_status=$?
  10377. if test -s conftest.err; then
  10378. sed '10a\
  10379. ... rest of stderr output deleted ...
  10380. 10q' conftest.err >conftest.er1
  10381. cat conftest.er1 >&5
  10382. fi
  10383. rm -f conftest.er1 conftest.err
  10384. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10385. test $ac_status = 0; }
  10386. done
  10387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10388. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10389. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10390. $as_echo_n "(cached) " >&6
  10391. else
  10392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10393. /* end confdefs.h. */
  10394. int
  10395. main ()
  10396. {
  10397. #ifndef __GNUC__
  10398. choke me
  10399. #endif
  10400. ;
  10401. return 0;
  10402. }
  10403. _ACEOF
  10404. if ac_fn_cxx_try_compile "$LINENO"; then :
  10405. ac_compiler_gnu=yes
  10406. else
  10407. ac_compiler_gnu=no
  10408. fi
  10409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10410. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10411. fi
  10412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10413. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10414. if test $ac_compiler_gnu = yes; then
  10415. GXX=yes
  10416. else
  10417. GXX=
  10418. fi
  10419. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10420. ac_save_CXXFLAGS=$CXXFLAGS
  10421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10422. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10423. if ${ac_cv_prog_cxx_g+:} false; then :
  10424. $as_echo_n "(cached) " >&6
  10425. else
  10426. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10427. ac_cxx_werror_flag=yes
  10428. ac_cv_prog_cxx_g=no
  10429. CXXFLAGS="-g"
  10430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10431. /* end confdefs.h. */
  10432. int
  10433. main ()
  10434. {
  10435. ;
  10436. return 0;
  10437. }
  10438. _ACEOF
  10439. if ac_fn_cxx_try_compile "$LINENO"; then :
  10440. ac_cv_prog_cxx_g=yes
  10441. else
  10442. CXXFLAGS=""
  10443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10444. /* end confdefs.h. */
  10445. int
  10446. main ()
  10447. {
  10448. ;
  10449. return 0;
  10450. }
  10451. _ACEOF
  10452. if ac_fn_cxx_try_compile "$LINENO"; then :
  10453. else
  10454. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10455. CXXFLAGS="-g"
  10456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10457. /* end confdefs.h. */
  10458. int
  10459. main ()
  10460. {
  10461. ;
  10462. return 0;
  10463. }
  10464. _ACEOF
  10465. if ac_fn_cxx_try_compile "$LINENO"; then :
  10466. ac_cv_prog_cxx_g=yes
  10467. fi
  10468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10469. fi
  10470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10471. fi
  10472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10473. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10474. fi
  10475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10476. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10477. if test "$ac_test_CXXFLAGS" = set; then
  10478. CXXFLAGS=$ac_save_CXXFLAGS
  10479. elif test $ac_cv_prog_cxx_g = yes; then
  10480. if test "$GXX" = yes; then
  10481. CXXFLAGS="-g -O2"
  10482. else
  10483. CXXFLAGS="-g"
  10484. fi
  10485. else
  10486. if test "$GXX" = yes; then
  10487. CXXFLAGS="-O2"
  10488. else
  10489. CXXFLAGS=
  10490. fi
  10491. fi
  10492. ac_ext=c
  10493. ac_cpp='$CPP $CPPFLAGS'
  10494. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10495. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10496. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10497. func_stripname_cnf ()
  10498. {
  10499. case ${2} in
  10500. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10501. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10502. esac
  10503. } # func_stripname_cnf
  10504. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10505. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10506. (test "X$CXX" != "Xg++"))) ; then
  10507. ac_ext=cpp
  10508. ac_cpp='$CXXCPP $CPPFLAGS'
  10509. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10510. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10511. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10513. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10514. if test -z "$CXXCPP"; then
  10515. if ${ac_cv_prog_CXXCPP+:} false; then :
  10516. $as_echo_n "(cached) " >&6
  10517. else
  10518. # Double quotes because CXXCPP needs to be expanded
  10519. for CXXCPP in "$CXX -E" "/lib/cpp"
  10520. do
  10521. ac_preproc_ok=false
  10522. for ac_cxx_preproc_warn_flag in '' yes
  10523. do
  10524. # Use a header file that comes with gcc, so configuring glibc
  10525. # with a fresh cross-compiler works.
  10526. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10527. # <limits.h> exists even on freestanding compilers.
  10528. # On the NeXT, cc -E runs the code through the compiler's parser,
  10529. # not just through cpp. "Syntax error" is here to catch this case.
  10530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10531. /* end confdefs.h. */
  10532. #ifdef __STDC__
  10533. # include <limits.h>
  10534. #else
  10535. # include <assert.h>
  10536. #endif
  10537. Syntax error
  10538. _ACEOF
  10539. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10540. else
  10541. # Broken: fails on valid input.
  10542. continue
  10543. fi
  10544. rm -f conftest.err conftest.i conftest.$ac_ext
  10545. # OK, works on sane cases. Now check whether nonexistent headers
  10546. # can be detected and how.
  10547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10548. /* end confdefs.h. */
  10549. #include <ac_nonexistent.h>
  10550. _ACEOF
  10551. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10552. # Broken: success on invalid input.
  10553. continue
  10554. else
  10555. # Passes both tests.
  10556. ac_preproc_ok=:
  10557. break
  10558. fi
  10559. rm -f conftest.err conftest.i conftest.$ac_ext
  10560. done
  10561. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10562. rm -f conftest.i conftest.err conftest.$ac_ext
  10563. if $ac_preproc_ok; then :
  10564. break
  10565. fi
  10566. done
  10567. ac_cv_prog_CXXCPP=$CXXCPP
  10568. fi
  10569. CXXCPP=$ac_cv_prog_CXXCPP
  10570. else
  10571. ac_cv_prog_CXXCPP=$CXXCPP
  10572. fi
  10573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10574. $as_echo "$CXXCPP" >&6; }
  10575. ac_preproc_ok=false
  10576. for ac_cxx_preproc_warn_flag in '' yes
  10577. do
  10578. # Use a header file that comes with gcc, so configuring glibc
  10579. # with a fresh cross-compiler works.
  10580. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10581. # <limits.h> exists even on freestanding compilers.
  10582. # On the NeXT, cc -E runs the code through the compiler's parser,
  10583. # not just through cpp. "Syntax error" is here to catch this case.
  10584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10585. /* end confdefs.h. */
  10586. #ifdef __STDC__
  10587. # include <limits.h>
  10588. #else
  10589. # include <assert.h>
  10590. #endif
  10591. Syntax error
  10592. _ACEOF
  10593. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10594. else
  10595. # Broken: fails on valid input.
  10596. continue
  10597. fi
  10598. rm -f conftest.err conftest.i conftest.$ac_ext
  10599. # OK, works on sane cases. Now check whether nonexistent headers
  10600. # can be detected and how.
  10601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10602. /* end confdefs.h. */
  10603. #include <ac_nonexistent.h>
  10604. _ACEOF
  10605. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10606. # Broken: success on invalid input.
  10607. continue
  10608. else
  10609. # Passes both tests.
  10610. ac_preproc_ok=:
  10611. break
  10612. fi
  10613. rm -f conftest.err conftest.i conftest.$ac_ext
  10614. done
  10615. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10616. rm -f conftest.i conftest.err conftest.$ac_ext
  10617. if $ac_preproc_ok; then :
  10618. else
  10619. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10620. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10621. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10622. See \`config.log' for more details" "$LINENO" 5; }
  10623. fi
  10624. ac_ext=c
  10625. ac_cpp='$CPP $CPPFLAGS'
  10626. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10627. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10628. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10629. else
  10630. _lt_caught_CXX_error=yes
  10631. fi
  10632. ac_ext=cpp
  10633. ac_cpp='$CXXCPP $CPPFLAGS'
  10634. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10635. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10636. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10637. archive_cmds_need_lc_CXX=no
  10638. allow_undefined_flag_CXX=
  10639. always_export_symbols_CXX=no
  10640. archive_expsym_cmds_CXX=
  10641. compiler_needs_object_CXX=no
  10642. export_dynamic_flag_spec_CXX=
  10643. hardcode_direct_CXX=no
  10644. hardcode_direct_absolute_CXX=no
  10645. hardcode_libdir_flag_spec_CXX=
  10646. hardcode_libdir_separator_CXX=
  10647. hardcode_minus_L_CXX=no
  10648. hardcode_shlibpath_var_CXX=unsupported
  10649. hardcode_automatic_CXX=no
  10650. inherit_rpath_CXX=no
  10651. module_cmds_CXX=
  10652. module_expsym_cmds_CXX=
  10653. link_all_deplibs_CXX=unknown
  10654. old_archive_cmds_CXX=$old_archive_cmds
  10655. reload_flag_CXX=$reload_flag
  10656. reload_cmds_CXX=$reload_cmds
  10657. no_undefined_flag_CXX=
  10658. whole_archive_flag_spec_CXX=
  10659. enable_shared_with_static_runtimes_CXX=no
  10660. # Source file extension for C++ test sources.
  10661. ac_ext=cpp
  10662. # Object file extension for compiled C++ test sources.
  10663. objext=o
  10664. objext_CXX=$objext
  10665. # No sense in running all these tests if we already determined that
  10666. # the CXX compiler isn't working. Some variables (like enable_shared)
  10667. # are currently assumed to apply to all compilers on this platform,
  10668. # and will be corrupted by setting them based on a non-working compiler.
  10669. if test "$_lt_caught_CXX_error" != yes; then
  10670. # Code to be used in simple compile tests
  10671. lt_simple_compile_test_code="int some_variable = 0;"
  10672. # Code to be used in simple link tests
  10673. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10674. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10675. # If no C compiler was specified, use CC.
  10676. LTCC=${LTCC-"$CC"}
  10677. # If no C compiler flags were specified, use CFLAGS.
  10678. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10679. # Allow CC to be a program name with arguments.
  10680. compiler=$CC
  10681. # save warnings/boilerplate of simple test code
  10682. ac_outfile=conftest.$ac_objext
  10683. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10684. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10685. _lt_compiler_boilerplate=`cat conftest.err`
  10686. $RM conftest*
  10687. ac_outfile=conftest.$ac_objext
  10688. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10689. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10690. _lt_linker_boilerplate=`cat conftest.err`
  10691. $RM -r conftest*
  10692. # Allow CC to be a program name with arguments.
  10693. lt_save_CC=$CC
  10694. lt_save_CFLAGS=$CFLAGS
  10695. lt_save_LD=$LD
  10696. lt_save_GCC=$GCC
  10697. GCC=$GXX
  10698. lt_save_with_gnu_ld=$with_gnu_ld
  10699. lt_save_path_LD=$lt_cv_path_LD
  10700. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10701. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10702. else
  10703. $as_unset lt_cv_prog_gnu_ld
  10704. fi
  10705. if test -n "${lt_cv_path_LDCXX+set}"; then
  10706. lt_cv_path_LD=$lt_cv_path_LDCXX
  10707. else
  10708. $as_unset lt_cv_path_LD
  10709. fi
  10710. test -z "${LDCXX+set}" || LD=$LDCXX
  10711. CC=${CXX-"c++"}
  10712. CFLAGS=$CXXFLAGS
  10713. compiler=$CC
  10714. compiler_CXX=$CC
  10715. for cc_temp in $compiler""; do
  10716. case $cc_temp in
  10717. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10718. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10719. \-*) ;;
  10720. *) break;;
  10721. esac
  10722. done
  10723. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10724. if test -n "$compiler"; then
  10725. # We don't want -fno-exception when compiling C++ code, so set the
  10726. # no_builtin_flag separately
  10727. if test "$GXX" = yes; then
  10728. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10729. else
  10730. lt_prog_compiler_no_builtin_flag_CXX=
  10731. fi
  10732. if test "$GXX" = yes; then
  10733. # Set up default GNU C++ configuration
  10734. # Check whether --with-gnu-ld was given.
  10735. if test "${with_gnu_ld+set}" = set; then :
  10736. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10737. else
  10738. with_gnu_ld=no
  10739. fi
  10740. ac_prog=ld
  10741. if test "$GCC" = yes; then
  10742. # Check if gcc -print-prog-name=ld gives a path.
  10743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10744. $as_echo_n "checking for ld used by $CC... " >&6; }
  10745. case $host in
  10746. *-*-mingw*)
  10747. # gcc leaves a trailing carriage return which upsets mingw
  10748. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10749. *)
  10750. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10751. esac
  10752. case $ac_prog in
  10753. # Accept absolute paths.
  10754. [\\/]* | ?:[\\/]*)
  10755. re_direlt='/[^/][^/]*/\.\./'
  10756. # Canonicalize the pathname of ld
  10757. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10758. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10759. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10760. done
  10761. test -z "$LD" && LD="$ac_prog"
  10762. ;;
  10763. "")
  10764. # If it fails, then pretend we aren't using GCC.
  10765. ac_prog=ld
  10766. ;;
  10767. *)
  10768. # If it is relative, then search for the first ld in PATH.
  10769. with_gnu_ld=unknown
  10770. ;;
  10771. esac
  10772. elif test "$with_gnu_ld" = yes; then
  10773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10774. $as_echo_n "checking for GNU ld... " >&6; }
  10775. else
  10776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10777. $as_echo_n "checking for non-GNU ld... " >&6; }
  10778. fi
  10779. if ${lt_cv_path_LD+:} false; then :
  10780. $as_echo_n "(cached) " >&6
  10781. else
  10782. if test -z "$LD"; then
  10783. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10784. for ac_dir in $PATH; do
  10785. IFS="$lt_save_ifs"
  10786. test -z "$ac_dir" && ac_dir=.
  10787. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10788. lt_cv_path_LD="$ac_dir/$ac_prog"
  10789. # Check to see if the program is GNU ld. I'd rather use --version,
  10790. # but apparently some variants of GNU ld only accept -v.
  10791. # Break only if it was the GNU/non-GNU ld that we prefer.
  10792. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10793. *GNU* | *'with BFD'*)
  10794. test "$with_gnu_ld" != no && break
  10795. ;;
  10796. *)
  10797. test "$with_gnu_ld" != yes && break
  10798. ;;
  10799. esac
  10800. fi
  10801. done
  10802. IFS="$lt_save_ifs"
  10803. else
  10804. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10805. fi
  10806. fi
  10807. LD="$lt_cv_path_LD"
  10808. if test -n "$LD"; then
  10809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10810. $as_echo "$LD" >&6; }
  10811. else
  10812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10813. $as_echo "no" >&6; }
  10814. fi
  10815. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10817. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10818. if ${lt_cv_prog_gnu_ld+:} false; then :
  10819. $as_echo_n "(cached) " >&6
  10820. else
  10821. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10822. case `$LD -v 2>&1 </dev/null` in
  10823. *GNU* | *'with BFD'*)
  10824. lt_cv_prog_gnu_ld=yes
  10825. ;;
  10826. *)
  10827. lt_cv_prog_gnu_ld=no
  10828. ;;
  10829. esac
  10830. fi
  10831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10832. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10833. with_gnu_ld=$lt_cv_prog_gnu_ld
  10834. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10835. # archiving commands below assume that GNU ld is being used.
  10836. if test "$with_gnu_ld" = yes; then
  10837. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10838. 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'
  10839. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10840. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10841. # If archive_cmds runs LD, not CC, wlarc should be empty
  10842. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10843. # investigate it a little bit more. (MM)
  10844. wlarc='${wl}'
  10845. # ancient GNU ld didn't support --whole-archive et. al.
  10846. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10847. $GREP 'no-whole-archive' > /dev/null; then
  10848. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10849. else
  10850. whole_archive_flag_spec_CXX=
  10851. fi
  10852. else
  10853. with_gnu_ld=no
  10854. wlarc=
  10855. # A generic and very simple default shared library creation
  10856. # command for GNU C++ for the case where it uses the native
  10857. # linker, instead of GNU ld. If possible, this setting should
  10858. # overridden to take advantage of the native linker features on
  10859. # the platform it is being used on.
  10860. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10861. fi
  10862. # Commands to make compiler produce verbose output that lists
  10863. # what "hidden" libraries, object files and flags are used when
  10864. # linking a shared library.
  10865. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10866. else
  10867. GXX=no
  10868. with_gnu_ld=no
  10869. wlarc=
  10870. fi
  10871. # PORTME: fill in a description of your system's C++ link characteristics
  10872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10873. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10874. ld_shlibs_CXX=yes
  10875. case $host_os in
  10876. aix3*)
  10877. # FIXME: insert proper C++ library support
  10878. ld_shlibs_CXX=no
  10879. ;;
  10880. aix[4-9]*)
  10881. if test "$host_cpu" = ia64; then
  10882. # On IA64, the linker does run time linking by default, so we don't
  10883. # have to do anything special.
  10884. aix_use_runtimelinking=no
  10885. exp_sym_flag='-Bexport'
  10886. no_entry_flag=""
  10887. else
  10888. aix_use_runtimelinking=no
  10889. # Test if we are trying to use run time linking or normal
  10890. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10891. # need to do runtime linking.
  10892. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10893. for ld_flag in $LDFLAGS; do
  10894. case $ld_flag in
  10895. *-brtl*)
  10896. aix_use_runtimelinking=yes
  10897. break
  10898. ;;
  10899. esac
  10900. done
  10901. ;;
  10902. esac
  10903. exp_sym_flag='-bexport'
  10904. no_entry_flag='-bnoentry'
  10905. fi
  10906. # When large executables or shared objects are built, AIX ld can
  10907. # have problems creating the table of contents. If linking a library
  10908. # or program results in "error TOC overflow" add -mminimal-toc to
  10909. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10910. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10911. archive_cmds_CXX=''
  10912. hardcode_direct_CXX=yes
  10913. hardcode_direct_absolute_CXX=yes
  10914. hardcode_libdir_separator_CXX=':'
  10915. link_all_deplibs_CXX=yes
  10916. file_list_spec_CXX='${wl}-f,'
  10917. if test "$GXX" = yes; then
  10918. case $host_os in aix4.[012]|aix4.[012].*)
  10919. # We only want to do this on AIX 4.2 and lower, the check
  10920. # below for broken collect2 doesn't work under 4.3+
  10921. collect2name=`${CC} -print-prog-name=collect2`
  10922. if test -f "$collect2name" &&
  10923. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10924. then
  10925. # We have reworked collect2
  10926. :
  10927. else
  10928. # We have old collect2
  10929. hardcode_direct_CXX=unsupported
  10930. # It fails to find uninstalled libraries when the uninstalled
  10931. # path is not listed in the libpath. Setting hardcode_minus_L
  10932. # to unsupported forces relinking
  10933. hardcode_minus_L_CXX=yes
  10934. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10935. hardcode_libdir_separator_CXX=
  10936. fi
  10937. esac
  10938. shared_flag='-shared'
  10939. if test "$aix_use_runtimelinking" = yes; then
  10940. shared_flag="$shared_flag "'${wl}-G'
  10941. fi
  10942. else
  10943. # not using gcc
  10944. if test "$host_cpu" = ia64; then
  10945. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10946. # chokes on -Wl,-G. The following line is correct:
  10947. shared_flag='-G'
  10948. else
  10949. if test "$aix_use_runtimelinking" = yes; then
  10950. shared_flag='${wl}-G'
  10951. else
  10952. shared_flag='${wl}-bM:SRE'
  10953. fi
  10954. fi
  10955. fi
  10956. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10957. # It seems that -bexpall does not export symbols beginning with
  10958. # underscore (_), so it is better to generate a list of symbols to
  10959. # export.
  10960. always_export_symbols_CXX=yes
  10961. if test "$aix_use_runtimelinking" = yes; then
  10962. # Warning - without using the other runtime loading flags (-brtl),
  10963. # -berok will link without error, but may produce a broken library.
  10964. allow_undefined_flag_CXX='-berok'
  10965. # Determine the default libpath from the value encoded in an empty
  10966. # executable.
  10967. if test "${lt_cv_aix_libpath+set}" = set; then
  10968. aix_libpath=$lt_cv_aix_libpath
  10969. else
  10970. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10971. $as_echo_n "(cached) " >&6
  10972. else
  10973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10974. /* end confdefs.h. */
  10975. int
  10976. main ()
  10977. {
  10978. ;
  10979. return 0;
  10980. }
  10981. _ACEOF
  10982. if ac_fn_cxx_try_link "$LINENO"; then :
  10983. lt_aix_libpath_sed='
  10984. /Import File Strings/,/^$/ {
  10985. /^0/ {
  10986. s/^0 *\([^ ]*\) *$/\1/
  10987. p
  10988. }
  10989. }'
  10990. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10991. # Check for a 64-bit object if we didn't find anything.
  10992. if test -z "$lt_cv_aix_libpath__CXX"; then
  10993. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10994. fi
  10995. fi
  10996. rm -f core conftest.err conftest.$ac_objext \
  10997. conftest$ac_exeext conftest.$ac_ext
  10998. if test -z "$lt_cv_aix_libpath__CXX"; then
  10999. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11000. fi
  11001. fi
  11002. aix_libpath=$lt_cv_aix_libpath__CXX
  11003. fi
  11004. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11005. 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"
  11006. else
  11007. if test "$host_cpu" = ia64; then
  11008. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11009. allow_undefined_flag_CXX="-z nodefs"
  11010. 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"
  11011. else
  11012. # Determine the default libpath from the value encoded in an
  11013. # empty executable.
  11014. if test "${lt_cv_aix_libpath+set}" = set; then
  11015. aix_libpath=$lt_cv_aix_libpath
  11016. else
  11017. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11018. $as_echo_n "(cached) " >&6
  11019. else
  11020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11021. /* end confdefs.h. */
  11022. int
  11023. main ()
  11024. {
  11025. ;
  11026. return 0;
  11027. }
  11028. _ACEOF
  11029. if ac_fn_cxx_try_link "$LINENO"; then :
  11030. lt_aix_libpath_sed='
  11031. /Import File Strings/,/^$/ {
  11032. /^0/ {
  11033. s/^0 *\([^ ]*\) *$/\1/
  11034. p
  11035. }
  11036. }'
  11037. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11038. # Check for a 64-bit object if we didn't find anything.
  11039. if test -z "$lt_cv_aix_libpath__CXX"; then
  11040. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11041. fi
  11042. fi
  11043. rm -f core conftest.err conftest.$ac_objext \
  11044. conftest$ac_exeext conftest.$ac_ext
  11045. if test -z "$lt_cv_aix_libpath__CXX"; then
  11046. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11047. fi
  11048. fi
  11049. aix_libpath=$lt_cv_aix_libpath__CXX
  11050. fi
  11051. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11052. # Warning - without using the other run time loading flags,
  11053. # -berok will link without error, but may produce a broken library.
  11054. no_undefined_flag_CXX=' ${wl}-bernotok'
  11055. allow_undefined_flag_CXX=' ${wl}-berok'
  11056. if test "$with_gnu_ld" = yes; then
  11057. # We only use this code for GNU lds that support --whole-archive.
  11058. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11059. else
  11060. # Exported symbols can be pulled into shared objects from archives
  11061. whole_archive_flag_spec_CXX='$convenience'
  11062. fi
  11063. archive_cmds_need_lc_CXX=yes
  11064. # This is similar to how AIX traditionally builds its shared
  11065. # libraries.
  11066. 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'
  11067. fi
  11068. fi
  11069. ;;
  11070. beos*)
  11071. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11072. allow_undefined_flag_CXX=unsupported
  11073. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11074. # support --undefined. This deserves some investigation. FIXME
  11075. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11076. else
  11077. ld_shlibs_CXX=no
  11078. fi
  11079. ;;
  11080. chorus*)
  11081. case $cc_basename in
  11082. *)
  11083. # FIXME: insert proper C++ library support
  11084. ld_shlibs_CXX=no
  11085. ;;
  11086. esac
  11087. ;;
  11088. cygwin* | mingw* | pw32* | cegcc*)
  11089. case $GXX,$cc_basename in
  11090. ,cl* | no,cl*)
  11091. # Native MSVC
  11092. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11093. # no search path for DLLs.
  11094. hardcode_libdir_flag_spec_CXX=' '
  11095. allow_undefined_flag_CXX=unsupported
  11096. always_export_symbols_CXX=yes
  11097. file_list_spec_CXX='@'
  11098. # Tell ltmain to make .lib files, not .a files.
  11099. libext=lib
  11100. # Tell ltmain to make .dll files, not .so files.
  11101. shrext_cmds=".dll"
  11102. # FIXME: Setting linknames here is a bad hack.
  11103. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11104. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11105. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11106. else
  11107. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11108. fi~
  11109. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11110. linknames='
  11111. # The linker will not automatically build a static lib if we build a DLL.
  11112. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11113. enable_shared_with_static_runtimes_CXX=yes
  11114. # Don't use ranlib
  11115. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11116. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11117. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11118. case $lt_outputfile in
  11119. *.exe|*.EXE) ;;
  11120. *)
  11121. lt_outputfile="$lt_outputfile.exe"
  11122. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11123. ;;
  11124. esac~
  11125. func_to_tool_file "$lt_outputfile"~
  11126. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11127. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11128. $RM "$lt_outputfile.manifest";
  11129. fi'
  11130. ;;
  11131. *)
  11132. # g++
  11133. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11134. # as there is no search path for DLLs.
  11135. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11136. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11137. allow_undefined_flag_CXX=unsupported
  11138. always_export_symbols_CXX=no
  11139. enable_shared_with_static_runtimes_CXX=yes
  11140. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11141. 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'
  11142. # If the export-symbols file already is a .def file (1st line
  11143. # is EXPORTS), use it as is; otherwise, prepend...
  11144. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11145. cp $export_symbols $output_objdir/$soname.def;
  11146. else
  11147. echo EXPORTS > $output_objdir/$soname.def;
  11148. cat $export_symbols >> $output_objdir/$soname.def;
  11149. fi~
  11150. $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'
  11151. else
  11152. ld_shlibs_CXX=no
  11153. fi
  11154. ;;
  11155. esac
  11156. ;;
  11157. darwin* | rhapsody*)
  11158. archive_cmds_need_lc_CXX=no
  11159. hardcode_direct_CXX=no
  11160. hardcode_automatic_CXX=yes
  11161. hardcode_shlibpath_var_CXX=unsupported
  11162. if test "$lt_cv_ld_force_load" = "yes"; then
  11163. 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\"`'
  11164. else
  11165. whole_archive_flag_spec_CXX=''
  11166. fi
  11167. link_all_deplibs_CXX=yes
  11168. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11169. case $cc_basename in
  11170. ifort*) _lt_dar_can_shared=yes ;;
  11171. *) _lt_dar_can_shared=$GCC ;;
  11172. esac
  11173. if test "$_lt_dar_can_shared" = "yes"; then
  11174. output_verbose_link_cmd=func_echo_all
  11175. 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}"
  11176. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11177. 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}"
  11178. 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}"
  11179. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11180. 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}"
  11181. 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}"
  11182. fi
  11183. else
  11184. ld_shlibs_CXX=no
  11185. fi
  11186. ;;
  11187. dgux*)
  11188. case $cc_basename in
  11189. ec++*)
  11190. # FIXME: insert proper C++ library support
  11191. ld_shlibs_CXX=no
  11192. ;;
  11193. ghcx*)
  11194. # Green Hills C++ Compiler
  11195. # FIXME: insert proper C++ library support
  11196. ld_shlibs_CXX=no
  11197. ;;
  11198. *)
  11199. # FIXME: insert proper C++ library support
  11200. ld_shlibs_CXX=no
  11201. ;;
  11202. esac
  11203. ;;
  11204. freebsd2.*)
  11205. # C++ shared libraries reported to be fairly broken before
  11206. # switch to ELF
  11207. ld_shlibs_CXX=no
  11208. ;;
  11209. freebsd-elf*)
  11210. archive_cmds_need_lc_CXX=no
  11211. ;;
  11212. freebsd* | dragonfly*)
  11213. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11214. # conventions
  11215. ld_shlibs_CXX=yes
  11216. ;;
  11217. gnu*)
  11218. ;;
  11219. haiku*)
  11220. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11221. link_all_deplibs_CXX=yes
  11222. ;;
  11223. hpux9*)
  11224. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11225. hardcode_libdir_separator_CXX=:
  11226. export_dynamic_flag_spec_CXX='${wl}-E'
  11227. hardcode_direct_CXX=yes
  11228. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11229. # but as the default
  11230. # location of the library.
  11231. case $cc_basename in
  11232. CC*)
  11233. # FIXME: insert proper C++ library support
  11234. ld_shlibs_CXX=no
  11235. ;;
  11236. aCC*)
  11237. 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'
  11238. # Commands to make compiler produce verbose output that lists
  11239. # what "hidden" libraries, object files and flags are used when
  11240. # linking a shared library.
  11241. #
  11242. # There doesn't appear to be a way to prevent this compiler from
  11243. # explicitly linking system object files so we need to strip them
  11244. # from the output so that they don't get included in the library
  11245. # dependencies.
  11246. 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"'
  11247. ;;
  11248. *)
  11249. if test "$GXX" = yes; then
  11250. 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'
  11251. else
  11252. # FIXME: insert proper C++ library support
  11253. ld_shlibs_CXX=no
  11254. fi
  11255. ;;
  11256. esac
  11257. ;;
  11258. hpux10*|hpux11*)
  11259. if test $with_gnu_ld = no; then
  11260. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11261. hardcode_libdir_separator_CXX=:
  11262. case $host_cpu in
  11263. hppa*64*|ia64*)
  11264. ;;
  11265. *)
  11266. export_dynamic_flag_spec_CXX='${wl}-E'
  11267. ;;
  11268. esac
  11269. fi
  11270. case $host_cpu in
  11271. hppa*64*|ia64*)
  11272. hardcode_direct_CXX=no
  11273. hardcode_shlibpath_var_CXX=no
  11274. ;;
  11275. *)
  11276. hardcode_direct_CXX=yes
  11277. hardcode_direct_absolute_CXX=yes
  11278. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11279. # but as the default
  11280. # location of the library.
  11281. ;;
  11282. esac
  11283. case $cc_basename in
  11284. CC*)
  11285. # FIXME: insert proper C++ library support
  11286. ld_shlibs_CXX=no
  11287. ;;
  11288. aCC*)
  11289. case $host_cpu in
  11290. hppa*64*)
  11291. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11292. ;;
  11293. ia64*)
  11294. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11295. ;;
  11296. *)
  11297. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11298. ;;
  11299. esac
  11300. # Commands to make compiler produce verbose output that lists
  11301. # what "hidden" libraries, object files and flags are used when
  11302. # linking a shared library.
  11303. #
  11304. # There doesn't appear to be a way to prevent this compiler from
  11305. # explicitly linking system object files so we need to strip them
  11306. # from the output so that they don't get included in the library
  11307. # dependencies.
  11308. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $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"'
  11309. ;;
  11310. *)
  11311. if test "$GXX" = yes; then
  11312. if test $with_gnu_ld = no; then
  11313. case $host_cpu in
  11314. hppa*64*)
  11315. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11316. ;;
  11317. ia64*)
  11318. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11319. ;;
  11320. *)
  11321. 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'
  11322. ;;
  11323. esac
  11324. fi
  11325. else
  11326. # FIXME: insert proper C++ library support
  11327. ld_shlibs_CXX=no
  11328. fi
  11329. ;;
  11330. esac
  11331. ;;
  11332. interix[3-9]*)
  11333. hardcode_direct_CXX=no
  11334. hardcode_shlibpath_var_CXX=no
  11335. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11336. export_dynamic_flag_spec_CXX='${wl}-E'
  11337. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11338. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11339. # default) and relocated if they conflict, which is a slow very memory
  11340. # consuming and fragmenting process. To avoid this, we pick a random,
  11341. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11342. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11343. 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'
  11344. 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'
  11345. ;;
  11346. irix5* | irix6*)
  11347. case $cc_basename in
  11348. CC*)
  11349. # SGI C++
  11350. 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'
  11351. # Archives containing C++ object files must be created using
  11352. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11353. # necessary to make sure instantiated templates are included
  11354. # in the archive.
  11355. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11356. ;;
  11357. *)
  11358. if test "$GXX" = yes; then
  11359. if test "$with_gnu_ld" = no; then
  11360. 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'
  11361. else
  11362. 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'
  11363. fi
  11364. fi
  11365. link_all_deplibs_CXX=yes
  11366. ;;
  11367. esac
  11368. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11369. hardcode_libdir_separator_CXX=:
  11370. inherit_rpath_CXX=yes
  11371. ;;
  11372. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11373. case $cc_basename in
  11374. KCC*)
  11375. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11376. # KCC will only create a shared library if the output file
  11377. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11378. # to its proper name (with version) after linking.
  11379. 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'
  11380. 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'
  11381. # Commands to make compiler produce verbose output that lists
  11382. # what "hidden" libraries, object files and flags are used when
  11383. # linking a shared library.
  11384. #
  11385. # There doesn't appear to be a way to prevent this compiler from
  11386. # explicitly linking system object files so we need to strip them
  11387. # from the output so that they don't get included in the library
  11388. # dependencies.
  11389. 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"'
  11390. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11391. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11392. # Archives containing C++ object files must be created using
  11393. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11394. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11395. ;;
  11396. icpc* | ecpc* )
  11397. # Intel C++
  11398. with_gnu_ld=yes
  11399. # version 8.0 and above of icpc choke on multiply defined symbols
  11400. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11401. # earlier do not add the objects themselves.
  11402. case `$CC -V 2>&1` in
  11403. *"Version 7."*)
  11404. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11405. 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'
  11406. ;;
  11407. *) # Version 8.0 or newer
  11408. tmp_idyn=
  11409. case $host_cpu in
  11410. ia64*) tmp_idyn=' -i_dynamic';;
  11411. esac
  11412. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11413. 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'
  11414. ;;
  11415. esac
  11416. archive_cmds_need_lc_CXX=no
  11417. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11418. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11419. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11420. ;;
  11421. pgCC* | pgcpp*)
  11422. # Portland Group C++ compiler
  11423. case `$CC -V` in
  11424. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11425. prelink_cmds_CXX='tpldir=Template.dir~
  11426. rm -rf $tpldir~
  11427. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11428. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11429. old_archive_cmds_CXX='tpldir=Template.dir~
  11430. rm -rf $tpldir~
  11431. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11432. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11433. $RANLIB $oldlib'
  11434. archive_cmds_CXX='tpldir=Template.dir~
  11435. rm -rf $tpldir~
  11436. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11437. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11438. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11439. rm -rf $tpldir~
  11440. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11441. $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'
  11442. ;;
  11443. *) # Version 6 and above use weak symbols
  11444. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11445. 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'
  11446. ;;
  11447. esac
  11448. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11449. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11450. 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'
  11451. ;;
  11452. cxx*)
  11453. # Compaq C++
  11454. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11455. 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'
  11456. runpath_var=LD_RUN_PATH
  11457. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11458. hardcode_libdir_separator_CXX=:
  11459. # Commands to make compiler produce verbose output that lists
  11460. # what "hidden" libraries, object files and flags are used when
  11461. # linking a shared library.
  11462. #
  11463. # There doesn't appear to be a way to prevent this compiler from
  11464. # explicitly linking system object files so we need to strip them
  11465. # from the output so that they don't get included in the library
  11466. # dependencies.
  11467. 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'
  11468. ;;
  11469. xl* | mpixl* | bgxl*)
  11470. # IBM XL 8.0 on PPC, with GNU ld
  11471. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11472. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11473. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11474. if test "x$supports_anon_versioning" = xyes; then
  11475. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11476. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11477. echo "local: *; };" >> $output_objdir/$libname.ver~
  11478. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11479. fi
  11480. ;;
  11481. *)
  11482. case `$CC -V 2>&1 | sed 5q` in
  11483. *Sun\ C*)
  11484. # Sun C++ 5.9
  11485. no_undefined_flag_CXX=' -zdefs'
  11486. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11487. 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'
  11488. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11489. 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'
  11490. compiler_needs_object_CXX=yes
  11491. # Not sure whether something based on
  11492. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11493. # would be better.
  11494. output_verbose_link_cmd='func_echo_all'
  11495. # Archives containing C++ object files must be created using
  11496. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11497. # necessary to make sure instantiated templates are included
  11498. # in the archive.
  11499. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11500. ;;
  11501. esac
  11502. ;;
  11503. esac
  11504. ;;
  11505. lynxos*)
  11506. # FIXME: insert proper C++ library support
  11507. ld_shlibs_CXX=no
  11508. ;;
  11509. m88k*)
  11510. # FIXME: insert proper C++ library support
  11511. ld_shlibs_CXX=no
  11512. ;;
  11513. mvs*)
  11514. case $cc_basename in
  11515. cxx*)
  11516. # FIXME: insert proper C++ library support
  11517. ld_shlibs_CXX=no
  11518. ;;
  11519. *)
  11520. # FIXME: insert proper C++ library support
  11521. ld_shlibs_CXX=no
  11522. ;;
  11523. esac
  11524. ;;
  11525. netbsd*)
  11526. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11527. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11528. wlarc=
  11529. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11530. hardcode_direct_CXX=yes
  11531. hardcode_shlibpath_var_CXX=no
  11532. fi
  11533. # Workaround some broken pre-1.5 toolchains
  11534. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11535. ;;
  11536. *nto* | *qnx*)
  11537. ld_shlibs_CXX=yes
  11538. ;;
  11539. openbsd2*)
  11540. # C++ shared libraries are fairly broken
  11541. ld_shlibs_CXX=no
  11542. ;;
  11543. openbsd*)
  11544. if test -f /usr/libexec/ld.so; then
  11545. hardcode_direct_CXX=yes
  11546. hardcode_shlibpath_var_CXX=no
  11547. hardcode_direct_absolute_CXX=yes
  11548. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11549. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11550. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11551. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11552. export_dynamic_flag_spec_CXX='${wl}-E'
  11553. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11554. fi
  11555. output_verbose_link_cmd=func_echo_all
  11556. else
  11557. ld_shlibs_CXX=no
  11558. fi
  11559. ;;
  11560. osf3* | osf4* | osf5*)
  11561. case $cc_basename in
  11562. KCC*)
  11563. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11564. # KCC will only create a shared library if the output file
  11565. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11566. # to its proper name (with version) after linking.
  11567. 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'
  11568. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11569. hardcode_libdir_separator_CXX=:
  11570. # Archives containing C++ object files must be created using
  11571. # the KAI C++ compiler.
  11572. case $host in
  11573. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11574. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11575. esac
  11576. ;;
  11577. RCC*)
  11578. # Rational C++ 2.4.1
  11579. # FIXME: insert proper C++ library support
  11580. ld_shlibs_CXX=no
  11581. ;;
  11582. cxx*)
  11583. case $host in
  11584. osf3*)
  11585. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11586. 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'
  11587. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11588. ;;
  11589. *)
  11590. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11591. 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'
  11592. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11593. echo "-hidden">> $lib.exp~
  11594. $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~
  11595. $RM $lib.exp'
  11596. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11597. ;;
  11598. esac
  11599. hardcode_libdir_separator_CXX=:
  11600. # Commands to make compiler produce verbose output that lists
  11601. # what "hidden" libraries, object files and flags are used when
  11602. # linking a shared library.
  11603. #
  11604. # There doesn't appear to be a way to prevent this compiler from
  11605. # explicitly linking system object files so we need to strip them
  11606. # from the output so that they don't get included in the library
  11607. # dependencies.
  11608. 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"'
  11609. ;;
  11610. *)
  11611. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11612. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11613. case $host in
  11614. osf3*)
  11615. 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'
  11616. ;;
  11617. *)
  11618. 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'
  11619. ;;
  11620. esac
  11621. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11622. hardcode_libdir_separator_CXX=:
  11623. # Commands to make compiler produce verbose output that lists
  11624. # what "hidden" libraries, object files and flags are used when
  11625. # linking a shared library.
  11626. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11627. else
  11628. # FIXME: insert proper C++ library support
  11629. ld_shlibs_CXX=no
  11630. fi
  11631. ;;
  11632. esac
  11633. ;;
  11634. psos*)
  11635. # FIXME: insert proper C++ library support
  11636. ld_shlibs_CXX=no
  11637. ;;
  11638. sunos4*)
  11639. case $cc_basename in
  11640. CC*)
  11641. # Sun C++ 4.x
  11642. # FIXME: insert proper C++ library support
  11643. ld_shlibs_CXX=no
  11644. ;;
  11645. lcc*)
  11646. # Lucid
  11647. # FIXME: insert proper C++ library support
  11648. ld_shlibs_CXX=no
  11649. ;;
  11650. *)
  11651. # FIXME: insert proper C++ library support
  11652. ld_shlibs_CXX=no
  11653. ;;
  11654. esac
  11655. ;;
  11656. solaris*)
  11657. case $cc_basename in
  11658. CC* | sunCC*)
  11659. # Sun C++ 4.2, 5.x and Centerline C++
  11660. archive_cmds_need_lc_CXX=yes
  11661. no_undefined_flag_CXX=' -zdefs'
  11662. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11663. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11664. $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'
  11665. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11666. hardcode_shlibpath_var_CXX=no
  11667. case $host_os in
  11668. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11669. *)
  11670. # The compiler driver will combine and reorder linker options,
  11671. # but understands `-z linker_flag'.
  11672. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11673. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11674. ;;
  11675. esac
  11676. link_all_deplibs_CXX=yes
  11677. output_verbose_link_cmd='func_echo_all'
  11678. # Archives containing C++ object files must be created using
  11679. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11680. # necessary to make sure instantiated templates are included
  11681. # in the archive.
  11682. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11683. ;;
  11684. gcx*)
  11685. # Green Hills C++ Compiler
  11686. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11687. # The C++ compiler must be used to create the archive.
  11688. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11689. ;;
  11690. *)
  11691. # GNU C++ compiler with Solaris linker
  11692. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11693. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11694. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11695. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11696. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11697. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11698. # Commands to make compiler produce verbose output that lists
  11699. # what "hidden" libraries, object files and flags are used when
  11700. # linking a shared library.
  11701. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11702. else
  11703. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11704. # platform.
  11705. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  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 -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11708. # Commands to make compiler produce verbose output that lists
  11709. # what "hidden" libraries, object files and flags are used when
  11710. # linking a shared library.
  11711. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11712. fi
  11713. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11714. case $host_os in
  11715. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11716. *)
  11717. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11718. ;;
  11719. esac
  11720. fi
  11721. ;;
  11722. esac
  11723. ;;
  11724. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11725. no_undefined_flag_CXX='${wl}-z,text'
  11726. archive_cmds_need_lc_CXX=no
  11727. hardcode_shlibpath_var_CXX=no
  11728. runpath_var='LD_RUN_PATH'
  11729. case $cc_basename in
  11730. CC*)
  11731. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11732. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11733. ;;
  11734. *)
  11735. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11736. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11737. ;;
  11738. esac
  11739. ;;
  11740. sysv5* | sco3.2v5* | sco5v6*)
  11741. # Note: We can NOT use -z defs as we might desire, because we do not
  11742. # link with -lc, and that would cause any symbols used from libc to
  11743. # always be unresolved, which means just about no library would
  11744. # ever link correctly. If we're not using GNU ld we use -z text
  11745. # though, which does catch some bad symbols but isn't as heavy-handed
  11746. # as -z defs.
  11747. no_undefined_flag_CXX='${wl}-z,text'
  11748. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11749. archive_cmds_need_lc_CXX=no
  11750. hardcode_shlibpath_var_CXX=no
  11751. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11752. hardcode_libdir_separator_CXX=':'
  11753. link_all_deplibs_CXX=yes
  11754. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11755. runpath_var='LD_RUN_PATH'
  11756. case $cc_basename in
  11757. CC*)
  11758. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11759. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11760. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11761. '"$old_archive_cmds_CXX"
  11762. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11763. '"$reload_cmds_CXX"
  11764. ;;
  11765. *)
  11766. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11767. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11768. ;;
  11769. esac
  11770. ;;
  11771. tandem*)
  11772. case $cc_basename in
  11773. NCC*)
  11774. # NonStop-UX NCC 3.20
  11775. # FIXME: insert proper C++ library support
  11776. ld_shlibs_CXX=no
  11777. ;;
  11778. *)
  11779. # FIXME: insert proper C++ library support
  11780. ld_shlibs_CXX=no
  11781. ;;
  11782. esac
  11783. ;;
  11784. vxworks*)
  11785. # FIXME: insert proper C++ library support
  11786. ld_shlibs_CXX=no
  11787. ;;
  11788. *)
  11789. # FIXME: insert proper C++ library support
  11790. ld_shlibs_CXX=no
  11791. ;;
  11792. esac
  11793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11794. $as_echo "$ld_shlibs_CXX" >&6; }
  11795. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11796. GCC_CXX="$GXX"
  11797. LD_CXX="$LD"
  11798. ## CAVEAT EMPTOR:
  11799. ## There is no encapsulation within the following macros, do not change
  11800. ## the running order or otherwise move them around unless you know exactly
  11801. ## what you are doing...
  11802. # Dependencies to place before and after the object being linked:
  11803. predep_objects_CXX=
  11804. postdep_objects_CXX=
  11805. predeps_CXX=
  11806. postdeps_CXX=
  11807. compiler_lib_search_path_CXX=
  11808. cat > conftest.$ac_ext <<_LT_EOF
  11809. class Foo
  11810. {
  11811. public:
  11812. Foo (void) { a = 0; }
  11813. private:
  11814. int a;
  11815. };
  11816. _LT_EOF
  11817. _lt_libdeps_save_CFLAGS=$CFLAGS
  11818. case "$CC $CFLAGS " in #(
  11819. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11820. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11821. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11822. esac
  11823. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11824. (eval $ac_compile) 2>&5
  11825. ac_status=$?
  11826. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11827. test $ac_status = 0; }; then
  11828. # Parse the compiler output and extract the necessary
  11829. # objects, libraries and library flags.
  11830. # Sentinel used to keep track of whether or not we are before
  11831. # the conftest object file.
  11832. pre_test_object_deps_done=no
  11833. for p in `eval "$output_verbose_link_cmd"`; do
  11834. case ${prev}${p} in
  11835. -L* | -R* | -l*)
  11836. # Some compilers place space between "-{L,R}" and the path.
  11837. # Remove the space.
  11838. if test $p = "-L" ||
  11839. test $p = "-R"; then
  11840. prev=$p
  11841. continue
  11842. fi
  11843. # Expand the sysroot to ease extracting the directories later.
  11844. if test -z "$prev"; then
  11845. case $p in
  11846. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11847. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11848. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11849. esac
  11850. fi
  11851. case $p in
  11852. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11853. esac
  11854. if test "$pre_test_object_deps_done" = no; then
  11855. case ${prev} in
  11856. -L | -R)
  11857. # Internal compiler library paths should come after those
  11858. # provided the user. The postdeps already come after the
  11859. # user supplied libs so there is no need to process them.
  11860. if test -z "$compiler_lib_search_path_CXX"; then
  11861. compiler_lib_search_path_CXX="${prev}${p}"
  11862. else
  11863. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11864. fi
  11865. ;;
  11866. # The "-l" case would never come before the object being
  11867. # linked, so don't bother handling this case.
  11868. esac
  11869. else
  11870. if test -z "$postdeps_CXX"; then
  11871. postdeps_CXX="${prev}${p}"
  11872. else
  11873. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11874. fi
  11875. fi
  11876. prev=
  11877. ;;
  11878. *.lto.$objext) ;; # Ignore GCC LTO objects
  11879. *.$objext)
  11880. # This assumes that the test object file only shows up
  11881. # once in the compiler output.
  11882. if test "$p" = "conftest.$objext"; then
  11883. pre_test_object_deps_done=yes
  11884. continue
  11885. fi
  11886. if test "$pre_test_object_deps_done" = no; then
  11887. if test -z "$predep_objects_CXX"; then
  11888. predep_objects_CXX="$p"
  11889. else
  11890. predep_objects_CXX="$predep_objects_CXX $p"
  11891. fi
  11892. else
  11893. if test -z "$postdep_objects_CXX"; then
  11894. postdep_objects_CXX="$p"
  11895. else
  11896. postdep_objects_CXX="$postdep_objects_CXX $p"
  11897. fi
  11898. fi
  11899. ;;
  11900. *) ;; # Ignore the rest.
  11901. esac
  11902. done
  11903. # Clean up.
  11904. rm -f a.out a.exe
  11905. else
  11906. echo "libtool.m4: error: problem compiling CXX test program"
  11907. fi
  11908. $RM -f confest.$objext
  11909. CFLAGS=$_lt_libdeps_save_CFLAGS
  11910. # PORTME: override above test on systems where it is broken
  11911. case $host_os in
  11912. interix[3-9]*)
  11913. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11914. # hack all around it, let's just trust "g++" to DTRT.
  11915. predep_objects_CXX=
  11916. postdep_objects_CXX=
  11917. postdeps_CXX=
  11918. ;;
  11919. linux*)
  11920. case `$CC -V 2>&1 | sed 5q` in
  11921. *Sun\ C*)
  11922. # Sun C++ 5.9
  11923. # The more standards-conforming stlport4 library is
  11924. # incompatible with the Cstd library. Avoid specifying
  11925. # it if it's in CXXFLAGS. Ignore libCrun as
  11926. # -library=stlport4 depends on it.
  11927. case " $CXX $CXXFLAGS " in
  11928. *" -library=stlport4 "*)
  11929. solaris_use_stlport4=yes
  11930. ;;
  11931. esac
  11932. if test "$solaris_use_stlport4" != yes; then
  11933. postdeps_CXX='-library=Cstd -library=Crun'
  11934. fi
  11935. ;;
  11936. esac
  11937. ;;
  11938. solaris*)
  11939. case $cc_basename in
  11940. CC* | sunCC*)
  11941. # The more standards-conforming stlport4 library is
  11942. # incompatible with the Cstd library. Avoid specifying
  11943. # it if it's in CXXFLAGS. Ignore libCrun as
  11944. # -library=stlport4 depends on it.
  11945. case " $CXX $CXXFLAGS " in
  11946. *" -library=stlport4 "*)
  11947. solaris_use_stlport4=yes
  11948. ;;
  11949. esac
  11950. # Adding this requires a known-good setup of shared libraries for
  11951. # Sun compiler versions before 5.6, else PIC objects from an old
  11952. # archive will be linked into the output, leading to subtle bugs.
  11953. if test "$solaris_use_stlport4" != yes; then
  11954. postdeps_CXX='-library=Cstd -library=Crun'
  11955. fi
  11956. ;;
  11957. esac
  11958. ;;
  11959. esac
  11960. case " $postdeps_CXX " in
  11961. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11962. esac
  11963. compiler_lib_search_dirs_CXX=
  11964. if test -n "${compiler_lib_search_path_CXX}"; then
  11965. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11966. fi
  11967. lt_prog_compiler_wl_CXX=
  11968. lt_prog_compiler_pic_CXX=
  11969. lt_prog_compiler_static_CXX=
  11970. # C++ specific cases for pic, static, wl, etc.
  11971. if test "$GXX" = yes; then
  11972. lt_prog_compiler_wl_CXX='-Wl,'
  11973. lt_prog_compiler_static_CXX='-static'
  11974. case $host_os in
  11975. aix*)
  11976. # All AIX code is PIC.
  11977. if test "$host_cpu" = ia64; then
  11978. # AIX 5 now supports IA64 processor
  11979. lt_prog_compiler_static_CXX='-Bstatic'
  11980. fi
  11981. ;;
  11982. amigaos*)
  11983. case $host_cpu in
  11984. powerpc)
  11985. # see comment about AmigaOS4 .so support
  11986. lt_prog_compiler_pic_CXX='-fPIC'
  11987. ;;
  11988. m68k)
  11989. # FIXME: we need at least 68020 code to build shared libraries, but
  11990. # adding the `-m68020' flag to GCC prevents building anything better,
  11991. # like `-m68040'.
  11992. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11993. ;;
  11994. esac
  11995. ;;
  11996. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11997. # PIC is the default for these OSes.
  11998. ;;
  11999. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12000. # This hack is so that the source file can tell whether it is being
  12001. # built for inclusion in a dll (and should export symbols for example).
  12002. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12003. # (--disable-auto-import) libraries
  12004. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12005. ;;
  12006. darwin* | rhapsody*)
  12007. # PIC is the default on this platform
  12008. # Common symbols not allowed in MH_DYLIB files
  12009. lt_prog_compiler_pic_CXX='-fno-common'
  12010. ;;
  12011. *djgpp*)
  12012. # DJGPP does not support shared libraries at all
  12013. lt_prog_compiler_pic_CXX=
  12014. ;;
  12015. haiku*)
  12016. # PIC is the default for Haiku.
  12017. # The "-static" flag exists, but is broken.
  12018. lt_prog_compiler_static_CXX=
  12019. ;;
  12020. interix[3-9]*)
  12021. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12022. # Instead, we relocate shared libraries at runtime.
  12023. ;;
  12024. sysv4*MP*)
  12025. if test -d /usr/nec; then
  12026. lt_prog_compiler_pic_CXX=-Kconform_pic
  12027. fi
  12028. ;;
  12029. hpux*)
  12030. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12031. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12032. # sets the default TLS model and affects inlining.
  12033. case $host_cpu in
  12034. hppa*64*)
  12035. ;;
  12036. *)
  12037. lt_prog_compiler_pic_CXX='-fPIC'
  12038. ;;
  12039. esac
  12040. ;;
  12041. *qnx* | *nto*)
  12042. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12043. # it will coredump.
  12044. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12045. ;;
  12046. *)
  12047. lt_prog_compiler_pic_CXX='-fPIC'
  12048. ;;
  12049. esac
  12050. else
  12051. case $host_os in
  12052. aix[4-9]*)
  12053. # All AIX code is PIC.
  12054. if test "$host_cpu" = ia64; then
  12055. # AIX 5 now supports IA64 processor
  12056. lt_prog_compiler_static_CXX='-Bstatic'
  12057. else
  12058. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12059. fi
  12060. ;;
  12061. chorus*)
  12062. case $cc_basename in
  12063. cxch68*)
  12064. # Green Hills C++ Compiler
  12065. # _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"
  12066. ;;
  12067. esac
  12068. ;;
  12069. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12070. # This hack is so that the source file can tell whether it is being
  12071. # built for inclusion in a dll (and should export symbols for example).
  12072. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12073. ;;
  12074. dgux*)
  12075. case $cc_basename in
  12076. ec++*)
  12077. lt_prog_compiler_pic_CXX='-KPIC'
  12078. ;;
  12079. ghcx*)
  12080. # Green Hills C++ Compiler
  12081. lt_prog_compiler_pic_CXX='-pic'
  12082. ;;
  12083. *)
  12084. ;;
  12085. esac
  12086. ;;
  12087. freebsd* | dragonfly*)
  12088. # FreeBSD uses GNU C++
  12089. ;;
  12090. hpux9* | hpux10* | hpux11*)
  12091. case $cc_basename in
  12092. CC*)
  12093. lt_prog_compiler_wl_CXX='-Wl,'
  12094. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12095. if test "$host_cpu" != ia64; then
  12096. lt_prog_compiler_pic_CXX='+Z'
  12097. fi
  12098. ;;
  12099. aCC*)
  12100. lt_prog_compiler_wl_CXX='-Wl,'
  12101. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12102. case $host_cpu in
  12103. hppa*64*|ia64*)
  12104. # +Z the default
  12105. ;;
  12106. *)
  12107. lt_prog_compiler_pic_CXX='+Z'
  12108. ;;
  12109. esac
  12110. ;;
  12111. *)
  12112. ;;
  12113. esac
  12114. ;;
  12115. interix*)
  12116. # This is c89, which is MS Visual C++ (no shared libs)
  12117. # Anyone wants to do a port?
  12118. ;;
  12119. irix5* | irix6* | nonstopux*)
  12120. case $cc_basename in
  12121. CC*)
  12122. lt_prog_compiler_wl_CXX='-Wl,'
  12123. lt_prog_compiler_static_CXX='-non_shared'
  12124. # CC pic flag -KPIC is the default.
  12125. ;;
  12126. *)
  12127. ;;
  12128. esac
  12129. ;;
  12130. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12131. case $cc_basename in
  12132. KCC*)
  12133. # KAI C++ Compiler
  12134. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12135. lt_prog_compiler_pic_CXX='-fPIC'
  12136. ;;
  12137. ecpc* )
  12138. # old Intel C++ for x86_64 which still supported -KPIC.
  12139. lt_prog_compiler_wl_CXX='-Wl,'
  12140. lt_prog_compiler_pic_CXX='-KPIC'
  12141. lt_prog_compiler_static_CXX='-static'
  12142. ;;
  12143. icpc* )
  12144. # Intel C++, used to be incompatible with GCC.
  12145. # ICC 10 doesn't accept -KPIC any more.
  12146. lt_prog_compiler_wl_CXX='-Wl,'
  12147. lt_prog_compiler_pic_CXX='-fPIC'
  12148. lt_prog_compiler_static_CXX='-static'
  12149. ;;
  12150. pgCC* | pgcpp*)
  12151. # Portland Group C++ compiler
  12152. lt_prog_compiler_wl_CXX='-Wl,'
  12153. lt_prog_compiler_pic_CXX='-fpic'
  12154. lt_prog_compiler_static_CXX='-Bstatic'
  12155. ;;
  12156. cxx*)
  12157. # Compaq C++
  12158. # Make sure the PIC flag is empty. It appears that all Alpha
  12159. # Linux and Compaq Tru64 Unix objects are PIC.
  12160. lt_prog_compiler_pic_CXX=
  12161. lt_prog_compiler_static_CXX='-non_shared'
  12162. ;;
  12163. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12164. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12165. lt_prog_compiler_wl_CXX='-Wl,'
  12166. lt_prog_compiler_pic_CXX='-qpic'
  12167. lt_prog_compiler_static_CXX='-qstaticlink'
  12168. ;;
  12169. *)
  12170. case `$CC -V 2>&1 | sed 5q` in
  12171. *Sun\ C*)
  12172. # Sun C++ 5.9
  12173. lt_prog_compiler_pic_CXX='-KPIC'
  12174. lt_prog_compiler_static_CXX='-Bstatic'
  12175. lt_prog_compiler_wl_CXX='-Qoption ld '
  12176. ;;
  12177. esac
  12178. ;;
  12179. esac
  12180. ;;
  12181. lynxos*)
  12182. ;;
  12183. m88k*)
  12184. ;;
  12185. mvs*)
  12186. case $cc_basename in
  12187. cxx*)
  12188. lt_prog_compiler_pic_CXX='-W c,exportall'
  12189. ;;
  12190. *)
  12191. ;;
  12192. esac
  12193. ;;
  12194. netbsd*)
  12195. ;;
  12196. *qnx* | *nto*)
  12197. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12198. # it will coredump.
  12199. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12200. ;;
  12201. osf3* | osf4* | osf5*)
  12202. case $cc_basename in
  12203. KCC*)
  12204. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12205. ;;
  12206. RCC*)
  12207. # Rational C++ 2.4.1
  12208. lt_prog_compiler_pic_CXX='-pic'
  12209. ;;
  12210. cxx*)
  12211. # Digital/Compaq C++
  12212. lt_prog_compiler_wl_CXX='-Wl,'
  12213. # Make sure the PIC flag is empty. It appears that all Alpha
  12214. # Linux and Compaq Tru64 Unix objects are PIC.
  12215. lt_prog_compiler_pic_CXX=
  12216. lt_prog_compiler_static_CXX='-non_shared'
  12217. ;;
  12218. *)
  12219. ;;
  12220. esac
  12221. ;;
  12222. psos*)
  12223. ;;
  12224. solaris*)
  12225. case $cc_basename in
  12226. CC* | sunCC*)
  12227. # Sun C++ 4.2, 5.x and Centerline C++
  12228. lt_prog_compiler_pic_CXX='-KPIC'
  12229. lt_prog_compiler_static_CXX='-Bstatic'
  12230. lt_prog_compiler_wl_CXX='-Qoption ld '
  12231. ;;
  12232. gcx*)
  12233. # Green Hills C++ Compiler
  12234. lt_prog_compiler_pic_CXX='-PIC'
  12235. ;;
  12236. *)
  12237. ;;
  12238. esac
  12239. ;;
  12240. sunos4*)
  12241. case $cc_basename in
  12242. CC*)
  12243. # Sun C++ 4.x
  12244. lt_prog_compiler_pic_CXX='-pic'
  12245. lt_prog_compiler_static_CXX='-Bstatic'
  12246. ;;
  12247. lcc*)
  12248. # Lucid
  12249. lt_prog_compiler_pic_CXX='-pic'
  12250. ;;
  12251. *)
  12252. ;;
  12253. esac
  12254. ;;
  12255. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12256. case $cc_basename in
  12257. CC*)
  12258. lt_prog_compiler_wl_CXX='-Wl,'
  12259. lt_prog_compiler_pic_CXX='-KPIC'
  12260. lt_prog_compiler_static_CXX='-Bstatic'
  12261. ;;
  12262. esac
  12263. ;;
  12264. tandem*)
  12265. case $cc_basename in
  12266. NCC*)
  12267. # NonStop-UX NCC 3.20
  12268. lt_prog_compiler_pic_CXX='-KPIC'
  12269. ;;
  12270. *)
  12271. ;;
  12272. esac
  12273. ;;
  12274. vxworks*)
  12275. ;;
  12276. *)
  12277. lt_prog_compiler_can_build_shared_CXX=no
  12278. ;;
  12279. esac
  12280. fi
  12281. case $host_os in
  12282. # For platforms which do not support PIC, -DPIC is meaningless:
  12283. *djgpp*)
  12284. lt_prog_compiler_pic_CXX=
  12285. ;;
  12286. *)
  12287. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12288. ;;
  12289. esac
  12290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12291. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12292. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12293. $as_echo_n "(cached) " >&6
  12294. else
  12295. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12296. fi
  12297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12298. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12299. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12300. #
  12301. # Check to make sure the PIC flag actually works.
  12302. #
  12303. if test -n "$lt_prog_compiler_pic_CXX"; then
  12304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12305. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12306. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12307. $as_echo_n "(cached) " >&6
  12308. else
  12309. lt_cv_prog_compiler_pic_works_CXX=no
  12310. ac_outfile=conftest.$ac_objext
  12311. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12312. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12313. # Insert the option either (1) after the last *FLAGS variable, or
  12314. # (2) before a word containing "conftest.", or (3) at the end.
  12315. # Note that $ac_compile itself does not contain backslashes and begins
  12316. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12317. # The option is referenced via a variable to avoid confusing sed.
  12318. lt_compile=`echo "$ac_compile" | $SED \
  12319. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12320. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12321. -e 's:$: $lt_compiler_flag:'`
  12322. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12323. (eval "$lt_compile" 2>conftest.err)
  12324. ac_status=$?
  12325. cat conftest.err >&5
  12326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12327. if (exit $ac_status) && test -s "$ac_outfile"; then
  12328. # The compiler can only warn and ignore the option if not recognized
  12329. # So say no if there are warnings other than the usual output.
  12330. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12331. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12332. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12333. lt_cv_prog_compiler_pic_works_CXX=yes
  12334. fi
  12335. fi
  12336. $RM conftest*
  12337. fi
  12338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12339. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12340. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12341. case $lt_prog_compiler_pic_CXX in
  12342. "" | " "*) ;;
  12343. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12344. esac
  12345. else
  12346. lt_prog_compiler_pic_CXX=
  12347. lt_prog_compiler_can_build_shared_CXX=no
  12348. fi
  12349. fi
  12350. #
  12351. # Check to make sure the static flag actually works.
  12352. #
  12353. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12355. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12356. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12357. $as_echo_n "(cached) " >&6
  12358. else
  12359. lt_cv_prog_compiler_static_works_CXX=no
  12360. save_LDFLAGS="$LDFLAGS"
  12361. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12362. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12363. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12364. # The linker can only warn and ignore the option if not recognized
  12365. # So say no if there are warnings
  12366. if test -s conftest.err; then
  12367. # Append any errors to the config.log.
  12368. cat conftest.err 1>&5
  12369. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12370. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12371. if diff conftest.exp conftest.er2 >/dev/null; then
  12372. lt_cv_prog_compiler_static_works_CXX=yes
  12373. fi
  12374. else
  12375. lt_cv_prog_compiler_static_works_CXX=yes
  12376. fi
  12377. fi
  12378. $RM -r conftest*
  12379. LDFLAGS="$save_LDFLAGS"
  12380. fi
  12381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12382. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12383. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12384. :
  12385. else
  12386. lt_prog_compiler_static_CXX=
  12387. fi
  12388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12389. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12390. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12391. $as_echo_n "(cached) " >&6
  12392. else
  12393. lt_cv_prog_compiler_c_o_CXX=no
  12394. $RM -r conftest 2>/dev/null
  12395. mkdir conftest
  12396. cd conftest
  12397. mkdir out
  12398. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12399. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12400. # Insert the option either (1) after the last *FLAGS variable, or
  12401. # (2) before a word containing "conftest.", or (3) at the end.
  12402. # Note that $ac_compile itself does not contain backslashes and begins
  12403. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12404. lt_compile=`echo "$ac_compile" | $SED \
  12405. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12406. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12407. -e 's:$: $lt_compiler_flag:'`
  12408. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12409. (eval "$lt_compile" 2>out/conftest.err)
  12410. ac_status=$?
  12411. cat out/conftest.err >&5
  12412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12413. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12414. then
  12415. # The compiler can only warn and ignore the option if not recognized
  12416. # So say no if there are warnings
  12417. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12418. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12419. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12420. lt_cv_prog_compiler_c_o_CXX=yes
  12421. fi
  12422. fi
  12423. chmod u+w . 2>&5
  12424. $RM conftest*
  12425. # SGI C++ compiler will create directory out/ii_files/ for
  12426. # template instantiation
  12427. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12428. $RM out/* && rmdir out
  12429. cd ..
  12430. $RM -r conftest
  12431. $RM conftest*
  12432. fi
  12433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12434. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12436. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12437. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12438. $as_echo_n "(cached) " >&6
  12439. else
  12440. lt_cv_prog_compiler_c_o_CXX=no
  12441. $RM -r conftest 2>/dev/null
  12442. mkdir conftest
  12443. cd conftest
  12444. mkdir out
  12445. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12446. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12447. # Insert the option either (1) after the last *FLAGS variable, or
  12448. # (2) before a word containing "conftest.", or (3) at the end.
  12449. # Note that $ac_compile itself does not contain backslashes and begins
  12450. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12451. lt_compile=`echo "$ac_compile" | $SED \
  12452. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12453. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12454. -e 's:$: $lt_compiler_flag:'`
  12455. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12456. (eval "$lt_compile" 2>out/conftest.err)
  12457. ac_status=$?
  12458. cat out/conftest.err >&5
  12459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12460. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12461. then
  12462. # The compiler can only warn and ignore the option if not recognized
  12463. # So say no if there are warnings
  12464. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12465. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12466. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12467. lt_cv_prog_compiler_c_o_CXX=yes
  12468. fi
  12469. fi
  12470. chmod u+w . 2>&5
  12471. $RM conftest*
  12472. # SGI C++ compiler will create directory out/ii_files/ for
  12473. # template instantiation
  12474. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12475. $RM out/* && rmdir out
  12476. cd ..
  12477. $RM -r conftest
  12478. $RM conftest*
  12479. fi
  12480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12481. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12482. hard_links="nottested"
  12483. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12484. # do not overwrite the value of need_locks provided by the user
  12485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12486. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12487. hard_links=yes
  12488. $RM conftest*
  12489. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12490. touch conftest.a
  12491. ln conftest.a conftest.b 2>&5 || hard_links=no
  12492. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12494. $as_echo "$hard_links" >&6; }
  12495. if test "$hard_links" = no; then
  12496. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12497. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12498. need_locks=warn
  12499. fi
  12500. else
  12501. need_locks=no
  12502. fi
  12503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12504. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12505. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12506. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12507. case $host_os in
  12508. aix[4-9]*)
  12509. # If we're using GNU nm, then we don't want the "-C" option.
  12510. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12511. # Also, AIX nm treats weak defined symbols like other global defined
  12512. # symbols, whereas GNU nm marks them as "W".
  12513. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12514. 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'
  12515. else
  12516. 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'
  12517. fi
  12518. ;;
  12519. pw32*)
  12520. export_symbols_cmds_CXX="$ltdll_cmds"
  12521. ;;
  12522. cygwin* | mingw* | cegcc*)
  12523. case $cc_basename in
  12524. cl*)
  12525. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12526. ;;
  12527. *)
  12528. 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'
  12529. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12530. ;;
  12531. esac
  12532. ;;
  12533. *)
  12534. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12535. ;;
  12536. esac
  12537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12538. $as_echo "$ld_shlibs_CXX" >&6; }
  12539. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12540. with_gnu_ld_CXX=$with_gnu_ld
  12541. #
  12542. # Do we need to explicitly link libc?
  12543. #
  12544. case "x$archive_cmds_need_lc_CXX" in
  12545. x|xyes)
  12546. # Assume -lc should be added
  12547. archive_cmds_need_lc_CXX=yes
  12548. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12549. case $archive_cmds_CXX in
  12550. *'~'*)
  12551. # FIXME: we may have to deal with multi-command sequences.
  12552. ;;
  12553. '$CC '*)
  12554. # Test whether the compiler implicitly links with -lc since on some
  12555. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12556. # to ld, don't add -lc before -lgcc.
  12557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12558. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12559. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12560. $as_echo_n "(cached) " >&6
  12561. else
  12562. $RM conftest*
  12563. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12564. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12565. (eval $ac_compile) 2>&5
  12566. ac_status=$?
  12567. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12568. test $ac_status = 0; } 2>conftest.err; then
  12569. soname=conftest
  12570. lib=conftest
  12571. libobjs=conftest.$ac_objext
  12572. deplibs=
  12573. wl=$lt_prog_compiler_wl_CXX
  12574. pic_flag=$lt_prog_compiler_pic_CXX
  12575. compiler_flags=-v
  12576. linker_flags=-v
  12577. verstring=
  12578. output_objdir=.
  12579. libname=conftest
  12580. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12581. allow_undefined_flag_CXX=
  12582. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12583. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12584. ac_status=$?
  12585. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12586. test $ac_status = 0; }
  12587. then
  12588. lt_cv_archive_cmds_need_lc_CXX=no
  12589. else
  12590. lt_cv_archive_cmds_need_lc_CXX=yes
  12591. fi
  12592. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12593. else
  12594. cat conftest.err 1>&5
  12595. fi
  12596. $RM conftest*
  12597. fi
  12598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12599. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12600. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12601. ;;
  12602. esac
  12603. fi
  12604. ;;
  12605. esac
  12606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12607. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12608. library_names_spec=
  12609. libname_spec='lib$name'
  12610. soname_spec=
  12611. shrext_cmds=".so"
  12612. postinstall_cmds=
  12613. postuninstall_cmds=
  12614. finish_cmds=
  12615. finish_eval=
  12616. shlibpath_var=
  12617. shlibpath_overrides_runpath=unknown
  12618. version_type=none
  12619. dynamic_linker="$host_os ld.so"
  12620. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12621. need_lib_prefix=unknown
  12622. hardcode_into_libs=no
  12623. # when you set need_version to no, make sure it does not cause -set_version
  12624. # flags to be left without arguments
  12625. need_version=unknown
  12626. case $host_os in
  12627. aix3*)
  12628. version_type=linux # correct to gnu/linux during the next big refactor
  12629. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12630. shlibpath_var=LIBPATH
  12631. # AIX 3 has no versioning support, so we append a major version to the name.
  12632. soname_spec='${libname}${release}${shared_ext}$major'
  12633. ;;
  12634. aix[4-9]*)
  12635. version_type=linux # correct to gnu/linux during the next big refactor
  12636. need_lib_prefix=no
  12637. need_version=no
  12638. hardcode_into_libs=yes
  12639. if test "$host_cpu" = ia64; then
  12640. # AIX 5 supports IA64
  12641. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12642. shlibpath_var=LD_LIBRARY_PATH
  12643. else
  12644. # With GCC up to 2.95.x, collect2 would create an import file
  12645. # for dependence libraries. The import file would start with
  12646. # the line `#! .'. This would cause the generated library to
  12647. # depend on `.', always an invalid library. This was fixed in
  12648. # development snapshots of GCC prior to 3.0.
  12649. case $host_os in
  12650. aix4 | aix4.[01] | aix4.[01].*)
  12651. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12652. echo ' yes '
  12653. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12654. :
  12655. else
  12656. can_build_shared=no
  12657. fi
  12658. ;;
  12659. esac
  12660. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12661. # soname into executable. Probably we can add versioning support to
  12662. # collect2, so additional links can be useful in future.
  12663. if test "$aix_use_runtimelinking" = yes; then
  12664. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12665. # instead of lib<name>.a to let people know that these are not
  12666. # typical AIX shared libraries.
  12667. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12668. else
  12669. # We preserve .a as extension for shared libraries through AIX4.2
  12670. # and later when we are not doing run time linking.
  12671. library_names_spec='${libname}${release}.a $libname.a'
  12672. soname_spec='${libname}${release}${shared_ext}$major'
  12673. fi
  12674. shlibpath_var=LIBPATH
  12675. fi
  12676. ;;
  12677. amigaos*)
  12678. case $host_cpu in
  12679. powerpc)
  12680. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12681. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12682. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12683. ;;
  12684. m68k)
  12685. library_names_spec='$libname.ixlibrary $libname.a'
  12686. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12687. 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'
  12688. ;;
  12689. esac
  12690. ;;
  12691. beos*)
  12692. library_names_spec='${libname}${shared_ext}'
  12693. dynamic_linker="$host_os ld.so"
  12694. shlibpath_var=LIBRARY_PATH
  12695. ;;
  12696. bsdi[45]*)
  12697. version_type=linux # correct to gnu/linux during the next big refactor
  12698. need_version=no
  12699. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12700. soname_spec='${libname}${release}${shared_ext}$major'
  12701. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12702. shlibpath_var=LD_LIBRARY_PATH
  12703. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12704. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12705. # the default ld.so.conf also contains /usr/contrib/lib and
  12706. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12707. # libtool to hard-code these into programs
  12708. ;;
  12709. cygwin* | mingw* | pw32* | cegcc*)
  12710. version_type=windows
  12711. shrext_cmds=".dll"
  12712. need_version=no
  12713. need_lib_prefix=no
  12714. case $GCC,$cc_basename in
  12715. yes,*)
  12716. # gcc
  12717. library_names_spec='$libname.dll.a'
  12718. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12719. postinstall_cmds='base_file=`basename \${file}`~
  12720. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12721. dldir=$destdir/`dirname \$dlpath`~
  12722. test -d \$dldir || mkdir -p \$dldir~
  12723. $install_prog $dir/$dlname \$dldir/$dlname~
  12724. chmod a+x \$dldir/$dlname~
  12725. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12726. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12727. fi'
  12728. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12729. dlpath=$dir/\$dldll~
  12730. $RM \$dlpath'
  12731. shlibpath_overrides_runpath=yes
  12732. case $host_os in
  12733. cygwin*)
  12734. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12735. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12736. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12737. ;;
  12738. mingw* | cegcc*)
  12739. # MinGW DLLs use traditional 'lib' prefix
  12740. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12741. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12742. ;;
  12743. pw32*)
  12744. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12745. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12746. ;;
  12747. esac
  12748. dynamic_linker='Win32 ld.exe'
  12749. ;;
  12750. *,cl*)
  12751. # Native MSVC
  12752. libname_spec='$name'
  12753. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12754. library_names_spec='${libname}.dll.lib'
  12755. case $build_os in
  12756. mingw*)
  12757. sys_lib_search_path_spec=
  12758. lt_save_ifs=$IFS
  12759. IFS=';'
  12760. for lt_path in $LIB
  12761. do
  12762. IFS=$lt_save_ifs
  12763. # Let DOS variable expansion print the short 8.3 style file name.
  12764. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12765. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12766. done
  12767. IFS=$lt_save_ifs
  12768. # Convert to MSYS style.
  12769. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12770. ;;
  12771. cygwin*)
  12772. # Convert to unix form, then to dos form, then back to unix form
  12773. # but this time dos style (no spaces!) so that the unix form looks
  12774. # like /cygdrive/c/PROGRA~1:/cygdr...
  12775. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12776. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12777. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12778. ;;
  12779. *)
  12780. sys_lib_search_path_spec="$LIB"
  12781. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12782. # It is most probably a Windows format PATH.
  12783. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12784. else
  12785. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12786. fi
  12787. # FIXME: find the short name or the path components, as spaces are
  12788. # common. (e.g. "Program Files" -> "PROGRA~1")
  12789. ;;
  12790. esac
  12791. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12792. postinstall_cmds='base_file=`basename \${file}`~
  12793. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12794. dldir=$destdir/`dirname \$dlpath`~
  12795. test -d \$dldir || mkdir -p \$dldir~
  12796. $install_prog $dir/$dlname \$dldir/$dlname'
  12797. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12798. dlpath=$dir/\$dldll~
  12799. $RM \$dlpath'
  12800. shlibpath_overrides_runpath=yes
  12801. dynamic_linker='Win32 link.exe'
  12802. ;;
  12803. *)
  12804. # Assume MSVC wrapper
  12805. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12806. dynamic_linker='Win32 ld.exe'
  12807. ;;
  12808. esac
  12809. # FIXME: first we should search . and the directory the executable is in
  12810. shlibpath_var=PATH
  12811. ;;
  12812. darwin* | rhapsody*)
  12813. dynamic_linker="$host_os dyld"
  12814. version_type=darwin
  12815. need_lib_prefix=no
  12816. need_version=no
  12817. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12818. soname_spec='${libname}${release}${major}$shared_ext'
  12819. shlibpath_overrides_runpath=yes
  12820. shlibpath_var=DYLD_LIBRARY_PATH
  12821. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12822. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12823. ;;
  12824. dgux*)
  12825. version_type=linux # correct to gnu/linux during the next big refactor
  12826. need_lib_prefix=no
  12827. need_version=no
  12828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12829. soname_spec='${libname}${release}${shared_ext}$major'
  12830. shlibpath_var=LD_LIBRARY_PATH
  12831. ;;
  12832. freebsd* | dragonfly*)
  12833. # DragonFly does not have aout. When/if they implement a new
  12834. # versioning mechanism, adjust this.
  12835. if test -x /usr/bin/objformat; then
  12836. objformat=`/usr/bin/objformat`
  12837. else
  12838. case $host_os in
  12839. freebsd[23].*) objformat=aout ;;
  12840. *) objformat=elf ;;
  12841. esac
  12842. fi
  12843. version_type=freebsd-$objformat
  12844. case $version_type in
  12845. freebsd-elf*)
  12846. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12847. need_version=no
  12848. need_lib_prefix=no
  12849. ;;
  12850. freebsd-*)
  12851. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12852. need_version=yes
  12853. ;;
  12854. esac
  12855. shlibpath_var=LD_LIBRARY_PATH
  12856. case $host_os in
  12857. freebsd2.*)
  12858. shlibpath_overrides_runpath=yes
  12859. ;;
  12860. freebsd3.[01]* | freebsdelf3.[01]*)
  12861. shlibpath_overrides_runpath=yes
  12862. hardcode_into_libs=yes
  12863. ;;
  12864. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12865. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12866. shlibpath_overrides_runpath=no
  12867. hardcode_into_libs=yes
  12868. ;;
  12869. *) # from 4.6 on, and DragonFly
  12870. shlibpath_overrides_runpath=yes
  12871. hardcode_into_libs=yes
  12872. ;;
  12873. esac
  12874. ;;
  12875. gnu*)
  12876. version_type=linux # correct to gnu/linux during the next big refactor
  12877. need_lib_prefix=no
  12878. need_version=no
  12879. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12880. soname_spec='${libname}${release}${shared_ext}$major'
  12881. shlibpath_var=LD_LIBRARY_PATH
  12882. shlibpath_overrides_runpath=no
  12883. hardcode_into_libs=yes
  12884. ;;
  12885. haiku*)
  12886. version_type=linux # correct to gnu/linux during the next big refactor
  12887. need_lib_prefix=no
  12888. need_version=no
  12889. dynamic_linker="$host_os runtime_loader"
  12890. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12891. soname_spec='${libname}${release}${shared_ext}$major'
  12892. shlibpath_var=LIBRARY_PATH
  12893. shlibpath_overrides_runpath=yes
  12894. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12895. hardcode_into_libs=yes
  12896. ;;
  12897. hpux9* | hpux10* | hpux11*)
  12898. # Give a soname corresponding to the major version so that dld.sl refuses to
  12899. # link against other versions.
  12900. version_type=sunos
  12901. need_lib_prefix=no
  12902. need_version=no
  12903. case $host_cpu in
  12904. ia64*)
  12905. shrext_cmds='.so'
  12906. hardcode_into_libs=yes
  12907. dynamic_linker="$host_os dld.so"
  12908. shlibpath_var=LD_LIBRARY_PATH
  12909. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12910. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12911. soname_spec='${libname}${release}${shared_ext}$major'
  12912. if test "X$HPUX_IA64_MODE" = X32; then
  12913. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12914. else
  12915. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12916. fi
  12917. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12918. ;;
  12919. hppa*64*)
  12920. shrext_cmds='.sl'
  12921. hardcode_into_libs=yes
  12922. dynamic_linker="$host_os dld.sl"
  12923. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12924. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12925. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12926. soname_spec='${libname}${release}${shared_ext}$major'
  12927. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12928. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12929. ;;
  12930. *)
  12931. shrext_cmds='.sl'
  12932. dynamic_linker="$host_os dld.sl"
  12933. shlibpath_var=SHLIB_PATH
  12934. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12935. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12936. soname_spec='${libname}${release}${shared_ext}$major'
  12937. ;;
  12938. esac
  12939. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12940. postinstall_cmds='chmod 555 $lib'
  12941. # or fails outright, so override atomically:
  12942. install_override_mode=555
  12943. ;;
  12944. interix[3-9]*)
  12945. version_type=linux # correct to gnu/linux during the next big refactor
  12946. need_lib_prefix=no
  12947. need_version=no
  12948. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12949. soname_spec='${libname}${release}${shared_ext}$major'
  12950. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12951. shlibpath_var=LD_LIBRARY_PATH
  12952. shlibpath_overrides_runpath=no
  12953. hardcode_into_libs=yes
  12954. ;;
  12955. irix5* | irix6* | nonstopux*)
  12956. case $host_os in
  12957. nonstopux*) version_type=nonstopux ;;
  12958. *)
  12959. if test "$lt_cv_prog_gnu_ld" = yes; then
  12960. version_type=linux # correct to gnu/linux during the next big refactor
  12961. else
  12962. version_type=irix
  12963. fi ;;
  12964. esac
  12965. need_lib_prefix=no
  12966. need_version=no
  12967. soname_spec='${libname}${release}${shared_ext}$major'
  12968. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12969. case $host_os in
  12970. irix5* | nonstopux*)
  12971. libsuff= shlibsuff=
  12972. ;;
  12973. *)
  12974. case $LD in # libtool.m4 will add one of these switches to LD
  12975. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12976. libsuff= shlibsuff= libmagic=32-bit;;
  12977. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12978. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12979. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12980. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12981. *) libsuff= shlibsuff= libmagic=never-match;;
  12982. esac
  12983. ;;
  12984. esac
  12985. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12986. shlibpath_overrides_runpath=no
  12987. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12988. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12989. hardcode_into_libs=yes
  12990. ;;
  12991. # No shared lib support for Linux oldld, aout, or coff.
  12992. linux*oldld* | linux*aout* | linux*coff*)
  12993. dynamic_linker=no
  12994. ;;
  12995. # This must be glibc/ELF.
  12996. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12997. version_type=linux # correct to gnu/linux during the next big refactor
  12998. need_lib_prefix=no
  12999. need_version=no
  13000. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13001. soname_spec='${libname}${release}${shared_ext}$major'
  13002. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13003. shlibpath_var=LD_LIBRARY_PATH
  13004. shlibpath_overrides_runpath=no
  13005. # Some binutils ld are patched to set DT_RUNPATH
  13006. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13007. $as_echo_n "(cached) " >&6
  13008. else
  13009. lt_cv_shlibpath_overrides_runpath=no
  13010. save_LDFLAGS=$LDFLAGS
  13011. save_libdir=$libdir
  13012. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13013. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13015. /* end confdefs.h. */
  13016. int
  13017. main ()
  13018. {
  13019. ;
  13020. return 0;
  13021. }
  13022. _ACEOF
  13023. if ac_fn_cxx_try_link "$LINENO"; then :
  13024. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13025. lt_cv_shlibpath_overrides_runpath=yes
  13026. fi
  13027. fi
  13028. rm -f core conftest.err conftest.$ac_objext \
  13029. conftest$ac_exeext conftest.$ac_ext
  13030. LDFLAGS=$save_LDFLAGS
  13031. libdir=$save_libdir
  13032. fi
  13033. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13034. # This implies no fast_install, which is unacceptable.
  13035. # Some rework will be needed to allow for fast_install
  13036. # before this can be enabled.
  13037. hardcode_into_libs=yes
  13038. # Append ld.so.conf contents to the search path
  13039. if test -f /etc/ld.so.conf; then
  13040. 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' ' '`
  13041. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13042. fi
  13043. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13044. # powerpc, because MkLinux only supported shared libraries with the
  13045. # GNU dynamic linker. Since this was broken with cross compilers,
  13046. # most powerpc-linux boxes support dynamic linking these days and
  13047. # people can always --disable-shared, the test was removed, and we
  13048. # assume the GNU/Linux dynamic linker is in use.
  13049. dynamic_linker='GNU/Linux ld.so'
  13050. ;;
  13051. netbsd*)
  13052. version_type=sunos
  13053. need_lib_prefix=no
  13054. need_version=no
  13055. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13057. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13058. dynamic_linker='NetBSD (a.out) ld.so'
  13059. else
  13060. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13061. soname_spec='${libname}${release}${shared_ext}$major'
  13062. dynamic_linker='NetBSD ld.elf_so'
  13063. fi
  13064. shlibpath_var=LD_LIBRARY_PATH
  13065. shlibpath_overrides_runpath=yes
  13066. hardcode_into_libs=yes
  13067. ;;
  13068. newsos6)
  13069. version_type=linux # correct to gnu/linux during the next big refactor
  13070. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13071. shlibpath_var=LD_LIBRARY_PATH
  13072. shlibpath_overrides_runpath=yes
  13073. ;;
  13074. *nto* | *qnx*)
  13075. version_type=qnx
  13076. need_lib_prefix=no
  13077. need_version=no
  13078. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13079. soname_spec='${libname}${release}${shared_ext}$major'
  13080. shlibpath_var=LD_LIBRARY_PATH
  13081. shlibpath_overrides_runpath=no
  13082. hardcode_into_libs=yes
  13083. dynamic_linker='ldqnx.so'
  13084. ;;
  13085. openbsd*)
  13086. version_type=sunos
  13087. sys_lib_dlsearch_path_spec="/usr/lib"
  13088. need_lib_prefix=no
  13089. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13090. case $host_os in
  13091. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13092. *) need_version=no ;;
  13093. esac
  13094. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13095. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13096. shlibpath_var=LD_LIBRARY_PATH
  13097. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13098. case $host_os in
  13099. openbsd2.[89] | openbsd2.[89].*)
  13100. shlibpath_overrides_runpath=no
  13101. ;;
  13102. *)
  13103. shlibpath_overrides_runpath=yes
  13104. ;;
  13105. esac
  13106. else
  13107. shlibpath_overrides_runpath=yes
  13108. fi
  13109. ;;
  13110. os2*)
  13111. libname_spec='$name'
  13112. shrext_cmds=".dll"
  13113. need_lib_prefix=no
  13114. library_names_spec='$libname${shared_ext} $libname.a'
  13115. dynamic_linker='OS/2 ld.exe'
  13116. shlibpath_var=LIBPATH
  13117. ;;
  13118. osf3* | osf4* | osf5*)
  13119. version_type=osf
  13120. need_lib_prefix=no
  13121. need_version=no
  13122. soname_spec='${libname}${release}${shared_ext}$major'
  13123. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13124. shlibpath_var=LD_LIBRARY_PATH
  13125. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13126. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13127. ;;
  13128. rdos*)
  13129. dynamic_linker=no
  13130. ;;
  13131. solaris*)
  13132. version_type=linux # correct to gnu/linux during the next big refactor
  13133. need_lib_prefix=no
  13134. need_version=no
  13135. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13136. soname_spec='${libname}${release}${shared_ext}$major'
  13137. shlibpath_var=LD_LIBRARY_PATH
  13138. shlibpath_overrides_runpath=yes
  13139. hardcode_into_libs=yes
  13140. # ldd complains unless libraries are executable
  13141. postinstall_cmds='chmod +x $lib'
  13142. ;;
  13143. sunos4*)
  13144. version_type=sunos
  13145. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13146. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13147. shlibpath_var=LD_LIBRARY_PATH
  13148. shlibpath_overrides_runpath=yes
  13149. if test "$with_gnu_ld" = yes; then
  13150. need_lib_prefix=no
  13151. fi
  13152. need_version=yes
  13153. ;;
  13154. sysv4 | sysv4.3*)
  13155. version_type=linux # correct to gnu/linux during the next big refactor
  13156. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13157. soname_spec='${libname}${release}${shared_ext}$major'
  13158. shlibpath_var=LD_LIBRARY_PATH
  13159. case $host_vendor in
  13160. sni)
  13161. shlibpath_overrides_runpath=no
  13162. need_lib_prefix=no
  13163. runpath_var=LD_RUN_PATH
  13164. ;;
  13165. siemens)
  13166. need_lib_prefix=no
  13167. ;;
  13168. motorola)
  13169. need_lib_prefix=no
  13170. need_version=no
  13171. shlibpath_overrides_runpath=no
  13172. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13173. ;;
  13174. esac
  13175. ;;
  13176. sysv4*MP*)
  13177. if test -d /usr/nec ;then
  13178. version_type=linux # correct to gnu/linux during the next big refactor
  13179. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13180. soname_spec='$libname${shared_ext}.$major'
  13181. shlibpath_var=LD_LIBRARY_PATH
  13182. fi
  13183. ;;
  13184. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13185. version_type=freebsd-elf
  13186. need_lib_prefix=no
  13187. need_version=no
  13188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13189. soname_spec='${libname}${release}${shared_ext}$major'
  13190. shlibpath_var=LD_LIBRARY_PATH
  13191. shlibpath_overrides_runpath=yes
  13192. hardcode_into_libs=yes
  13193. if test "$with_gnu_ld" = yes; then
  13194. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13195. else
  13196. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13197. case $host_os in
  13198. sco3.2v5*)
  13199. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13200. ;;
  13201. esac
  13202. fi
  13203. sys_lib_dlsearch_path_spec='/usr/lib'
  13204. ;;
  13205. tpf*)
  13206. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13207. version_type=linux # correct to gnu/linux during the next big refactor
  13208. need_lib_prefix=no
  13209. need_version=no
  13210. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13211. shlibpath_var=LD_LIBRARY_PATH
  13212. shlibpath_overrides_runpath=no
  13213. hardcode_into_libs=yes
  13214. ;;
  13215. uts4*)
  13216. version_type=linux # correct to gnu/linux during the next big refactor
  13217. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13218. soname_spec='${libname}${release}${shared_ext}$major'
  13219. shlibpath_var=LD_LIBRARY_PATH
  13220. ;;
  13221. *)
  13222. dynamic_linker=no
  13223. ;;
  13224. esac
  13225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13226. $as_echo "$dynamic_linker" >&6; }
  13227. test "$dynamic_linker" = no && can_build_shared=no
  13228. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13229. if test "$GCC" = yes; then
  13230. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13231. fi
  13232. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13233. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13234. fi
  13235. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13236. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13237. fi
  13238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13239. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13240. hardcode_action_CXX=
  13241. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13242. test -n "$runpath_var_CXX" ||
  13243. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13244. # We can hardcode non-existent directories.
  13245. if test "$hardcode_direct_CXX" != no &&
  13246. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13247. # have to relink, otherwise we might link with an installed library
  13248. # when we should be linking with a yet-to-be-installed one
  13249. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13250. test "$hardcode_minus_L_CXX" != no; then
  13251. # Linking always hardcodes the temporary library directory.
  13252. hardcode_action_CXX=relink
  13253. else
  13254. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13255. hardcode_action_CXX=immediate
  13256. fi
  13257. else
  13258. # We cannot hardcode anything, or else we can only hardcode existing
  13259. # directories.
  13260. hardcode_action_CXX=unsupported
  13261. fi
  13262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13263. $as_echo "$hardcode_action_CXX" >&6; }
  13264. if test "$hardcode_action_CXX" = relink ||
  13265. test "$inherit_rpath_CXX" = yes; then
  13266. # Fast installation is not supported
  13267. enable_fast_install=no
  13268. elif test "$shlibpath_overrides_runpath" = yes ||
  13269. test "$enable_shared" = no; then
  13270. # Fast installation is not necessary
  13271. enable_fast_install=needless
  13272. fi
  13273. fi # test -n "$compiler"
  13274. CC=$lt_save_CC
  13275. CFLAGS=$lt_save_CFLAGS
  13276. LDCXX=$LD
  13277. LD=$lt_save_LD
  13278. GCC=$lt_save_GCC
  13279. with_gnu_ld=$lt_save_with_gnu_ld
  13280. lt_cv_path_LDCXX=$lt_cv_path_LD
  13281. lt_cv_path_LD=$lt_save_path_LD
  13282. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13283. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13284. fi # test "$_lt_caught_CXX_error" != yes
  13285. ac_ext=c
  13286. ac_cpp='$CPP $CPPFLAGS'
  13287. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13288. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13289. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13290. # Find a good install program. We prefer a C program (faster),
  13291. # so one script is as good as another. But avoid the broken or
  13292. # incompatible versions:
  13293. # SysV /etc/install, /usr/sbin/install
  13294. # SunOS /usr/etc/install
  13295. # IRIX /sbin/install
  13296. # AIX /bin/install
  13297. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13298. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13299. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13300. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13301. # OS/2's system install, which has a completely different semantic
  13302. # ./install, which can be erroneously created by make from ./install.sh.
  13303. # Reject install programs that cannot install multiple files.
  13304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13305. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13306. if test -z "$INSTALL"; then
  13307. if ${ac_cv_path_install+:} false; then :
  13308. $as_echo_n "(cached) " >&6
  13309. else
  13310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13311. for as_dir in $PATH
  13312. do
  13313. IFS=$as_save_IFS
  13314. test -z "$as_dir" && as_dir=.
  13315. # Account for people who put trailing slashes in PATH elements.
  13316. case $as_dir/ in #((
  13317. ./ | .// | /[cC]/* | \
  13318. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13319. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13320. /usr/ucb/* ) ;;
  13321. *)
  13322. # OSF1 and SCO ODT 3.0 have their own names for install.
  13323. # Don't use installbsd from OSF since it installs stuff as root
  13324. # by default.
  13325. for ac_prog in ginstall scoinst install; do
  13326. for ac_exec_ext in '' $ac_executable_extensions; do
  13327. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13328. if test $ac_prog = install &&
  13329. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13330. # AIX install. It has an incompatible calling convention.
  13331. :
  13332. elif test $ac_prog = install &&
  13333. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13334. # program-specific install script used by HP pwplus--don't use.
  13335. :
  13336. else
  13337. rm -rf conftest.one conftest.two conftest.dir
  13338. echo one > conftest.one
  13339. echo two > conftest.two
  13340. mkdir conftest.dir
  13341. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13342. test -s conftest.one && test -s conftest.two &&
  13343. test -s conftest.dir/conftest.one &&
  13344. test -s conftest.dir/conftest.two
  13345. then
  13346. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13347. break 3
  13348. fi
  13349. fi
  13350. fi
  13351. done
  13352. done
  13353. ;;
  13354. esac
  13355. done
  13356. IFS=$as_save_IFS
  13357. rm -rf conftest.one conftest.two conftest.dir
  13358. fi
  13359. if test "${ac_cv_path_install+set}" = set; then
  13360. INSTALL=$ac_cv_path_install
  13361. else
  13362. # As a last resort, use the slow shell script. Don't cache a
  13363. # value for INSTALL within a source directory, because that will
  13364. # break other packages using the cache if that directory is
  13365. # removed, or if the value is a relative name.
  13366. INSTALL=$ac_install_sh
  13367. fi
  13368. fi
  13369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13370. $as_echo "$INSTALL" >&6; }
  13371. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13372. # It thinks the first close brace ends the variable substitution.
  13373. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13374. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13375. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13377. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13378. set x ${MAKE-make}
  13379. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13380. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13381. $as_echo_n "(cached) " >&6
  13382. else
  13383. cat >conftest.make <<\_ACEOF
  13384. SHELL = /bin/sh
  13385. all:
  13386. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13387. _ACEOF
  13388. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13389. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13390. *@@@%%%=?*=@@@%%%*)
  13391. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13392. *)
  13393. eval ac_cv_prog_make_${ac_make}_set=no;;
  13394. esac
  13395. rm -f conftest.make
  13396. fi
  13397. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13399. $as_echo "yes" >&6; }
  13400. SET_MAKE=
  13401. else
  13402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13403. $as_echo "no" >&6; }
  13404. SET_MAKE="MAKE=${MAKE-make}"
  13405. fi
  13406. if test -n "$ac_tool_prefix"; then
  13407. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13408. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13410. $as_echo_n "checking for $ac_word... " >&6; }
  13411. if ${ac_cv_prog_WINDRES+:} false; then :
  13412. $as_echo_n "(cached) " >&6
  13413. else
  13414. if test -n "$WINDRES"; then
  13415. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13416. else
  13417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13418. for as_dir in $PATH
  13419. do
  13420. IFS=$as_save_IFS
  13421. test -z "$as_dir" && as_dir=.
  13422. for ac_exec_ext in '' $ac_executable_extensions; do
  13423. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13424. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13425. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13426. break 2
  13427. fi
  13428. done
  13429. done
  13430. IFS=$as_save_IFS
  13431. fi
  13432. fi
  13433. WINDRES=$ac_cv_prog_WINDRES
  13434. if test -n "$WINDRES"; then
  13435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13436. $as_echo "$WINDRES" >&6; }
  13437. else
  13438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13439. $as_echo "no" >&6; }
  13440. fi
  13441. fi
  13442. if test -z "$ac_cv_prog_WINDRES"; then
  13443. ac_ct_WINDRES=$WINDRES
  13444. # Extract the first word of "windres", so it can be a program name with args.
  13445. set dummy windres; ac_word=$2
  13446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13447. $as_echo_n "checking for $ac_word... " >&6; }
  13448. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13449. $as_echo_n "(cached) " >&6
  13450. else
  13451. if test -n "$ac_ct_WINDRES"; then
  13452. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13453. else
  13454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13455. for as_dir in $PATH
  13456. do
  13457. IFS=$as_save_IFS
  13458. test -z "$as_dir" && as_dir=.
  13459. for ac_exec_ext in '' $ac_executable_extensions; do
  13460. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13461. ac_cv_prog_ac_ct_WINDRES="windres"
  13462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13463. break 2
  13464. fi
  13465. done
  13466. done
  13467. IFS=$as_save_IFS
  13468. fi
  13469. fi
  13470. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13471. if test -n "$ac_ct_WINDRES"; then
  13472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13473. $as_echo "$ac_ct_WINDRES" >&6; }
  13474. else
  13475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13476. $as_echo "no" >&6; }
  13477. fi
  13478. if test "x$ac_ct_WINDRES" = x; then
  13479. WINDRES=":"
  13480. else
  13481. case $cross_compiling:$ac_tool_warned in
  13482. yes:)
  13483. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13484. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13485. ac_tool_warned=yes ;;
  13486. esac
  13487. WINDRES=$ac_ct_WINDRES
  13488. fi
  13489. else
  13490. WINDRES="$ac_cv_prog_WINDRES"
  13491. fi
  13492. case "$host" in
  13493. *-*-mingw32*)
  13494. # Except on msys, where make can't handle full pathnames (bug 1972)
  13495. ;;
  13496. *)
  13497. srcdir=`cd $srcdir && pwd`
  13498. ;;
  13499. esac
  13500. INCLUDE="-I$srcdir/include"
  13501. if test x$srcdir != x.; then
  13502. INCLUDE="-Iinclude $INCLUDE"
  13503. elif test -d .hg; then
  13504. as_fn_error $? "
  13505. *** When building from Mercurial you should configure and build in a
  13506. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13507. " "$LINENO" 5
  13508. fi
  13509. BASE_CFLAGS=""
  13510. BASE_LDFLAGS=""
  13511. case "$host" in
  13512. *-*-cygwin*)
  13513. # We build SDL on cygwin without the UNIX emulation layer
  13514. save_CFLAGS="$CFLAGS"
  13515. have_no_cygwin=no
  13516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13517. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13518. CFLAGS="$save_CFLAGS -mno-cygwin"
  13519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13520. /* end confdefs.h. */
  13521. int
  13522. main ()
  13523. {
  13524. ;
  13525. return 0;
  13526. }
  13527. _ACEOF
  13528. if ac_fn_c_try_compile "$LINENO"; then :
  13529. have_no_cygwin=yes
  13530. fi
  13531. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13533. $as_echo "$have_no_cygwin" >&6; }
  13534. CFLAGS="$save_CFLAGS"
  13535. if test x$have_no_cygwin = xyes; then
  13536. BASE_CFLAGS="-mno-cygwin"
  13537. BASE_LDFLAGS="-mno-cygwin"
  13538. fi
  13539. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13540. ;;
  13541. esac
  13542. # Uncomment the following line if you want to force SDL and applications
  13543. # built with it to be compiled for a particular architecture.
  13544. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13545. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13546. # The default optimization for SDL is -O3 (Bug #31)
  13547. if test "x$orig_CFLAGS" = x; then
  13548. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13549. fi
  13550. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13551. BUILD_LDFLAGS="$LDFLAGS"
  13552. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13553. ## These are common directories to find software packages
  13554. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13555. # if test -d $path/include; then
  13556. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13557. # fi
  13558. # if test -d $path/lib; then
  13559. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13560. # fi
  13561. #done
  13562. SDL_CFLAGS="$BASE_CFLAGS"
  13563. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13564. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13565. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13566. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13567. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13568. find_lib()
  13569. {
  13570. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13571. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13572. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13573. if test "$cross_compiling" = yes; then
  13574. host_lib_path=""
  13575. else
  13576. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13577. fi
  13578. for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do
  13579. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13580. if test x$lib != x; then
  13581. echo $lib
  13582. return
  13583. fi
  13584. done
  13585. }
  13586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13587. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13588. if ${ac_cv_c_const+:} false; then :
  13589. $as_echo_n "(cached) " >&6
  13590. else
  13591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13592. /* end confdefs.h. */
  13593. int
  13594. main ()
  13595. {
  13596. #ifndef __cplusplus
  13597. /* Ultrix mips cc rejects this sort of thing. */
  13598. typedef int charset[2];
  13599. const charset cs = { 0, 0 };
  13600. /* SunOS 4.1.1 cc rejects this. */
  13601. char const *const *pcpcc;
  13602. char **ppc;
  13603. /* NEC SVR4.0.2 mips cc rejects this. */
  13604. struct point {int x, y;};
  13605. static struct point const zero = {0,0};
  13606. /* AIX XL C 1.02.0.0 rejects this.
  13607. It does not let you subtract one const X* pointer from another in
  13608. an arm of an if-expression whose if-part is not a constant
  13609. expression */
  13610. const char *g = "string";
  13611. pcpcc = &g + (g ? g-g : 0);
  13612. /* HPUX 7.0 cc rejects these. */
  13613. ++pcpcc;
  13614. ppc = (char**) pcpcc;
  13615. pcpcc = (char const *const *) ppc;
  13616. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13617. char tx;
  13618. char *t = &tx;
  13619. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13620. *t++ = 0;
  13621. if (s) return 0;
  13622. }
  13623. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13624. int x[] = {25, 17};
  13625. const int *foo = &x[0];
  13626. ++foo;
  13627. }
  13628. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13629. typedef const int *iptr;
  13630. iptr p = 0;
  13631. ++p;
  13632. }
  13633. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13634. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13635. struct s { int j; const int *ap[3]; } bx;
  13636. struct s *b = &bx; b->j = 5;
  13637. }
  13638. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13639. const int foo = 10;
  13640. if (!foo) return 0;
  13641. }
  13642. return !cs[0] && !zero.x;
  13643. #endif
  13644. ;
  13645. return 0;
  13646. }
  13647. _ACEOF
  13648. if ac_fn_c_try_compile "$LINENO"; then :
  13649. ac_cv_c_const=yes
  13650. else
  13651. ac_cv_c_const=no
  13652. fi
  13653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13654. fi
  13655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13656. $as_echo "$ac_cv_c_const" >&6; }
  13657. if test $ac_cv_c_const = no; then
  13658. $as_echo "#define const /**/" >>confdefs.h
  13659. fi
  13660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13661. $as_echo_n "checking for inline... " >&6; }
  13662. if ${ac_cv_c_inline+:} false; then :
  13663. $as_echo_n "(cached) " >&6
  13664. else
  13665. ac_cv_c_inline=no
  13666. for ac_kw in inline __inline__ __inline; do
  13667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13668. /* end confdefs.h. */
  13669. #ifndef __cplusplus
  13670. typedef int foo_t;
  13671. static $ac_kw foo_t static_foo () {return 0; }
  13672. $ac_kw foo_t foo () {return 0; }
  13673. #endif
  13674. _ACEOF
  13675. if ac_fn_c_try_compile "$LINENO"; then :
  13676. ac_cv_c_inline=$ac_kw
  13677. fi
  13678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13679. test "$ac_cv_c_inline" != no && break
  13680. done
  13681. fi
  13682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13683. $as_echo "$ac_cv_c_inline" >&6; }
  13684. case $ac_cv_c_inline in
  13685. inline | yes) ;;
  13686. *)
  13687. case $ac_cv_c_inline in
  13688. no) ac_val=;;
  13689. *) ac_val=$ac_cv_c_inline;;
  13690. esac
  13691. cat >>confdefs.h <<_ACEOF
  13692. #ifndef __cplusplus
  13693. #define inline $ac_val
  13694. #endif
  13695. _ACEOF
  13696. ;;
  13697. esac
  13698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13699. $as_echo_n "checking for working volatile... " >&6; }
  13700. if ${ac_cv_c_volatile+:} false; then :
  13701. $as_echo_n "(cached) " >&6
  13702. else
  13703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13704. /* end confdefs.h. */
  13705. int
  13706. main ()
  13707. {
  13708. volatile int x;
  13709. int * volatile y = (int *) 0;
  13710. return !x && !y;
  13711. ;
  13712. return 0;
  13713. }
  13714. _ACEOF
  13715. if ac_fn_c_try_compile "$LINENO"; then :
  13716. ac_cv_c_volatile=yes
  13717. else
  13718. ac_cv_c_volatile=no
  13719. fi
  13720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13721. fi
  13722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13723. $as_echo "$ac_cv_c_volatile" >&6; }
  13724. if test $ac_cv_c_volatile = no; then
  13725. $as_echo "#define volatile /**/" >>confdefs.h
  13726. fi
  13727. # Check whether --enable-assertions was given.
  13728. if test "${enable_assertions+set}" = set; then :
  13729. enableval=$enable_assertions;
  13730. else
  13731. enable_assertions=auto
  13732. fi
  13733. case "$enable_assertions" in
  13734. auto) # Use optimization settings to determine assertion level
  13735. ;;
  13736. disabled)
  13737. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13738. ;;
  13739. release)
  13740. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13741. ;;
  13742. enabled)
  13743. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13744. ;;
  13745. paranoid)
  13746. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13747. ;;
  13748. *)
  13749. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13750. ;;
  13751. esac
  13752. # Check whether --enable-dependency-tracking was given.
  13753. if test "${enable_dependency_tracking+set}" = set; then :
  13754. enableval=$enable_dependency_tracking;
  13755. else
  13756. enable_dependency_tracking=yes
  13757. fi
  13758. if test x$enable_dependency_tracking = xyes; then
  13759. have_gcc_mmd_mt=no
  13760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13761. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13763. /* end confdefs.h. */
  13764. #if !defined(__GNUC__) || __GNUC__ < 3
  13765. #error Dependency tracking requires GCC 3.0 or newer
  13766. #endif
  13767. int
  13768. main ()
  13769. {
  13770. ;
  13771. return 0;
  13772. }
  13773. _ACEOF
  13774. if ac_fn_c_try_compile "$LINENO"; then :
  13775. have_gcc_mmd_mt=yes
  13776. fi
  13777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13779. $as_echo "$have_gcc_mmd_mt" >&6; }
  13780. if test x$have_gcc_mmd_mt = xyes; then
  13781. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13782. fi
  13783. fi
  13784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13785. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13786. have_no_undefined=no
  13787. case "$host" in
  13788. *-*-openbsd*)
  13789. ;;
  13790. *)
  13791. save_LDFLAGS="$LDFLAGS"
  13792. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13794. /* end confdefs.h. */
  13795. int
  13796. main ()
  13797. {
  13798. ;
  13799. return 0;
  13800. }
  13801. _ACEOF
  13802. if ac_fn_c_try_link "$LINENO"; then :
  13803. have_no_undefined=yes
  13804. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13805. fi
  13806. rm -f core conftest.err conftest.$ac_objext \
  13807. conftest$ac_exeext conftest.$ac_ext
  13808. LDFLAGS="$save_LDFLAGS"
  13809. ;;
  13810. esac
  13811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13812. $as_echo "$have_no_undefined" >&6; }
  13813. # Check whether --enable-libc was given.
  13814. if test "${enable_libc+set}" = set; then :
  13815. enableval=$enable_libc;
  13816. else
  13817. enable_libc=yes
  13818. fi
  13819. if test x$enable_libc = xyes; then
  13820. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13822. $as_echo_n "checking for ANSI C header files... " >&6; }
  13823. if ${ac_cv_header_stdc+:} false; then :
  13824. $as_echo_n "(cached) " >&6
  13825. else
  13826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13827. /* end confdefs.h. */
  13828. #include <stdlib.h>
  13829. #include <stdarg.h>
  13830. #include <string.h>
  13831. #include <float.h>
  13832. int
  13833. main ()
  13834. {
  13835. ;
  13836. return 0;
  13837. }
  13838. _ACEOF
  13839. if ac_fn_c_try_compile "$LINENO"; then :
  13840. ac_cv_header_stdc=yes
  13841. else
  13842. ac_cv_header_stdc=no
  13843. fi
  13844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13845. if test $ac_cv_header_stdc = yes; then
  13846. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13848. /* end confdefs.h. */
  13849. #include <string.h>
  13850. _ACEOF
  13851. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13852. $EGREP "memchr" >/dev/null 2>&1; then :
  13853. else
  13854. ac_cv_header_stdc=no
  13855. fi
  13856. rm -f conftest*
  13857. fi
  13858. if test $ac_cv_header_stdc = yes; then
  13859. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13861. /* end confdefs.h. */
  13862. #include <stdlib.h>
  13863. _ACEOF
  13864. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13865. $EGREP "free" >/dev/null 2>&1; then :
  13866. else
  13867. ac_cv_header_stdc=no
  13868. fi
  13869. rm -f conftest*
  13870. fi
  13871. if test $ac_cv_header_stdc = yes; then
  13872. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13873. if test "$cross_compiling" = yes; then :
  13874. :
  13875. else
  13876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13877. /* end confdefs.h. */
  13878. #include <ctype.h>
  13879. #include <stdlib.h>
  13880. #if ((' ' & 0x0FF) == 0x020)
  13881. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13882. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13883. #else
  13884. # define ISLOWER(c) \
  13885. (('a' <= (c) && (c) <= 'i') \
  13886. || ('j' <= (c) && (c) <= 'r') \
  13887. || ('s' <= (c) && (c) <= 'z'))
  13888. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13889. #endif
  13890. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13891. int
  13892. main ()
  13893. {
  13894. int i;
  13895. for (i = 0; i < 256; i++)
  13896. if (XOR (islower (i), ISLOWER (i))
  13897. || toupper (i) != TOUPPER (i))
  13898. return 2;
  13899. return 0;
  13900. }
  13901. _ACEOF
  13902. if ac_fn_c_try_run "$LINENO"; then :
  13903. else
  13904. ac_cv_header_stdc=no
  13905. fi
  13906. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13907. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13908. fi
  13909. fi
  13910. fi
  13911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13912. $as_echo "$ac_cv_header_stdc" >&6; }
  13913. if test $ac_cv_header_stdc = yes; then
  13914. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13915. fi
  13916. 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
  13917. do :
  13918. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13919. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13920. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13921. cat >>confdefs.h <<_ACEOF
  13922. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13923. _ACEOF
  13924. fi
  13925. done
  13926. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13927. if test "x$ac_cv_type_size_t" = xyes; then :
  13928. else
  13929. cat >>confdefs.h <<_ACEOF
  13930. #define size_t unsigned int
  13931. _ACEOF
  13932. fi
  13933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13934. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13935. if ${ac_cv_define_M_PI+:} false; then :
  13936. $as_echo_n "(cached) " >&6
  13937. else
  13938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13939. /* end confdefs.h. */
  13940. #include <math.h>
  13941. #ifdef M_PI
  13942. YES_IS_DEFINED
  13943. #endif
  13944. _ACEOF
  13945. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13946. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13947. ac_cv_define_M_PI=yes
  13948. else
  13949. ac_cv_define_M_PI=no
  13950. fi
  13951. rm -f conftest*
  13952. fi
  13953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  13954. $as_echo "$ac_cv_define_M_PI" >&6; }
  13955. if test "$ac_cv_define_M_PI" = "yes" ; then
  13956. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  13957. fi
  13958. case "$host" in
  13959. *-*-cygwin* | *-*-mingw32*)
  13960. ;;
  13961. *)
  13962. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13963. # for constant arguments. Useless!
  13964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13965. $as_echo_n "checking for working alloca.h... " >&6; }
  13966. if ${ac_cv_working_alloca_h+:} false; then :
  13967. $as_echo_n "(cached) " >&6
  13968. else
  13969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13970. /* end confdefs.h. */
  13971. #include <alloca.h>
  13972. int
  13973. main ()
  13974. {
  13975. char *p = (char *) alloca (2 * sizeof (int));
  13976. if (p) return 0;
  13977. ;
  13978. return 0;
  13979. }
  13980. _ACEOF
  13981. if ac_fn_c_try_link "$LINENO"; then :
  13982. ac_cv_working_alloca_h=yes
  13983. else
  13984. ac_cv_working_alloca_h=no
  13985. fi
  13986. rm -f core conftest.err conftest.$ac_objext \
  13987. conftest$ac_exeext conftest.$ac_ext
  13988. fi
  13989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  13990. $as_echo "$ac_cv_working_alloca_h" >&6; }
  13991. if test $ac_cv_working_alloca_h = yes; then
  13992. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  13993. fi
  13994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  13995. $as_echo_n "checking for alloca... " >&6; }
  13996. if ${ac_cv_func_alloca_works+:} false; then :
  13997. $as_echo_n "(cached) " >&6
  13998. else
  13999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14000. /* end confdefs.h. */
  14001. #ifdef __GNUC__
  14002. # define alloca __builtin_alloca
  14003. #else
  14004. # ifdef _MSC_VER
  14005. # include <malloc.h>
  14006. # define alloca _alloca
  14007. # else
  14008. # ifdef HAVE_ALLOCA_H
  14009. # include <alloca.h>
  14010. # else
  14011. # ifdef _AIX
  14012. #pragma alloca
  14013. # else
  14014. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14015. void *alloca (size_t);
  14016. # endif
  14017. # endif
  14018. # endif
  14019. # endif
  14020. #endif
  14021. int
  14022. main ()
  14023. {
  14024. char *p = (char *) alloca (1);
  14025. if (p) return 0;
  14026. ;
  14027. return 0;
  14028. }
  14029. _ACEOF
  14030. if ac_fn_c_try_link "$LINENO"; then :
  14031. ac_cv_func_alloca_works=yes
  14032. else
  14033. ac_cv_func_alloca_works=no
  14034. fi
  14035. rm -f core conftest.err conftest.$ac_objext \
  14036. conftest$ac_exeext conftest.$ac_ext
  14037. fi
  14038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14039. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14040. if test $ac_cv_func_alloca_works = yes; then
  14041. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14042. else
  14043. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14044. # that cause trouble. Some versions do not even contain alloca or
  14045. # contain a buggy version. If you still want to use their alloca,
  14046. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14047. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14048. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14050. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14051. if ${ac_cv_os_cray+:} false; then :
  14052. $as_echo_n "(cached) " >&6
  14053. else
  14054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14055. /* end confdefs.h. */
  14056. #if defined CRAY && ! defined CRAY2
  14057. webecray
  14058. #else
  14059. wenotbecray
  14060. #endif
  14061. _ACEOF
  14062. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14063. $EGREP "webecray" >/dev/null 2>&1; then :
  14064. ac_cv_os_cray=yes
  14065. else
  14066. ac_cv_os_cray=no
  14067. fi
  14068. rm -f conftest*
  14069. fi
  14070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14071. $as_echo "$ac_cv_os_cray" >&6; }
  14072. if test $ac_cv_os_cray = yes; then
  14073. for ac_func in _getb67 GETB67 getb67; do
  14074. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14075. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14076. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14077. cat >>confdefs.h <<_ACEOF
  14078. #define CRAY_STACKSEG_END $ac_func
  14079. _ACEOF
  14080. break
  14081. fi
  14082. done
  14083. fi
  14084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14085. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14086. if ${ac_cv_c_stack_direction+:} false; then :
  14087. $as_echo_n "(cached) " >&6
  14088. else
  14089. if test "$cross_compiling" = yes; then :
  14090. ac_cv_c_stack_direction=0
  14091. else
  14092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14093. /* end confdefs.h. */
  14094. $ac_includes_default
  14095. int
  14096. find_stack_direction (int *addr, int depth)
  14097. {
  14098. int dir, dummy = 0;
  14099. if (! addr)
  14100. addr = &dummy;
  14101. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14102. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14103. return dir + dummy;
  14104. }
  14105. int
  14106. main (int argc, char **argv)
  14107. {
  14108. return find_stack_direction (0, argc + !argv + 20) < 0;
  14109. }
  14110. _ACEOF
  14111. if ac_fn_c_try_run "$LINENO"; then :
  14112. ac_cv_c_stack_direction=1
  14113. else
  14114. ac_cv_c_stack_direction=-1
  14115. fi
  14116. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14117. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14118. fi
  14119. fi
  14120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14121. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14122. cat >>confdefs.h <<_ACEOF
  14123. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14124. _ACEOF
  14125. fi
  14126. ;;
  14127. esac
  14128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14129. $as_echo_n "checking for working memcmp... " >&6; }
  14130. if ${ac_cv_func_memcmp_working+:} false; then :
  14131. $as_echo_n "(cached) " >&6
  14132. else
  14133. if test "$cross_compiling" = yes; then :
  14134. ac_cv_func_memcmp_working=no
  14135. else
  14136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14137. /* end confdefs.h. */
  14138. $ac_includes_default
  14139. int
  14140. main ()
  14141. {
  14142. /* Some versions of memcmp are not 8-bit clean. */
  14143. char c0 = '\100', c1 = '\200', c2 = '\201';
  14144. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14145. return 1;
  14146. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14147. or more and with at least one buffer not starting on a 4-byte boundary.
  14148. William Lewis provided this test program. */
  14149. {
  14150. char foo[21];
  14151. char bar[21];
  14152. int i;
  14153. for (i = 0; i < 4; i++)
  14154. {
  14155. char *a = foo + i;
  14156. char *b = bar + i;
  14157. strcpy (a, "--------01111111");
  14158. strcpy (b, "--------10000000");
  14159. if (memcmp (a, b, 16) >= 0)
  14160. return 1;
  14161. }
  14162. return 0;
  14163. }
  14164. ;
  14165. return 0;
  14166. }
  14167. _ACEOF
  14168. if ac_fn_c_try_run "$LINENO"; then :
  14169. ac_cv_func_memcmp_working=yes
  14170. else
  14171. ac_cv_func_memcmp_working=no
  14172. fi
  14173. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14174. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14175. fi
  14176. fi
  14177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14178. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14179. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14180. *" memcmp.$ac_objext "* ) ;;
  14181. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14182. ;;
  14183. esac
  14184. if test x$ac_cv_func_memcmp_working = xyes; then
  14185. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14186. fi
  14187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14188. $as_echo_n "checking for working strtod... " >&6; }
  14189. if ${ac_cv_func_strtod+:} false; then :
  14190. $as_echo_n "(cached) " >&6
  14191. else
  14192. if test "$cross_compiling" = yes; then :
  14193. ac_cv_func_strtod=no
  14194. else
  14195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14196. /* end confdefs.h. */
  14197. $ac_includes_default
  14198. #ifndef strtod
  14199. double strtod ();
  14200. #endif
  14201. int
  14202. main()
  14203. {
  14204. {
  14205. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14206. char *string = " +69";
  14207. char *term;
  14208. double value;
  14209. value = strtod (string, &term);
  14210. if (value != 69 || term != (string + 4))
  14211. return 1;
  14212. }
  14213. {
  14214. /* Under Solaris 2.4, strtod returns the wrong value for the
  14215. terminating character under some conditions. */
  14216. char *string = "NaN";
  14217. char *term;
  14218. strtod (string, &term);
  14219. if (term != string && *(term - 1) == 0)
  14220. return 1;
  14221. }
  14222. return 0;
  14223. }
  14224. _ACEOF
  14225. if ac_fn_c_try_run "$LINENO"; then :
  14226. ac_cv_func_strtod=yes
  14227. else
  14228. ac_cv_func_strtod=no
  14229. fi
  14230. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14231. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14232. fi
  14233. fi
  14234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14235. $as_echo "$ac_cv_func_strtod" >&6; }
  14236. if test $ac_cv_func_strtod = no; then
  14237. case " $LIBOBJS " in
  14238. *" strtod.$ac_objext "* ) ;;
  14239. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14240. ;;
  14241. esac
  14242. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14243. if test "x$ac_cv_func_pow" = xyes; then :
  14244. fi
  14245. if test $ac_cv_func_pow = no; then
  14246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14247. $as_echo_n "checking for pow in -lm... " >&6; }
  14248. if ${ac_cv_lib_m_pow+:} false; then :
  14249. $as_echo_n "(cached) " >&6
  14250. else
  14251. ac_check_lib_save_LIBS=$LIBS
  14252. LIBS="-lm $LIBS"
  14253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14254. /* end confdefs.h. */
  14255. /* Override any GCC internal prototype to avoid an error.
  14256. Use char because int might match the return type of a GCC
  14257. builtin and then its argument prototype would still apply. */
  14258. #ifdef __cplusplus
  14259. extern "C"
  14260. #endif
  14261. char pow ();
  14262. int
  14263. main ()
  14264. {
  14265. return pow ();
  14266. ;
  14267. return 0;
  14268. }
  14269. _ACEOF
  14270. if ac_fn_c_try_link "$LINENO"; then :
  14271. ac_cv_lib_m_pow=yes
  14272. else
  14273. ac_cv_lib_m_pow=no
  14274. fi
  14275. rm -f core conftest.err conftest.$ac_objext \
  14276. conftest$ac_exeext conftest.$ac_ext
  14277. LIBS=$ac_check_lib_save_LIBS
  14278. fi
  14279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14280. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14281. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14282. POW_LIB=-lm
  14283. else
  14284. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14285. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14286. fi
  14287. fi
  14288. fi
  14289. if test x$ac_cv_func_strtod = xyes; then
  14290. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14291. fi
  14292. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14293. if test "x$ac_cv_func_mprotect" = xyes; then :
  14294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14295. /* end confdefs.h. */
  14296. #include <sys/types.h>
  14297. #include <sys/mman.h>
  14298. int
  14299. main ()
  14300. {
  14301. ;
  14302. return 0;
  14303. }
  14304. _ACEOF
  14305. if ac_fn_c_try_compile "$LINENO"; then :
  14306. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14307. fi
  14308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14309. fi
  14310. 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
  14311. do :
  14312. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14313. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14314. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14315. cat >>confdefs.h <<_ACEOF
  14316. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14317. _ACEOF
  14318. fi
  14319. done
  14320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14321. $as_echo_n "checking for pow in -lm... " >&6; }
  14322. if ${ac_cv_lib_m_pow+:} false; then :
  14323. $as_echo_n "(cached) " >&6
  14324. else
  14325. ac_check_lib_save_LIBS=$LIBS
  14326. LIBS="-lm $LIBS"
  14327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14328. /* end confdefs.h. */
  14329. /* Override any GCC internal prototype to avoid an error.
  14330. Use char because int might match the return type of a GCC
  14331. builtin and then its argument prototype would still apply. */
  14332. #ifdef __cplusplus
  14333. extern "C"
  14334. #endif
  14335. char pow ();
  14336. int
  14337. main ()
  14338. {
  14339. return pow ();
  14340. ;
  14341. return 0;
  14342. }
  14343. _ACEOF
  14344. if ac_fn_c_try_link "$LINENO"; then :
  14345. ac_cv_lib_m_pow=yes
  14346. else
  14347. ac_cv_lib_m_pow=no
  14348. fi
  14349. rm -f core conftest.err conftest.$ac_objext \
  14350. conftest$ac_exeext conftest.$ac_ext
  14351. LIBS=$ac_check_lib_save_LIBS
  14352. fi
  14353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14354. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14355. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14356. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14357. fi
  14358. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt
  14359. do :
  14360. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14361. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14362. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14363. cat >>confdefs.h <<_ACEOF
  14364. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14365. _ACEOF
  14366. fi
  14367. done
  14368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14369. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14370. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14371. $as_echo_n "(cached) " >&6
  14372. else
  14373. ac_check_lib_save_LIBS=$LIBS
  14374. LIBS="-liconv $LIBS"
  14375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14376. /* end confdefs.h. */
  14377. /* Override any GCC internal prototype to avoid an error.
  14378. Use char because int might match the return type of a GCC
  14379. builtin and then its argument prototype would still apply. */
  14380. #ifdef __cplusplus
  14381. extern "C"
  14382. #endif
  14383. char iconv_open ();
  14384. int
  14385. main ()
  14386. {
  14387. return iconv_open ();
  14388. ;
  14389. return 0;
  14390. }
  14391. _ACEOF
  14392. if ac_fn_c_try_link "$LINENO"; then :
  14393. ac_cv_lib_iconv_iconv_open=yes
  14394. else
  14395. ac_cv_lib_iconv_iconv_open=no
  14396. fi
  14397. rm -f core conftest.err conftest.$ac_objext \
  14398. conftest$ac_exeext conftest.$ac_ext
  14399. LIBS=$ac_check_lib_save_LIBS
  14400. fi
  14401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14402. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14403. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14404. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14405. fi
  14406. for ac_func in iconv
  14407. do :
  14408. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14409. if test "x$ac_cv_func_iconv" = xyes; then :
  14410. cat >>confdefs.h <<_ACEOF
  14411. #define HAVE_ICONV 1
  14412. _ACEOF
  14413. fi
  14414. done
  14415. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14416. "
  14417. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14418. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14419. fi
  14420. fi
  14421. # Check whether --enable-gcc-atomics was given.
  14422. if test "${enable_gcc_atomics+set}" = set; then :
  14423. enableval=$enable_gcc_atomics;
  14424. else
  14425. enable_gcc_atomics=yes
  14426. fi
  14427. if test x$enable_gcc_atomics = xyes; then
  14428. have_gcc_atomics=no
  14429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14430. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14432. /* end confdefs.h. */
  14433. int
  14434. main ()
  14435. {
  14436. int a;
  14437. void *x, *y, *z;
  14438. __sync_lock_test_and_set(&a, 4);
  14439. __sync_lock_test_and_set(&x, y);
  14440. __sync_fetch_and_add(&a, 1);
  14441. __sync_bool_compare_and_swap(&a, 5, 10);
  14442. __sync_bool_compare_and_swap(&x, y, z);
  14443. ;
  14444. return 0;
  14445. }
  14446. _ACEOF
  14447. if ac_fn_c_try_link "$LINENO"; then :
  14448. have_gcc_atomics=yes
  14449. fi
  14450. rm -f core conftest.err conftest.$ac_objext \
  14451. conftest$ac_exeext conftest.$ac_ext
  14452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14453. $as_echo "$have_gcc_atomics" >&6; }
  14454. if test x$have_gcc_atomics = xyes; then
  14455. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14456. else
  14457. # See if we have the minimum operation needed for GCC atomics
  14458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14459. /* end confdefs.h. */
  14460. int
  14461. main ()
  14462. {
  14463. int a;
  14464. __sync_lock_test_and_set(&a, 1);
  14465. __sync_lock_release(&a);
  14466. ;
  14467. return 0;
  14468. }
  14469. _ACEOF
  14470. if ac_fn_c_try_link "$LINENO"; then :
  14471. have_gcc_sync_lock_test_and_set=yes
  14472. fi
  14473. rm -f core conftest.err conftest.$ac_objext \
  14474. conftest$ac_exeext conftest.$ac_ext
  14475. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14476. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14477. fi
  14478. fi
  14479. fi
  14480. # Standard C sources
  14481. SOURCES="$SOURCES $srcdir/src/*.c"
  14482. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14483. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14484. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14485. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14486. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14487. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14488. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14489. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14490. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14491. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14492. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14493. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14494. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14495. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14496. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14497. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14498. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14499. # Check whether --enable-atomic was given.
  14500. if test "${enable_atomic+set}" = set; then :
  14501. enableval=$enable_atomic;
  14502. else
  14503. enable_atomic=yes
  14504. fi
  14505. if test x$enable_atomic != xyes; then
  14506. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14507. else
  14508. SUMMARY_modules="${SUMMARY_modules} atomic"
  14509. fi
  14510. # Check whether --enable-audio was given.
  14511. if test "${enable_audio+set}" = set; then :
  14512. enableval=$enable_audio;
  14513. else
  14514. enable_audio=yes
  14515. fi
  14516. if test x$enable_audio != xyes; then
  14517. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14518. else
  14519. SUMMARY_modules="${SUMMARY_modules} audio"
  14520. fi
  14521. # Check whether --enable-video was given.
  14522. if test "${enable_video+set}" = set; then :
  14523. enableval=$enable_video;
  14524. else
  14525. enable_video=yes
  14526. fi
  14527. if test x$enable_video != xyes; then
  14528. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14529. else
  14530. SUMMARY_modules="${SUMMARY_modules} video"
  14531. fi
  14532. # Check whether --enable-render was given.
  14533. if test "${enable_render+set}" = set; then :
  14534. enableval=$enable_render;
  14535. else
  14536. enable_render=yes
  14537. fi
  14538. if test x$enable_render != xyes; then
  14539. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14540. else
  14541. SUMMARY_modules="${SUMMARY_modules} render"
  14542. fi
  14543. # Check whether --enable-events was given.
  14544. if test "${enable_events+set}" = set; then :
  14545. enableval=$enable_events;
  14546. else
  14547. enable_events=yes
  14548. fi
  14549. if test x$enable_events != xyes; then
  14550. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14551. else
  14552. SUMMARY_modules="${SUMMARY_modules} events"
  14553. fi
  14554. # Check whether --enable-joystick was given.
  14555. if test "${enable_joystick+set}" = set; then :
  14556. enableval=$enable_joystick;
  14557. else
  14558. enable_joystick=yes
  14559. fi
  14560. if test x$enable_joystick != xyes; then
  14561. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14562. else
  14563. SUMMARY_modules="${SUMMARY_modules} joystick"
  14564. fi
  14565. # Check whether --enable-haptic was given.
  14566. if test "${enable_haptic+set}" = set; then :
  14567. enableval=$enable_haptic;
  14568. else
  14569. enable_haptic=yes
  14570. fi
  14571. if test x$enable_haptic != xyes; then
  14572. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14573. else
  14574. SUMMARY_modules="${SUMMARY_modules} haptic"
  14575. fi
  14576. # Check whether --enable-power was given.
  14577. if test "${enable_power+set}" = set; then :
  14578. enableval=$enable_power;
  14579. else
  14580. enable_power=yes
  14581. fi
  14582. if test x$enable_power != xyes; then
  14583. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14584. else
  14585. SUMMARY_modules="${SUMMARY_modules} power"
  14586. fi
  14587. # Check whether --enable-filesystem was given.
  14588. if test "${enable_filesystem+set}" = set; then :
  14589. enableval=$enable_filesystem;
  14590. else
  14591. enable_filesystem=yes
  14592. fi
  14593. if test x$enable_filesystem != xyes; then
  14594. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14595. else
  14596. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14597. fi
  14598. # Check whether --enable-threads was given.
  14599. if test "${enable_threads+set}" = set; then :
  14600. enableval=$enable_threads;
  14601. else
  14602. enable_threads=yes
  14603. fi
  14604. if test x$enable_threads != xyes; then
  14605. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14606. else
  14607. SUMMARY_modules="${SUMMARY_modules} threads"
  14608. fi
  14609. # Check whether --enable-timers was given.
  14610. if test "${enable_timers+set}" = set; then :
  14611. enableval=$enable_timers;
  14612. else
  14613. enable_timers=yes
  14614. fi
  14615. if test x$enable_timers != xyes; then
  14616. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14617. else
  14618. SUMMARY_modules="${SUMMARY_modules} timers"
  14619. fi
  14620. # Check whether --enable-file was given.
  14621. if test "${enable_file+set}" = set; then :
  14622. enableval=$enable_file;
  14623. else
  14624. enable_file=yes
  14625. fi
  14626. if test x$enable_file != xyes; then
  14627. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14628. else
  14629. SUMMARY_modules="${SUMMARY_modules} file"
  14630. fi
  14631. # Check whether --enable-loadso was given.
  14632. if test "${enable_loadso+set}" = set; then :
  14633. enableval=$enable_loadso;
  14634. else
  14635. enable_loadso=yes
  14636. fi
  14637. if test x$enable_loadso != xyes; then
  14638. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14639. else
  14640. SUMMARY_modules="${SUMMARY_modules} loadso"
  14641. fi
  14642. # Check whether --enable-cpuinfo was given.
  14643. if test "${enable_cpuinfo+set}" = set; then :
  14644. enableval=$enable_cpuinfo;
  14645. else
  14646. enable_cpuinfo=yes
  14647. fi
  14648. if test x$enable_cpuinfo != xyes; then
  14649. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14650. else
  14651. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14652. fi
  14653. # Check whether --enable-assembly was given.
  14654. if test "${enable_assembly+set}" = set; then :
  14655. enableval=$enable_assembly;
  14656. else
  14657. enable_assembly=yes
  14658. fi
  14659. if test x$enable_assembly = xyes; then
  14660. SUMMARY_modules="${SUMMARY_modules} assembly"
  14661. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14662. # Make sure that we don't generate floating point code that would
  14663. # cause illegal instruction exceptions on older processors
  14664. case "$host" in
  14665. *-*-darwin*)
  14666. # Don't need to worry about Apple hardware, it's all SSE capable
  14667. default_ssemath=yes
  14668. ;;
  14669. *64-*-*)
  14670. # x86 64-bit architectures all have SSE instructions
  14671. default_ssemath=yes
  14672. ;;
  14673. *)
  14674. default_ssemath=no
  14675. ;;
  14676. esac
  14677. # Check whether --enable-ssemath was given.
  14678. if test "${enable_ssemath+set}" = set; then :
  14679. enableval=$enable_ssemath;
  14680. else
  14681. enable_ssemath=$default_ssemath
  14682. fi
  14683. if test x$enable_ssemath = xno; then
  14684. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
  14685. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14686. fi
  14687. fi
  14688. # Check whether --enable-mmx was given.
  14689. if test "${enable_mmx+set}" = set; then :
  14690. enableval=$enable_mmx;
  14691. else
  14692. enable_mmx=yes
  14693. fi
  14694. if test x$enable_mmx = xyes; then
  14695. save_CFLAGS="$CFLAGS"
  14696. have_gcc_mmx=no
  14697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14698. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14699. mmx_CFLAGS="-mmmx"
  14700. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14702. /* end confdefs.h. */
  14703. #ifdef __MINGW32__
  14704. #include <_mingw.h>
  14705. #ifdef __MINGW64_VERSION_MAJOR
  14706. #include <intrin.h>
  14707. #else
  14708. #include <mmintrin.h>
  14709. #endif
  14710. #else
  14711. #include <mmintrin.h>
  14712. #endif
  14713. #ifndef __MMX__
  14714. #error Assembler CPP flag not enabled
  14715. #endif
  14716. int
  14717. main ()
  14718. {
  14719. ;
  14720. return 0;
  14721. }
  14722. _ACEOF
  14723. if ac_fn_c_try_compile "$LINENO"; then :
  14724. have_gcc_mmx=yes
  14725. fi
  14726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14728. $as_echo "$have_gcc_mmx" >&6; }
  14729. CFLAGS="$save_CFLAGS"
  14730. if test x$have_gcc_mmx = xyes; then
  14731. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14732. SUMMARY_math="${SUMMARY_math} mmx"
  14733. fi
  14734. fi
  14735. # Check whether --enable-3dnow was given.
  14736. if test "${enable_3dnow+set}" = set; then :
  14737. enableval=$enable_3dnow;
  14738. else
  14739. enable_3dnow=yes
  14740. fi
  14741. if test x$enable_3dnow = xyes; then
  14742. save_CFLAGS="$CFLAGS"
  14743. have_gcc_3dnow=no
  14744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14745. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14746. amd3dnow_CFLAGS="-m3dnow"
  14747. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14749. /* end confdefs.h. */
  14750. #include <mm3dnow.h>
  14751. #ifndef __3dNOW__
  14752. #error Assembler CPP flag not enabled
  14753. #endif
  14754. int
  14755. main ()
  14756. {
  14757. void *p = 0;
  14758. _m_prefetch(p);
  14759. ;
  14760. return 0;
  14761. }
  14762. _ACEOF
  14763. if ac_fn_c_try_link "$LINENO"; then :
  14764. have_gcc_3dnow=yes
  14765. fi
  14766. rm -f core conftest.err conftest.$ac_objext \
  14767. conftest$ac_exeext conftest.$ac_ext
  14768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14769. $as_echo "$have_gcc_3dnow" >&6; }
  14770. CFLAGS="$save_CFLAGS"
  14771. if test x$have_gcc_3dnow = xyes; then
  14772. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14773. SUMMARY_math="${SUMMARY_math} 3dnow"
  14774. fi
  14775. fi
  14776. # Check whether --enable-sse was given.
  14777. if test "${enable_sse+set}" = set; then :
  14778. enableval=$enable_sse;
  14779. else
  14780. enable_sse=yes
  14781. fi
  14782. if test x$enable_sse = xyes; then
  14783. save_CFLAGS="$CFLAGS"
  14784. have_gcc_sse=no
  14785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14786. $as_echo_n "checking for GCC -msse option... " >&6; }
  14787. sse_CFLAGS="-msse"
  14788. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14790. /* end confdefs.h. */
  14791. #ifdef __MINGW32__
  14792. #include <_mingw.h>
  14793. #ifdef __MINGW64_VERSION_MAJOR
  14794. #include <intrin.h>
  14795. #else
  14796. #include <xmmintrin.h>
  14797. #endif
  14798. #else
  14799. #include <xmmintrin.h>
  14800. #endif
  14801. #ifndef __SSE__
  14802. #error Assembler CPP flag not enabled
  14803. #endif
  14804. int
  14805. main ()
  14806. {
  14807. ;
  14808. return 0;
  14809. }
  14810. _ACEOF
  14811. if ac_fn_c_try_compile "$LINENO"; then :
  14812. have_gcc_sse=yes
  14813. fi
  14814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14816. $as_echo "$have_gcc_sse" >&6; }
  14817. CFLAGS="$save_CFLAGS"
  14818. if test x$have_gcc_sse = xyes; then
  14819. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14820. SUMMARY_math="${SUMMARY_math} sse"
  14821. fi
  14822. fi
  14823. # Check whether --enable-sse2 was given.
  14824. if test "${enable_sse2+set}" = set; then :
  14825. enableval=$enable_sse2;
  14826. else
  14827. enable_sse2=$default_ssemath
  14828. fi
  14829. if test x$enable_sse2 = xyes; then
  14830. save_CFLAGS="$CFLAGS"
  14831. have_gcc_sse2=no
  14832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14833. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14834. sse2_CFLAGS="-msse2"
  14835. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14837. /* end confdefs.h. */
  14838. #ifdef __MINGW32__
  14839. #include <_mingw.h>
  14840. #ifdef __MINGW64_VERSION_MAJOR
  14841. #include <intrin.h>
  14842. #else
  14843. #include <emmintrin.h>
  14844. #endif
  14845. #else
  14846. #include <emmintrin.h>
  14847. #endif
  14848. #ifndef __SSE2__
  14849. #error Assembler CPP flag not enabled
  14850. #endif
  14851. int
  14852. main ()
  14853. {
  14854. ;
  14855. return 0;
  14856. }
  14857. _ACEOF
  14858. if ac_fn_c_try_compile "$LINENO"; then :
  14859. have_gcc_sse2=yes
  14860. fi
  14861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14863. $as_echo "$have_gcc_sse2" >&6; }
  14864. CFLAGS="$save_CFLAGS"
  14865. if test x$have_gcc_sse2 = xyes; then
  14866. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14867. SUMMARY_math="${SUMMARY_math} sse2"
  14868. fi
  14869. fi
  14870. # Check whether --enable-altivec was given.
  14871. if test "${enable_altivec+set}" = set; then :
  14872. enableval=$enable_altivec;
  14873. else
  14874. enable_altivec=yes
  14875. fi
  14876. if test x$enable_altivec = xyes; then
  14877. save_CFLAGS="$CFLAGS"
  14878. have_gcc_altivec=no
  14879. have_altivec_h_hdr=no
  14880. altivec_CFLAGS="-maltivec"
  14881. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14883. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14885. /* end confdefs.h. */
  14886. #include <altivec.h>
  14887. vector unsigned int vzero() {
  14888. return vec_splat_u32(0);
  14889. }
  14890. int
  14891. main ()
  14892. {
  14893. ;
  14894. return 0;
  14895. }
  14896. _ACEOF
  14897. if ac_fn_c_try_compile "$LINENO"; then :
  14898. have_gcc_altivec=yes
  14899. have_altivec_h_hdr=yes
  14900. fi
  14901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14903. $as_echo "$have_gcc_altivec" >&6; }
  14904. if test x$have_gcc_altivec = xno; then
  14905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  14906. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  14907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14908. /* end confdefs.h. */
  14909. vector unsigned int vzero() {
  14910. return vec_splat_u32(0);
  14911. }
  14912. int
  14913. main ()
  14914. {
  14915. ;
  14916. return 0;
  14917. }
  14918. _ACEOF
  14919. if ac_fn_c_try_compile "$LINENO"; then :
  14920. have_gcc_altivec=yes
  14921. fi
  14922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14924. $as_echo "$have_gcc_altivec" >&6; }
  14925. fi
  14926. if test x$have_gcc_altivec = xno; then
  14927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  14928. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  14929. altivec_CFLAGS="-faltivec"
  14930. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14932. /* end confdefs.h. */
  14933. #include <altivec.h>
  14934. vector unsigned int vzero() {
  14935. return vec_splat_u32(0);
  14936. }
  14937. int
  14938. main ()
  14939. {
  14940. ;
  14941. return 0;
  14942. }
  14943. _ACEOF
  14944. if ac_fn_c_try_compile "$LINENO"; then :
  14945. have_gcc_altivec=yes
  14946. have_altivec_h_hdr=yes
  14947. fi
  14948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14950. $as_echo "$have_gcc_altivec" >&6; }
  14951. fi
  14952. if test x$have_gcc_altivec = xno; then
  14953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  14954. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  14955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14956. /* end confdefs.h. */
  14957. vector unsigned int vzero() {
  14958. return vec_splat_u32(0);
  14959. }
  14960. int
  14961. main ()
  14962. {
  14963. ;
  14964. return 0;
  14965. }
  14966. _ACEOF
  14967. if ac_fn_c_try_compile "$LINENO"; then :
  14968. have_gcc_altivec=yes
  14969. fi
  14970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14972. $as_echo "$have_gcc_altivec" >&6; }
  14973. fi
  14974. CFLAGS="$save_CFLAGS"
  14975. if test x$have_gcc_altivec = xyes; then
  14976. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  14977. if test x$have_altivec_h_hdr = xyes; then
  14978. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  14979. fi
  14980. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  14981. SUMMARY_math="${SUMMARY_math} altivec"
  14982. fi
  14983. fi
  14984. fi
  14985. CheckOSS()
  14986. {
  14987. # Check whether --enable-oss was given.
  14988. if test "${enable_oss+set}" = set; then :
  14989. enableval=$enable_oss;
  14990. else
  14991. enable_oss=maybe
  14992. fi
  14993. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  14994. # use sndio instead. So on there, we default to disabled. You can force
  14995. # it on if you really want, though.
  14996. if test x$enable_oss = xmaybe; then
  14997. enable_oss=yes
  14998. case "$host" in
  14999. *-*-openbsd*)
  15000. enable_oss=no;;
  15001. esac
  15002. fi
  15003. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15005. $as_echo_n "checking for OSS audio support... " >&6; }
  15006. have_oss=no
  15007. if test x$have_oss != xyes; then
  15008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15009. /* end confdefs.h. */
  15010. #include <sys/soundcard.h>
  15011. int
  15012. main ()
  15013. {
  15014. int arg = SNDCTL_DSP_SETFRAGMENT;
  15015. ;
  15016. return 0;
  15017. }
  15018. _ACEOF
  15019. if ac_fn_c_try_compile "$LINENO"; then :
  15020. have_oss=yes
  15021. fi
  15022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15023. fi
  15024. if test x$have_oss != xyes; then
  15025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15026. /* end confdefs.h. */
  15027. #include <soundcard.h>
  15028. int
  15029. main ()
  15030. {
  15031. int arg = SNDCTL_DSP_SETFRAGMENT;
  15032. ;
  15033. return 0;
  15034. }
  15035. _ACEOF
  15036. if ac_fn_c_try_compile "$LINENO"; then :
  15037. have_oss=yes
  15038. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15039. fi
  15040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15041. fi
  15042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15043. $as_echo "$have_oss" >&6; }
  15044. if test x$have_oss = xyes; then
  15045. SUMMARY_audio="${SUMMARY_audio} oss"
  15046. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15047. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15048. have_audio=yes
  15049. # We may need to link with ossaudio emulation library
  15050. case "$host" in
  15051. *-*-openbsd*|*-*-netbsd*)
  15052. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15053. esac
  15054. fi
  15055. fi
  15056. }
  15057. CheckALSA()
  15058. {
  15059. # Check whether --enable-alsa was given.
  15060. if test "${enable_alsa+set}" = set; then :
  15061. enableval=$enable_alsa;
  15062. else
  15063. enable_alsa=yes
  15064. fi
  15065. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15066. alsa_save_CFLAGS="$CFLAGS"
  15067. alsa_save_LDFLAGS="$LDFLAGS"
  15068. alsa_save_LIBS="$LIBS"
  15069. alsa_found=yes
  15070. # Check whether --with-alsa-prefix was given.
  15071. if test "${with_alsa_prefix+set}" = set; then :
  15072. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15073. else
  15074. alsa_prefix=""
  15075. fi
  15076. # Check whether --with-alsa-inc-prefix was given.
  15077. if test "${with_alsa_inc_prefix+set}" = set; then :
  15078. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15079. else
  15080. alsa_inc_prefix=""
  15081. fi
  15082. # Check whether --enable-alsatest was given.
  15083. if test "${enable_alsatest+set}" = set; then :
  15084. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15085. else
  15086. enable_alsatest=yes
  15087. fi
  15088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15089. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15090. if test "$alsa_inc_prefix" != "" ; then
  15091. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15092. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15093. fi
  15094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15095. $as_echo "$ALSA_CFLAGS" >&6; }
  15096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15097. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15098. if test "$alsa_prefix" != "" ; then
  15099. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15100. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15101. fi
  15102. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15103. LIBS=`echo $LIBS | sed 's/-lm//'`
  15104. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15105. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15106. LIBS=`echo $LIBS | sed 's/ //'`
  15107. LIBS="$ALSA_LIBS $LIBS"
  15108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15109. $as_echo "$ALSA_LIBS" >&6; }
  15110. min_alsa_version=0.9.0
  15111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15112. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15113. no_alsa=""
  15114. alsa_min_major_version=`echo $min_alsa_version | \
  15115. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15116. alsa_min_minor_version=`echo $min_alsa_version | \
  15117. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15118. alsa_min_micro_version=`echo $min_alsa_version | \
  15119. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15120. ac_ext=c
  15121. ac_cpp='$CPP $CPPFLAGS'
  15122. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15123. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15124. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15126. /* end confdefs.h. */
  15127. #include <alsa/asoundlib.h>
  15128. int
  15129. main ()
  15130. {
  15131. /* ensure backward compatibility */
  15132. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15133. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15134. #endif
  15135. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15136. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15137. #endif
  15138. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15139. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15140. #endif
  15141. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15142. exit(0);
  15143. # else
  15144. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15145. # error not present
  15146. # endif
  15147. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15148. exit(0);
  15149. # else
  15150. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15151. # error not present
  15152. # endif
  15153. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15154. # error not present
  15155. # endif
  15156. # endif
  15157. # endif
  15158. exit(0);
  15159. ;
  15160. return 0;
  15161. }
  15162. _ACEOF
  15163. if ac_fn_c_try_compile "$LINENO"; then :
  15164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15165. $as_echo "found." >&6; }
  15166. else
  15167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15168. $as_echo "not present." >&6; }
  15169. alsa_found=no
  15170. fi
  15171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15172. ac_ext=c
  15173. ac_cpp='$CPP $CPPFLAGS'
  15174. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15175. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15176. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15177. if test "x$enable_alsatest" = "xyes"; then
  15178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15179. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15180. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15181. $as_echo_n "(cached) " >&6
  15182. else
  15183. ac_check_lib_save_LIBS=$LIBS
  15184. LIBS="-lasound $LIBS"
  15185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15186. /* end confdefs.h. */
  15187. /* Override any GCC internal prototype to avoid an error.
  15188. Use char because int might match the return type of a GCC
  15189. builtin and then its argument prototype would still apply. */
  15190. #ifdef __cplusplus
  15191. extern "C"
  15192. #endif
  15193. char snd_ctl_open ();
  15194. int
  15195. main ()
  15196. {
  15197. return snd_ctl_open ();
  15198. ;
  15199. return 0;
  15200. }
  15201. _ACEOF
  15202. if ac_fn_c_try_link "$LINENO"; then :
  15203. ac_cv_lib_asound_snd_ctl_open=yes
  15204. else
  15205. ac_cv_lib_asound_snd_ctl_open=no
  15206. fi
  15207. rm -f core conftest.err conftest.$ac_objext \
  15208. conftest$ac_exeext conftest.$ac_ext
  15209. LIBS=$ac_check_lib_save_LIBS
  15210. fi
  15211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15212. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15213. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15214. cat >>confdefs.h <<_ACEOF
  15215. #define HAVE_LIBASOUND 1
  15216. _ACEOF
  15217. LIBS="-lasound $LIBS"
  15218. else
  15219. alsa_found=no
  15220. fi
  15221. fi
  15222. if test "x$alsa_found" = "xyes" ; then
  15223. have_alsa=yes
  15224. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15225. LIBS=`echo $LIBS | sed 's/ //'`
  15226. LIBS="-lasound $LIBS"
  15227. fi
  15228. if test "x$alsa_found" = "xno" ; then
  15229. have_alsa=no
  15230. CFLAGS="$alsa_save_CFLAGS"
  15231. LDFLAGS="$alsa_save_LDFLAGS"
  15232. LIBS="$alsa_save_LIBS"
  15233. ALSA_CFLAGS=""
  15234. ALSA_LIBS=""
  15235. fi
  15236. # Restore all flags from before the ALSA detection runs
  15237. CFLAGS="$alsa_save_CFLAGS"
  15238. LDFLAGS="$alsa_save_LDFLAGS"
  15239. LIBS="$alsa_save_LIBS"
  15240. if test x$have_alsa = xyes; then
  15241. # Check whether --enable-alsa-shared was given.
  15242. if test "${enable_alsa_shared+set}" = set; then :
  15243. enableval=$enable_alsa_shared;
  15244. else
  15245. enable_alsa_shared=yes
  15246. fi
  15247. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15248. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15249. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15250. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15251. if test x$have_loadso != xyes && \
  15252. test x$enable_alsa_shared = xyes; then
  15253. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15254. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15255. fi
  15256. if test x$have_loadso = xyes && \
  15257. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15258. echo "-- dynamic libasound -> $alsa_lib"
  15259. cat >>confdefs.h <<_ACEOF
  15260. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15261. _ACEOF
  15262. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15263. else
  15264. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15265. SUMMARY_audio="${SUMMARY_audio} alsa"
  15266. fi
  15267. have_audio=yes
  15268. fi
  15269. fi
  15270. }
  15271. CheckESD()
  15272. {
  15273. # Check whether --enable-esd was given.
  15274. if test "${enable_esd+set}" = set; then :
  15275. enableval=$enable_esd;
  15276. else
  15277. enable_esd=yes
  15278. fi
  15279. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15280. # Check whether --with-esd-prefix was given.
  15281. if test "${with_esd_prefix+set}" = set; then :
  15282. withval=$with_esd_prefix; esd_prefix="$withval"
  15283. else
  15284. esd_prefix=""
  15285. fi
  15286. # Check whether --with-esd-exec-prefix was given.
  15287. if test "${with_esd_exec_prefix+set}" = set; then :
  15288. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15289. else
  15290. esd_exec_prefix=""
  15291. fi
  15292. # Check whether --enable-esdtest was given.
  15293. if test "${enable_esdtest+set}" = set; then :
  15294. enableval=$enable_esdtest;
  15295. else
  15296. enable_esdtest=yes
  15297. fi
  15298. if test x$esd_exec_prefix != x ; then
  15299. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15300. if test x${ESD_CONFIG+set} != xset ; then
  15301. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15302. fi
  15303. fi
  15304. if test x$esd_prefix != x ; then
  15305. esd_args="$esd_args --prefix=$esd_prefix"
  15306. if test x${ESD_CONFIG+set} != xset ; then
  15307. ESD_CONFIG=$esd_prefix/bin/esd-config
  15308. fi
  15309. fi
  15310. # Extract the first word of "esd-config", so it can be a program name with args.
  15311. set dummy esd-config; ac_word=$2
  15312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15313. $as_echo_n "checking for $ac_word... " >&6; }
  15314. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15315. $as_echo_n "(cached) " >&6
  15316. else
  15317. case $ESD_CONFIG in
  15318. [\\/]* | ?:[\\/]*)
  15319. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15320. ;;
  15321. *)
  15322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15323. for as_dir in $PATH
  15324. do
  15325. IFS=$as_save_IFS
  15326. test -z "$as_dir" && as_dir=.
  15327. for ac_exec_ext in '' $ac_executable_extensions; do
  15328. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15329. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15330. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15331. break 2
  15332. fi
  15333. done
  15334. done
  15335. IFS=$as_save_IFS
  15336. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15337. ;;
  15338. esac
  15339. fi
  15340. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15341. if test -n "$ESD_CONFIG"; then
  15342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15343. $as_echo "$ESD_CONFIG" >&6; }
  15344. else
  15345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15346. $as_echo "no" >&6; }
  15347. fi
  15348. min_esd_version=0.2.8
  15349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15350. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15351. no_esd=""
  15352. if test "$ESD_CONFIG" = "no" ; then
  15353. no_esd=yes
  15354. else
  15355. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15356. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15357. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15358. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15359. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15360. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15361. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15362. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15363. if test "x$enable_esdtest" = "xyes" ; then
  15364. ac_save_CFLAGS="$CFLAGS"
  15365. ac_save_LIBS="$LIBS"
  15366. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15367. LIBS="$LIBS $ESD_LIBS"
  15368. rm -f conf.esdtest
  15369. if test "$cross_compiling" = yes; then :
  15370. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15371. else
  15372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15373. /* end confdefs.h. */
  15374. #include <stdio.h>
  15375. #include <stdlib.h>
  15376. #include <string.h>
  15377. #include <esd.h>
  15378. char*
  15379. my_strdup (char *str)
  15380. {
  15381. char *new_str;
  15382. if (str)
  15383. {
  15384. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15385. strcpy (new_str, str);
  15386. }
  15387. else
  15388. new_str = NULL;
  15389. return new_str;
  15390. }
  15391. int main ()
  15392. {
  15393. int major, minor, micro;
  15394. char *tmp_version;
  15395. system ("touch conf.esdtest");
  15396. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15397. tmp_version = my_strdup("$min_esd_version");
  15398. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15399. printf("%s, bad version string\n", "$min_esd_version");
  15400. exit(1);
  15401. }
  15402. if (($esd_major_version > major) ||
  15403. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15404. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15405. {
  15406. return 0;
  15407. }
  15408. else
  15409. {
  15410. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15411. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15412. printf("*** best to upgrade to the required version.\n");
  15413. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15414. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15415. printf("*** config.cache before re-running configure\n");
  15416. return 1;
  15417. }
  15418. }
  15419. _ACEOF
  15420. if ac_fn_c_try_run "$LINENO"; then :
  15421. else
  15422. no_esd=yes
  15423. fi
  15424. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15425. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15426. fi
  15427. CFLAGS="$ac_save_CFLAGS"
  15428. LIBS="$ac_save_LIBS"
  15429. fi
  15430. fi
  15431. if test "x$no_esd" = x ; then
  15432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15433. $as_echo "yes" >&6; }
  15434. have_esd=yes
  15435. else
  15436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15437. $as_echo "no" >&6; }
  15438. if test "$ESD_CONFIG" = "no" ; then
  15439. echo "*** The esd-config script installed by ESD could not be found"
  15440. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15441. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15442. echo "*** full path to esd-config."
  15443. else
  15444. if test -f conf.esdtest ; then
  15445. :
  15446. else
  15447. echo "*** Could not run ESD test program, checking why..."
  15448. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15449. LIBS="$LIBS $ESD_LIBS"
  15450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15451. /* end confdefs.h. */
  15452. #include <stdio.h>
  15453. #include <esd.h>
  15454. int
  15455. main ()
  15456. {
  15457. return 0;
  15458. ;
  15459. return 0;
  15460. }
  15461. _ACEOF
  15462. if ac_fn_c_try_link "$LINENO"; then :
  15463. echo "*** The test program compiled, but did not run. This usually means"
  15464. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15465. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15466. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15467. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15468. echo "*** is required on your system"
  15469. echo "***"
  15470. echo "*** If you have an old version installed, it is best to remove it, although"
  15471. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15472. else
  15473. echo "*** The test program failed to compile or link. See the file config.log for the"
  15474. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15475. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15476. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15477. fi
  15478. rm -f core conftest.err conftest.$ac_objext \
  15479. conftest$ac_exeext conftest.$ac_ext
  15480. CFLAGS="$ac_save_CFLAGS"
  15481. LIBS="$ac_save_LIBS"
  15482. fi
  15483. fi
  15484. ESD_CFLAGS=""
  15485. ESD_LIBS=""
  15486. have_esd=no
  15487. fi
  15488. rm -f conf.esdtest
  15489. if test x$have_esd = xyes; then
  15490. # Check whether --enable-esd-shared was given.
  15491. if test "${enable_esd_shared+set}" = set; then :
  15492. enableval=$enable_esd_shared;
  15493. else
  15494. enable_esd_shared=yes
  15495. fi
  15496. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15497. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15498. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15499. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15500. if test x$have_loadso != xyes && \
  15501. test x$enable_esd_shared = xyes; then
  15502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15503. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15504. fi
  15505. if test x$have_loadso = xyes && \
  15506. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15507. echo "-- dynamic libesd -> $esd_lib"
  15508. cat >>confdefs.h <<_ACEOF
  15509. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15510. _ACEOF
  15511. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15512. else
  15513. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15514. SUMMARY_audio="${SUMMARY_audio} esd"
  15515. fi
  15516. have_audio=yes
  15517. fi
  15518. fi
  15519. }
  15520. CheckPulseAudio()
  15521. {
  15522. # Check whether --enable-pulseaudio was given.
  15523. if test "${enable_pulseaudio+set}" = set; then :
  15524. enableval=$enable_pulseaudio;
  15525. else
  15526. enable_pulseaudio=yes
  15527. fi
  15528. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15529. audio_pulseaudio=no
  15530. PULSEAUDIO_REQUIRED_VERSION=0.9
  15531. # Extract the first word of "pkg-config", so it can be a program name with args.
  15532. set dummy pkg-config; ac_word=$2
  15533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15534. $as_echo_n "checking for $ac_word... " >&6; }
  15535. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15536. $as_echo_n "(cached) " >&6
  15537. else
  15538. case $PKG_CONFIG in
  15539. [\\/]* | ?:[\\/]*)
  15540. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15541. ;;
  15542. *)
  15543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15544. for as_dir in $PATH
  15545. do
  15546. IFS=$as_save_IFS
  15547. test -z "$as_dir" && as_dir=.
  15548. for ac_exec_ext in '' $ac_executable_extensions; do
  15549. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15550. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15551. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15552. break 2
  15553. fi
  15554. done
  15555. done
  15556. IFS=$as_save_IFS
  15557. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15558. ;;
  15559. esac
  15560. fi
  15561. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15562. if test -n "$PKG_CONFIG"; then
  15563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15564. $as_echo "$PKG_CONFIG" >&6; }
  15565. else
  15566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15567. $as_echo "no" >&6; }
  15568. fi
  15569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15570. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15571. if test x$PKG_CONFIG != xno; then
  15572. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15573. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15574. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15575. audio_pulseaudio=yes
  15576. fi
  15577. fi
  15578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15579. $as_echo "$audio_pulseaudio" >&6; }
  15580. if test x$audio_pulseaudio = xyes; then
  15581. # Check whether --enable-pulseaudio-shared was given.
  15582. if test "${enable_pulseaudio_shared+set}" = set; then :
  15583. enableval=$enable_pulseaudio_shared;
  15584. else
  15585. enable_pulseaudio_shared=yes
  15586. fi
  15587. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15588. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15589. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15590. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15591. if test x$have_loadso != xyes && \
  15592. test x$enable_pulseaudio_shared = xyes; then
  15593. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15594. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15595. fi
  15596. if test x$have_loadso = xyes && \
  15597. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15598. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15599. cat >>confdefs.h <<_ACEOF
  15600. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15601. _ACEOF
  15602. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15603. case "$host" in
  15604. # On Solaris, pulseaudio must be linked deferred explicitly
  15605. # to prevent undefined symbol failures.
  15606. *-*-solaris*)
  15607. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15608. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15609. esac
  15610. else
  15611. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15612. SUMMARY_audio="${SUMMARY_audio} pulse"
  15613. fi
  15614. have_audio=yes
  15615. fi
  15616. fi
  15617. }
  15618. CheckARTSC()
  15619. {
  15620. # Check whether --enable-arts was given.
  15621. if test "${enable_arts+set}" = set; then :
  15622. enableval=$enable_arts;
  15623. else
  15624. enable_arts=yes
  15625. fi
  15626. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15627. # Extract the first word of "artsc-config", so it can be a program name with args.
  15628. set dummy artsc-config; ac_word=$2
  15629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15630. $as_echo_n "checking for $ac_word... " >&6; }
  15631. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15632. $as_echo_n "(cached) " >&6
  15633. else
  15634. case $ARTSCONFIG in
  15635. [\\/]* | ?:[\\/]*)
  15636. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15637. ;;
  15638. *)
  15639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15640. for as_dir in $PATH
  15641. do
  15642. IFS=$as_save_IFS
  15643. test -z "$as_dir" && as_dir=.
  15644. for ac_exec_ext in '' $ac_executable_extensions; do
  15645. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15646. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15647. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15648. break 2
  15649. fi
  15650. done
  15651. done
  15652. IFS=$as_save_IFS
  15653. ;;
  15654. esac
  15655. fi
  15656. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15657. if test -n "$ARTSCONFIG"; then
  15658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15659. $as_echo "$ARTSCONFIG" >&6; }
  15660. else
  15661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15662. $as_echo "no" >&6; }
  15663. fi
  15664. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15665. : # arts isn't installed
  15666. else
  15667. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15668. ARTS_LIBS=`$ARTSCONFIG --libs`
  15669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15670. $as_echo_n "checking for aRts development environment... " >&6; }
  15671. audio_arts=no
  15672. save_CFLAGS="$CFLAGS"
  15673. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15675. /* end confdefs.h. */
  15676. #include <artsc.h>
  15677. int
  15678. main ()
  15679. {
  15680. arts_stream_t stream;
  15681. ;
  15682. return 0;
  15683. }
  15684. _ACEOF
  15685. if ac_fn_c_try_compile "$LINENO"; then :
  15686. audio_arts=yes
  15687. fi
  15688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15689. CFLAGS="$save_CFLAGS"
  15690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15691. $as_echo "$audio_arts" >&6; }
  15692. if test x$audio_arts = xyes; then
  15693. # Check whether --enable-arts-shared was given.
  15694. if test "${enable_arts_shared+set}" = set; then :
  15695. enableval=$enable_arts_shared;
  15696. else
  15697. enable_arts_shared=yes
  15698. fi
  15699. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15700. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15701. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15702. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15703. if test x$have_loadso != xyes && \
  15704. test x$enable_arts_shared = xyes; then
  15705. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15706. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15707. fi
  15708. if test x$have_loadso = xyes && \
  15709. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15710. echo "-- dynamic libartsc -> $arts_lib"
  15711. cat >>confdefs.h <<_ACEOF
  15712. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15713. _ACEOF
  15714. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15715. else
  15716. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15717. SUMMARY_audio="${SUMMARY_audio} arts"
  15718. fi
  15719. have_audio=yes
  15720. fi
  15721. fi
  15722. fi
  15723. }
  15724. CheckNAS()
  15725. {
  15726. # Check whether --enable-nas was given.
  15727. if test "${enable_nas+set}" = set; then :
  15728. enableval=$enable_nas;
  15729. else
  15730. enable_nas=yes
  15731. fi
  15732. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15733. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15734. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15735. have_nas_hdr=yes
  15736. fi
  15737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15738. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15739. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15740. $as_echo_n "(cached) " >&6
  15741. else
  15742. ac_check_lib_save_LIBS=$LIBS
  15743. LIBS="-laudio $LIBS"
  15744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15745. /* end confdefs.h. */
  15746. /* Override any GCC internal prototype to avoid an error.
  15747. Use char because int might match the return type of a GCC
  15748. builtin and then its argument prototype would still apply. */
  15749. #ifdef __cplusplus
  15750. extern "C"
  15751. #endif
  15752. char AuOpenServer ();
  15753. int
  15754. main ()
  15755. {
  15756. return AuOpenServer ();
  15757. ;
  15758. return 0;
  15759. }
  15760. _ACEOF
  15761. if ac_fn_c_try_link "$LINENO"; then :
  15762. ac_cv_lib_audio_AuOpenServer=yes
  15763. else
  15764. ac_cv_lib_audio_AuOpenServer=no
  15765. fi
  15766. rm -f core conftest.err conftest.$ac_objext \
  15767. conftest$ac_exeext conftest.$ac_ext
  15768. LIBS=$ac_check_lib_save_LIBS
  15769. fi
  15770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15771. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15772. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15773. have_nas_lib=yes
  15774. fi
  15775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15776. $as_echo_n "checking for NAS audio support... " >&6; }
  15777. have_nas=no
  15778. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15779. have_nas=yes
  15780. NAS_LIBS="-laudio"
  15781. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15782. have_nas=yes
  15783. NAS_CFLAGS="-I/usr/X11R6/include/"
  15784. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15785. fi
  15786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15787. $as_echo "$have_nas" >&6; }
  15788. if test x$have_nas = xyes; then
  15789. # Check whether --enable-nas-shared was given.
  15790. if test "${enable_nas_shared+set}" = set; then :
  15791. enableval=$enable_nas_shared;
  15792. else
  15793. enable_nas_shared=yes
  15794. fi
  15795. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15796. if test x$have_loadso != xyes && \
  15797. test x$enable_nas_shared = xyes; then
  15798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15799. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15800. fi
  15801. if test x$have_loadso = xyes && \
  15802. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15803. echo "-- dynamic libaudio -> $nas_lib"
  15804. cat >>confdefs.h <<_ACEOF
  15805. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15806. _ACEOF
  15807. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  15808. else
  15809. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15810. SUMMARY_audio="${SUMMARY_audio} nas"
  15811. fi
  15812. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  15813. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  15814. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  15815. have_audio=yes
  15816. fi
  15817. fi
  15818. }
  15819. CheckSNDIO()
  15820. {
  15821. # Check whether --enable-sndio was given.
  15822. if test "${enable_sndio+set}" = set; then :
  15823. enableval=$enable_sndio;
  15824. else
  15825. enable_sndio=yes
  15826. fi
  15827. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  15828. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15829. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15830. have_sndio_hdr=yes
  15831. fi
  15832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15833. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15834. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15835. $as_echo_n "(cached) " >&6
  15836. else
  15837. ac_check_lib_save_LIBS=$LIBS
  15838. LIBS="-lsndio $LIBS"
  15839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15840. /* end confdefs.h. */
  15841. /* Override any GCC internal prototype to avoid an error.
  15842. Use char because int might match the return type of a GCC
  15843. builtin and then its argument prototype would still apply. */
  15844. #ifdef __cplusplus
  15845. extern "C"
  15846. #endif
  15847. char sio_open ();
  15848. int
  15849. main ()
  15850. {
  15851. return sio_open ();
  15852. ;
  15853. return 0;
  15854. }
  15855. _ACEOF
  15856. if ac_fn_c_try_link "$LINENO"; then :
  15857. ac_cv_lib_sndio_sio_open=yes
  15858. else
  15859. ac_cv_lib_sndio_sio_open=no
  15860. fi
  15861. rm -f core conftest.err conftest.$ac_objext \
  15862. conftest$ac_exeext conftest.$ac_ext
  15863. LIBS=$ac_check_lib_save_LIBS
  15864. fi
  15865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15866. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15867. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15868. have_sndio_lib=yes
  15869. fi
  15870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  15871. $as_echo_n "checking for sndio audio support... " >&6; }
  15872. have_sndio=no
  15873. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  15874. have_sndio=yes
  15875. SNDIO_LIBS="-lsndio"
  15876. fi
  15877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  15878. $as_echo "$have_sndio" >&6; }
  15879. if test x$have_sndio = xyes; then
  15880. # Check whether --enable-sndio-shared was given.
  15881. if test "${enable_sndio_shared+set}" = set; then :
  15882. enableval=$enable_sndio_shared;
  15883. else
  15884. enable_sndio_shared=yes
  15885. fi
  15886. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15887. if test x$have_loadso != xyes && \
  15888. test x$enable_sndio_shared = xyes; then
  15889. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  15890. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  15891. fi
  15892. if test x$have_loadso = xyes && \
  15893. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  15894. echo "-- dynamic libsndio -> $sndio_lib"
  15895. cat >>confdefs.h <<_ACEOF
  15896. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  15897. _ACEOF
  15898. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  15899. else
  15900. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  15901. SUMMARY_audio="${SUMMARY_audio} sndio"
  15902. fi
  15903. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  15904. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  15905. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  15906. have_audio=yes
  15907. fi
  15908. fi
  15909. }
  15910. CheckDiskAudio()
  15911. {
  15912. # Check whether --enable-diskaudio was given.
  15913. if test "${enable_diskaudio+set}" = set; then :
  15914. enableval=$enable_diskaudio;
  15915. else
  15916. enable_diskaudio=yes
  15917. fi
  15918. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  15919. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  15920. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  15921. SUMMARY_audio="${SUMMARY_audio} disk"
  15922. fi
  15923. }
  15924. CheckDummyAudio()
  15925. {
  15926. # Check whether --enable-dummyaudio was given.
  15927. if test "${enable_dummyaudio+set}" = set; then :
  15928. enableval=$enable_dummyaudio;
  15929. else
  15930. enable_dummyaudio=yes
  15931. fi
  15932. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  15933. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  15934. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  15935. SUMMARY_audio="${SUMMARY_audio} dummy"
  15936. fi
  15937. }
  15938. CheckVisibilityHidden()
  15939. {
  15940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  15941. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  15942. have_gcc_fvisibility=no
  15943. visibility_CFLAGS="-fvisibility=hidden"
  15944. save_CFLAGS="$CFLAGS"
  15945. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  15946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15947. /* end confdefs.h. */
  15948. #if !defined(__GNUC__) || __GNUC__ < 4
  15949. #error SDL only uses visibility attributes in GCC 4 or newer
  15950. #endif
  15951. int
  15952. main ()
  15953. {
  15954. ;
  15955. return 0;
  15956. }
  15957. _ACEOF
  15958. if ac_fn_c_try_compile "$LINENO"; then :
  15959. have_gcc_fvisibility=yes
  15960. fi
  15961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  15963. $as_echo "$have_gcc_fvisibility" >&6; }
  15964. CFLAGS="$save_CFLAGS"
  15965. if test x$have_gcc_fvisibility = xyes; then
  15966. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  15967. fi
  15968. }
  15969. CheckStackBoundary()
  15970. {
  15971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  15972. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  15973. have_gcc_preferred_stack_boundary=no
  15974. save_CFLAGS="$CFLAGS"
  15975. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  15976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15977. /* end confdefs.h. */
  15978. int x = 0;
  15979. int
  15980. main ()
  15981. {
  15982. ;
  15983. return 0;
  15984. }
  15985. _ACEOF
  15986. if ac_fn_c_try_compile "$LINENO"; then :
  15987. have_gcc_preferred_stack_boundary=yes
  15988. fi
  15989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  15991. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  15992. CFLAGS="$save_CFLAGS"
  15993. if test x$have_gcc_preferred_stack_boundary = xyes; then
  15994. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  15995. fi
  15996. }
  15997. CheckMir()
  15998. {
  15999. # Check whether --enable-video-mir was given.
  16000. if test "${enable_video_mir+set}" = set; then :
  16001. enableval=$enable_video_mir;
  16002. else
  16003. enable_video_mir=yes
  16004. fi
  16005. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16006. # Extract the first word of "pkg-config", so it can be a program name with args.
  16007. set dummy pkg-config; ac_word=$2
  16008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16009. $as_echo_n "checking for $ac_word... " >&6; }
  16010. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16011. $as_echo_n "(cached) " >&6
  16012. else
  16013. case $PKG_CONFIG in
  16014. [\\/]* | ?:[\\/]*)
  16015. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16016. ;;
  16017. *)
  16018. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16019. for as_dir in $PATH
  16020. do
  16021. IFS=$as_save_IFS
  16022. test -z "$as_dir" && as_dir=.
  16023. for ac_exec_ext in '' $ac_executable_extensions; do
  16024. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16025. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16026. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16027. break 2
  16028. fi
  16029. done
  16030. done
  16031. IFS=$as_save_IFS
  16032. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16033. ;;
  16034. esac
  16035. fi
  16036. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16037. if test -n "$PKG_CONFIG"; then
  16038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16039. $as_echo "$PKG_CONFIG" >&6; }
  16040. else
  16041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16042. $as_echo "no" >&6; }
  16043. fi
  16044. if test x$PKG_CONFIG != xno; then
  16045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16046. $as_echo_n "checking for Mir support... " >&6; }
  16047. video_mir=no
  16048. tmp_CFLAGS="$CFLAGS"
  16049. CFLAGS="$EXTRA_CFLAGS `$PKG_CONFIG --cflags egl mirclient xkbcommon`"
  16050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16051. /* end confdefs.h. */
  16052. #include <EGL/egl.h>
  16053. #include <xkbcommon/xkbcommon.h>
  16054. #include <mir_toolkit/mir_client_library.h>
  16055. int
  16056. main ()
  16057. {
  16058. ;
  16059. return 0;
  16060. }
  16061. _ACEOF
  16062. if ac_fn_c_try_compile "$LINENO"; then :
  16063. video_mir=yes
  16064. fi
  16065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16066. CFLAGS="$tmp_CFLAGS"
  16067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16068. $as_echo "$video_mir" >&6; }
  16069. if test x$video_mir = xyes; then
  16070. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16071. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16072. EXTRA_CFLAGS="$EXTRA_CFLAGS `$PKG_CONFIG --cflags egl mirclient xkbcommon`"
  16073. EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$PKG_CONFIG --libs egl mirclient xkbcommon`"
  16074. have_video=yes
  16075. SUMMARY_video="${SUMMARY_video} mir"
  16076. fi
  16077. fi
  16078. fi
  16079. }
  16080. CheckWarnAll()
  16081. {
  16082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16083. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16084. have_gcc_Wall=no
  16085. save_CFLAGS="$CFLAGS"
  16086. CFLAGS="$save_CFLAGS -Wall"
  16087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16088. /* end confdefs.h. */
  16089. int x = 0;
  16090. int
  16091. main ()
  16092. {
  16093. ;
  16094. return 0;
  16095. }
  16096. _ACEOF
  16097. if ac_fn_c_try_compile "$LINENO"; then :
  16098. have_gcc_Wall=yes
  16099. fi
  16100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16102. $as_echo "$have_gcc_Wall" >&6; }
  16103. CFLAGS="$save_CFLAGS"
  16104. if test x$have_gcc_Wall = xyes; then
  16105. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16107. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16108. need_gcc_Wno_multichar=no
  16109. case "$host" in
  16110. *-*-haiku*)
  16111. need_gcc_Wno_multichar=yes
  16112. ;;
  16113. esac
  16114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16115. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16116. if test x$need_gcc_Wno_multichar = xyes; then
  16117. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16118. fi
  16119. fi
  16120. }
  16121. CheckWayland()
  16122. {
  16123. # Check whether --enable-video-wayland was given.
  16124. if test "${enable_video_wayland+set}" = set; then :
  16125. enableval=$enable_video_wayland;
  16126. else
  16127. enable_video_wayland=yes
  16128. fi
  16129. # Check whether --enable-video-wayland-qt-touch was given.
  16130. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16131. enableval=$enable_video_wayland_qt_touch;
  16132. else
  16133. enable_video_wayland_qt_touch=yes
  16134. fi
  16135. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16136. # Extract the first word of "pkg-config", so it can be a program name with args.
  16137. set dummy pkg-config; ac_word=$2
  16138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16139. $as_echo_n "checking for $ac_word... " >&6; }
  16140. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16141. $as_echo_n "(cached) " >&6
  16142. else
  16143. case $PKG_CONFIG in
  16144. [\\/]* | ?:[\\/]*)
  16145. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16146. ;;
  16147. *)
  16148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16149. for as_dir in $PATH
  16150. do
  16151. IFS=$as_save_IFS
  16152. test -z "$as_dir" && as_dir=.
  16153. for ac_exec_ext in '' $ac_executable_extensions; do
  16154. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16155. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16156. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16157. break 2
  16158. fi
  16159. done
  16160. done
  16161. IFS=$as_save_IFS
  16162. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16163. ;;
  16164. esac
  16165. fi
  16166. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16167. if test -n "$PKG_CONFIG"; then
  16168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16169. $as_echo "$PKG_CONFIG" >&6; }
  16170. else
  16171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16172. $as_echo "no" >&6; }
  16173. fi
  16174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16175. $as_echo_n "checking for Wayland support... " >&6; }
  16176. video_wayland=no
  16177. if test x$PKG_CONFIG != xno; then
  16178. if $PKG_CONFIG --exists wayland-client wayland-egl wayland-cursor egl xkbcommon ; then
  16179. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16180. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16181. video_wayland=yes
  16182. fi
  16183. fi
  16184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16185. $as_echo "$video_wayland" >&6; }
  16186. if test x$video_wayland = xyes; then
  16187. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16188. if test x$enable_video_wayland_qt_touch = xyes; then
  16189. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16190. fi
  16191. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16192. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS"
  16193. # Check whether --enable-wayland-shared was given.
  16194. if test "${enable_wayland_shared+set}" = set; then :
  16195. enableval=$enable_wayland_shared;
  16196. else
  16197. enable_wayland_shared=maybe
  16198. fi
  16199. case "$host" in
  16200. *)
  16201. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16202. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16203. if test x$wayland_egl_lib = x; then
  16204. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16205. fi
  16206. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16207. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16208. ;;
  16209. esac
  16210. if test x$enable_wayland_shared = xmaybe; then
  16211. enable_wayland_shared=yes
  16212. fi
  16213. if test x$have_loadso != xyes && \
  16214. test x$enable_wayland_shared = xyes; then
  16215. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic WAYLAND loading" >&5
  16216. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic WAYLAND loading" >&2;}
  16217. enable_wayland_shared=no
  16218. fi
  16219. if test x$have_loadso = xyes && \
  16220. test x$enable_wayland_shared = xyes && \
  16221. test x$wayland_client_lib != x && \
  16222. test x$wayland_egl_lib != x && \
  16223. test x$wayland_cursor_lib != x && \
  16224. test x$xkbcommon_lib != x; then
  16225. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16226. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16227. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16228. echo "-- dynamic xkbcommon -> $xkbcommon_lib"
  16229. cat >>confdefs.h <<_ACEOF
  16230. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16231. _ACEOF
  16232. cat >>confdefs.h <<_ACEOF
  16233. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16234. _ACEOF
  16235. cat >>confdefs.h <<_ACEOF
  16236. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16237. _ACEOF
  16238. cat >>confdefs.h <<_ACEOF
  16239. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16240. _ACEOF
  16241. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16242. else
  16243. enable_wayland_shared=no
  16244. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16245. SUMMARY_video="${SUMMARY_video} wayland"
  16246. fi
  16247. have_video=yes
  16248. fi
  16249. fi
  16250. }
  16251. CheckX11()
  16252. {
  16253. # Check whether --enable-video-x11 was given.
  16254. if test "${enable_video_x11+set}" = set; then :
  16255. enableval=$enable_video_x11;
  16256. else
  16257. enable_video_x11=yes
  16258. fi
  16259. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16260. case "$host" in
  16261. *-*-darwin*)
  16262. # This isn't necessary for X11, but fixes GLX detection
  16263. if test "x$x_includes" = xNONE && \
  16264. test "x$x_libraries" = xNONE && \
  16265. test -d /usr/X11R6/include && \
  16266. test -d /usr/X11R6/lib; then
  16267. x_includes="/usr/X11R6/include"
  16268. x_libraries="/usr/X11R6/lib"
  16269. fi
  16270. ;;
  16271. esac
  16272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16273. $as_echo_n "checking for X... " >&6; }
  16274. # Check whether --with-x was given.
  16275. if test "${with_x+set}" = set; then :
  16276. withval=$with_x;
  16277. fi
  16278. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16279. if test "x$with_x" = xno; then
  16280. # The user explicitly disabled X.
  16281. have_x=disabled
  16282. else
  16283. case $x_includes,$x_libraries in #(
  16284. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16285. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16286. $as_echo_n "(cached) " >&6
  16287. else
  16288. # One or both of the vars are not set, and there is no cached value.
  16289. ac_x_includes=no ac_x_libraries=no
  16290. rm -f -r conftest.dir
  16291. if mkdir conftest.dir; then
  16292. cd conftest.dir
  16293. cat >Imakefile <<'_ACEOF'
  16294. incroot:
  16295. @echo incroot='${INCROOT}'
  16296. usrlibdir:
  16297. @echo usrlibdir='${USRLIBDIR}'
  16298. libdir:
  16299. @echo libdir='${LIBDIR}'
  16300. _ACEOF
  16301. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16302. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16303. for ac_var in incroot usrlibdir libdir; do
  16304. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16305. done
  16306. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16307. for ac_extension in a so sl dylib la dll; do
  16308. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16309. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16310. ac_im_usrlibdir=$ac_im_libdir; break
  16311. fi
  16312. done
  16313. # Screen out bogus values from the imake configuration. They are
  16314. # bogus both because they are the default anyway, and because
  16315. # using them would break gcc on systems where it needs fixed includes.
  16316. case $ac_im_incroot in
  16317. /usr/include) ac_x_includes= ;;
  16318. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16319. esac
  16320. case $ac_im_usrlibdir in
  16321. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16322. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16323. esac
  16324. fi
  16325. cd ..
  16326. rm -f -r conftest.dir
  16327. fi
  16328. # Standard set of common directories for X headers.
  16329. # Check X11 before X11Rn because it is often a symlink to the current release.
  16330. ac_x_header_dirs='
  16331. /usr/X11/include
  16332. /usr/X11R7/include
  16333. /usr/X11R6/include
  16334. /usr/X11R5/include
  16335. /usr/X11R4/include
  16336. /usr/include/X11
  16337. /usr/include/X11R7
  16338. /usr/include/X11R6
  16339. /usr/include/X11R5
  16340. /usr/include/X11R4
  16341. /usr/local/X11/include
  16342. /usr/local/X11R7/include
  16343. /usr/local/X11R6/include
  16344. /usr/local/X11R5/include
  16345. /usr/local/X11R4/include
  16346. /usr/local/include/X11
  16347. /usr/local/include/X11R7
  16348. /usr/local/include/X11R6
  16349. /usr/local/include/X11R5
  16350. /usr/local/include/X11R4
  16351. /usr/X386/include
  16352. /usr/x386/include
  16353. /usr/XFree86/include/X11
  16354. /usr/include
  16355. /usr/local/include
  16356. /usr/unsupported/include
  16357. /usr/athena/include
  16358. /usr/local/x11r5/include
  16359. /usr/lpp/Xamples/include
  16360. /usr/openwin/include
  16361. /usr/openwin/share/include'
  16362. if test "$ac_x_includes" = no; then
  16363. # Guess where to find include files, by looking for Xlib.h.
  16364. # First, try using that file with no special directory specified.
  16365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16366. /* end confdefs.h. */
  16367. #include <X11/Xlib.h>
  16368. _ACEOF
  16369. if ac_fn_c_try_cpp "$LINENO"; then :
  16370. # We can compile using X headers with no special include directory.
  16371. ac_x_includes=
  16372. else
  16373. for ac_dir in $ac_x_header_dirs; do
  16374. if test -r "$ac_dir/X11/Xlib.h"; then
  16375. ac_x_includes=$ac_dir
  16376. break
  16377. fi
  16378. done
  16379. fi
  16380. rm -f conftest.err conftest.i conftest.$ac_ext
  16381. fi # $ac_x_includes = no
  16382. if test "$ac_x_libraries" = no; then
  16383. # Check for the libraries.
  16384. # See if we find them without any special options.
  16385. # Don't add to $LIBS permanently.
  16386. ac_save_LIBS=$LIBS
  16387. LIBS="-lX11 $LIBS"
  16388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16389. /* end confdefs.h. */
  16390. #include <X11/Xlib.h>
  16391. int
  16392. main ()
  16393. {
  16394. XrmInitialize ()
  16395. ;
  16396. return 0;
  16397. }
  16398. _ACEOF
  16399. if ac_fn_c_try_link "$LINENO"; then :
  16400. LIBS=$ac_save_LIBS
  16401. # We can link X programs with no special library path.
  16402. ac_x_libraries=
  16403. else
  16404. LIBS=$ac_save_LIBS
  16405. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16406. do
  16407. # Don't even attempt the hair of trying to link an X program!
  16408. for ac_extension in a so sl dylib la dll; do
  16409. if test -r "$ac_dir/libX11.$ac_extension"; then
  16410. ac_x_libraries=$ac_dir
  16411. break 2
  16412. fi
  16413. done
  16414. done
  16415. fi
  16416. rm -f core conftest.err conftest.$ac_objext \
  16417. conftest$ac_exeext conftest.$ac_ext
  16418. fi # $ac_x_libraries = no
  16419. case $ac_x_includes,$ac_x_libraries in #(
  16420. no,* | *,no | *\'*)
  16421. # Didn't find X, or a directory has "'" in its name.
  16422. ac_cv_have_x="have_x=no";; #(
  16423. *)
  16424. # Record where we found X for the cache.
  16425. ac_cv_have_x="have_x=yes\
  16426. ac_x_includes='$ac_x_includes'\
  16427. ac_x_libraries='$ac_x_libraries'"
  16428. esac
  16429. fi
  16430. ;; #(
  16431. *) have_x=yes;;
  16432. esac
  16433. eval "$ac_cv_have_x"
  16434. fi # $with_x != no
  16435. if test "$have_x" != yes; then
  16436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16437. $as_echo "$have_x" >&6; }
  16438. no_x=yes
  16439. else
  16440. # If each of the values was on the command line, it overrides each guess.
  16441. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16442. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16443. # Update the cache value to reflect the command line values.
  16444. ac_cv_have_x="have_x=yes\
  16445. ac_x_includes='$x_includes'\
  16446. ac_x_libraries='$x_libraries'"
  16447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16448. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16449. fi
  16450. if test "$no_x" = yes; then
  16451. # Not all programs may use this symbol, but it does not hurt to define it.
  16452. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16453. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16454. else
  16455. if test -n "$x_includes"; then
  16456. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16457. fi
  16458. # It would also be nice to do this for all -L options, not just this one.
  16459. if test -n "$x_libraries"; then
  16460. X_LIBS="$X_LIBS -L$x_libraries"
  16461. # For Solaris; some versions of Sun CC require a space after -R and
  16462. # others require no space. Words are not sufficient . . . .
  16463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16464. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16465. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16466. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16467. ac_c_werror_flag=yes
  16468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16469. /* end confdefs.h. */
  16470. int
  16471. main ()
  16472. {
  16473. ;
  16474. return 0;
  16475. }
  16476. _ACEOF
  16477. if ac_fn_c_try_link "$LINENO"; then :
  16478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16479. $as_echo "no" >&6; }
  16480. X_LIBS="$X_LIBS -R$x_libraries"
  16481. else
  16482. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16484. /* end confdefs.h. */
  16485. int
  16486. main ()
  16487. {
  16488. ;
  16489. return 0;
  16490. }
  16491. _ACEOF
  16492. if ac_fn_c_try_link "$LINENO"; then :
  16493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16494. $as_echo "yes" >&6; }
  16495. X_LIBS="$X_LIBS -R $x_libraries"
  16496. else
  16497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16498. $as_echo "neither works" >&6; }
  16499. fi
  16500. rm -f core conftest.err conftest.$ac_objext \
  16501. conftest$ac_exeext conftest.$ac_ext
  16502. fi
  16503. rm -f core conftest.err conftest.$ac_objext \
  16504. conftest$ac_exeext conftest.$ac_ext
  16505. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16506. LIBS=$ac_xsave_LIBS
  16507. fi
  16508. # Check for system-dependent libraries X programs must link with.
  16509. # Do this before checking for the system-independent R6 libraries
  16510. # (-lICE), since we may need -lsocket or whatever for X linking.
  16511. if test "$ISC" = yes; then
  16512. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16513. else
  16514. # Martyn Johnson says this is needed for Ultrix, if the X
  16515. # libraries were built with DECnet support. And Karl Berry says
  16516. # the Alpha needs dnet_stub (dnet does not exist).
  16517. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16519. /* end confdefs.h. */
  16520. /* Override any GCC internal prototype to avoid an error.
  16521. Use char because int might match the return type of a GCC
  16522. builtin and then its argument prototype would still apply. */
  16523. #ifdef __cplusplus
  16524. extern "C"
  16525. #endif
  16526. char XOpenDisplay ();
  16527. int
  16528. main ()
  16529. {
  16530. return XOpenDisplay ();
  16531. ;
  16532. return 0;
  16533. }
  16534. _ACEOF
  16535. if ac_fn_c_try_link "$LINENO"; then :
  16536. else
  16537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16538. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16539. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16540. $as_echo_n "(cached) " >&6
  16541. else
  16542. ac_check_lib_save_LIBS=$LIBS
  16543. LIBS="-ldnet $LIBS"
  16544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16545. /* end confdefs.h. */
  16546. /* Override any GCC internal prototype to avoid an error.
  16547. Use char because int might match the return type of a GCC
  16548. builtin and then its argument prototype would still apply. */
  16549. #ifdef __cplusplus
  16550. extern "C"
  16551. #endif
  16552. char dnet_ntoa ();
  16553. int
  16554. main ()
  16555. {
  16556. return dnet_ntoa ();
  16557. ;
  16558. return 0;
  16559. }
  16560. _ACEOF
  16561. if ac_fn_c_try_link "$LINENO"; then :
  16562. ac_cv_lib_dnet_dnet_ntoa=yes
  16563. else
  16564. ac_cv_lib_dnet_dnet_ntoa=no
  16565. fi
  16566. rm -f core conftest.err conftest.$ac_objext \
  16567. conftest$ac_exeext conftest.$ac_ext
  16568. LIBS=$ac_check_lib_save_LIBS
  16569. fi
  16570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16571. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16572. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  16573. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16574. fi
  16575. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16577. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16578. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  16579. $as_echo_n "(cached) " >&6
  16580. else
  16581. ac_check_lib_save_LIBS=$LIBS
  16582. LIBS="-ldnet_stub $LIBS"
  16583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16584. /* end confdefs.h. */
  16585. /* Override any GCC internal prototype to avoid an error.
  16586. Use char because int might match the return type of a GCC
  16587. builtin and then its argument prototype would still apply. */
  16588. #ifdef __cplusplus
  16589. extern "C"
  16590. #endif
  16591. char dnet_ntoa ();
  16592. int
  16593. main ()
  16594. {
  16595. return dnet_ntoa ();
  16596. ;
  16597. return 0;
  16598. }
  16599. _ACEOF
  16600. if ac_fn_c_try_link "$LINENO"; then :
  16601. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16602. else
  16603. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16604. fi
  16605. rm -f core conftest.err conftest.$ac_objext \
  16606. conftest$ac_exeext conftest.$ac_ext
  16607. LIBS=$ac_check_lib_save_LIBS
  16608. fi
  16609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16610. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16611. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  16612. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16613. fi
  16614. fi
  16615. fi
  16616. rm -f core conftest.err conftest.$ac_objext \
  16617. conftest$ac_exeext conftest.$ac_ext
  16618. LIBS="$ac_xsave_LIBS"
  16619. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16620. # to get the SysV transport functions.
  16621. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16622. # needs -lnsl.
  16623. # The nsl library prevents programs from opening the X display
  16624. # on Irix 5.2, according to T.E. Dickey.
  16625. # The functions gethostbyname, getservbyname, and inet_addr are
  16626. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16627. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16628. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16629. fi
  16630. if test $ac_cv_func_gethostbyname = no; then
  16631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16632. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16633. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16634. $as_echo_n "(cached) " >&6
  16635. else
  16636. ac_check_lib_save_LIBS=$LIBS
  16637. LIBS="-lnsl $LIBS"
  16638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16639. /* end confdefs.h. */
  16640. /* Override any GCC internal prototype to avoid an error.
  16641. Use char because int might match the return type of a GCC
  16642. builtin and then its argument prototype would still apply. */
  16643. #ifdef __cplusplus
  16644. extern "C"
  16645. #endif
  16646. char gethostbyname ();
  16647. int
  16648. main ()
  16649. {
  16650. return gethostbyname ();
  16651. ;
  16652. return 0;
  16653. }
  16654. _ACEOF
  16655. if ac_fn_c_try_link "$LINENO"; then :
  16656. ac_cv_lib_nsl_gethostbyname=yes
  16657. else
  16658. ac_cv_lib_nsl_gethostbyname=no
  16659. fi
  16660. rm -f core conftest.err conftest.$ac_objext \
  16661. conftest$ac_exeext conftest.$ac_ext
  16662. LIBS=$ac_check_lib_save_LIBS
  16663. fi
  16664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16665. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16666. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16667. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16668. fi
  16669. if test $ac_cv_lib_nsl_gethostbyname = no; then
  16670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  16671. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  16672. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  16673. $as_echo_n "(cached) " >&6
  16674. else
  16675. ac_check_lib_save_LIBS=$LIBS
  16676. LIBS="-lbsd $LIBS"
  16677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16678. /* end confdefs.h. */
  16679. /* Override any GCC internal prototype to avoid an error.
  16680. Use char because int might match the return type of a GCC
  16681. builtin and then its argument prototype would still apply. */
  16682. #ifdef __cplusplus
  16683. extern "C"
  16684. #endif
  16685. char gethostbyname ();
  16686. int
  16687. main ()
  16688. {
  16689. return gethostbyname ();
  16690. ;
  16691. return 0;
  16692. }
  16693. _ACEOF
  16694. if ac_fn_c_try_link "$LINENO"; then :
  16695. ac_cv_lib_bsd_gethostbyname=yes
  16696. else
  16697. ac_cv_lib_bsd_gethostbyname=no
  16698. fi
  16699. rm -f core conftest.err conftest.$ac_objext \
  16700. conftest$ac_exeext conftest.$ac_ext
  16701. LIBS=$ac_check_lib_save_LIBS
  16702. fi
  16703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  16704. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  16705. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  16706. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  16707. fi
  16708. fi
  16709. fi
  16710. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  16711. # socket/setsockopt and other routines are undefined under SCO ODT
  16712. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  16713. # on later versions), says Simon Leinen: it contains gethostby*
  16714. # variants that don't use the name server (or something). -lsocket
  16715. # must be given before -lnsl if both are needed. We assume that
  16716. # if connect needs -lnsl, so does gethostbyname.
  16717. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  16718. if test "x$ac_cv_func_connect" = xyes; then :
  16719. fi
  16720. if test $ac_cv_func_connect = no; then
  16721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  16722. $as_echo_n "checking for connect in -lsocket... " >&6; }
  16723. if ${ac_cv_lib_socket_connect+:} false; then :
  16724. $as_echo_n "(cached) " >&6
  16725. else
  16726. ac_check_lib_save_LIBS=$LIBS
  16727. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  16728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16729. /* end confdefs.h. */
  16730. /* Override any GCC internal prototype to avoid an error.
  16731. Use char because int might match the return type of a GCC
  16732. builtin and then its argument prototype would still apply. */
  16733. #ifdef __cplusplus
  16734. extern "C"
  16735. #endif
  16736. char connect ();
  16737. int
  16738. main ()
  16739. {
  16740. return connect ();
  16741. ;
  16742. return 0;
  16743. }
  16744. _ACEOF
  16745. if ac_fn_c_try_link "$LINENO"; then :
  16746. ac_cv_lib_socket_connect=yes
  16747. else
  16748. ac_cv_lib_socket_connect=no
  16749. fi
  16750. rm -f core conftest.err conftest.$ac_objext \
  16751. conftest$ac_exeext conftest.$ac_ext
  16752. LIBS=$ac_check_lib_save_LIBS
  16753. fi
  16754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  16755. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  16756. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  16757. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  16758. fi
  16759. fi
  16760. # Guillermo Gomez says -lposix is necessary on A/UX.
  16761. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  16762. if test "x$ac_cv_func_remove" = xyes; then :
  16763. fi
  16764. if test $ac_cv_func_remove = no; then
  16765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  16766. $as_echo_n "checking for remove in -lposix... " >&6; }
  16767. if ${ac_cv_lib_posix_remove+:} false; then :
  16768. $as_echo_n "(cached) " >&6
  16769. else
  16770. ac_check_lib_save_LIBS=$LIBS
  16771. LIBS="-lposix $LIBS"
  16772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16773. /* end confdefs.h. */
  16774. /* Override any GCC internal prototype to avoid an error.
  16775. Use char because int might match the return type of a GCC
  16776. builtin and then its argument prototype would still apply. */
  16777. #ifdef __cplusplus
  16778. extern "C"
  16779. #endif
  16780. char remove ();
  16781. int
  16782. main ()
  16783. {
  16784. return remove ();
  16785. ;
  16786. return 0;
  16787. }
  16788. _ACEOF
  16789. if ac_fn_c_try_link "$LINENO"; then :
  16790. ac_cv_lib_posix_remove=yes
  16791. else
  16792. ac_cv_lib_posix_remove=no
  16793. fi
  16794. rm -f core conftest.err conftest.$ac_objext \
  16795. conftest$ac_exeext conftest.$ac_ext
  16796. LIBS=$ac_check_lib_save_LIBS
  16797. fi
  16798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  16799. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  16800. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  16801. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  16802. fi
  16803. fi
  16804. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  16805. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  16806. if test "x$ac_cv_func_shmat" = xyes; then :
  16807. fi
  16808. if test $ac_cv_func_shmat = no; then
  16809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  16810. $as_echo_n "checking for shmat in -lipc... " >&6; }
  16811. if ${ac_cv_lib_ipc_shmat+:} false; then :
  16812. $as_echo_n "(cached) " >&6
  16813. else
  16814. ac_check_lib_save_LIBS=$LIBS
  16815. LIBS="-lipc $LIBS"
  16816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16817. /* end confdefs.h. */
  16818. /* Override any GCC internal prototype to avoid an error.
  16819. Use char because int might match the return type of a GCC
  16820. builtin and then its argument prototype would still apply. */
  16821. #ifdef __cplusplus
  16822. extern "C"
  16823. #endif
  16824. char shmat ();
  16825. int
  16826. main ()
  16827. {
  16828. return shmat ();
  16829. ;
  16830. return 0;
  16831. }
  16832. _ACEOF
  16833. if ac_fn_c_try_link "$LINENO"; then :
  16834. ac_cv_lib_ipc_shmat=yes
  16835. else
  16836. ac_cv_lib_ipc_shmat=no
  16837. fi
  16838. rm -f core conftest.err conftest.$ac_objext \
  16839. conftest$ac_exeext conftest.$ac_ext
  16840. LIBS=$ac_check_lib_save_LIBS
  16841. fi
  16842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  16843. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  16844. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  16845. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  16846. fi
  16847. fi
  16848. fi
  16849. # Check for libraries that X11R6 Xt/Xaw programs need.
  16850. ac_save_LDFLAGS=$LDFLAGS
  16851. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  16852. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  16853. # check for ICE first), but we must link in the order -lSM -lICE or
  16854. # we get undefined symbols. So assume we have SM if we have ICE.
  16855. # These have to be linked with before -lX11, unlike the other
  16856. # libraries we check for below, so use a different variable.
  16857. # John Interrante, Karl Berry
  16858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  16859. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  16860. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  16861. $as_echo_n "(cached) " >&6
  16862. else
  16863. ac_check_lib_save_LIBS=$LIBS
  16864. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  16865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16866. /* end confdefs.h. */
  16867. /* Override any GCC internal prototype to avoid an error.
  16868. Use char because int might match the return type of a GCC
  16869. builtin and then its argument prototype would still apply. */
  16870. #ifdef __cplusplus
  16871. extern "C"
  16872. #endif
  16873. char IceConnectionNumber ();
  16874. int
  16875. main ()
  16876. {
  16877. return IceConnectionNumber ();
  16878. ;
  16879. return 0;
  16880. }
  16881. _ACEOF
  16882. if ac_fn_c_try_link "$LINENO"; then :
  16883. ac_cv_lib_ICE_IceConnectionNumber=yes
  16884. else
  16885. ac_cv_lib_ICE_IceConnectionNumber=no
  16886. fi
  16887. rm -f core conftest.err conftest.$ac_objext \
  16888. conftest$ac_exeext conftest.$ac_ext
  16889. LIBS=$ac_check_lib_save_LIBS
  16890. fi
  16891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  16892. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  16893. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  16894. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  16895. fi
  16896. LDFLAGS=$ac_save_LDFLAGS
  16897. fi
  16898. if test x$have_x = xyes; then
  16899. # Check whether --enable-x11-shared was given.
  16900. if test "${enable_x11_shared+set}" = set; then :
  16901. enableval=$enable_x11_shared;
  16902. else
  16903. enable_x11_shared=maybe
  16904. fi
  16905. case "$host" in
  16906. *-*-darwin*)
  16907. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  16908. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  16909. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  16910. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  16911. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  16912. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  16913. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  16914. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  16915. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  16916. ;;
  16917. *-*-openbsd*)
  16918. x11_lib='libX11.so'
  16919. x11ext_lib='libXext.so'
  16920. xcursor_lib='libXcursor.so'
  16921. xinerama_lib='libXinerama.so'
  16922. xinput_lib='libXi.so'
  16923. xrandr_lib='libXrandr.so'
  16924. xrender_lib='libXrender.so'
  16925. xss_lib='libXss.so'
  16926. xvidmode_lib='libXxf86vm.so'
  16927. ;;
  16928. *)
  16929. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16930. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16931. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16932. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16933. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16934. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16935. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16936. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16937. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16938. ;;
  16939. esac
  16940. if test x$ac_cv_func_shmat != xyes; then
  16941. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  16942. fi
  16943. CFLAGS="$CFLAGS $X_CFLAGS"
  16944. LDFLAGS="$LDFLAGS $X_LIBS"
  16945. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  16946. #include <X11/Xproto.h>
  16947. "
  16948. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  16949. have_xext_h_hdr=yes
  16950. else
  16951. have_xext_h_hdr=no
  16952. fi
  16953. if test x$have_xext_h_hdr != xyes; then
  16954. as_fn_error $? "
  16955. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  16956. " "$LINENO" 5
  16957. fi
  16958. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  16959. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  16960. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  16961. # Needed so SDL applications can include SDL_syswm.h
  16962. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  16963. if test x$enable_x11_shared = xmaybe; then
  16964. enable_x11_shared=yes
  16965. fi
  16966. if test x$have_loadso != xyes && \
  16967. test x$enable_x11_shared = xyes; then
  16968. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  16969. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  16970. enable_x11_shared=no
  16971. fi
  16972. if test x$have_loadso = xyes && \
  16973. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  16974. echo "-- dynamic libX11 -> $x11_lib"
  16975. echo "-- dynamic libX11ext -> $x11ext_lib"
  16976. cat >>confdefs.h <<_ACEOF
  16977. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  16978. _ACEOF
  16979. cat >>confdefs.h <<_ACEOF
  16980. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  16981. _ACEOF
  16982. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  16983. else
  16984. enable_x11_shared=no
  16985. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  16986. SUMMARY_video="${SUMMARY_video} x11"
  16987. fi
  16988. have_video=yes
  16989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  16990. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  16991. have_const_param_XextAddDisplay=no
  16992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16993. /* end confdefs.h. */
  16994. #include <X11/Xlib.h>
  16995. #include <X11/Xproto.h>
  16996. #include <X11/extensions/Xext.h>
  16997. #include <X11/extensions/extutil.h>
  16998. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  16999. int
  17000. main ()
  17001. {
  17002. ;
  17003. return 0;
  17004. }
  17005. _ACEOF
  17006. if ac_fn_c_try_compile "$LINENO"; then :
  17007. have_const_param_XextAddDisplay=yes
  17008. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17009. fi
  17010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17012. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to _XData32" >&5
  17014. $as_echo_n "checking for const parameter to _XData32... " >&6; }
  17015. have_const_param_xdata32=no
  17016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17017. /* end confdefs.h. */
  17018. #include <X11/Xlibint.h>
  17019. extern int _XData32(Display *dpy,register _Xconst long *data,unsigned len);
  17020. int
  17021. main ()
  17022. {
  17023. ;
  17024. return 0;
  17025. }
  17026. _ACEOF
  17027. if ac_fn_c_try_compile "$LINENO"; then :
  17028. have_const_param_xdata32=yes
  17029. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 1" >>confdefs.h
  17030. fi
  17031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_xdata32" >&5
  17033. $as_echo "$have_const_param_xdata32" >&6; }
  17034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17035. $as_echo_n "checking for XGenericEvent... " >&6; }
  17036. have_XGenericEvent=no
  17037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17038. /* end confdefs.h. */
  17039. #include <X11/Xlib.h>
  17040. int
  17041. main ()
  17042. {
  17043. Display *display;
  17044. XEvent event;
  17045. XGenericEventCookie *cookie = &event.xcookie;
  17046. XNextEvent(display, &event);
  17047. XGetEventData(display, cookie);
  17048. XFreeEventData(display, cookie);
  17049. ;
  17050. return 0;
  17051. }
  17052. _ACEOF
  17053. if ac_fn_c_try_compile "$LINENO"; then :
  17054. have_XGenericEvent=yes
  17055. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17056. fi
  17057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17059. $as_echo "$have_XGenericEvent" >&6; }
  17060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17061. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17062. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17063. $as_echo_n "(cached) " >&6
  17064. else
  17065. ac_check_lib_save_LIBS=$LIBS
  17066. LIBS="-lX11 $LIBS"
  17067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17068. /* end confdefs.h. */
  17069. /* Override any GCC internal prototype to avoid an error.
  17070. Use char because int might match the return type of a GCC
  17071. builtin and then its argument prototype would still apply. */
  17072. #ifdef __cplusplus
  17073. extern "C"
  17074. #endif
  17075. char XkbKeycodeToKeysym ();
  17076. int
  17077. main ()
  17078. {
  17079. return XkbKeycodeToKeysym ();
  17080. ;
  17081. return 0;
  17082. }
  17083. _ACEOF
  17084. if ac_fn_c_try_link "$LINENO"; then :
  17085. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17086. else
  17087. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17088. fi
  17089. rm -f core conftest.err conftest.$ac_objext \
  17090. conftest$ac_exeext conftest.$ac_ext
  17091. LIBS=$ac_check_lib_save_LIBS
  17092. fi
  17093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17094. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17095. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17096. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17097. fi
  17098. # Check whether --enable-video-x11-xcursor was given.
  17099. if test "${enable_video_x11_xcursor+set}" = set; then :
  17100. enableval=$enable_video_x11_xcursor;
  17101. else
  17102. enable_video_x11_xcursor=yes
  17103. fi
  17104. if test x$enable_video_x11_xcursor = xyes; then
  17105. definitely_enable_video_x11_xcursor=no
  17106. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17107. "
  17108. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17109. have_xcursor_h_hdr=yes
  17110. else
  17111. have_xcursor_h_hdr=no
  17112. fi
  17113. if test x$have_xcursor_h_hdr = xyes; then
  17114. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17115. echo "-- dynamic libXcursor -> $xcursor_lib"
  17116. cat >>confdefs.h <<_ACEOF
  17117. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17118. _ACEOF
  17119. definitely_enable_video_x11_xcursor=yes
  17120. else
  17121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17122. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17123. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17124. $as_echo_n "(cached) " >&6
  17125. else
  17126. ac_check_lib_save_LIBS=$LIBS
  17127. LIBS="-lXcursor $LIBS"
  17128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17129. /* end confdefs.h. */
  17130. /* Override any GCC internal prototype to avoid an error.
  17131. Use char because int might match the return type of a GCC
  17132. builtin and then its argument prototype would still apply. */
  17133. #ifdef __cplusplus
  17134. extern "C"
  17135. #endif
  17136. char XcursorImageCreate ();
  17137. int
  17138. main ()
  17139. {
  17140. return XcursorImageCreate ();
  17141. ;
  17142. return 0;
  17143. }
  17144. _ACEOF
  17145. if ac_fn_c_try_link "$LINENO"; then :
  17146. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17147. else
  17148. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17149. fi
  17150. rm -f core conftest.err conftest.$ac_objext \
  17151. conftest$ac_exeext conftest.$ac_ext
  17152. LIBS=$ac_check_lib_save_LIBS
  17153. fi
  17154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17155. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17156. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17157. have_xcursor_lib=yes
  17158. fi
  17159. if test x$have_xcursor_lib = xyes ; then
  17160. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17161. definitely_enable_video_x11_xcursor=yes
  17162. fi
  17163. fi
  17164. fi
  17165. fi
  17166. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17167. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17168. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17169. fi
  17170. # Check whether --enable-video-x11-xinerama was given.
  17171. if test "${enable_video_x11_xinerama+set}" = set; then :
  17172. enableval=$enable_video_x11_xinerama;
  17173. else
  17174. enable_video_x11_xinerama=yes
  17175. fi
  17176. if test x$enable_video_x11_xinerama = xyes; then
  17177. definitely_enable_video_x11_xinerama=no
  17178. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17179. "
  17180. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17181. have_xinerama_h_hdr=yes
  17182. else
  17183. have_xinerama_h_hdr=no
  17184. fi
  17185. if test x$have_xinerama_h_hdr = xyes; then
  17186. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17187. echo "-- dynamic libXinerama -> $xinerama_lib"
  17188. cat >>confdefs.h <<_ACEOF
  17189. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17190. _ACEOF
  17191. definitely_enable_video_x11_xinerama=yes
  17192. else
  17193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17194. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17195. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17196. $as_echo_n "(cached) " >&6
  17197. else
  17198. ac_check_lib_save_LIBS=$LIBS
  17199. LIBS="-lXinerama $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 XineramaQueryExtension ();
  17209. int
  17210. main ()
  17211. {
  17212. return XineramaQueryExtension ();
  17213. ;
  17214. return 0;
  17215. }
  17216. _ACEOF
  17217. if ac_fn_c_try_link "$LINENO"; then :
  17218. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17219. else
  17220. ac_cv_lib_Xinerama_XineramaQueryExtension=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_Xinerama_XineramaQueryExtension" >&5
  17227. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17228. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17229. have_xinerama_lib=yes
  17230. fi
  17231. if test x$have_xinerama_lib = xyes ; then
  17232. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17233. definitely_enable_video_x11_xinerama=yes
  17234. fi
  17235. fi
  17236. fi
  17237. fi
  17238. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17239. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17240. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17241. fi
  17242. # Check whether --enable-video-x11-xinput was given.
  17243. if test "${enable_video_x11_xinput+set}" = set; then :
  17244. enableval=$enable_video_x11_xinput;
  17245. else
  17246. enable_video_x11_xinput=yes
  17247. fi
  17248. if test x$enable_video_x11_xinput = xyes; then
  17249. definitely_enable_video_x11_xinput=no
  17250. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17251. "
  17252. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17253. have_xinput_h_hdr=yes
  17254. else
  17255. have_xinput_h_hdr=no
  17256. fi
  17257. if test x$have_xinput_h_hdr = xyes; then
  17258. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17259. echo "-- dynamic libXi -> $xinput_lib"
  17260. cat >>confdefs.h <<_ACEOF
  17261. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17262. _ACEOF
  17263. definitely_enable_video_x11_xinput=yes
  17264. else
  17265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17266. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17267. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17268. $as_echo_n "(cached) " >&6
  17269. else
  17270. ac_check_lib_save_LIBS=$LIBS
  17271. LIBS="-lXi $LIBS"
  17272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17273. /* end confdefs.h. */
  17274. /* Override any GCC internal prototype to avoid an error.
  17275. Use char because int might match the return type of a GCC
  17276. builtin and then its argument prototype would still apply. */
  17277. #ifdef __cplusplus
  17278. extern "C"
  17279. #endif
  17280. char XOpenDevice ();
  17281. int
  17282. main ()
  17283. {
  17284. return XOpenDevice ();
  17285. ;
  17286. return 0;
  17287. }
  17288. _ACEOF
  17289. if ac_fn_c_try_link "$LINENO"; then :
  17290. ac_cv_lib_Xi_XOpenDevice=yes
  17291. else
  17292. ac_cv_lib_Xi_XOpenDevice=no
  17293. fi
  17294. rm -f core conftest.err conftest.$ac_objext \
  17295. conftest$ac_exeext conftest.$ac_ext
  17296. LIBS=$ac_check_lib_save_LIBS
  17297. fi
  17298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17299. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17300. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17301. have_xinput_lib=yes
  17302. fi
  17303. if test x$have_xinput_lib = xyes ; then
  17304. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17305. definitely_enable_video_x11_xinput=yes
  17306. fi
  17307. fi
  17308. fi
  17309. fi
  17310. if test x$definitely_enable_video_x11_xinput = xyes; then
  17311. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17312. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17314. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17315. have_xinput2_multitouch=no
  17316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17317. /* end confdefs.h. */
  17318. #include <X11/Xlib.h>
  17319. #include <X11/Xproto.h>
  17320. #include <X11/extensions/XInput2.h>
  17321. int
  17322. main ()
  17323. {
  17324. int event_type = XI_TouchBegin;
  17325. XITouchClassInfo *t;
  17326. Status
  17327. XIAllowTouchEvents(Display *a,int b,unsigned int c,Window d,int f)
  17328. {
  17329. return (Status)0;
  17330. }
  17331. ;
  17332. return 0;
  17333. }
  17334. _ACEOF
  17335. if ac_fn_c_try_compile "$LINENO"; then :
  17336. have_xinput2_multitouch=yes
  17337. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17338. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17339. fi
  17340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17342. $as_echo "$have_xinput2_multitouch" >&6; }
  17343. fi
  17344. # Check whether --enable-video-x11-xrandr was given.
  17345. if test "${enable_video_x11_xrandr+set}" = set; then :
  17346. enableval=$enable_video_x11_xrandr;
  17347. else
  17348. enable_video_x11_xrandr=yes
  17349. fi
  17350. if test x$enable_video_x11_xrandr = xyes; then
  17351. definitely_enable_video_x11_xrandr=no
  17352. have_xrandr_h_hdr=no
  17353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17354. /* end confdefs.h. */
  17355. #include <X11/Xlib.h>
  17356. #include <X11/extensions/Xrandr.h>
  17357. int
  17358. main ()
  17359. {
  17360. XRRScreenResources *res = NULL;
  17361. ;
  17362. return 0;
  17363. }
  17364. _ACEOF
  17365. if ac_fn_c_try_compile "$LINENO"; then :
  17366. have_xrandr_h_hdr=yes
  17367. fi
  17368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17369. if test x$have_xrandr_h_hdr = xyes; then
  17370. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17371. echo "-- dynamic libXrandr -> $xrandr_lib"
  17372. cat >>confdefs.h <<_ACEOF
  17373. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17374. _ACEOF
  17375. definitely_enable_video_x11_xrandr=yes
  17376. else
  17377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17378. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17379. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17380. $as_echo_n "(cached) " >&6
  17381. else
  17382. ac_check_lib_save_LIBS=$LIBS
  17383. LIBS="-lXrandr $LIBS"
  17384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17385. /* end confdefs.h. */
  17386. /* Override any GCC internal prototype to avoid an error.
  17387. Use char because int might match the return type of a GCC
  17388. builtin and then its argument prototype would still apply. */
  17389. #ifdef __cplusplus
  17390. extern "C"
  17391. #endif
  17392. char XRRQueryExtension ();
  17393. int
  17394. main ()
  17395. {
  17396. return XRRQueryExtension ();
  17397. ;
  17398. return 0;
  17399. }
  17400. _ACEOF
  17401. if ac_fn_c_try_link "$LINENO"; then :
  17402. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17403. else
  17404. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17405. fi
  17406. rm -f core conftest.err conftest.$ac_objext \
  17407. conftest$ac_exeext conftest.$ac_ext
  17408. LIBS=$ac_check_lib_save_LIBS
  17409. fi
  17410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17411. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17412. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17413. have_xrandr_lib=yes
  17414. fi
  17415. if test x$have_xrandr_lib = xyes ; then
  17416. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17417. definitely_enable_video_x11_xrandr=yes
  17418. fi
  17419. fi
  17420. fi
  17421. fi
  17422. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17423. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17424. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17425. fi
  17426. # Check whether --enable-video-x11-scrnsaver was given.
  17427. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17428. enableval=$enable_video_x11_scrnsaver;
  17429. else
  17430. enable_video_x11_scrnsaver=yes
  17431. fi
  17432. if test x$enable_video_x11_scrnsaver = xyes; then
  17433. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17434. "
  17435. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17436. have_scrnsaver_h_hdr=yes
  17437. else
  17438. have_scrnsaver_h_hdr=no
  17439. fi
  17440. if test x$have_scrnsaver_h_hdr = xyes; then
  17441. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17442. echo "-- dynamic libXss -> $xss_lib"
  17443. cat >>confdefs.h <<_ACEOF
  17444. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17445. _ACEOF
  17446. definitely_enable_video_x11_scrnsaver=yes
  17447. else
  17448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17449. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17450. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17451. $as_echo_n "(cached) " >&6
  17452. else
  17453. ac_check_lib_save_LIBS=$LIBS
  17454. LIBS="-lXss $LIBS"
  17455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17456. /* end confdefs.h. */
  17457. /* Override any GCC internal prototype to avoid an error.
  17458. Use char because int might match the return type of a GCC
  17459. builtin and then its argument prototype would still apply. */
  17460. #ifdef __cplusplus
  17461. extern "C"
  17462. #endif
  17463. char XScreenSaverSuspend ();
  17464. int
  17465. main ()
  17466. {
  17467. return XScreenSaverSuspend ();
  17468. ;
  17469. return 0;
  17470. }
  17471. _ACEOF
  17472. if ac_fn_c_try_link "$LINENO"; then :
  17473. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17474. else
  17475. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17476. fi
  17477. rm -f core conftest.err conftest.$ac_objext \
  17478. conftest$ac_exeext conftest.$ac_ext
  17479. LIBS=$ac_check_lib_save_LIBS
  17480. fi
  17481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17482. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17483. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17484. have_xss_lib=yes
  17485. fi
  17486. if test x$have_xss_lib = xyes ; then
  17487. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17488. definitely_enable_video_x11_scrnsaver=yes
  17489. fi
  17490. fi
  17491. fi
  17492. fi
  17493. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17494. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17495. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17496. fi
  17497. # Check whether --enable-video-x11-xshape was given.
  17498. if test "${enable_video_x11_xshape+set}" = set; then :
  17499. enableval=$enable_video_x11_xshape;
  17500. else
  17501. enable_video_x11_xshape=yes
  17502. fi
  17503. if test x$enable_video_x11_xshape = xyes; then
  17504. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17505. "
  17506. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17507. have_shape_h_hdr=yes
  17508. else
  17509. have_shape_h_hdr=no
  17510. fi
  17511. if test x$have_shape_h_hdr = xyes; then
  17512. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17513. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  17514. fi
  17515. fi
  17516. # Check whether --enable-video-x11-vm was given.
  17517. if test "${enable_video_x11_vm+set}" = set; then :
  17518. enableval=$enable_video_x11_vm;
  17519. else
  17520. enable_video_x11_vm=yes
  17521. fi
  17522. if test x$enable_video_x11_vm = xyes; then
  17523. definitely_enable_video_x11_vm=no
  17524. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17525. "
  17526. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17527. have_vm_h_hdr=yes
  17528. else
  17529. have_vm_h_hdr=no
  17530. fi
  17531. if test x$have_vm_h_hdr = xyes; then
  17532. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17533. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17534. cat >>confdefs.h <<_ACEOF
  17535. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17536. _ACEOF
  17537. definitely_enable_video_x11_vm=yes
  17538. else
  17539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17540. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17541. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17542. $as_echo_n "(cached) " >&6
  17543. else
  17544. ac_check_lib_save_LIBS=$LIBS
  17545. LIBS="-lXxf86vm $LIBS"
  17546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17547. /* end confdefs.h. */
  17548. /* Override any GCC internal prototype to avoid an error.
  17549. Use char because int might match the return type of a GCC
  17550. builtin and then its argument prototype would still apply. */
  17551. #ifdef __cplusplus
  17552. extern "C"
  17553. #endif
  17554. char XF86VidModeQueryVersion ();
  17555. int
  17556. main ()
  17557. {
  17558. return XF86VidModeQueryVersion ();
  17559. ;
  17560. return 0;
  17561. }
  17562. _ACEOF
  17563. if ac_fn_c_try_link "$LINENO"; then :
  17564. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17565. else
  17566. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17567. fi
  17568. rm -f core conftest.err conftest.$ac_objext \
  17569. conftest$ac_exeext conftest.$ac_ext
  17570. LIBS=$ac_check_lib_save_LIBS
  17571. fi
  17572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17573. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17574. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17575. have_vm_lib=yes
  17576. fi
  17577. if test x$have_vm_lib = xyes ; then
  17578. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  17579. definitely_enable_video_x11_vm=yes
  17580. fi
  17581. fi
  17582. fi
  17583. fi
  17584. if test x$definitely_enable_video_x11_vm = xyes; then
  17585. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  17586. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  17587. fi
  17588. fi
  17589. fi
  17590. }
  17591. CheckHaikuVideo()
  17592. {
  17593. if test x$enable_video = xyes; then
  17594. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  17595. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  17596. have_video=yes
  17597. SUMMARY_video="${SUMMARY_video} haiku"
  17598. fi
  17599. }
  17600. CheckCOCOA()
  17601. {
  17602. # Check whether --enable-video-cocoa was given.
  17603. if test "${enable_video_cocoa+set}" = set; then :
  17604. enableval=$enable_video_cocoa;
  17605. else
  17606. enable_video_cocoa=yes
  17607. fi
  17608. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  17609. save_CFLAGS="$CFLAGS"
  17610. CFLAGS="$CFLAGS -x objective-c"
  17611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  17612. $as_echo_n "checking for Cocoa framework... " >&6; }
  17613. have_cocoa=no
  17614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17615. /* end confdefs.h. */
  17616. #import <Cocoa/Cocoa.h>
  17617. int
  17618. main ()
  17619. {
  17620. ;
  17621. return 0;
  17622. }
  17623. _ACEOF
  17624. if ac_fn_c_try_compile "$LINENO"; then :
  17625. have_cocoa=yes
  17626. fi
  17627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  17629. $as_echo "$have_cocoa" >&6; }
  17630. CFLAGS="$save_CFLAGS"
  17631. if test x$have_cocoa = xyes; then
  17632. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  17633. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  17634. SUMMARY_video="${SUMMARY_video} cocoa"
  17635. have_video=yes
  17636. fi
  17637. fi
  17638. }
  17639. CheckDirectFB()
  17640. {
  17641. # Check whether --enable-video-directfb was given.
  17642. if test "${enable_video_directfb+set}" = set; then :
  17643. enableval=$enable_video_directfb;
  17644. else
  17645. enable_video_directfb=no
  17646. fi
  17647. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  17648. video_directfb=no
  17649. DIRECTFB_REQUIRED_VERSION=1.0.0
  17650. for ac_prog in directfb-config
  17651. do
  17652. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17653. set dummy $ac_prog; ac_word=$2
  17654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17655. $as_echo_n "checking for $ac_word... " >&6; }
  17656. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  17657. $as_echo_n "(cached) " >&6
  17658. else
  17659. case $DIRECTFBCONFIG in
  17660. [\\/]* | ?:[\\/]*)
  17661. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  17662. ;;
  17663. *)
  17664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17665. as_dummy="$prefix/bin:$PATH"
  17666. for as_dir in $as_dummy
  17667. do
  17668. IFS=$as_save_IFS
  17669. test -z "$as_dir" && as_dir=.
  17670. for ac_exec_ext in '' $ac_executable_extensions; do
  17671. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17672. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17673. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17674. break 2
  17675. fi
  17676. done
  17677. done
  17678. IFS=$as_save_IFS
  17679. ;;
  17680. esac
  17681. fi
  17682. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  17683. if test -n "$DIRECTFBCONFIG"; then
  17684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  17685. $as_echo "$DIRECTFBCONFIG" >&6; }
  17686. else
  17687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17688. $as_echo "no" >&6; }
  17689. fi
  17690. test -n "$DIRECTFBCONFIG" && break
  17691. done
  17692. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  17693. if test x$DIRECTFBCONFIG = xno; then
  17694. # Extract the first word of "pkg-config", so it can be a program name with args.
  17695. set dummy pkg-config; ac_word=$2
  17696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17697. $as_echo_n "checking for $ac_word... " >&6; }
  17698. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17699. $as_echo_n "(cached) " >&6
  17700. else
  17701. case $PKG_CONFIG in
  17702. [\\/]* | ?:[\\/]*)
  17703. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17704. ;;
  17705. *)
  17706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17707. for as_dir in $PATH
  17708. do
  17709. IFS=$as_save_IFS
  17710. test -z "$as_dir" && as_dir=.
  17711. for ac_exec_ext in '' $ac_executable_extensions; do
  17712. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17713. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17714. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17715. break 2
  17716. fi
  17717. done
  17718. done
  17719. IFS=$as_save_IFS
  17720. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17721. ;;
  17722. esac
  17723. fi
  17724. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17725. if test -n "$PKG_CONFIG"; then
  17726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17727. $as_echo "$PKG_CONFIG" >&6; }
  17728. else
  17729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17730. $as_echo "no" >&6; }
  17731. fi
  17732. if test x$PKG_CONFIG != xno; then
  17733. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  17734. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  17735. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  17736. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  17737. video_directfb=yes
  17738. fi
  17739. fi
  17740. else
  17741. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  17742. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17743. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  17744. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17745. if test $HAVE_VERSION -ge $NEED_VERSION; then
  17746. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  17747. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  17748. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  17749. video_directfb=yes
  17750. fi
  17751. fi
  17752. if test x$video_directfb = xyes; then
  17753. # SuSE 11.1 installs directfb-config without directfb-devel
  17754. save_CPPFLAGS="$CPPFLAGS"
  17755. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  17756. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  17757. if test "x$ac_cv_header_directfb_h" = xyes; then :
  17758. have_directfb_hdr=yes
  17759. else
  17760. have_directfb_hdr=no
  17761. fi
  17762. CPPFLAGS="$save_CPPFLAGS"
  17763. video_directfb=$have_directfb_hdr
  17764. fi
  17765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  17766. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  17767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  17768. $as_echo "$video_directfb" >&6; }
  17769. if test x$video_directfb = xyes; then
  17770. # Check whether --enable-directfb-shared was given.
  17771. if test "${enable_directfb_shared+set}" = set; then :
  17772. enableval=$enable_directfb_shared;
  17773. else
  17774. enable_directfb_shared=yes
  17775. fi
  17776. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  17777. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  17778. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  17779. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  17780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  17781. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  17782. directfb_shared=no
  17783. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  17784. # | sed 's/.*\/\(.*\)/\1/; q'`]
  17785. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  17786. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  17787. if test x$have_loadso != xyes && \
  17788. test x$enable_directfb_shared = xyes; then
  17789. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  17790. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  17791. fi
  17792. if test x$have_loadso = xyes && \
  17793. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  17794. directfb_shared=yes
  17795. echo "-- $directfb_lib_spec -> $directfb_lib"
  17796. cat >>confdefs.h <<_ACEOF
  17797. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  17798. _ACEOF
  17799. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  17800. else
  17801. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  17802. SUMMARY_video="${SUMMARY_video} directfb"
  17803. fi
  17804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  17805. $as_echo "$directfb_shared" >&6; }
  17806. have_video=yes
  17807. fi
  17808. fi
  17809. }
  17810. CheckFusionSound()
  17811. {
  17812. # Check whether --enable-fusionsound was given.
  17813. if test "${enable_fusionsound+set}" = set; then :
  17814. enableval=$enable_fusionsound;
  17815. else
  17816. enable_fusionsound=no
  17817. fi
  17818. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17819. fusionsound=no
  17820. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  17821. # Extract the first word of "pkg-config", so it can be a program name with args.
  17822. set dummy pkg-config; ac_word=$2
  17823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17824. $as_echo_n "checking for $ac_word... " >&6; }
  17825. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17826. $as_echo_n "(cached) " >&6
  17827. else
  17828. case $PKG_CONFIG in
  17829. [\\/]* | ?:[\\/]*)
  17830. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17831. ;;
  17832. *)
  17833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17834. for as_dir in $PATH
  17835. do
  17836. IFS=$as_save_IFS
  17837. test -z "$as_dir" && as_dir=.
  17838. for ac_exec_ext in '' $ac_executable_extensions; do
  17839. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17840. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17842. break 2
  17843. fi
  17844. done
  17845. done
  17846. IFS=$as_save_IFS
  17847. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17848. ;;
  17849. esac
  17850. fi
  17851. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17852. if test -n "$PKG_CONFIG"; then
  17853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17854. $as_echo "$PKG_CONFIG" >&6; }
  17855. else
  17856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17857. $as_echo "no" >&6; }
  17858. fi
  17859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  17860. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  17861. if test x$PKG_CONFIG != xno; then
  17862. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  17863. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  17864. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  17865. fusionsound=yes
  17866. fi
  17867. fi
  17868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  17869. $as_echo "$fusionsound" >&6; }
  17870. if test x$fusionsound = xyes; then
  17871. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17872. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17873. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17874. # Check whether --enable-fusionsound-shared was given.
  17875. if test "${enable_fusionsound_shared+set}" = set; then :
  17876. enableval=$enable_fusionsound_shared;
  17877. else
  17878. enable_fusionsound_shared=yes
  17879. fi
  17880. fusionsound_shared=no
  17881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17882. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17883. if test x$have_loadso != xyes && \
  17884. test x$enable_fusionsound_shared = xyes; then
  17885. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17886. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17887. fi
  17888. if test x$have_loadso = xyes && \
  17889. test x$enable_fusionsound_shared = xyes; then
  17890. cat >>confdefs.h <<_ACEOF
  17891. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17892. _ACEOF
  17893. fusionsound_shared=yes
  17894. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  17895. else
  17896. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17897. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  17898. fi
  17899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17900. $as_echo "$fusionsound_shared" >&6; }
  17901. have_audio=yes
  17902. fi
  17903. fi
  17904. }
  17905. CheckDummyVideo()
  17906. {
  17907. # Check whether --enable-video-dummy was given.
  17908. if test "${enable_video_dummy+set}" = set; then :
  17909. enableval=$enable_video_dummy;
  17910. else
  17911. enable_video_dummy=yes
  17912. fi
  17913. if test x$enable_video_dummy = xyes; then
  17914. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  17915. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  17916. have_video=yes
  17917. SUMMARY_video="${SUMMARY_video} dummy"
  17918. fi
  17919. }
  17920. # Check whether --enable-video-opengl was given.
  17921. if test "${enable_video_opengl+set}" = set; then :
  17922. enableval=$enable_video_opengl;
  17923. else
  17924. enable_video_opengl=yes
  17925. fi
  17926. CheckOpenGLX11()
  17927. {
  17928. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  17930. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  17931. video_opengl=no
  17932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17933. /* end confdefs.h. */
  17934. #include <GL/gl.h>
  17935. #include <GL/glx.h>
  17936. int
  17937. main ()
  17938. {
  17939. ;
  17940. return 0;
  17941. }
  17942. _ACEOF
  17943. if ac_fn_c_try_compile "$LINENO"; then :
  17944. video_opengl=yes
  17945. fi
  17946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  17948. $as_echo "$video_opengl" >&6; }
  17949. if test x$video_opengl = xyes; then
  17950. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17951. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  17952. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17953. SUMMARY_video="${SUMMARY_video} opengl"
  17954. fi
  17955. fi
  17956. }
  17957. # Check whether --enable-video-opengles was given.
  17958. if test "${enable_video_opengles+set}" = set; then :
  17959. enableval=$enable_video_opengles;
  17960. else
  17961. enable_video_opengles=yes
  17962. fi
  17963. CheckOpenGLESX11()
  17964. {
  17965. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  17966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  17967. $as_echo_n "checking for EGL support... " >&6; }
  17968. video_opengl_egl=no
  17969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17970. /* end confdefs.h. */
  17971. #include <EGL/egl.h>
  17972. int
  17973. main ()
  17974. {
  17975. ;
  17976. return 0;
  17977. }
  17978. _ACEOF
  17979. if ac_fn_c_try_compile "$LINENO"; then :
  17980. video_opengl_egl=yes
  17981. fi
  17982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  17984. $as_echo "$video_opengl_egl" >&6; }
  17985. if test x$video_opengl_egl = xyes; then
  17986. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  17987. fi
  17988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  17989. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  17990. video_opengles_v1=no
  17991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17992. /* end confdefs.h. */
  17993. #include <GLES/gl.h>
  17994. #include <GLES/glext.h>
  17995. int
  17996. main ()
  17997. {
  17998. ;
  17999. return 0;
  18000. }
  18001. _ACEOF
  18002. if ac_fn_c_try_compile "$LINENO"; then :
  18003. video_opengles_v1=yes
  18004. fi
  18005. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18007. $as_echo "$video_opengles_v1" >&6; }
  18008. if test x$video_opengles_v1 = xyes; then
  18009. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18010. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18011. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18012. fi
  18013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18014. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18015. video_opengles_v2=no
  18016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18017. /* end confdefs.h. */
  18018. #include <GLES2/gl2.h>
  18019. #include <GLES2/gl2ext.h>
  18020. int
  18021. main ()
  18022. {
  18023. ;
  18024. return 0;
  18025. }
  18026. _ACEOF
  18027. if ac_fn_c_try_compile "$LINENO"; then :
  18028. video_opengles_v2=yes
  18029. fi
  18030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18032. $as_echo "$video_opengles_v2" >&6; }
  18033. if test x$video_opengles_v2 = xyes; then
  18034. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18035. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18036. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18037. fi
  18038. fi
  18039. }
  18040. CheckWINDOWSGL()
  18041. {
  18042. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18043. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18044. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18045. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18046. SUMMARY_video="${SUMMARY_video} opengl"
  18047. fi
  18048. }
  18049. CheckWINDOWSGLES()
  18050. {
  18051. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18053. $as_echo_n "checking for EGL support... " >&6; }
  18054. video_opengl_egl=no
  18055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18056. /* end confdefs.h. */
  18057. #include <EGL/egl.h>
  18058. int
  18059. main ()
  18060. {
  18061. ;
  18062. return 0;
  18063. }
  18064. _ACEOF
  18065. if ac_fn_c_try_compile "$LINENO"; then :
  18066. video_opengl_egl=yes
  18067. fi
  18068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18070. $as_echo "$video_opengl_egl" >&6; }
  18071. if test x$video_opengl_egl = xyes; then
  18072. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18073. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18074. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18075. fi
  18076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18077. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18078. video_opengles_v2=no
  18079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18080. /* end confdefs.h. */
  18081. #include <GLES2/gl2.h>
  18082. #include <GLES2/gl2ext.h>
  18083. int
  18084. main ()
  18085. {
  18086. ;
  18087. return 0;
  18088. }
  18089. _ACEOF
  18090. if ac_fn_c_try_compile "$LINENO"; then :
  18091. video_opengles_v2=yes
  18092. fi
  18093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18095. $as_echo "$video_opengles_v2" >&6; }
  18096. if test x$video_opengles_v2 = xyes; then
  18097. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18098. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18099. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18100. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18101. fi
  18102. fi
  18103. }
  18104. CheckHaikuGL()
  18105. {
  18106. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18107. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18108. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18109. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18110. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18111. SUMMARY_video="${SUMMARY_video} opengl"
  18112. fi
  18113. }
  18114. CheckMacGL()
  18115. {
  18116. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18117. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18118. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18119. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18120. SUMMARY_video="${SUMMARY_video} opengl"
  18121. case "$host" in
  18122. *-*-darwin*)
  18123. if test x$enable_video_cocoa = xyes; then
  18124. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL"
  18125. fi
  18126. esac
  18127. fi
  18128. }
  18129. CheckInputEvents()
  18130. {
  18131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18132. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18133. use_input_events=no
  18134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18135. /* end confdefs.h. */
  18136. #include <linux/input.h>
  18137. int
  18138. main ()
  18139. {
  18140. #ifndef EVIOCGNAME
  18141. #error EVIOCGNAME() ioctl not available
  18142. #endif
  18143. ;
  18144. return 0;
  18145. }
  18146. _ACEOF
  18147. if ac_fn_c_try_compile "$LINENO"; then :
  18148. use_input_events=yes
  18149. fi
  18150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18152. $as_echo "$use_input_events" >&6; }
  18153. if test x$use_input_events = xyes; then
  18154. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18155. SUMMARY_input="${SUMMARY_input} linuxev"
  18156. fi
  18157. }
  18158. CheckInputKD()
  18159. {
  18160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18161. $as_echo_n "checking for Linux kd.h... " >&6; }
  18162. use_input_kd=no
  18163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18164. /* end confdefs.h. */
  18165. #include <linux/kd.h>
  18166. #include <linux/keyboard.h>
  18167. int
  18168. main ()
  18169. {
  18170. struct kbentry kbe;
  18171. kbe.kb_table = KG_CTRL;
  18172. ioctl(0, KDGKBENT, &kbe);
  18173. ;
  18174. return 0;
  18175. }
  18176. _ACEOF
  18177. if ac_fn_c_try_compile "$LINENO"; then :
  18178. use_input_kd=yes
  18179. fi
  18180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18182. $as_echo "$use_input_kd" >&6; }
  18183. if test x$use_input_kd = xyes; then
  18184. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18185. SUMMARY_input="${SUMMARY_input} linuxkd"
  18186. fi
  18187. }
  18188. CheckLibUDev()
  18189. {
  18190. # Check whether --enable-libudev was given.
  18191. if test "${enable_libudev+set}" = set; then :
  18192. enableval=$enable_libudev;
  18193. else
  18194. enable_libudev=yes
  18195. fi
  18196. if test x$enable_libudev = xyes; then
  18197. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18198. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18199. have_libudev_h_hdr=yes
  18200. else
  18201. have_libudev_h_hdr=no
  18202. fi
  18203. if test x$have_libudev_h_hdr = xyes; then
  18204. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18205. fi
  18206. fi
  18207. }
  18208. CheckDBus()
  18209. {
  18210. # Check whether --enable-dbus was given.
  18211. if test "${enable_dbus+set}" = set; then :
  18212. enableval=$enable_dbus;
  18213. else
  18214. enable_dbus=yes
  18215. fi
  18216. if test x$enable_dbus = xyes; then
  18217. # Extract the first word of "pkg-config", so it can be a program name with args.
  18218. set dummy pkg-config; ac_word=$2
  18219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18220. $as_echo_n "checking for $ac_word... " >&6; }
  18221. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18222. $as_echo_n "(cached) " >&6
  18223. else
  18224. case $PKG_CONFIG in
  18225. [\\/]* | ?:[\\/]*)
  18226. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18227. ;;
  18228. *)
  18229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18230. for as_dir in $PATH
  18231. do
  18232. IFS=$as_save_IFS
  18233. test -z "$as_dir" && as_dir=.
  18234. for ac_exec_ext in '' $ac_executable_extensions; do
  18235. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18236. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18237. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18238. break 2
  18239. fi
  18240. done
  18241. done
  18242. IFS=$as_save_IFS
  18243. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18244. ;;
  18245. esac
  18246. fi
  18247. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18248. if test -n "$PKG_CONFIG"; then
  18249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18250. $as_echo "$PKG_CONFIG" >&6; }
  18251. else
  18252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18253. $as_echo "no" >&6; }
  18254. fi
  18255. if test x$PKG_CONFIG != xno; then
  18256. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18257. save_CFLAGS="$CFLAGS"
  18258. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18259. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18260. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18261. have_dbus_dbus_h_hdr=yes
  18262. else
  18263. have_dbus_dbus_h_hdr=no
  18264. fi
  18265. CFLAGS="$save_CFLAGS"
  18266. if test x$have_dbus_dbus_h_hdr = xyes; then
  18267. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18268. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18269. fi
  18270. fi
  18271. fi
  18272. }
  18273. CheckTslib()
  18274. {
  18275. # Check whether --enable-input-tslib was given.
  18276. if test "${enable_input_tslib+set}" = set; then :
  18277. enableval=$enable_input_tslib;
  18278. else
  18279. enable_input_tslib=yes
  18280. fi
  18281. if test x$enable_input_tslib = xyes; then
  18282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  18283. $as_echo_n "checking for Touchscreen library support... " >&6; }
  18284. enable_input_tslib=no
  18285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18286. /* end confdefs.h. */
  18287. #include "tslib.h"
  18288. int
  18289. main ()
  18290. {
  18291. ;
  18292. return 0;
  18293. }
  18294. _ACEOF
  18295. if ac_fn_c_try_compile "$LINENO"; then :
  18296. enable_input_tslib=yes
  18297. fi
  18298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  18300. $as_echo "$enable_input_tslib" >&6; }
  18301. if test x$enable_input_tslib = xyes; then
  18302. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  18303. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  18304. SUMMARY_input="${SUMMARY_input} ts"
  18305. fi
  18306. fi
  18307. }
  18308. CheckPTHREAD()
  18309. {
  18310. # Check whether --enable-pthreads was given.
  18311. if test "${enable_pthreads+set}" = set; then :
  18312. enableval=$enable_pthreads;
  18313. else
  18314. enable_pthreads=yes
  18315. fi
  18316. # Check whether --enable-pthread-sem was given.
  18317. if test "${enable_pthread_sem+set}" = set; then :
  18318. enableval=$enable_pthread_sem;
  18319. else
  18320. enable_pthread_sem=yes
  18321. fi
  18322. case "$host" in
  18323. *-*-linux*|*-*-uclinux*)
  18324. pthread_cflags="-D_REENTRANT"
  18325. pthread_lib="-lpthread"
  18326. ;;
  18327. *-*-bsdi*)
  18328. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18329. pthread_lib=""
  18330. ;;
  18331. *-*-darwin*)
  18332. pthread_cflags="-D_THREAD_SAFE"
  18333. # causes Carbon.p complaints?
  18334. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18335. ;;
  18336. *-*-freebsd*|*-*-dragonfly*)
  18337. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18338. pthread_lib="-pthread"
  18339. ;;
  18340. *-*-netbsd*)
  18341. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18342. pthread_lib="-lpthread"
  18343. ;;
  18344. *-*-openbsd*)
  18345. pthread_cflags="-D_REENTRANT"
  18346. pthread_lib="-pthread"
  18347. ;;
  18348. *-*-solaris2.9)
  18349. # From Solaris 9+, posix4's preferred name is rt.
  18350. pthread_cflags="-D_REENTRANT"
  18351. pthread_lib="-lpthread -lrt"
  18352. ;;
  18353. *-*-solaris2.10)
  18354. # Solaris 10+ merged pthread into libc.
  18355. pthread_cflags="-D_REENTRANT"
  18356. pthread_lib="-lrt"
  18357. ;;
  18358. *-*-solaris*)
  18359. # Solaris 11+ merged rt into libc.
  18360. pthread_cflags="-D_REENTRANT"
  18361. pthread_lib=""
  18362. ;;
  18363. *-*-sysv5*)
  18364. pthread_cflags="-D_REENTRANT -Kthread"
  18365. pthread_lib=""
  18366. ;;
  18367. *-*-aix*)
  18368. pthread_cflags="-D_REENTRANT -mthreads"
  18369. pthread_lib="-lpthread"
  18370. ;;
  18371. *-*-hpux11*)
  18372. pthread_cflags="-D_REENTRANT"
  18373. pthread_lib="-L/usr/lib -lpthread"
  18374. ;;
  18375. *-*-haiku*)
  18376. pthread_cflags="-D_REENTRANT"
  18377. pthread_lib=""
  18378. ;;
  18379. *)
  18380. pthread_cflags="-D_REENTRANT"
  18381. pthread_lib="-lpthread"
  18382. ;;
  18383. esac
  18384. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  18385. # Save the original compiler flags and libraries
  18386. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18387. # Add the pthread compiler flags and libraries
  18388. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18389. # Check to see if we have pthread support on this system
  18390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  18391. $as_echo_n "checking for pthreads... " >&6; }
  18392. use_pthreads=no
  18393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18394. /* end confdefs.h. */
  18395. #include <pthread.h>
  18396. int
  18397. main ()
  18398. {
  18399. pthread_attr_t type;
  18400. pthread_attr_init(&type);
  18401. ;
  18402. return 0;
  18403. }
  18404. _ACEOF
  18405. if ac_fn_c_try_link "$LINENO"; then :
  18406. use_pthreads=yes
  18407. fi
  18408. rm -f core conftest.err conftest.$ac_objext \
  18409. conftest$ac_exeext conftest.$ac_ext
  18410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  18411. $as_echo "$use_pthreads" >&6; }
  18412. # Restore the compiler flags and libraries
  18413. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18414. # Do futher testing if we have pthread support...
  18415. if test x$use_pthreads = xyes; then
  18416. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  18417. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  18418. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  18419. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  18420. SDL_LIBS="$SDL_LIBS $pthread_lib"
  18421. # Save the original compiler flags and libraries
  18422. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18423. # Add the pthread compiler flags and libraries
  18424. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18425. # Check to see if recursive mutexes are available
  18426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  18427. $as_echo_n "checking for recursive mutexes... " >&6; }
  18428. has_recursive_mutexes=no
  18429. if test x$has_recursive_mutexes = xno; then
  18430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18431. /* end confdefs.h. */
  18432. #include <pthread.h>
  18433. int
  18434. main ()
  18435. {
  18436. pthread_mutexattr_t attr;
  18437. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18438. ;
  18439. return 0;
  18440. }
  18441. _ACEOF
  18442. if ac_fn_c_try_compile "$LINENO"; then :
  18443. has_recursive_mutexes=yes
  18444. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  18445. fi
  18446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18447. fi
  18448. if test x$has_recursive_mutexes = xno; then
  18449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18450. /* end confdefs.h. */
  18451. #include <pthread.h>
  18452. int
  18453. main ()
  18454. {
  18455. pthread_mutexattr_t attr;
  18456. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  18457. ;
  18458. return 0;
  18459. }
  18460. _ACEOF
  18461. if ac_fn_c_try_compile "$LINENO"; then :
  18462. has_recursive_mutexes=yes
  18463. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  18464. fi
  18465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18466. fi
  18467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  18468. $as_echo "$has_recursive_mutexes" >&6; }
  18469. # Check to see if pthread semaphore support is missing
  18470. if test x$enable_pthread_sem = xyes; then
  18471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  18472. $as_echo_n "checking for pthread semaphores... " >&6; }
  18473. have_pthread_sem=no
  18474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18475. /* end confdefs.h. */
  18476. #include <pthread.h>
  18477. #include <semaphore.h>
  18478. int
  18479. main ()
  18480. {
  18481. ;
  18482. return 0;
  18483. }
  18484. _ACEOF
  18485. if ac_fn_c_try_compile "$LINENO"; then :
  18486. have_pthread_sem=yes
  18487. fi
  18488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  18490. $as_echo "$have_pthread_sem" >&6; }
  18491. fi
  18492. if test x$have_pthread_sem = xyes; then
  18493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  18494. $as_echo_n "checking for sem_timedwait... " >&6; }
  18495. have_sem_timedwait=no
  18496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18497. /* end confdefs.h. */
  18498. #include <pthread.h>
  18499. #include <semaphore.h>
  18500. int
  18501. main ()
  18502. {
  18503. sem_timedwait(NULL, NULL);
  18504. ;
  18505. return 0;
  18506. }
  18507. _ACEOF
  18508. if ac_fn_c_try_link "$LINENO"; then :
  18509. have_sem_timedwait=yes
  18510. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  18511. fi
  18512. rm -f core conftest.err conftest.$ac_objext \
  18513. conftest$ac_exeext conftest.$ac_ext
  18514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  18515. $as_echo "$have_sem_timedwait" >&6; }
  18516. fi
  18517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_spin_trylock" >&5
  18518. $as_echo_n "checking for pthread_spin_trylock... " >&6; }
  18519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18520. /* end confdefs.h. */
  18521. /* Override any GCC internal prototype to avoid an error.
  18522. Use char because int might match the return type of a GCC
  18523. builtin and then its argument prototype would still apply. */
  18524. #ifdef __cplusplus
  18525. extern "C"
  18526. #endif
  18527. char pthread_spin_trylock ();
  18528. int
  18529. main ()
  18530. {
  18531. return pthread_spin_trylock ();
  18532. ;
  18533. return 0;
  18534. }
  18535. _ACEOF
  18536. if ac_fn_c_try_link "$LINENO"; then :
  18537. has_pthread_spin_trylock=yes
  18538. $as_echo "#define HAVE_PTHREAD_SPINLOCK 1" >>confdefs.h
  18539. else
  18540. has_pthread_spin_trylock=no
  18541. fi
  18542. rm -f core conftest.err conftest.$ac_objext \
  18543. conftest$ac_exeext conftest.$ac_ext
  18544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_spin_trylock" >&5
  18545. $as_echo "$has_pthread_spin_trylock" >&6; }
  18546. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  18547. "
  18548. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  18549. have_pthread_np_h=yes
  18550. else
  18551. have_pthread_np_h=no
  18552. fi
  18553. if test x$have_pthread_np_h = xyes; then
  18554. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  18555. fi
  18556. # Check to see if pthread naming is available
  18557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  18558. $as_echo_n "checking for pthread_setname_np... " >&6; }
  18559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18560. /* end confdefs.h. */
  18561. /* Override any GCC internal prototype to avoid an error.
  18562. Use char because int might match the return type of a GCC
  18563. builtin and then its argument prototype would still apply. */
  18564. #ifdef __cplusplus
  18565. extern "C"
  18566. #endif
  18567. char pthread_setname_np ();
  18568. int
  18569. main ()
  18570. {
  18571. return pthread_setname_np ();
  18572. ;
  18573. return 0;
  18574. }
  18575. _ACEOF
  18576. if ac_fn_c_try_link "$LINENO"; then :
  18577. has_pthread_setname_np=yes
  18578. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  18579. else
  18580. has_pthread_setname_np=no
  18581. fi
  18582. rm -f core conftest.err conftest.$ac_objext \
  18583. conftest$ac_exeext conftest.$ac_ext
  18584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  18585. $as_echo "$has_pthread_setname_np" >&6; }
  18586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  18587. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  18588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18589. /* end confdefs.h. */
  18590. /* Override any GCC internal prototype to avoid an error.
  18591. Use char because int might match the return type of a GCC
  18592. builtin and then its argument prototype would still apply. */
  18593. #ifdef __cplusplus
  18594. extern "C"
  18595. #endif
  18596. char pthread_set_name_np ();
  18597. int
  18598. main ()
  18599. {
  18600. return pthread_set_name_np ();
  18601. ;
  18602. return 0;
  18603. }
  18604. _ACEOF
  18605. if ac_fn_c_try_link "$LINENO"; then :
  18606. has_pthread_set_name_np=yes
  18607. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  18608. else
  18609. has_pthread_set_name_np=no
  18610. fi
  18611. rm -f core conftest.err conftest.$ac_objext \
  18612. conftest$ac_exeext conftest.$ac_ext
  18613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  18614. $as_echo "$has_pthread_set_name_np" >&6; }
  18615. # Restore the compiler flags and libraries
  18616. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18617. # Basic thread creation functions
  18618. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  18619. # Semaphores
  18620. # We can fake these with mutexes and condition variables if necessary
  18621. if test x$have_pthread_sem = xyes; then
  18622. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  18623. else
  18624. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  18625. fi
  18626. # Mutexes
  18627. # We can fake these with semaphores if necessary
  18628. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  18629. # Condition variables
  18630. # We can fake these with semaphores and mutexes if necessary
  18631. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  18632. # Thread local storage
  18633. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  18634. have_threads=yes
  18635. fi
  18636. fi
  18637. }
  18638. CheckWINDOWS()
  18639. {
  18640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  18641. $as_echo_n "checking Windows compiler... " >&6; }
  18642. have_win32_gcc=no
  18643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18644. /* end confdefs.h. */
  18645. #include <windows.h>
  18646. int
  18647. main ()
  18648. {
  18649. ;
  18650. return 0;
  18651. }
  18652. _ACEOF
  18653. if ac_fn_c_try_compile "$LINENO"; then :
  18654. have_win32_gcc=yes
  18655. fi
  18656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  18658. $as_echo "$have_win32_gcc" >&6; }
  18659. if test x$have_win32_gcc != xyes; then
  18660. as_fn_error $? "
  18661. *** Your compiler ($CC) does not produce Windows executables!
  18662. " "$LINENO" 5
  18663. fi
  18664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  18665. $as_echo_n "checking Windows CE... " >&6; }
  18666. have_wince=no
  18667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18668. /* end confdefs.h. */
  18669. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  18670. #error This is not Windows CE
  18671. #endif
  18672. int
  18673. main ()
  18674. {
  18675. ;
  18676. return 0;
  18677. }
  18678. _ACEOF
  18679. if ac_fn_c_try_compile "$LINENO"; then :
  18680. have_wince=yes
  18681. as_fn_error $? "
  18682. *** Sorry, Windows CE is no longer supported.
  18683. " "$LINENO" 5
  18684. fi
  18685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  18687. $as_echo "$have_wince" >&6; }
  18688. # This fixes Windows stack alignment with newer GCC
  18689. CheckStackBoundary
  18690. }
  18691. CheckDIRECTX()
  18692. {
  18693. # Check whether --enable-directx was given.
  18694. if test "${enable_directx+set}" = set; then :
  18695. enableval=$enable_directx;
  18696. else
  18697. enable_directx=yes
  18698. fi
  18699. if test x$enable_directx = xyes; then
  18700. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  18701. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  18702. have_d3d=yes
  18703. fi
  18704. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  18705. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  18706. have_ddraw=yes
  18707. fi
  18708. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  18709. if test "x$ac_cv_header_dsound_h" = xyes; then :
  18710. have_dsound=yes
  18711. fi
  18712. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  18713. if test "x$ac_cv_header_dinput_h" = xyes; then :
  18714. have_dinput=yes
  18715. fi
  18716. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  18717. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  18718. have_xaudio2=yes
  18719. fi
  18720. SUMMARY_video="${SUMMARY_video} directx"
  18721. SUMMARY_audio="${SUMMARY_audio} directx"
  18722. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  18723. # FIXME: ...so force it off for now.
  18724. case "$host" in
  18725. *-*-cygwin*)
  18726. have_dinput=false
  18727. ;;
  18728. esac
  18729. fi
  18730. }
  18731. CheckDLOPEN()
  18732. {
  18733. # Check whether --enable-sdl-dlopen was given.
  18734. if test "${enable_sdl_dlopen+set}" = set; then :
  18735. enableval=$enable_sdl_dlopen;
  18736. else
  18737. enable_sdl_dlopen=yes
  18738. fi
  18739. if test x$enable_sdl_dlopen = xyes; then
  18740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  18741. $as_echo_n "checking for dlopen... " >&6; }
  18742. have_dlopen=no
  18743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18744. /* end confdefs.h. */
  18745. #include <dlfcn.h>
  18746. int
  18747. main ()
  18748. {
  18749. void *handle = dlopen("", RTLD_NOW);
  18750. const char *loaderror = (char *) dlerror();
  18751. ;
  18752. return 0;
  18753. }
  18754. _ACEOF
  18755. if ac_fn_c_try_compile "$LINENO"; then :
  18756. have_dlopen=yes
  18757. fi
  18758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  18760. $as_echo "$have_dlopen" >&6; }
  18761. if test x$have_dlopen = xyes; then
  18762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  18763. $as_echo_n "checking for dlopen in -lc... " >&6; }
  18764. if ${ac_cv_lib_c_dlopen+:} false; then :
  18765. $as_echo_n "(cached) " >&6
  18766. else
  18767. ac_check_lib_save_LIBS=$LIBS
  18768. LIBS="-lc $LIBS"
  18769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18770. /* end confdefs.h. */
  18771. /* Override any GCC internal prototype to avoid an error.
  18772. Use char because int might match the return type of a GCC
  18773. builtin and then its argument prototype would still apply. */
  18774. #ifdef __cplusplus
  18775. extern "C"
  18776. #endif
  18777. char dlopen ();
  18778. int
  18779. main ()
  18780. {
  18781. return dlopen ();
  18782. ;
  18783. return 0;
  18784. }
  18785. _ACEOF
  18786. if ac_fn_c_try_link "$LINENO"; then :
  18787. ac_cv_lib_c_dlopen=yes
  18788. else
  18789. ac_cv_lib_c_dlopen=no
  18790. fi
  18791. rm -f core conftest.err conftest.$ac_objext \
  18792. conftest$ac_exeext conftest.$ac_ext
  18793. LIBS=$ac_check_lib_save_LIBS
  18794. fi
  18795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  18796. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  18797. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  18798. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  18799. else
  18800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  18801. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  18802. if ${ac_cv_lib_dl_dlopen+:} false; then :
  18803. $as_echo_n "(cached) " >&6
  18804. else
  18805. ac_check_lib_save_LIBS=$LIBS
  18806. LIBS="-ldl $LIBS"
  18807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18808. /* end confdefs.h. */
  18809. /* Override any GCC internal prototype to avoid an error.
  18810. Use char because int might match the return type of a GCC
  18811. builtin and then its argument prototype would still apply. */
  18812. #ifdef __cplusplus
  18813. extern "C"
  18814. #endif
  18815. char dlopen ();
  18816. int
  18817. main ()
  18818. {
  18819. return dlopen ();
  18820. ;
  18821. return 0;
  18822. }
  18823. _ACEOF
  18824. if ac_fn_c_try_link "$LINENO"; then :
  18825. ac_cv_lib_dl_dlopen=yes
  18826. else
  18827. ac_cv_lib_dl_dlopen=no
  18828. fi
  18829. rm -f core conftest.err conftest.$ac_objext \
  18830. conftest$ac_exeext conftest.$ac_ext
  18831. LIBS=$ac_check_lib_save_LIBS
  18832. fi
  18833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  18834. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  18835. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  18836. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  18837. else
  18838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  18839. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  18840. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  18841. $as_echo_n "(cached) " >&6
  18842. else
  18843. ac_check_lib_save_LIBS=$LIBS
  18844. LIBS="-lltdl $LIBS"
  18845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18846. /* end confdefs.h. */
  18847. /* Override any GCC internal prototype to avoid an error.
  18848. Use char because int might match the return type of a GCC
  18849. builtin and then its argument prototype would still apply. */
  18850. #ifdef __cplusplus
  18851. extern "C"
  18852. #endif
  18853. char dlopen ();
  18854. int
  18855. main ()
  18856. {
  18857. return dlopen ();
  18858. ;
  18859. return 0;
  18860. }
  18861. _ACEOF
  18862. if ac_fn_c_try_link "$LINENO"; then :
  18863. ac_cv_lib_ltdl_dlopen=yes
  18864. else
  18865. ac_cv_lib_ltdl_dlopen=no
  18866. fi
  18867. rm -f core conftest.err conftest.$ac_objext \
  18868. conftest$ac_exeext conftest.$ac_ext
  18869. LIBS=$ac_check_lib_save_LIBS
  18870. fi
  18871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  18872. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  18873. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  18874. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  18875. fi
  18876. fi
  18877. fi
  18878. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  18879. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  18880. have_loadso=yes
  18881. fi
  18882. fi
  18883. }
  18884. CheckUSBHID()
  18885. {
  18886. case "$host" in
  18887. *-*-*bsd*)
  18888. if test x$enable_joystick = xyes; then
  18889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  18890. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  18891. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  18892. $as_echo_n "(cached) " >&6
  18893. else
  18894. ac_check_lib_save_LIBS=$LIBS
  18895. LIBS="-lusbhid $LIBS"
  18896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18897. /* end confdefs.h. */
  18898. /* Override any GCC internal prototype to avoid an error.
  18899. Use char because int might match the return type of a GCC
  18900. builtin and then its argument prototype would still apply. */
  18901. #ifdef __cplusplus
  18902. extern "C"
  18903. #endif
  18904. char hid_init ();
  18905. int
  18906. main ()
  18907. {
  18908. return hid_init ();
  18909. ;
  18910. return 0;
  18911. }
  18912. _ACEOF
  18913. if ac_fn_c_try_link "$LINENO"; then :
  18914. ac_cv_lib_usbhid_hid_init=yes
  18915. else
  18916. ac_cv_lib_usbhid_hid_init=no
  18917. fi
  18918. rm -f core conftest.err conftest.$ac_objext \
  18919. conftest$ac_exeext conftest.$ac_ext
  18920. LIBS=$ac_check_lib_save_LIBS
  18921. fi
  18922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  18923. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  18924. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  18925. have_libusbhid=yes
  18926. fi
  18927. if test x$have_libusbhid = xyes; then
  18928. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  18929. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  18930. USB_CFLAGS="-DHAVE_USBHID_H"
  18931. fi
  18932. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  18933. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  18934. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  18935. fi
  18936. USB_LIBS="$USB_LIBS -lusbhid"
  18937. else
  18938. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  18939. if test "x$ac_cv_header_usb_h" = xyes; then :
  18940. USB_CFLAGS="-DHAVE_USB_H"
  18941. fi
  18942. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  18943. if test "x$ac_cv_header_libusb_h" = xyes; then :
  18944. USB_CFLAGS="-DHAVE_LIBUSB_H"
  18945. fi
  18946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  18947. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  18948. if ${ac_cv_lib_usb_hid_init+:} false; then :
  18949. $as_echo_n "(cached) " >&6
  18950. else
  18951. ac_check_lib_save_LIBS=$LIBS
  18952. LIBS="-lusb $LIBS"
  18953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18954. /* end confdefs.h. */
  18955. /* Override any GCC internal prototype to avoid an error.
  18956. Use char because int might match the return type of a GCC
  18957. builtin and then its argument prototype would still apply. */
  18958. #ifdef __cplusplus
  18959. extern "C"
  18960. #endif
  18961. char hid_init ();
  18962. int
  18963. main ()
  18964. {
  18965. return hid_init ();
  18966. ;
  18967. return 0;
  18968. }
  18969. _ACEOF
  18970. if ac_fn_c_try_link "$LINENO"; then :
  18971. ac_cv_lib_usb_hid_init=yes
  18972. else
  18973. ac_cv_lib_usb_hid_init=no
  18974. fi
  18975. rm -f core conftest.err conftest.$ac_objext \
  18976. conftest$ac_exeext conftest.$ac_ext
  18977. LIBS=$ac_check_lib_save_LIBS
  18978. fi
  18979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  18980. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  18981. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  18982. USB_LIBS="$USB_LIBS -lusb"
  18983. fi
  18984. fi
  18985. save_CFLAGS="$CFLAGS"
  18986. CFLAGS="$CFLAGS $USB_CFLAGS"
  18987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  18988. $as_echo_n "checking for usbhid... " >&6; }
  18989. have_usbhid=no
  18990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18991. /* end confdefs.h. */
  18992. #include <sys/types.h>
  18993. #if defined(HAVE_USB_H)
  18994. #include <usb.h>
  18995. #endif
  18996. #ifdef __DragonFly__
  18997. # include <bus/usb/usb.h>
  18998. # include <bus/usb/usbhid.h>
  18999. #else
  19000. # include <dev/usb/usb.h>
  19001. # include <dev/usb/usbhid.h>
  19002. #endif
  19003. #if defined(HAVE_USBHID_H)
  19004. #include <usbhid.h>
  19005. #elif defined(HAVE_LIBUSB_H)
  19006. #include <libusb.h>
  19007. #elif defined(HAVE_LIBUSBHID_H)
  19008. #include <libusbhid.h>
  19009. #endif
  19010. int
  19011. main ()
  19012. {
  19013. struct report_desc *repdesc;
  19014. struct usb_ctl_report *repbuf;
  19015. hid_kind_t hidkind;
  19016. ;
  19017. return 0;
  19018. }
  19019. _ACEOF
  19020. if ac_fn_c_try_compile "$LINENO"; then :
  19021. have_usbhid=yes
  19022. fi
  19023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  19025. $as_echo "$have_usbhid" >&6; }
  19026. if test x$have_usbhid = xyes; then
  19027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  19028. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  19029. have_usbhid_ucr_data=no
  19030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19031. /* end confdefs.h. */
  19032. #include <sys/types.h>
  19033. #if defined(HAVE_USB_H)
  19034. #include <usb.h>
  19035. #endif
  19036. #ifdef __DragonFly__
  19037. # include <bus/usb/usb.h>
  19038. # include <bus/usb/usbhid.h>
  19039. #else
  19040. # include <dev/usb/usb.h>
  19041. # include <dev/usb/usbhid.h>
  19042. #endif
  19043. #if defined(HAVE_USBHID_H)
  19044. #include <usbhid.h>
  19045. #elif defined(HAVE_LIBUSB_H)
  19046. #include <libusb.h>
  19047. #elif defined(HAVE_LIBUSBHID_H)
  19048. #include <libusbhid.h>
  19049. #endif
  19050. int
  19051. main ()
  19052. {
  19053. struct usb_ctl_report buf;
  19054. if (buf.ucr_data) { }
  19055. ;
  19056. return 0;
  19057. }
  19058. _ACEOF
  19059. if ac_fn_c_try_compile "$LINENO"; then :
  19060. have_usbhid_ucr_data=yes
  19061. fi
  19062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19063. if test x$have_usbhid_ucr_data = xyes; then
  19064. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  19065. fi
  19066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  19067. $as_echo "$have_usbhid_ucr_data" >&6; }
  19068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  19069. $as_echo_n "checking for new usbhid API... " >&6; }
  19070. have_usbhid_new=no
  19071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19072. /* end confdefs.h. */
  19073. #include <sys/types.h>
  19074. #if defined(HAVE_USB_H)
  19075. #include <usb.h>
  19076. #endif
  19077. #ifdef __DragonFly__
  19078. #include <bus/usb/usb.h>
  19079. #include <bus/usb/usbhid.h>
  19080. #else
  19081. #include <dev/usb/usb.h>
  19082. #include <dev/usb/usbhid.h>
  19083. #endif
  19084. #if defined(HAVE_USBHID_H)
  19085. #include <usbhid.h>
  19086. #elif defined(HAVE_LIBUSB_H)
  19087. #include <libusb.h>
  19088. #elif defined(HAVE_LIBUSBHID_H)
  19089. #include <libusbhid.h>
  19090. #endif
  19091. int
  19092. main ()
  19093. {
  19094. report_desc_t d;
  19095. hid_start_parse(d, 1, 1);
  19096. ;
  19097. return 0;
  19098. }
  19099. _ACEOF
  19100. if ac_fn_c_try_compile "$LINENO"; then :
  19101. have_usbhid_new=yes
  19102. fi
  19103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19104. if test x$have_usbhid_new = xyes; then
  19105. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  19106. fi
  19107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  19108. $as_echo "$have_usbhid_new" >&6; }
  19109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  19110. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  19111. have_machine_joystick=no
  19112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19113. /* end confdefs.h. */
  19114. #include <machine/joystick.h>
  19115. int
  19116. main ()
  19117. {
  19118. struct joystick t;
  19119. ;
  19120. return 0;
  19121. }
  19122. _ACEOF
  19123. if ac_fn_c_try_compile "$LINENO"; then :
  19124. have_machine_joystick=yes
  19125. fi
  19126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19127. if test x$have_machine_joystick = xyes; then
  19128. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  19129. fi
  19130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  19131. $as_echo "$have_machine_joystick" >&6; }
  19132. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  19133. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  19134. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  19135. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  19136. have_joystick=yes
  19137. fi
  19138. CFLAGS="$save_CFLAGS"
  19139. fi
  19140. ;;
  19141. esac
  19142. }
  19143. CheckClockGettime()
  19144. {
  19145. # Check whether --enable-clock_gettime was given.
  19146. if test "${enable_clock_gettime+set}" = set; then :
  19147. enableval=$enable_clock_gettime;
  19148. else
  19149. enable_clock_gettime=yes
  19150. fi
  19151. if test x$enable_clock_gettime = xyes; then
  19152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  19153. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  19154. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  19155. $as_echo_n "(cached) " >&6
  19156. else
  19157. ac_check_lib_save_LIBS=$LIBS
  19158. LIBS="-lrt $LIBS"
  19159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19160. /* end confdefs.h. */
  19161. /* Override any GCC internal prototype to avoid an error.
  19162. Use char because int might match the return type of a GCC
  19163. builtin and then its argument prototype would still apply. */
  19164. #ifdef __cplusplus
  19165. extern "C"
  19166. #endif
  19167. char clock_gettime ();
  19168. int
  19169. main ()
  19170. {
  19171. return clock_gettime ();
  19172. ;
  19173. return 0;
  19174. }
  19175. _ACEOF
  19176. if ac_fn_c_try_link "$LINENO"; then :
  19177. ac_cv_lib_rt_clock_gettime=yes
  19178. else
  19179. ac_cv_lib_rt_clock_gettime=no
  19180. fi
  19181. rm -f core conftest.err conftest.$ac_objext \
  19182. conftest$ac_exeext conftest.$ac_ext
  19183. LIBS=$ac_check_lib_save_LIBS
  19184. fi
  19185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  19186. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  19187. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  19188. have_clock_gettime=yes
  19189. fi
  19190. if test x$have_clock_gettime = xyes; then
  19191. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19192. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  19193. else
  19194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  19195. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  19196. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  19197. $as_echo_n "(cached) " >&6
  19198. else
  19199. ac_check_lib_save_LIBS=$LIBS
  19200. LIBS="-lc $LIBS"
  19201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19202. /* end confdefs.h. */
  19203. /* Override any GCC internal prototype to avoid an error.
  19204. Use char because int might match the return type of a GCC
  19205. builtin and then its argument prototype would still apply. */
  19206. #ifdef __cplusplus
  19207. extern "C"
  19208. #endif
  19209. char clock_gettime ();
  19210. int
  19211. main ()
  19212. {
  19213. return clock_gettime ();
  19214. ;
  19215. return 0;
  19216. }
  19217. _ACEOF
  19218. if ac_fn_c_try_link "$LINENO"; then :
  19219. ac_cv_lib_c_clock_gettime=yes
  19220. else
  19221. ac_cv_lib_c_clock_gettime=no
  19222. fi
  19223. rm -f core conftest.err conftest.$ac_objext \
  19224. conftest$ac_exeext conftest.$ac_ext
  19225. LIBS=$ac_check_lib_save_LIBS
  19226. fi
  19227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  19228. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  19229. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  19230. have_clock_gettime=yes
  19231. fi
  19232. if test x$have_clock_gettime = xyes; then
  19233. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19234. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19235. fi
  19236. fi
  19237. fi
  19238. }
  19239. CheckLinuxVersion()
  19240. {
  19241. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  19242. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  19243. have_linux_version_h=yes
  19244. fi
  19245. if test x$have_linux_version_h = xyes; then
  19246. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  19247. fi
  19248. }
  19249. CheckRPATH()
  19250. {
  19251. # Check whether --enable-rpath was given.
  19252. if test "${enable_rpath+set}" = set; then :
  19253. enableval=$enable_rpath;
  19254. else
  19255. enable_rpath=yes
  19256. fi
  19257. }
  19258. case "$host" in
  19259. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  19260. case "$host" in
  19261. *-raspberry-linux*)
  19262. # Raspberry Pi
  19263. ARCH=linux
  19264. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19265. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19266. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19267. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19268. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  19269. if test x$enable_video = xyes; then
  19270. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19271. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19272. fi
  19273. ;;
  19274. *-*-linux*) ARCH=linux ;;
  19275. *-*-uclinux*) ARCH=linux ;;
  19276. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  19277. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  19278. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  19279. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  19280. *-*-bsdi*) ARCH=bsdi ;;
  19281. *-*-freebsd*) ARCH=freebsd ;;
  19282. *-*-dragonfly*) ARCH=freebsd ;;
  19283. *-*-netbsd*) ARCH=netbsd ;;
  19284. *-*-openbsd*) ARCH=openbsd ;;
  19285. *-*-sysv5*) ARCH=sysv5 ;;
  19286. *-*-solaris*) ARCH=solaris ;;
  19287. *-*-hpux*) ARCH=hpux ;;
  19288. *-*-aix*) ARCH=aix ;;
  19289. *-*-minix*) ARCH=minix ;;
  19290. esac
  19291. CheckVisibilityHidden
  19292. CheckDummyVideo
  19293. CheckDiskAudio
  19294. CheckDummyAudio
  19295. CheckDLOPEN
  19296. CheckOSS
  19297. CheckALSA
  19298. CheckPulseAudio
  19299. CheckARTSC
  19300. CheckESD
  19301. CheckNAS
  19302. CheckSNDIO
  19303. CheckX11
  19304. CheckWayland
  19305. CheckMir
  19306. CheckDirectFB
  19307. CheckFusionSound
  19308. CheckOpenGLX11
  19309. CheckOpenGLESX11
  19310. CheckLibUDev
  19311. CheckDBus
  19312. CheckInputEvents
  19313. CheckInputKD
  19314. CheckTslib
  19315. CheckUSBHID
  19316. CheckPTHREAD
  19317. CheckClockGettime
  19318. CheckLinuxVersion
  19319. CheckRPATH
  19320. # Set up files for the audio library
  19321. if test x$enable_audio = xyes; then
  19322. case $ARCH in
  19323. sysv5|solaris|hpux)
  19324. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  19325. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  19326. have_audio=yes
  19327. ;;
  19328. netbsd) # Don't use this on OpenBSD, it's busted.
  19329. $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  19330. SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  19331. have_audio=yes
  19332. ;;
  19333. aix)
  19334. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  19335. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  19336. have_audio=yes
  19337. ;;
  19338. esac
  19339. fi
  19340. # Set up files for the joystick library
  19341. if test x$enable_joystick = xyes; then
  19342. case $ARCH in
  19343. linux)
  19344. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  19345. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  19346. have_joystick=yes
  19347. ;;
  19348. esac
  19349. fi
  19350. # Set up files for the haptic library
  19351. if test x$enable_haptic = xyes; then
  19352. if test x$use_input_events = xyes; then
  19353. case $ARCH in
  19354. linux)
  19355. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  19356. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  19357. have_haptic=yes
  19358. ;;
  19359. esac
  19360. fi
  19361. fi
  19362. # Set up files for the power library
  19363. if test x$enable_power = xyes; then
  19364. case $ARCH in
  19365. linux)
  19366. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  19367. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  19368. have_power=yes
  19369. ;;
  19370. esac
  19371. fi
  19372. # Set up files for the filesystem library
  19373. if test x$enable_filesystem = xyes; then
  19374. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  19375. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  19376. have_filesystem=yes
  19377. fi
  19378. # Set up files for the timer library
  19379. if test x$enable_timers = xyes; then
  19380. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19381. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19382. have_timers=yes
  19383. fi
  19384. # Set up files for udev hotplugging support
  19385. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  19386. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  19387. fi
  19388. # Set up files for evdev input
  19389. if test x$use_input_events = xyes; then
  19390. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  19391. fi
  19392. ;;
  19393. *-*-cygwin* | *-*-mingw32*)
  19394. ARCH=win32
  19395. if test "$build" != "$host"; then # cross-compiling
  19396. # Default cross-compile location
  19397. ac_default_prefix=/usr/local/cross-tools/$host
  19398. else
  19399. # Look for the location of the tools and install there
  19400. if test "$BUILD_PREFIX" != ""; then
  19401. ac_default_prefix=$BUILD_PREFIX
  19402. fi
  19403. fi
  19404. CheckDummyVideo
  19405. CheckDiskAudio
  19406. CheckDummyAudio
  19407. CheckWINDOWS
  19408. CheckWINDOWSGL
  19409. CheckWINDOWSGLES
  19410. CheckDIRECTX
  19411. # Set up the core platform files
  19412. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  19413. # Set up files for the video library
  19414. if test x$enable_video = xyes; then
  19415. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  19416. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  19417. have_video=yes
  19418. # Check whether --enable-render-d3d was given.
  19419. if test "${enable_render_d3d+set}" = set; then :
  19420. enableval=$enable_render_d3d;
  19421. else
  19422. enable_render_d3d=yes
  19423. fi
  19424. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  19425. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  19426. fi
  19427. fi
  19428. # Set up files for the audio library
  19429. if test x$enable_audio = xyes; then
  19430. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  19431. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  19432. if test x$have_dsound = xyes; then
  19433. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  19434. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  19435. fi
  19436. if test x$have_xaudio2 = xyes; then
  19437. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  19438. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  19439. fi
  19440. have_audio=yes
  19441. fi
  19442. # Set up files for the joystick library
  19443. if test x$enable_joystick = xyes; then
  19444. if test x$have_dinput = xyes; then
  19445. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  19446. SOURCES="$SOURCES $srcdir/src/joystick/windows/SDL_dxjoystick.c"
  19447. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  19448. else
  19449. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  19450. SOURCES="$SOURCES $srcdir/src/joystick/windows/SDL_mmjoystick.c"
  19451. fi
  19452. have_joystick=yes
  19453. fi
  19454. if test x$enable_haptic = xyes; then
  19455. if test x$have_dinput = xyes; then
  19456. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  19457. SOURCES="$SOURCES $srcdir/src/haptic/windows/SDL_syshaptic.c"
  19458. have_haptic=yes
  19459. fi
  19460. fi
  19461. if test x$enable_power = xyes; then
  19462. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  19463. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  19464. have_power=yes
  19465. fi
  19466. if test x$enable_filesystem = xyes; then
  19467. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  19468. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  19469. have_filesystem=yes
  19470. fi
  19471. # Set up files for the thread library
  19472. if test x$enable_threads = xyes; then
  19473. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  19474. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  19475. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  19476. have_threads=yes
  19477. fi
  19478. # Set up files for the timer library
  19479. if test x$enable_timers = xyes; then
  19480. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  19481. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  19482. have_timers=yes
  19483. fi
  19484. # Set up files for the shared object loading library
  19485. if test x$enable_loadso = xyes; then
  19486. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  19487. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  19488. have_loadso=yes
  19489. fi
  19490. # Set up the system libraries we need
  19491. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid -XCClinker -static-libgcc"
  19492. # The Windows platform requires special setup
  19493. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  19494. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  19495. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  19496. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  19497. # Check to see if this is a mingw or cygwin build
  19498. have_mingw32=
  19499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  19500. $as_echo_n "checking for main in -lmingw32... " >&6; }
  19501. if ${ac_cv_lib_mingw32_main+:} false; then :
  19502. $as_echo_n "(cached) " >&6
  19503. else
  19504. ac_check_lib_save_LIBS=$LIBS
  19505. LIBS="-lmingw32 $LIBS"
  19506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19507. /* end confdefs.h. */
  19508. int
  19509. main ()
  19510. {
  19511. return main ();
  19512. ;
  19513. return 0;
  19514. }
  19515. _ACEOF
  19516. if ac_fn_c_try_link "$LINENO"; then :
  19517. ac_cv_lib_mingw32_main=yes
  19518. else
  19519. ac_cv_lib_mingw32_main=no
  19520. fi
  19521. rm -f core conftest.err conftest.$ac_objext \
  19522. conftest$ac_exeext conftest.$ac_ext
  19523. LIBS=$ac_check_lib_save_LIBS
  19524. fi
  19525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  19526. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  19527. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  19528. have_mingw32=yes
  19529. fi
  19530. if test x$have_mingw32 = xyes; then
  19531. SDL_LIBS="-lmingw32 $SDL_LIBS"
  19532. else
  19533. SDL_LIBS="-lcygwin $SDL_LIBS"
  19534. fi
  19535. ;;
  19536. *-*-beos*)
  19537. as_fn_error $? "
  19538. *** BeOS support has been removed as of SDL 2.0.2.
  19539. " "$LINENO" 5
  19540. ;;
  19541. *-*-haiku*)
  19542. ARCH=haiku
  19543. ac_default_prefix=/boot/system
  19544. CheckDummyVideo
  19545. CheckDiskAudio
  19546. CheckDummyAudio
  19547. CheckHaikuVideo
  19548. CheckHaikuGL
  19549. CheckPTHREAD
  19550. # Set up files for the audio library
  19551. if test x$enable_audio = xyes; then
  19552. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  19553. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  19554. have_audio=yes
  19555. fi
  19556. # Set up files for the joystick library
  19557. if test x$enable_joystick = xyes; then
  19558. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  19559. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  19560. have_joystick=yes
  19561. fi
  19562. # Set up files for the timer library
  19563. if test x$enable_timers = xyes; then
  19564. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  19565. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  19566. have_timers=yes
  19567. fi
  19568. # Set up files for the shared object loading library
  19569. if test x$enable_loadso = xyes; then
  19570. $as_echo "#define SDL_LOADSO_HAIKU 1" >>confdefs.h
  19571. SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c"
  19572. have_loadso=yes
  19573. fi
  19574. # Set up files for the system power library
  19575. if test x$enable_power = xyes; then
  19576. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  19577. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  19578. have_power=yes
  19579. fi
  19580. # Set up files for the system filesystem library
  19581. if test x$enable_filesystem = xyes; then
  19582. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  19583. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  19584. have_filesystem=yes
  19585. fi
  19586. # The Haiku platform requires special setup.
  19587. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  19588. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  19589. ;;
  19590. arm*-apple-darwin*)
  19591. # iOS - We are not writing anything to confdefs.h because you have to replace
  19592. # SDL_config.h for SDL_config_iphoneos.h anyway
  19593. ARCH=ios
  19594. CheckVisibilityHidden
  19595. CheckDummyVideo
  19596. CheckDiskAudio
  19597. CheckDummyAudio
  19598. CheckDLOPEN
  19599. CheckCOCOA
  19600. CheckPTHREAD
  19601. # Set up files for the audio library
  19602. if test x$enable_audio = xyes; then
  19603. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19604. have_audio=yes
  19605. fi
  19606. # Set up files for the joystick library
  19607. if test x$enable_joystick = xyes; then
  19608. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  19609. have_joystick=yes
  19610. fi
  19611. # Set up files for the haptic library
  19612. #if test x$enable_haptic = xyes; then
  19613. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19614. # have_haptic=yes
  19615. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  19616. #fi
  19617. # Set up files for the power library
  19618. if test x$enable_power = xyes; then
  19619. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  19620. have_power=yes
  19621. fi
  19622. # Set up files for the filesystem library
  19623. if test x$enable_filesystem = xyes; then
  19624. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  19625. have_filesystem=yes
  19626. fi
  19627. # Set up files for the timer library
  19628. if test x$enable_timers = xyes; then
  19629. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19630. have_timers=yes
  19631. fi
  19632. # Set up additional files for the file library
  19633. if test x$enable_file = xyes; then
  19634. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  19635. fi
  19636. # The iOS platform requires special setup.
  19637. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  19638. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  19639. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  19640. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  19641. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  19642. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  19643. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  19644. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  19645. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  19646. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  19647. ;;
  19648. *-*-darwin* )
  19649. # This could be either full "Mac OS X", or plain "Darwin" which is
  19650. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  19651. # Next line is broken, and a few files below require Mac OS X (full)
  19652. ARCH=macosx
  19653. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  19654. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  19655. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  19656. CheckVisibilityHidden
  19657. CheckDummyVideo
  19658. CheckDiskAudio
  19659. CheckDummyAudio
  19660. CheckDLOPEN
  19661. CheckCOCOA
  19662. CheckX11
  19663. CheckMacGL
  19664. CheckOpenGLX11
  19665. CheckPTHREAD
  19666. # Need this or things might misbuild on a G3.
  19667. EXTRA_CFLAGS="$EXTRA_CFLAGS -force_cpusubtype_ALL"
  19668. # Set up files for the audio library
  19669. if test x$enable_audio = xyes; then
  19670. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  19671. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19672. have_audio=yes
  19673. fi
  19674. # Set up files for the joystick library
  19675. if test x$enable_joystick = xyes; then
  19676. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  19677. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  19678. have_joystick=yes
  19679. fi
  19680. # Set up files for the haptic library
  19681. if test x$enable_haptic = xyes; then
  19682. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  19683. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19684. have_haptic=yes
  19685. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  19686. fi
  19687. # Set up files for the power library
  19688. if test x$enable_power = xyes; then
  19689. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  19690. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  19691. have_power=yes
  19692. fi
  19693. # Set up files for the filesystem library
  19694. if test x$enable_filesystem = xyes; then
  19695. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  19696. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  19697. have_filesystem=yes
  19698. fi
  19699. # Set up files for the timer library
  19700. if test x$enable_timers = xyes; then
  19701. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19702. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19703. have_timers=yes
  19704. fi
  19705. # Set up additional files for the file library
  19706. if test x$enable_file = xyes; then
  19707. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  19708. fi
  19709. # The Mac OS X platform requires special setup.
  19710. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  19711. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  19712. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  19713. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  19714. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  19715. # If audio is used, add the AudioUnit framework
  19716. if test x$enable_audio = xyes; then
  19717. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
  19718. fi
  19719. ;;
  19720. *)
  19721. as_fn_error $? "
  19722. *** Unsupported host: Please add to configure.in
  19723. " "$LINENO" 5
  19724. ;;
  19725. esac
  19726. CheckWarnAll
  19727. # Verify that we have all the platform specific files we need
  19728. if test x$have_joystick != xyes; then
  19729. if test x$enable_joystick = xyes; then
  19730. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  19731. fi
  19732. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  19733. fi
  19734. if test x$have_haptic != xyes; then
  19735. if test x$enable_haptic = xyes; then
  19736. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  19737. fi
  19738. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  19739. fi
  19740. if test x$have_threads != xyes; then
  19741. if test x$enable_threads = xyes; then
  19742. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  19743. fi
  19744. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  19745. fi
  19746. if test x$have_timers != xyes; then
  19747. if test x$enable_timers = xyes; then
  19748. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  19749. fi
  19750. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  19751. fi
  19752. if test x$have_filesystem != xyes; then
  19753. if test x$enable_filesystem = xyes; then
  19754. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  19755. fi
  19756. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  19757. fi
  19758. if test x$have_loadso != xyes; then
  19759. if test x$enable_loadso = xyes; then
  19760. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  19761. fi
  19762. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  19763. fi
  19764. if test x$SDLMAIN_SOURCES = x; then
  19765. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  19766. fi
  19767. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  19768. OBJECTS=`echo $SOURCES`
  19769. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  19770. for EXT in asm cc m c S; do
  19771. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  19772. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  19773. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  19774. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19775. done
  19776. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  19777. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  19778. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  19779. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  19780. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  19781. \\$(WINDRES) \\$< \\$@,g"`
  19782. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  19783. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  19784. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  19785. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  19786. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  19787. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19788. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  19789. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  19790. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  19791. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  19792. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  19793. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19794. # Set runtime shared library paths as needed
  19795. if test "x$enable_rpath" = "xyes"; then
  19796. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  19797. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  19798. fi
  19799. if test $ARCH = solaris; then
  19800. SDL_RLD_FLAGS="-R\${libdir}"
  19801. fi
  19802. else
  19803. SDL_RLD_FLAGS=""
  19804. fi
  19805. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  19806. if test x$enable_shared = xyes; then
  19807. ENABLE_SHARED_TRUE=
  19808. ENABLE_SHARED_FALSE="#"
  19809. else
  19810. ENABLE_SHARED_TRUE="#"
  19811. ENABLE_SHARED_FALSE=
  19812. fi
  19813. if test x$enable_static = xyes; then
  19814. ENABLE_STATIC_TRUE=
  19815. ENABLE_STATIC_FALSE="#"
  19816. else
  19817. ENABLE_STATIC_TRUE="#"
  19818. ENABLE_STATIC_FALSE=
  19819. fi
  19820. cat >Makefile.rules <<__EOF__
  19821. # Build rules for objects
  19822. -include \$(OBJECTS:.lo=.d)
  19823. # Special dependency for SDL.c, since it depends on SDL_revision.h
  19824. $srcdir/src/SDL.c: update-revision
  19825. $DEPENDS
  19826. $VERSION_DEPENDS
  19827. $SDLMAIN_DEPENDS
  19828. $SDLTEST_DEPENDS
  19829. __EOF__
  19830. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config SDL2.spec sdl2.pc"
  19831. ac_config_commands="$ac_config_commands sdl2_config"
  19832. SUMMARY="SDL2 Configure Summary:\n"
  19833. if test x$enable_shared = xyes; then
  19834. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  19835. fi
  19836. if test x$enable_static = xyes; then
  19837. SUMMARY="${SUMMARY}Building Static Libraries\n"
  19838. fi
  19839. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  19840. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  19841. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  19842. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  19843. if test x$have_x = xyes; then
  19844. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  19845. fi
  19846. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  19847. if test x$enable_libudev = xyes; then
  19848. SUMMARY="${SUMMARY}Using libudev : YES\n"
  19849. else
  19850. SUMMARY="${SUMMARY}Using libudev : NO\n"
  19851. fi
  19852. if test x$have_dbus_dbus_h_hdr = xyes; then
  19853. SUMMARY="${SUMMARY}Using dbus : YES\n"
  19854. else
  19855. SUMMARY="${SUMMARY}Using dbus : NO\n"
  19856. fi
  19857. ac_config_commands="$ac_config_commands summary"
  19858. cat >confcache <<\_ACEOF
  19859. # This file is a shell script that caches the results of configure
  19860. # tests run on this system so they can be shared between configure
  19861. # scripts and configure runs, see configure's option --config-cache.
  19862. # It is not useful on other systems. If it contains results you don't
  19863. # want to keep, you may remove or edit it.
  19864. #
  19865. # config.status only pays attention to the cache file if you give it
  19866. # the --recheck option to rerun configure.
  19867. #
  19868. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19869. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19870. # following values.
  19871. _ACEOF
  19872. # The following way of writing the cache mishandles newlines in values,
  19873. # but we know of no workaround that is simple, portable, and efficient.
  19874. # So, we kill variables containing newlines.
  19875. # Ultrix sh set writes to stderr and can't be redirected directly,
  19876. # and sets the high bit in the cache file unless we assign to the vars.
  19877. (
  19878. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19879. eval ac_val=\$$ac_var
  19880. case $ac_val in #(
  19881. *${as_nl}*)
  19882. case $ac_var in #(
  19883. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  19884. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  19885. esac
  19886. case $ac_var in #(
  19887. _ | IFS | as_nl) ;; #(
  19888. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  19889. *) { eval $ac_var=; unset $ac_var;} ;;
  19890. esac ;;
  19891. esac
  19892. done
  19893. (set) 2>&1 |
  19894. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19895. *${as_nl}ac_space=\ *)
  19896. # `set' does not quote correctly, so add quotes: double-quote
  19897. # substitution turns \\\\ into \\, and sed turns \\ into \.
  19898. sed -n \
  19899. "s/'/'\\\\''/g;
  19900. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19901. ;; #(
  19902. *)
  19903. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19904. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19905. ;;
  19906. esac |
  19907. sort
  19908. ) |
  19909. sed '
  19910. /^ac_cv_env_/b end
  19911. t clear
  19912. :clear
  19913. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19914. t end
  19915. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19916. :end' >>confcache
  19917. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19918. if test -w "$cache_file"; then
  19919. if test "x$cache_file" != "x/dev/null"; then
  19920. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  19921. $as_echo "$as_me: updating cache $cache_file" >&6;}
  19922. if test ! -f "$cache_file" || test -h "$cache_file"; then
  19923. cat confcache >"$cache_file"
  19924. else
  19925. case $cache_file in #(
  19926. */* | ?:*)
  19927. mv -f confcache "$cache_file"$$ &&
  19928. mv -f "$cache_file"$$ "$cache_file" ;; #(
  19929. *)
  19930. mv -f confcache "$cache_file" ;;
  19931. esac
  19932. fi
  19933. fi
  19934. else
  19935. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  19936. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19937. fi
  19938. fi
  19939. rm -f confcache
  19940. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19941. # Let make expand exec_prefix.
  19942. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19943. DEFS=-DHAVE_CONFIG_H
  19944. ac_libobjs=
  19945. ac_ltlibobjs=
  19946. U=
  19947. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19948. # 1. Remove the extension, and $U if already installed.
  19949. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19950. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  19951. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19952. # will be set to the directory where LIBOBJS objects are built.
  19953. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19954. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  19955. done
  19956. LIBOBJS=$ac_libobjs
  19957. LTLIBOBJS=$ac_ltlibobjs
  19958. : "${CONFIG_STATUS=./config.status}"
  19959. ac_write_fail=0
  19960. ac_clean_files_save=$ac_clean_files
  19961. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19962. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  19963. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19964. as_write_fail=0
  19965. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  19966. #! $SHELL
  19967. # Generated by $as_me.
  19968. # Run this file to recreate the current configuration.
  19969. # Compiler output produced by configure, useful for debugging
  19970. # configure, is in config.log if it exists.
  19971. debug=false
  19972. ac_cs_recheck=false
  19973. ac_cs_silent=false
  19974. SHELL=\${CONFIG_SHELL-$SHELL}
  19975. export SHELL
  19976. _ASEOF
  19977. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  19978. ## -------------------- ##
  19979. ## M4sh Initialization. ##
  19980. ## -------------------- ##
  19981. # Be more Bourne compatible
  19982. DUALCASE=1; export DUALCASE # for MKS sh
  19983. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19984. emulate sh
  19985. NULLCMD=:
  19986. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  19987. # is contrary to our usage. Disable this feature.
  19988. alias -g '${1+"$@"}'='"$@"'
  19989. setopt NO_GLOB_SUBST
  19990. else
  19991. case `(set -o) 2>/dev/null` in #(
  19992. *posix*) :
  19993. set -o posix ;; #(
  19994. *) :
  19995. ;;
  19996. esac
  19997. fi
  19998. as_nl='
  19999. '
  20000. export as_nl
  20001. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  20002. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20003. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20004. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20005. # Prefer a ksh shell builtin over an external printf program on Solaris,
  20006. # but without wasting forks for bash or zsh.
  20007. if test -z "$BASH_VERSION$ZSH_VERSION" \
  20008. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  20009. as_echo='print -r --'
  20010. as_echo_n='print -rn --'
  20011. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20012. as_echo='printf %s\n'
  20013. as_echo_n='printf %s'
  20014. else
  20015. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20016. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20017. as_echo_n='/usr/ucb/echo -n'
  20018. else
  20019. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20020. as_echo_n_body='eval
  20021. arg=$1;
  20022. case $arg in #(
  20023. *"$as_nl"*)
  20024. expr "X$arg" : "X\\(.*\\)$as_nl";
  20025. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20026. esac;
  20027. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20028. '
  20029. export as_echo_n_body
  20030. as_echo_n='sh -c $as_echo_n_body as_echo'
  20031. fi
  20032. export as_echo_body
  20033. as_echo='sh -c $as_echo_body as_echo'
  20034. fi
  20035. # The user is always right.
  20036. if test "${PATH_SEPARATOR+set}" != set; then
  20037. PATH_SEPARATOR=:
  20038. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20039. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20040. PATH_SEPARATOR=';'
  20041. }
  20042. fi
  20043. # IFS
  20044. # We need space, tab and new line, in precisely that order. Quoting is
  20045. # there to prevent editors from complaining about space-tab.
  20046. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20047. # splitting by setting IFS to empty value.)
  20048. IFS=" "" $as_nl"
  20049. # Find who we are. Look in the path if we contain no directory separator.
  20050. as_myself=
  20051. case $0 in #((
  20052. *[\\/]* ) as_myself=$0 ;;
  20053. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20054. for as_dir in $PATH
  20055. do
  20056. IFS=$as_save_IFS
  20057. test -z "$as_dir" && as_dir=.
  20058. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20059. done
  20060. IFS=$as_save_IFS
  20061. ;;
  20062. esac
  20063. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20064. # in which case we are not to be found in the path.
  20065. if test "x$as_myself" = x; then
  20066. as_myself=$0
  20067. fi
  20068. if test ! -f "$as_myself"; then
  20069. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20070. exit 1
  20071. fi
  20072. # Unset variables that we do not need and which cause bugs (e.g. in
  20073. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  20074. # suppresses any "Segmentation fault" message there. '((' could
  20075. # trigger a bug in pdksh 5.2.14.
  20076. for as_var in BASH_ENV ENV MAIL MAILPATH
  20077. do eval test x\${$as_var+set} = xset \
  20078. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  20079. done
  20080. PS1='$ '
  20081. PS2='> '
  20082. PS4='+ '
  20083. # NLS nuisances.
  20084. LC_ALL=C
  20085. export LC_ALL
  20086. LANGUAGE=C
  20087. export LANGUAGE
  20088. # CDPATH.
  20089. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20090. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  20091. # ----------------------------------------
  20092. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  20093. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  20094. # script with STATUS, using 1 if that was 0.
  20095. as_fn_error ()
  20096. {
  20097. as_status=$1; test $as_status -eq 0 && as_status=1
  20098. if test "$4"; then
  20099. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  20100. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  20101. fi
  20102. $as_echo "$as_me: error: $2" >&2
  20103. as_fn_exit $as_status
  20104. } # as_fn_error
  20105. # as_fn_set_status STATUS
  20106. # -----------------------
  20107. # Set $? to STATUS, without forking.
  20108. as_fn_set_status ()
  20109. {
  20110. return $1
  20111. } # as_fn_set_status
  20112. # as_fn_exit STATUS
  20113. # -----------------
  20114. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  20115. as_fn_exit ()
  20116. {
  20117. set +e
  20118. as_fn_set_status $1
  20119. exit $1
  20120. } # as_fn_exit
  20121. # as_fn_unset VAR
  20122. # ---------------
  20123. # Portably unset VAR.
  20124. as_fn_unset ()
  20125. {
  20126. { eval $1=; unset $1;}
  20127. }
  20128. as_unset=as_fn_unset
  20129. # as_fn_append VAR VALUE
  20130. # ----------------------
  20131. # Append the text in VALUE to the end of the definition contained in VAR. Take
  20132. # advantage of any shell optimizations that allow amortized linear growth over
  20133. # repeated appends, instead of the typical quadratic growth present in naive
  20134. # implementations.
  20135. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  20136. eval 'as_fn_append ()
  20137. {
  20138. eval $1+=\$2
  20139. }'
  20140. else
  20141. as_fn_append ()
  20142. {
  20143. eval $1=\$$1\$2
  20144. }
  20145. fi # as_fn_append
  20146. # as_fn_arith ARG...
  20147. # ------------------
  20148. # Perform arithmetic evaluation on the ARGs, and store the result in the
  20149. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  20150. # must be portable across $(()) and expr.
  20151. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  20152. eval 'as_fn_arith ()
  20153. {
  20154. as_val=$(( $* ))
  20155. }'
  20156. else
  20157. as_fn_arith ()
  20158. {
  20159. as_val=`expr "$@" || test $? -eq 1`
  20160. }
  20161. fi # as_fn_arith
  20162. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20163. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20164. as_expr=expr
  20165. else
  20166. as_expr=false
  20167. fi
  20168. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20169. as_basename=basename
  20170. else
  20171. as_basename=false
  20172. fi
  20173. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20174. as_dirname=dirname
  20175. else
  20176. as_dirname=false
  20177. fi
  20178. as_me=`$as_basename -- "$0" ||
  20179. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20180. X"$0" : 'X\(//\)$' \| \
  20181. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20182. $as_echo X/"$0" |
  20183. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20184. s//\1/
  20185. q
  20186. }
  20187. /^X\/\(\/\/\)$/{
  20188. s//\1/
  20189. q
  20190. }
  20191. /^X\/\(\/\).*/{
  20192. s//\1/
  20193. q
  20194. }
  20195. s/.*/./; q'`
  20196. # Avoid depending upon Character Ranges.
  20197. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20198. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20199. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20200. as_cr_digits='0123456789'
  20201. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20202. ECHO_C= ECHO_N= ECHO_T=
  20203. case `echo -n x` in #(((((
  20204. -n*)
  20205. case `echo 'xy\c'` in
  20206. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20207. xy) ECHO_C='\c';;
  20208. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  20209. ECHO_T=' ';;
  20210. esac;;
  20211. *)
  20212. ECHO_N='-n';;
  20213. esac
  20214. rm -f conf$$ conf$$.exe conf$$.file
  20215. if test -d conf$$.dir; then
  20216. rm -f conf$$.dir/conf$$.file
  20217. else
  20218. rm -f conf$$.dir
  20219. mkdir conf$$.dir 2>/dev/null
  20220. fi
  20221. if (echo >conf$$.file) 2>/dev/null; then
  20222. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20223. as_ln_s='ln -s'
  20224. # ... but there are two gotchas:
  20225. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20226. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20227. # In both cases, we have to default to `cp -pR'.
  20228. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20229. as_ln_s='cp -pR'
  20230. elif ln conf$$.file conf$$ 2>/dev/null; then
  20231. as_ln_s=ln
  20232. else
  20233. as_ln_s='cp -pR'
  20234. fi
  20235. else
  20236. as_ln_s='cp -pR'
  20237. fi
  20238. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20239. rmdir conf$$.dir 2>/dev/null
  20240. # as_fn_mkdir_p
  20241. # -------------
  20242. # Create "$as_dir" as a directory, including parents if necessary.
  20243. as_fn_mkdir_p ()
  20244. {
  20245. case $as_dir in #(
  20246. -*) as_dir=./$as_dir;;
  20247. esac
  20248. test -d "$as_dir" || eval $as_mkdir_p || {
  20249. as_dirs=
  20250. while :; do
  20251. case $as_dir in #(
  20252. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20253. *) as_qdir=$as_dir;;
  20254. esac
  20255. as_dirs="'$as_qdir' $as_dirs"
  20256. as_dir=`$as_dirname -- "$as_dir" ||
  20257. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20258. X"$as_dir" : 'X\(//\)[^/]' \| \
  20259. X"$as_dir" : 'X\(//\)$' \| \
  20260. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20261. $as_echo X"$as_dir" |
  20262. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20263. s//\1/
  20264. q
  20265. }
  20266. /^X\(\/\/\)[^/].*/{
  20267. s//\1/
  20268. q
  20269. }
  20270. /^X\(\/\/\)$/{
  20271. s//\1/
  20272. q
  20273. }
  20274. /^X\(\/\).*/{
  20275. s//\1/
  20276. q
  20277. }
  20278. s/.*/./; q'`
  20279. test -d "$as_dir" && break
  20280. done
  20281. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20282. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  20283. } # as_fn_mkdir_p
  20284. if mkdir -p . 2>/dev/null; then
  20285. as_mkdir_p='mkdir -p "$as_dir"'
  20286. else
  20287. test -d ./-p && rmdir ./-p
  20288. as_mkdir_p=false
  20289. fi
  20290. # as_fn_executable_p FILE
  20291. # -----------------------
  20292. # Test if FILE is an executable regular file.
  20293. as_fn_executable_p ()
  20294. {
  20295. test -f "$1" && test -x "$1"
  20296. } # as_fn_executable_p
  20297. as_test_x='test -x'
  20298. as_executable_p=as_fn_executable_p
  20299. # Sed expression to map a string onto a valid CPP name.
  20300. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20301. # Sed expression to map a string onto a valid variable name.
  20302. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20303. exec 6>&1
  20304. ## ----------------------------------- ##
  20305. ## Main body of $CONFIG_STATUS script. ##
  20306. ## ----------------------------------- ##
  20307. _ASEOF
  20308. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  20309. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20310. # Save the log message, to keep $0 and so on meaningful, and to
  20311. # report actual input values of CONFIG_FILES etc. instead of their
  20312. # values after options handling.
  20313. ac_log="
  20314. This file was extended by $as_me, which was
  20315. generated by GNU Autoconf 2.69. Invocation command line was
  20316. CONFIG_FILES = $CONFIG_FILES
  20317. CONFIG_HEADERS = $CONFIG_HEADERS
  20318. CONFIG_LINKS = $CONFIG_LINKS
  20319. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20320. $ $0 $@
  20321. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20322. "
  20323. _ACEOF
  20324. case $ac_config_files in *"
  20325. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  20326. esac
  20327. case $ac_config_headers in *"
  20328. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  20329. esac
  20330. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20331. # Files that config.status was made for.
  20332. config_files="$ac_config_files"
  20333. config_headers="$ac_config_headers"
  20334. config_commands="$ac_config_commands"
  20335. _ACEOF
  20336. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20337. ac_cs_usage="\
  20338. \`$as_me' instantiates files and other configuration actions
  20339. from templates according to the current configuration. Unless the files
  20340. and actions are specified as TAGs, all are instantiated by default.
  20341. Usage: $0 [OPTION]... [TAG]...
  20342. -h, --help print this help, then exit
  20343. -V, --version print version number and configuration settings, then exit
  20344. --config print configuration, then exit
  20345. -q, --quiet, --silent
  20346. do not print progress messages
  20347. -d, --debug don't remove temporary files
  20348. --recheck update $as_me by reconfiguring in the same conditions
  20349. --file=FILE[:TEMPLATE]
  20350. instantiate the configuration file FILE
  20351. --header=FILE[:TEMPLATE]
  20352. instantiate the configuration header FILE
  20353. Configuration files:
  20354. $config_files
  20355. Configuration headers:
  20356. $config_headers
  20357. Configuration commands:
  20358. $config_commands
  20359. Report bugs to the package provider."
  20360. _ACEOF
  20361. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20362. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  20363. ac_cs_version="\\
  20364. config.status
  20365. configured by $0, generated by GNU Autoconf 2.69,
  20366. with options \\"\$ac_cs_config\\"
  20367. Copyright (C) 2012 Free Software Foundation, Inc.
  20368. This config.status script is free software; the Free Software Foundation
  20369. gives unlimited permission to copy, distribute and modify it."
  20370. ac_pwd='$ac_pwd'
  20371. srcdir='$srcdir'
  20372. INSTALL='$INSTALL'
  20373. AWK='$AWK'
  20374. test -n "\$AWK" || AWK=awk
  20375. _ACEOF
  20376. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20377. # The default lists apply if the user does not specify any file.
  20378. ac_need_defaults=:
  20379. while test $# != 0
  20380. do
  20381. case $1 in
  20382. --*=?*)
  20383. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20384. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20385. ac_shift=:
  20386. ;;
  20387. --*=)
  20388. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20389. ac_optarg=
  20390. ac_shift=:
  20391. ;;
  20392. *)
  20393. ac_option=$1
  20394. ac_optarg=$2
  20395. ac_shift=shift
  20396. ;;
  20397. esac
  20398. case $ac_option in
  20399. # Handling of the options.
  20400. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20401. ac_cs_recheck=: ;;
  20402. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20403. $as_echo "$ac_cs_version"; exit ;;
  20404. --config | --confi | --conf | --con | --co | --c )
  20405. $as_echo "$ac_cs_config"; exit ;;
  20406. --debug | --debu | --deb | --de | --d | -d )
  20407. debug=: ;;
  20408. --file | --fil | --fi | --f )
  20409. $ac_shift
  20410. case $ac_optarg in
  20411. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20412. '') as_fn_error $? "missing file argument" ;;
  20413. esac
  20414. as_fn_append CONFIG_FILES " '$ac_optarg'"
  20415. ac_need_defaults=false;;
  20416. --header | --heade | --head | --hea )
  20417. $ac_shift
  20418. case $ac_optarg in
  20419. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20420. esac
  20421. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  20422. ac_need_defaults=false;;
  20423. --he | --h)
  20424. # Conflict between --help and --header
  20425. as_fn_error $? "ambiguous option: \`$1'
  20426. Try \`$0 --help' for more information.";;
  20427. --help | --hel | -h )
  20428. $as_echo "$ac_cs_usage"; exit ;;
  20429. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20430. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20431. ac_cs_silent=: ;;
  20432. # This is an error.
  20433. -*) as_fn_error $? "unrecognized option: \`$1'
  20434. Try \`$0 --help' for more information." ;;
  20435. *) as_fn_append ac_config_targets " $1"
  20436. ac_need_defaults=false ;;
  20437. esac
  20438. shift
  20439. done
  20440. ac_configure_extra_args=
  20441. if $ac_cs_silent; then
  20442. exec 6>/dev/null
  20443. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20444. fi
  20445. _ACEOF
  20446. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20447. if \$ac_cs_recheck; then
  20448. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20449. shift
  20450. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  20451. CONFIG_SHELL='$SHELL'
  20452. export CONFIG_SHELL
  20453. exec "\$@"
  20454. fi
  20455. _ACEOF
  20456. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20457. exec 5>>config.log
  20458. {
  20459. echo
  20460. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20461. ## Running $as_me. ##
  20462. _ASBOX
  20463. $as_echo "$ac_log"
  20464. } >&5
  20465. _ACEOF
  20466. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20467. #
  20468. # INIT-COMMANDS
  20469. #
  20470. # The HP-UX ksh and POSIX shell print the target directory to stdout
  20471. # if CDPATH is set.
  20472. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20473. sed_quote_subst='$sed_quote_subst'
  20474. double_quote_subst='$double_quote_subst'
  20475. delay_variable_subst='$delay_variable_subst'
  20476. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  20477. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  20478. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  20479. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  20480. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  20481. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  20482. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  20483. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  20484. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  20485. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  20486. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  20487. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  20488. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  20489. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  20490. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  20491. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  20492. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  20493. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  20494. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  20495. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  20496. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  20497. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  20498. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  20499. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  20500. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  20501. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  20502. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  20503. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  20504. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  20505. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  20506. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  20507. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  20508. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  20509. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  20510. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  20511. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  20512. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  20513. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  20514. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  20515. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  20516. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  20517. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  20518. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  20519. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  20520. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  20521. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  20522. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20523. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20524. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  20525. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  20526. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  20527. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  20528. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  20529. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  20530. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  20531. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  20532. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  20533. 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"`'
  20534. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  20535. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  20536. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  20537. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  20538. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  20539. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  20540. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  20541. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  20542. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  20543. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  20544. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  20545. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  20546. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  20547. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  20548. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  20549. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  20550. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  20551. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  20552. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20553. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  20554. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  20555. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  20556. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  20557. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  20558. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  20559. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20560. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  20561. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20562. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  20563. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20564. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  20565. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20566. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20567. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  20568. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  20569. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  20570. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  20571. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  20572. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20573. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  20574. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  20575. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  20576. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  20577. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  20578. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  20579. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  20580. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  20581. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  20582. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  20583. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  20584. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  20585. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  20586. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  20587. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  20588. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20589. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  20590. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  20591. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  20592. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  20593. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  20594. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20595. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20596. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  20597. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  20598. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  20599. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  20600. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  20601. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  20602. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  20603. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  20604. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  20605. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  20606. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  20607. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  20608. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  20609. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  20610. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  20611. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  20612. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  20613. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  20614. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20615. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20616. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20617. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  20618. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  20619. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20620. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  20621. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  20622. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  20623. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  20624. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  20625. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  20626. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20627. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20628. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  20629. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20630. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20631. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20632. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20633. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20634. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20635. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  20636. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20637. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20638. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20639. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  20640. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  20641. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  20642. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  20643. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  20644. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  20645. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  20646. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  20647. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  20648. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20649. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20650. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20651. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20652. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20653. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20654. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  20655. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  20656. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20657. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20658. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  20659. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  20660. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  20661. LTCC='$LTCC'
  20662. LTCFLAGS='$LTCFLAGS'
  20663. compiler='$compiler_DEFAULT'
  20664. # A function that is used when there is no print builtin or printf.
  20665. func_fallback_echo ()
  20666. {
  20667. eval 'cat <<_LTECHO_EOF
  20668. \$1
  20669. _LTECHO_EOF'
  20670. }
  20671. # Quote evaled strings.
  20672. for var in AS \
  20673. DLLTOOL \
  20674. OBJDUMP \
  20675. SHELL \
  20676. ECHO \
  20677. PATH_SEPARATOR \
  20678. SED \
  20679. GREP \
  20680. EGREP \
  20681. FGREP \
  20682. LD \
  20683. NM \
  20684. LN_S \
  20685. lt_SP2NL \
  20686. lt_NL2SP \
  20687. reload_flag \
  20688. deplibs_check_method \
  20689. file_magic_cmd \
  20690. file_magic_glob \
  20691. want_nocaseglob \
  20692. sharedlib_from_linklib_cmd \
  20693. AR \
  20694. AR_FLAGS \
  20695. archiver_list_spec \
  20696. STRIP \
  20697. RANLIB \
  20698. CC \
  20699. CFLAGS \
  20700. compiler \
  20701. lt_cv_sys_global_symbol_pipe \
  20702. lt_cv_sys_global_symbol_to_cdecl \
  20703. lt_cv_sys_global_symbol_to_c_name_address \
  20704. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  20705. nm_file_list_spec \
  20706. lt_prog_compiler_no_builtin_flag \
  20707. lt_prog_compiler_pic \
  20708. lt_prog_compiler_wl \
  20709. lt_prog_compiler_static \
  20710. lt_cv_prog_compiler_c_o \
  20711. need_locks \
  20712. MANIFEST_TOOL \
  20713. DSYMUTIL \
  20714. NMEDIT \
  20715. LIPO \
  20716. OTOOL \
  20717. OTOOL64 \
  20718. shrext_cmds \
  20719. export_dynamic_flag_spec \
  20720. whole_archive_flag_spec \
  20721. compiler_needs_object \
  20722. with_gnu_ld \
  20723. allow_undefined_flag \
  20724. no_undefined_flag \
  20725. hardcode_libdir_flag_spec \
  20726. hardcode_libdir_separator \
  20727. exclude_expsyms \
  20728. include_expsyms \
  20729. file_list_spec \
  20730. variables_saved_for_relink \
  20731. libname_spec \
  20732. library_names_spec \
  20733. soname_spec \
  20734. install_override_mode \
  20735. finish_eval \
  20736. old_striplib \
  20737. striplib \
  20738. compiler_lib_search_dirs \
  20739. predep_objects \
  20740. postdep_objects \
  20741. predeps \
  20742. postdeps \
  20743. compiler_lib_search_path \
  20744. LD_CXX \
  20745. reload_flag_CXX \
  20746. compiler_CXX \
  20747. lt_prog_compiler_no_builtin_flag_CXX \
  20748. lt_prog_compiler_pic_CXX \
  20749. lt_prog_compiler_wl_CXX \
  20750. lt_prog_compiler_static_CXX \
  20751. lt_cv_prog_compiler_c_o_CXX \
  20752. export_dynamic_flag_spec_CXX \
  20753. whole_archive_flag_spec_CXX \
  20754. compiler_needs_object_CXX \
  20755. with_gnu_ld_CXX \
  20756. allow_undefined_flag_CXX \
  20757. no_undefined_flag_CXX \
  20758. hardcode_libdir_flag_spec_CXX \
  20759. hardcode_libdir_separator_CXX \
  20760. exclude_expsyms_CXX \
  20761. include_expsyms_CXX \
  20762. file_list_spec_CXX \
  20763. compiler_lib_search_dirs_CXX \
  20764. predep_objects_CXX \
  20765. postdep_objects_CXX \
  20766. predeps_CXX \
  20767. postdeps_CXX \
  20768. compiler_lib_search_path_CXX; do
  20769. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20770. *[\\\\\\\`\\"\\\$]*)
  20771. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  20772. ;;
  20773. *)
  20774. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20775. ;;
  20776. esac
  20777. done
  20778. # Double-quote double-evaled strings.
  20779. for var in reload_cmds \
  20780. old_postinstall_cmds \
  20781. old_postuninstall_cmds \
  20782. old_archive_cmds \
  20783. extract_expsyms_cmds \
  20784. old_archive_from_new_cmds \
  20785. old_archive_from_expsyms_cmds \
  20786. archive_cmds \
  20787. archive_expsym_cmds \
  20788. module_cmds \
  20789. module_expsym_cmds \
  20790. export_symbols_cmds \
  20791. prelink_cmds \
  20792. postlink_cmds \
  20793. postinstall_cmds \
  20794. postuninstall_cmds \
  20795. finish_cmds \
  20796. sys_lib_search_path_spec \
  20797. sys_lib_dlsearch_path_spec \
  20798. reload_cmds_CXX \
  20799. old_archive_cmds_CXX \
  20800. old_archive_from_new_cmds_CXX \
  20801. old_archive_from_expsyms_cmds_CXX \
  20802. archive_cmds_CXX \
  20803. archive_expsym_cmds_CXX \
  20804. module_cmds_CXX \
  20805. module_expsym_cmds_CXX \
  20806. export_symbols_cmds_CXX \
  20807. prelink_cmds_CXX \
  20808. postlink_cmds_CXX; do
  20809. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20810. *[\\\\\\\`\\"\\\$]*)
  20811. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  20812. ;;
  20813. *)
  20814. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20815. ;;
  20816. esac
  20817. done
  20818. ac_aux_dir='$ac_aux_dir'
  20819. xsi_shell='$xsi_shell'
  20820. lt_shell_append='$lt_shell_append'
  20821. # See if we are running on zsh, and set the options which allow our
  20822. # commands through without removal of \ escapes INIT.
  20823. if test -n "\${ZSH_VERSION+set}" ; then
  20824. setopt NO_GLOB_SUBST
  20825. fi
  20826. PACKAGE='$PACKAGE'
  20827. VERSION='$VERSION'
  20828. TIMESTAMP='$TIMESTAMP'
  20829. RM='$RM'
  20830. ofile='$ofile'
  20831. SUMMARY="$SUMMARY"
  20832. _ACEOF
  20833. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20834. # Handling of arguments.
  20835. for ac_config_target in $ac_config_targets
  20836. do
  20837. case $ac_config_target in
  20838. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  20839. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  20840. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  20841. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  20842. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  20843. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  20844. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  20845. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  20846. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  20847. esac
  20848. done
  20849. # If the user did not use the arguments to specify the items to instantiate,
  20850. # then the envvar interface is used. Set only those that are not.
  20851. # We use the long form for the default assignment because of an extremely
  20852. # bizarre bug on SunOS 4.1.3.
  20853. if $ac_need_defaults; then
  20854. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20855. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20856. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20857. fi
  20858. # Have a temporary directory for convenience. Make it in the build tree
  20859. # simply because there is no reason against having it here, and in addition,
  20860. # creating and moving files from /tmp can sometimes cause problems.
  20861. # Hook for its removal unless debugging.
  20862. # Note that there is a small window in which the directory will not be cleaned:
  20863. # after its creation but before its name has been assigned to `$tmp'.
  20864. $debug ||
  20865. {
  20866. tmp= ac_tmp=
  20867. trap 'exit_status=$?
  20868. : "${ac_tmp:=$tmp}"
  20869. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  20870. ' 0
  20871. trap 'as_fn_exit 1' 1 2 13 15
  20872. }
  20873. # Create a (secure) tmp directory for tmp files.
  20874. {
  20875. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20876. test -d "$tmp"
  20877. } ||
  20878. {
  20879. tmp=./conf$$-$RANDOM
  20880. (umask 077 && mkdir "$tmp")
  20881. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  20882. ac_tmp=$tmp
  20883. # Set up the scripts for CONFIG_FILES section.
  20884. # No need to generate them if there are no CONFIG_FILES.
  20885. # This happens for instance with `./config.status config.h'.
  20886. if test -n "$CONFIG_FILES"; then
  20887. ac_cr=`echo X | tr X '\015'`
  20888. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  20889. # But we know of no other shell where ac_cr would be empty at this
  20890. # point, so we can use a bashism as a fallback.
  20891. if test "x$ac_cr" = x; then
  20892. eval ac_cr=\$\'\\r\'
  20893. fi
  20894. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  20895. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  20896. ac_cs_awk_cr='\\r'
  20897. else
  20898. ac_cs_awk_cr=$ac_cr
  20899. fi
  20900. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  20901. _ACEOF
  20902. {
  20903. echo "cat >conf$$subs.awk <<_ACEOF" &&
  20904. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  20905. echo "_ACEOF"
  20906. } >conf$$subs.sh ||
  20907. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20908. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  20909. ac_delim='%!_!# '
  20910. for ac_last_try in false false false false false :; do
  20911. . ./conf$$subs.sh ||
  20912. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20913. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  20914. if test $ac_delim_n = $ac_delim_num; then
  20915. break
  20916. elif $ac_last_try; then
  20917. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20918. else
  20919. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20920. fi
  20921. done
  20922. rm -f conf$$subs.sh
  20923. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20924. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  20925. _ACEOF
  20926. sed -n '
  20927. h
  20928. s/^/S["/; s/!.*/"]=/
  20929. p
  20930. g
  20931. s/^[^!]*!//
  20932. :repl
  20933. t repl
  20934. s/'"$ac_delim"'$//
  20935. t delim
  20936. :nl
  20937. h
  20938. s/\(.\{148\}\)..*/\1/
  20939. t more1
  20940. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  20941. p
  20942. n
  20943. b repl
  20944. :more1
  20945. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  20946. p
  20947. g
  20948. s/.\{148\}//
  20949. t nl
  20950. :delim
  20951. h
  20952. s/\(.\{148\}\)..*/\1/
  20953. t more2
  20954. s/["\\]/\\&/g; s/^/"/; s/$/"/
  20955. p
  20956. b
  20957. :more2
  20958. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  20959. p
  20960. g
  20961. s/.\{148\}//
  20962. t delim
  20963. ' <conf$$subs.awk | sed '
  20964. /^[^""]/{
  20965. N
  20966. s/\n//
  20967. }
  20968. ' >>$CONFIG_STATUS || ac_write_fail=1
  20969. rm -f conf$$subs.awk
  20970. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20971. _ACAWK
  20972. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  20973. for (key in S) S_is_set[key] = 1
  20974. FS = ""
  20975. }
  20976. {
  20977. line = $ 0
  20978. nfields = split(line, field, "@")
  20979. substed = 0
  20980. len = length(field[1])
  20981. for (i = 2; i < nfields; i++) {
  20982. key = field[i]
  20983. keylen = length(key)
  20984. if (S_is_set[key]) {
  20985. value = S[key]
  20986. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  20987. len += length(value) + length(field[++i])
  20988. substed = 1
  20989. } else
  20990. len += 1 + keylen
  20991. }
  20992. print line
  20993. }
  20994. _ACAWK
  20995. _ACEOF
  20996. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20997. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  20998. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  20999. else
  21000. cat
  21001. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  21002. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  21003. _ACEOF
  21004. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  21005. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  21006. # trailing colons and then remove the whole line if VPATH becomes empty
  21007. # (actually we leave an empty line to preserve line numbers).
  21008. if test "x$srcdir" = x.; then
  21009. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  21010. h
  21011. s///
  21012. s/^/:/
  21013. s/[ ]*$/:/
  21014. s/:\$(srcdir):/:/g
  21015. s/:\${srcdir}:/:/g
  21016. s/:@srcdir@:/:/g
  21017. s/^:*//
  21018. s/:*$//
  21019. x
  21020. s/\(=[ ]*\).*/\1/
  21021. G
  21022. s/\n//
  21023. s/^[^=]*=[ ]*$//
  21024. }'
  21025. fi
  21026. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21027. fi # test -n "$CONFIG_FILES"
  21028. # Set up the scripts for CONFIG_HEADERS section.
  21029. # No need to generate them if there are no CONFIG_HEADERS.
  21030. # This happens for instance with `./config.status Makefile'.
  21031. if test -n "$CONFIG_HEADERS"; then
  21032. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  21033. BEGIN {
  21034. _ACEOF
  21035. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21036. # here-document in config.status, that substitutes the proper values into
  21037. # config.h.in to produce config.h.
  21038. # Create a delimiter string that does not exist in confdefs.h, to ease
  21039. # handling of long lines.
  21040. ac_delim='%!_!# '
  21041. for ac_last_try in false false :; do
  21042. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  21043. if test -z "$ac_tt"; then
  21044. break
  21045. elif $ac_last_try; then
  21046. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  21047. else
  21048. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21049. fi
  21050. done
  21051. # For the awk script, D is an array of macro values keyed by name,
  21052. # likewise P contains macro parameters if any. Preserve backslash
  21053. # newline sequences.
  21054. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21055. sed -n '
  21056. s/.\{148\}/&'"$ac_delim"'/g
  21057. t rset
  21058. :rset
  21059. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21060. t def
  21061. d
  21062. :def
  21063. s/\\$//
  21064. t bsnl
  21065. s/["\\]/\\&/g
  21066. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21067. D["\1"]=" \3"/p
  21068. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21069. d
  21070. :bsnl
  21071. s/["\\]/\\&/g
  21072. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21073. D["\1"]=" \3\\\\\\n"\\/p
  21074. t cont
  21075. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21076. t cont
  21077. d
  21078. :cont
  21079. n
  21080. s/.\{148\}/&'"$ac_delim"'/g
  21081. t clear
  21082. :clear
  21083. s/\\$//
  21084. t bsnlc
  21085. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21086. d
  21087. :bsnlc
  21088. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21089. b cont
  21090. ' <confdefs.h | sed '
  21091. s/'"$ac_delim"'/"\\\
  21092. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21093. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21094. for (key in D) D_is_set[key] = 1
  21095. FS = ""
  21096. }
  21097. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21098. line = \$ 0
  21099. split(line, arg, " ")
  21100. if (arg[1] == "#") {
  21101. defundef = arg[2]
  21102. mac1 = arg[3]
  21103. } else {
  21104. defundef = substr(arg[1], 2)
  21105. mac1 = arg[2]
  21106. }
  21107. split(mac1, mac2, "(") #)
  21108. macro = mac2[1]
  21109. prefix = substr(line, 1, index(line, defundef) - 1)
  21110. if (D_is_set[macro]) {
  21111. # Preserve the white space surrounding the "#".
  21112. print prefix "define", macro P[macro] D[macro]
  21113. next
  21114. } else {
  21115. # Replace #undef with comments. This is necessary, for example,
  21116. # in the case of _POSIX_SOURCE, which is predefined and required
  21117. # on some systems where configure will not decide to define it.
  21118. if (defundef == "undef") {
  21119. print "/*", prefix defundef, macro, "*/"
  21120. next
  21121. }
  21122. }
  21123. }
  21124. { print }
  21125. _ACAWK
  21126. _ACEOF
  21127. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21128. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  21129. fi # test -n "$CONFIG_HEADERS"
  21130. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21131. shift
  21132. for ac_tag
  21133. do
  21134. case $ac_tag in
  21135. :[FHLC]) ac_mode=$ac_tag; continue;;
  21136. esac
  21137. case $ac_mode$ac_tag in
  21138. :[FHL]*:*);;
  21139. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  21140. :[FH]-) ac_tag=-:-;;
  21141. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21142. esac
  21143. ac_save_IFS=$IFS
  21144. IFS=:
  21145. set x $ac_tag
  21146. IFS=$ac_save_IFS
  21147. shift
  21148. ac_file=$1
  21149. shift
  21150. case $ac_mode in
  21151. :L) ac_source=$1;;
  21152. :[FH])
  21153. ac_file_inputs=
  21154. for ac_f
  21155. do
  21156. case $ac_f in
  21157. -) ac_f="$ac_tmp/stdin";;
  21158. *) # Look for the file first in the build tree, then in the source tree
  21159. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21160. # because $ac_f cannot contain `:'.
  21161. test -f "$ac_f" ||
  21162. case $ac_f in
  21163. [\\/$]*) false;;
  21164. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21165. esac ||
  21166. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  21167. esac
  21168. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21169. as_fn_append ac_file_inputs " '$ac_f'"
  21170. done
  21171. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21172. # use $as_me), people would be surprised to read:
  21173. # /* config.h. Generated by config.status. */
  21174. configure_input='Generated from '`
  21175. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21176. `' by configure.'
  21177. if test x"$ac_file" != x-; then
  21178. configure_input="$ac_file. $configure_input"
  21179. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  21180. $as_echo "$as_me: creating $ac_file" >&6;}
  21181. fi
  21182. # Neutralize special characters interpreted by sed in replacement strings.
  21183. case $configure_input in #(
  21184. *\&* | *\|* | *\\* )
  21185. ac_sed_conf_input=`$as_echo "$configure_input" |
  21186. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21187. *) ac_sed_conf_input=$configure_input;;
  21188. esac
  21189. case $ac_tag in
  21190. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  21191. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  21192. esac
  21193. ;;
  21194. esac
  21195. ac_dir=`$as_dirname -- "$ac_file" ||
  21196. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21197. X"$ac_file" : 'X\(//\)[^/]' \| \
  21198. X"$ac_file" : 'X\(//\)$' \| \
  21199. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21200. $as_echo X"$ac_file" |
  21201. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21202. s//\1/
  21203. q
  21204. }
  21205. /^X\(\/\/\)[^/].*/{
  21206. s//\1/
  21207. q
  21208. }
  21209. /^X\(\/\/\)$/{
  21210. s//\1/
  21211. q
  21212. }
  21213. /^X\(\/\).*/{
  21214. s//\1/
  21215. q
  21216. }
  21217. s/.*/./; q'`
  21218. as_dir="$ac_dir"; as_fn_mkdir_p
  21219. ac_builddir=.
  21220. case "$ac_dir" in
  21221. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21222. *)
  21223. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21224. # A ".." for each directory in $ac_dir_suffix.
  21225. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21226. case $ac_top_builddir_sub in
  21227. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21228. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21229. esac ;;
  21230. esac
  21231. ac_abs_top_builddir=$ac_pwd
  21232. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21233. # for backward compatibility:
  21234. ac_top_builddir=$ac_top_build_prefix
  21235. case $srcdir in
  21236. .) # We are building in place.
  21237. ac_srcdir=.
  21238. ac_top_srcdir=$ac_top_builddir_sub
  21239. ac_abs_top_srcdir=$ac_pwd ;;
  21240. [\\/]* | ?:[\\/]* ) # Absolute name.
  21241. ac_srcdir=$srcdir$ac_dir_suffix;
  21242. ac_top_srcdir=$srcdir
  21243. ac_abs_top_srcdir=$srcdir ;;
  21244. *) # Relative name.
  21245. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21246. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21247. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21248. esac
  21249. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21250. case $ac_mode in
  21251. :F)
  21252. #
  21253. # CONFIG_FILE
  21254. #
  21255. case $INSTALL in
  21256. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21257. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21258. esac
  21259. _ACEOF
  21260. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21261. # If the template does not know about datarootdir, expand it.
  21262. # FIXME: This hack should be removed a few years after 2.60.
  21263. ac_datarootdir_hack=; ac_datarootdir_seen=
  21264. ac_sed_dataroot='
  21265. /datarootdir/ {
  21266. p
  21267. q
  21268. }
  21269. /@datadir@/p
  21270. /@docdir@/p
  21271. /@infodir@/p
  21272. /@localedir@/p
  21273. /@mandir@/p'
  21274. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21275. *datarootdir*) ac_datarootdir_seen=yes;;
  21276. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21277. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21278. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21279. _ACEOF
  21280. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21281. ac_datarootdir_hack='
  21282. s&@datadir@&$datadir&g
  21283. s&@docdir@&$docdir&g
  21284. s&@infodir@&$infodir&g
  21285. s&@localedir@&$localedir&g
  21286. s&@mandir@&$mandir&g
  21287. s&\\\${datarootdir}&$datarootdir&g' ;;
  21288. esac
  21289. _ACEOF
  21290. # Neutralize VPATH when `$srcdir' = `.'.
  21291. # Shell code in configure.ac might set extrasub.
  21292. # FIXME: do we really want to maintain this feature?
  21293. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21294. ac_sed_extra="$ac_vpsub
  21295. $extrasub
  21296. _ACEOF
  21297. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21298. :t
  21299. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21300. s|@configure_input@|$ac_sed_conf_input|;t t
  21301. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21302. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21303. s&@srcdir@&$ac_srcdir&;t t
  21304. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21305. s&@top_srcdir@&$ac_top_srcdir&;t t
  21306. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21307. s&@builddir@&$ac_builddir&;t t
  21308. s&@abs_builddir@&$ac_abs_builddir&;t t
  21309. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21310. s&@INSTALL@&$ac_INSTALL&;t t
  21311. $ac_datarootdir_hack
  21312. "
  21313. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  21314. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21315. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21316. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  21317. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  21318. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  21319. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21320. which seems to be undefined. Please make sure it is defined" >&5
  21321. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21322. which seems to be undefined. Please make sure it is defined" >&2;}
  21323. rm -f "$ac_tmp/stdin"
  21324. case $ac_file in
  21325. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  21326. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  21327. esac \
  21328. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21329. ;;
  21330. :H)
  21331. #
  21332. # CONFIG_HEADER
  21333. #
  21334. if test x"$ac_file" != x-; then
  21335. {
  21336. $as_echo "/* $configure_input */" \
  21337. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  21338. } >"$ac_tmp/config.h" \
  21339. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21340. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  21341. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  21342. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  21343. else
  21344. rm -f "$ac_file"
  21345. mv "$ac_tmp/config.h" "$ac_file" \
  21346. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21347. fi
  21348. else
  21349. $as_echo "/* $configure_input */" \
  21350. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  21351. || as_fn_error $? "could not create -" "$LINENO" 5
  21352. fi
  21353. ;;
  21354. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  21355. $as_echo "$as_me: executing $ac_file commands" >&6;}
  21356. ;;
  21357. esac
  21358. case $ac_file$ac_mode in
  21359. "libtool":C)
  21360. # See if we are running on zsh, and set the options which allow our
  21361. # commands through without removal of \ escapes.
  21362. if test -n "${ZSH_VERSION+set}" ; then
  21363. setopt NO_GLOB_SUBST
  21364. fi
  21365. cfgfile="${ofile}T"
  21366. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  21367. $RM "$cfgfile"
  21368. cat <<_LT_EOF >> "$cfgfile"
  21369. #! $SHELL
  21370. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  21371. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  21372. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  21373. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  21374. #
  21375. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  21376. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  21377. # Foundation, Inc.
  21378. # Written by Gordon Matzigkeit, 1996
  21379. #
  21380. # This file is part of GNU Libtool.
  21381. #
  21382. # GNU Libtool is free software; you can redistribute it and/or
  21383. # modify it under the terms of the GNU General Public License as
  21384. # published by the Free Software Foundation; either version 2 of
  21385. # the License, or (at your option) any later version.
  21386. #
  21387. # As a special exception to the GNU General Public License,
  21388. # if you distribute this file as part of a program or library that
  21389. # is built using GNU Libtool, you may include this file under the
  21390. # same distribution terms that you use for the rest of that program.
  21391. #
  21392. # GNU Libtool is distributed in the hope that it will be useful,
  21393. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21394. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21395. # GNU General Public License for more details.
  21396. #
  21397. # You should have received a copy of the GNU General Public License
  21398. # along with GNU Libtool; see the file COPYING. If not, a copy
  21399. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  21400. # obtained by writing to the Free Software Foundation, Inc.,
  21401. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21402. # The names of the tagged configurations supported by this script.
  21403. available_tags="CXX "
  21404. # ### BEGIN LIBTOOL CONFIG
  21405. # Which release of libtool.m4 was used?
  21406. macro_version=$macro_version
  21407. macro_revision=$macro_revision
  21408. # Assembler program.
  21409. AS=$lt_AS
  21410. # DLL creation program.
  21411. DLLTOOL=$lt_DLLTOOL
  21412. # Object dumper program.
  21413. OBJDUMP=$lt_OBJDUMP
  21414. # Whether or not to build shared libraries.
  21415. build_libtool_libs=$enable_shared
  21416. # Whether or not to build static libraries.
  21417. build_old_libs=$enable_static
  21418. # What type of objects to build.
  21419. pic_mode=$pic_mode
  21420. # Whether or not to optimize for fast installation.
  21421. fast_install=$enable_fast_install
  21422. # Shell to use when invoking shell scripts.
  21423. SHELL=$lt_SHELL
  21424. # An echo program that protects backslashes.
  21425. ECHO=$lt_ECHO
  21426. # The PATH separator for the build system.
  21427. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  21428. # The host system.
  21429. host_alias=$host_alias
  21430. host=$host
  21431. host_os=$host_os
  21432. # The build system.
  21433. build_alias=$build_alias
  21434. build=$build
  21435. build_os=$build_os
  21436. # A sed program that does not truncate output.
  21437. SED=$lt_SED
  21438. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  21439. Xsed="\$SED -e 1s/^X//"
  21440. # A grep program that handles long lines.
  21441. GREP=$lt_GREP
  21442. # An ERE matcher.
  21443. EGREP=$lt_EGREP
  21444. # A literal string matcher.
  21445. FGREP=$lt_FGREP
  21446. # A BSD- or MS-compatible name lister.
  21447. NM=$lt_NM
  21448. # Whether we need soft or hard links.
  21449. LN_S=$lt_LN_S
  21450. # What is the maximum length of a command?
  21451. max_cmd_len=$max_cmd_len
  21452. # Object file suffix (normally "o").
  21453. objext=$ac_objext
  21454. # Executable file suffix (normally "").
  21455. exeext=$exeext
  21456. # whether the shell understands "unset".
  21457. lt_unset=$lt_unset
  21458. # turn spaces into newlines.
  21459. SP2NL=$lt_lt_SP2NL
  21460. # turn newlines into spaces.
  21461. NL2SP=$lt_lt_NL2SP
  21462. # convert \$build file names to \$host format.
  21463. to_host_file_cmd=$lt_cv_to_host_file_cmd
  21464. # convert \$build files to toolchain format.
  21465. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  21466. # Method to check whether dependent libraries are shared objects.
  21467. deplibs_check_method=$lt_deplibs_check_method
  21468. # Command to use when deplibs_check_method = "file_magic".
  21469. file_magic_cmd=$lt_file_magic_cmd
  21470. # How to find potential files when deplibs_check_method = "file_magic".
  21471. file_magic_glob=$lt_file_magic_glob
  21472. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  21473. want_nocaseglob=$lt_want_nocaseglob
  21474. # Command to associate shared and link libraries.
  21475. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  21476. # The archiver.
  21477. AR=$lt_AR
  21478. # Flags to create an archive.
  21479. AR_FLAGS=$lt_AR_FLAGS
  21480. # How to feed a file listing to the archiver.
  21481. archiver_list_spec=$lt_archiver_list_spec
  21482. # A symbol stripping program.
  21483. STRIP=$lt_STRIP
  21484. # Commands used to install an old-style archive.
  21485. RANLIB=$lt_RANLIB
  21486. old_postinstall_cmds=$lt_old_postinstall_cmds
  21487. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  21488. # Whether to use a lock for old archive extraction.
  21489. lock_old_archive_extraction=$lock_old_archive_extraction
  21490. # A C compiler.
  21491. LTCC=$lt_CC
  21492. # LTCC compiler flags.
  21493. LTCFLAGS=$lt_CFLAGS
  21494. # Take the output of nm and produce a listing of raw symbols and C names.
  21495. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21496. # Transform the output of nm in a proper C declaration.
  21497. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21498. # Transform the output of nm in a C name address pair.
  21499. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21500. # Transform the output of nm in a C name address pair when lib prefix is needed.
  21501. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  21502. # Specify filename containing input files for \$NM.
  21503. nm_file_list_spec=$lt_nm_file_list_spec
  21504. # The root where to search for dependent libraries,and in which our libraries should be installed.
  21505. lt_sysroot=$lt_sysroot
  21506. # The name of the directory that contains temporary libtool files.
  21507. objdir=$objdir
  21508. # Used to examine libraries when file_magic_cmd begins with "file".
  21509. MAGIC_CMD=$MAGIC_CMD
  21510. # Must we lock files when doing compilation?
  21511. need_locks=$lt_need_locks
  21512. # Manifest tool.
  21513. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  21514. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  21515. DSYMUTIL=$lt_DSYMUTIL
  21516. # Tool to change global to local symbols on Mac OS X.
  21517. NMEDIT=$lt_NMEDIT
  21518. # Tool to manipulate fat objects and archives on Mac OS X.
  21519. LIPO=$lt_LIPO
  21520. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  21521. OTOOL=$lt_OTOOL
  21522. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  21523. OTOOL64=$lt_OTOOL64
  21524. # Old archive suffix (normally "a").
  21525. libext=$libext
  21526. # Shared library suffix (normally ".so").
  21527. shrext_cmds=$lt_shrext_cmds
  21528. # The commands to extract the exported symbol list from a shared archive.
  21529. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21530. # Variables whose values should be saved in libtool wrapper scripts and
  21531. # restored at link time.
  21532. variables_saved_for_relink=$lt_variables_saved_for_relink
  21533. # Do we need the "lib" prefix for modules?
  21534. need_lib_prefix=$need_lib_prefix
  21535. # Do we need a version for libraries?
  21536. need_version=$need_version
  21537. # Library versioning type.
  21538. version_type=$version_type
  21539. # Shared library runtime path variable.
  21540. runpath_var=$runpath_var
  21541. # Shared library path variable.
  21542. shlibpath_var=$shlibpath_var
  21543. # Is shlibpath searched before the hard-coded library search path?
  21544. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  21545. # Format of library name prefix.
  21546. libname_spec=$lt_libname_spec
  21547. # List of archive names. First name is the real one, the rest are links.
  21548. # The last name is the one that the linker finds with -lNAME
  21549. library_names_spec=$lt_library_names_spec
  21550. # The coded name of the library, if different from the real name.
  21551. soname_spec=$lt_soname_spec
  21552. # Permission mode override for installation of shared libraries.
  21553. install_override_mode=$lt_install_override_mode
  21554. # Command to use after installation of a shared archive.
  21555. postinstall_cmds=$lt_postinstall_cmds
  21556. # Command to use after uninstallation of a shared archive.
  21557. postuninstall_cmds=$lt_postuninstall_cmds
  21558. # Commands used to finish a libtool library installation in a directory.
  21559. finish_cmds=$lt_finish_cmds
  21560. # As "finish_cmds", except a single script fragment to be evaled but
  21561. # not shown.
  21562. finish_eval=$lt_finish_eval
  21563. # Whether we should hardcode library paths into libraries.
  21564. hardcode_into_libs=$hardcode_into_libs
  21565. # Compile-time system search path for libraries.
  21566. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  21567. # Run-time system search path for libraries.
  21568. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  21569. # Whether dlopen is supported.
  21570. dlopen_support=$enable_dlopen
  21571. # Whether dlopen of programs is supported.
  21572. dlopen_self=$enable_dlopen_self
  21573. # Whether dlopen of statically linked programs is supported.
  21574. dlopen_self_static=$enable_dlopen_self_static
  21575. # Commands to strip libraries.
  21576. old_striplib=$lt_old_striplib
  21577. striplib=$lt_striplib
  21578. # The linker used to build libraries.
  21579. LD=$lt_LD
  21580. # How to create reloadable object files.
  21581. reload_flag=$lt_reload_flag
  21582. reload_cmds=$lt_reload_cmds
  21583. # Commands used to build an old-style archive.
  21584. old_archive_cmds=$lt_old_archive_cmds
  21585. # A language specific compiler.
  21586. CC=$lt_compiler
  21587. # Is the compiler the GNU compiler?
  21588. with_gcc=$GCC
  21589. # Compiler flag to turn off builtin functions.
  21590. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  21591. # Additional compiler flags for building library objects.
  21592. pic_flag=$lt_lt_prog_compiler_pic
  21593. # How to pass a linker flag through the compiler.
  21594. wl=$lt_lt_prog_compiler_wl
  21595. # Compiler flag to prevent dynamic linking.
  21596. link_static_flag=$lt_lt_prog_compiler_static
  21597. # Does compiler simultaneously support -c and -o options?
  21598. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  21599. # Whether or not to add -lc for building shared libraries.
  21600. build_libtool_need_lc=$archive_cmds_need_lc
  21601. # Whether or not to disallow shared libs when runtime libs are static.
  21602. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  21603. # Compiler flag to allow reflexive dlopens.
  21604. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  21605. # Compiler flag to generate shared objects directly from archives.
  21606. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  21607. # Whether the compiler copes with passing no objects directly.
  21608. compiler_needs_object=$lt_compiler_needs_object
  21609. # Create an old-style archive from a shared archive.
  21610. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  21611. # Create a temporary old-style archive to link instead of a shared archive.
  21612. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  21613. # Commands used to build a shared archive.
  21614. archive_cmds=$lt_archive_cmds
  21615. archive_expsym_cmds=$lt_archive_expsym_cmds
  21616. # Commands used to build a loadable module if different from building
  21617. # a shared archive.
  21618. module_cmds=$lt_module_cmds
  21619. module_expsym_cmds=$lt_module_expsym_cmds
  21620. # Whether we are building with GNU ld or not.
  21621. with_gnu_ld=$lt_with_gnu_ld
  21622. # Flag that allows shared libraries with undefined symbols to be built.
  21623. allow_undefined_flag=$lt_allow_undefined_flag
  21624. # Flag that enforces no undefined symbols.
  21625. no_undefined_flag=$lt_no_undefined_flag
  21626. # Flag to hardcode \$libdir into a binary during linking.
  21627. # This must work even if \$libdir does not exist
  21628. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  21629. # Whether we need a single "-rpath" flag with a separated argument.
  21630. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  21631. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21632. # DIR into the resulting binary.
  21633. hardcode_direct=$hardcode_direct
  21634. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21635. # DIR into the resulting binary and the resulting library dependency is
  21636. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  21637. # library is relocated.
  21638. hardcode_direct_absolute=$hardcode_direct_absolute
  21639. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21640. # into the resulting binary.
  21641. hardcode_minus_L=$hardcode_minus_L
  21642. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21643. # into the resulting binary.
  21644. hardcode_shlibpath_var=$hardcode_shlibpath_var
  21645. # Set to "yes" if building a shared library automatically hardcodes DIR
  21646. # into the library and all subsequent libraries and executables linked
  21647. # against it.
  21648. hardcode_automatic=$hardcode_automatic
  21649. # Set to yes if linker adds runtime paths of dependent libraries
  21650. # to runtime path list.
  21651. inherit_rpath=$inherit_rpath
  21652. # Whether libtool must link a program against all its dependency libraries.
  21653. link_all_deplibs=$link_all_deplibs
  21654. # Set to "yes" if exported symbols are required.
  21655. always_export_symbols=$always_export_symbols
  21656. # The commands to list exported symbols.
  21657. export_symbols_cmds=$lt_export_symbols_cmds
  21658. # Symbols that should not be listed in the preloaded symbols.
  21659. exclude_expsyms=$lt_exclude_expsyms
  21660. # Symbols that must always be exported.
  21661. include_expsyms=$lt_include_expsyms
  21662. # Commands necessary for linking programs (against libraries) with templates.
  21663. prelink_cmds=$lt_prelink_cmds
  21664. # Commands necessary for finishing linking programs.
  21665. postlink_cmds=$lt_postlink_cmds
  21666. # Specify filename containing input files.
  21667. file_list_spec=$lt_file_list_spec
  21668. # How to hardcode a shared library path into an executable.
  21669. hardcode_action=$hardcode_action
  21670. # The directories searched by this compiler when creating a shared library.
  21671. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  21672. # Dependencies to place before and after the objects being linked to
  21673. # create a shared library.
  21674. predep_objects=$lt_predep_objects
  21675. postdep_objects=$lt_postdep_objects
  21676. predeps=$lt_predeps
  21677. postdeps=$lt_postdeps
  21678. # The library search path used internally by the compiler when linking
  21679. # a shared library.
  21680. compiler_lib_search_path=$lt_compiler_lib_search_path
  21681. # ### END LIBTOOL CONFIG
  21682. _LT_EOF
  21683. case $host_os in
  21684. aix3*)
  21685. cat <<\_LT_EOF >> "$cfgfile"
  21686. # AIX sometimes has problems with the GCC collect2 program. For some
  21687. # reason, if we set the COLLECT_NAMES environment variable, the problems
  21688. # vanish in a puff of smoke.
  21689. if test "X${COLLECT_NAMES+set}" != Xset; then
  21690. COLLECT_NAMES=
  21691. export COLLECT_NAMES
  21692. fi
  21693. _LT_EOF
  21694. ;;
  21695. esac
  21696. ltmain="$ac_aux_dir/ltmain.sh"
  21697. # We use sed instead of cat because bash on DJGPP gets confused if
  21698. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  21699. # text mode, it properly converts lines to CR/LF. This bash problem
  21700. # is reportedly fixed, but why not run on old versions too?
  21701. sed '$q' "$ltmain" >> "$cfgfile" \
  21702. || (rm -f "$cfgfile"; exit 1)
  21703. if test x"$xsi_shell" = xyes; then
  21704. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  21705. func_dirname ()\
  21706. {\
  21707. \ case ${1} in\
  21708. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  21709. \ * ) func_dirname_result="${3}" ;;\
  21710. \ esac\
  21711. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  21712. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21713. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21714. test 0 -eq $? || _lt_function_replace_fail=:
  21715. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  21716. func_basename ()\
  21717. {\
  21718. \ func_basename_result="${1##*/}"\
  21719. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  21720. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21721. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21722. test 0 -eq $? || _lt_function_replace_fail=:
  21723. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  21724. func_dirname_and_basename ()\
  21725. {\
  21726. \ case ${1} in\
  21727. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  21728. \ * ) func_dirname_result="${3}" ;;\
  21729. \ esac\
  21730. \ func_basename_result="${1##*/}"\
  21731. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  21732. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21733. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21734. test 0 -eq $? || _lt_function_replace_fail=:
  21735. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  21736. func_stripname ()\
  21737. {\
  21738. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  21739. \ # positional parameters, so assign one to ordinary parameter first.\
  21740. \ func_stripname_result=${3}\
  21741. \ func_stripname_result=${func_stripname_result#"${1}"}\
  21742. \ func_stripname_result=${func_stripname_result%"${2}"}\
  21743. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  21744. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21745. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21746. test 0 -eq $? || _lt_function_replace_fail=:
  21747. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  21748. func_split_long_opt ()\
  21749. {\
  21750. \ func_split_long_opt_name=${1%%=*}\
  21751. \ func_split_long_opt_arg=${1#*=}\
  21752. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  21753. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21754. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21755. test 0 -eq $? || _lt_function_replace_fail=:
  21756. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  21757. func_split_short_opt ()\
  21758. {\
  21759. \ func_split_short_opt_arg=${1#??}\
  21760. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  21761. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  21762. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21763. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21764. test 0 -eq $? || _lt_function_replace_fail=:
  21765. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  21766. func_lo2o ()\
  21767. {\
  21768. \ case ${1} in\
  21769. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  21770. \ *) func_lo2o_result=${1} ;;\
  21771. \ esac\
  21772. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  21773. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21774. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21775. test 0 -eq $? || _lt_function_replace_fail=:
  21776. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  21777. func_xform ()\
  21778. {\
  21779. func_xform_result=${1%.*}.lo\
  21780. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  21781. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21782. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21783. test 0 -eq $? || _lt_function_replace_fail=:
  21784. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  21785. func_arith ()\
  21786. {\
  21787. func_arith_result=$(( $* ))\
  21788. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  21789. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21790. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21791. test 0 -eq $? || _lt_function_replace_fail=:
  21792. sed -e '/^func_len ()$/,/^} # func_len /c\
  21793. func_len ()\
  21794. {\
  21795. func_len_result=${#1}\
  21796. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  21797. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21798. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21799. test 0 -eq $? || _lt_function_replace_fail=:
  21800. fi
  21801. if test x"$lt_shell_append" = xyes; then
  21802. sed -e '/^func_append ()$/,/^} # func_append /c\
  21803. func_append ()\
  21804. {\
  21805. eval "${1}+=\\${2}"\
  21806. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  21807. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21808. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21809. test 0 -eq $? || _lt_function_replace_fail=:
  21810. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  21811. func_append_quoted ()\
  21812. {\
  21813. \ func_quote_for_eval "${2}"\
  21814. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  21815. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  21816. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21817. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21818. test 0 -eq $? || _lt_function_replace_fail=:
  21819. # Save a `func_append' function call where possible by direct use of '+='
  21820. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  21821. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21822. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21823. test 0 -eq $? || _lt_function_replace_fail=:
  21824. else
  21825. # Save a `func_append' function call even when '+=' is not available
  21826. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  21827. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21828. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21829. test 0 -eq $? || _lt_function_replace_fail=:
  21830. fi
  21831. if test x"$_lt_function_replace_fail" = x":"; then
  21832. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  21833. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  21834. fi
  21835. mv -f "$cfgfile" "$ofile" ||
  21836. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  21837. chmod +x "$ofile"
  21838. cat <<_LT_EOF >> "$ofile"
  21839. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  21840. # The linker used to build libraries.
  21841. LD=$lt_LD_CXX
  21842. # How to create reloadable object files.
  21843. reload_flag=$lt_reload_flag_CXX
  21844. reload_cmds=$lt_reload_cmds_CXX
  21845. # Commands used to build an old-style archive.
  21846. old_archive_cmds=$lt_old_archive_cmds_CXX
  21847. # A language specific compiler.
  21848. CC=$lt_compiler_CXX
  21849. # Is the compiler the GNU compiler?
  21850. with_gcc=$GCC_CXX
  21851. # Compiler flag to turn off builtin functions.
  21852. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  21853. # Additional compiler flags for building library objects.
  21854. pic_flag=$lt_lt_prog_compiler_pic_CXX
  21855. # How to pass a linker flag through the compiler.
  21856. wl=$lt_lt_prog_compiler_wl_CXX
  21857. # Compiler flag to prevent dynamic linking.
  21858. link_static_flag=$lt_lt_prog_compiler_static_CXX
  21859. # Does compiler simultaneously support -c and -o options?
  21860. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  21861. # Whether or not to add -lc for building shared libraries.
  21862. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  21863. # Whether or not to disallow shared libs when runtime libs are static.
  21864. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  21865. # Compiler flag to allow reflexive dlopens.
  21866. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  21867. # Compiler flag to generate shared objects directly from archives.
  21868. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  21869. # Whether the compiler copes with passing no objects directly.
  21870. compiler_needs_object=$lt_compiler_needs_object_CXX
  21871. # Create an old-style archive from a shared archive.
  21872. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  21873. # Create a temporary old-style archive to link instead of a shared archive.
  21874. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  21875. # Commands used to build a shared archive.
  21876. archive_cmds=$lt_archive_cmds_CXX
  21877. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  21878. # Commands used to build a loadable module if different from building
  21879. # a shared archive.
  21880. module_cmds=$lt_module_cmds_CXX
  21881. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  21882. # Whether we are building with GNU ld or not.
  21883. with_gnu_ld=$lt_with_gnu_ld_CXX
  21884. # Flag that allows shared libraries with undefined symbols to be built.
  21885. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  21886. # Flag that enforces no undefined symbols.
  21887. no_undefined_flag=$lt_no_undefined_flag_CXX
  21888. # Flag to hardcode \$libdir into a binary during linking.
  21889. # This must work even if \$libdir does not exist
  21890. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  21891. # Whether we need a single "-rpath" flag with a separated argument.
  21892. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  21893. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21894. # DIR into the resulting binary.
  21895. hardcode_direct=$hardcode_direct_CXX
  21896. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21897. # DIR into the resulting binary and the resulting library dependency is
  21898. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  21899. # library is relocated.
  21900. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  21901. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21902. # into the resulting binary.
  21903. hardcode_minus_L=$hardcode_minus_L_CXX
  21904. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21905. # into the resulting binary.
  21906. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  21907. # Set to "yes" if building a shared library automatically hardcodes DIR
  21908. # into the library and all subsequent libraries and executables linked
  21909. # against it.
  21910. hardcode_automatic=$hardcode_automatic_CXX
  21911. # Set to yes if linker adds runtime paths of dependent libraries
  21912. # to runtime path list.
  21913. inherit_rpath=$inherit_rpath_CXX
  21914. # Whether libtool must link a program against all its dependency libraries.
  21915. link_all_deplibs=$link_all_deplibs_CXX
  21916. # Set to "yes" if exported symbols are required.
  21917. always_export_symbols=$always_export_symbols_CXX
  21918. # The commands to list exported symbols.
  21919. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  21920. # Symbols that should not be listed in the preloaded symbols.
  21921. exclude_expsyms=$lt_exclude_expsyms_CXX
  21922. # Symbols that must always be exported.
  21923. include_expsyms=$lt_include_expsyms_CXX
  21924. # Commands necessary for linking programs (against libraries) with templates.
  21925. prelink_cmds=$lt_prelink_cmds_CXX
  21926. # Commands necessary for finishing linking programs.
  21927. postlink_cmds=$lt_postlink_cmds_CXX
  21928. # Specify filename containing input files.
  21929. file_list_spec=$lt_file_list_spec_CXX
  21930. # How to hardcode a shared library path into an executable.
  21931. hardcode_action=$hardcode_action_CXX
  21932. # The directories searched by this compiler when creating a shared library.
  21933. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  21934. # Dependencies to place before and after the objects being linked to
  21935. # create a shared library.
  21936. predep_objects=$lt_predep_objects_CXX
  21937. postdep_objects=$lt_postdep_objects_CXX
  21938. predeps=$lt_predeps_CXX
  21939. postdeps=$lt_postdeps_CXX
  21940. # The library search path used internally by the compiler when linking
  21941. # a shared library.
  21942. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  21943. # ### END LIBTOOL TAG CONFIG: CXX
  21944. _LT_EOF
  21945. ;;
  21946. "sdl2_config":C) chmod a+x sdl2-config ;;
  21947. "summary":C) echo -en "$SUMMARY" ;;
  21948. esac
  21949. done # for ac_tag
  21950. as_fn_exit 0
  21951. _ACEOF
  21952. ac_clean_files=$ac_clean_files_save
  21953. test $ac_write_fail = 0 ||
  21954. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  21955. # configure is writing to config.log, and then calls config.status.
  21956. # config.status does its own redirection, appending to config.log.
  21957. # Unfortunately, on DOS this fails, as config.log is still kept open
  21958. # by configure, so config.status won't be able to write to it; its
  21959. # output is simply discarded. So we exec the FD to /dev/null,
  21960. # effectively closing config.log, so it can be properly (re)opened and
  21961. # appended to by config.status. When coming back to configure, we
  21962. # need to make the FD available again.
  21963. if test "$no_create" != yes; then
  21964. ac_cs_success=:
  21965. ac_config_status_args=
  21966. test "$silent" = yes &&
  21967. ac_config_status_args="$ac_config_status_args --quiet"
  21968. exec 5>/dev/null
  21969. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21970. exec 5>>config.log
  21971. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21972. # would make configure fail if this is the last instruction.
  21973. $ac_cs_success || as_fn_exit 1
  21974. fi
  21975. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  21976. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  21977. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  21978. fi