configure 835 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="README.txt"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. PKG_CONFIG_LIBS_PRIV
  599. SDL_RLD_FLAGS
  600. SDL_STATIC_LIBS
  601. SDL_LIBS
  602. SDL_CFLAGS
  603. INSTALL_SDL2_CONFIG
  604. LIBUSB_LIBS
  605. LIBUSB_CFLAGS
  606. IBUS_LIBS
  607. IBUS_CFLAGS
  608. DBUS_LIBS
  609. DBUS_CFLAGS
  610. LIBGBM_LIBS
  611. LIBGBM_CFLAGS
  612. LIBDRM_LIBS
  613. LIBDRM_CFLAGS
  614. DIRECTFB_LIBS
  615. DIRECTFB_CFLAGS
  616. X_EXTRA_LIBS
  617. X_LIBS
  618. X_PRE_LIBS
  619. X_CFLAGS
  620. XMKMF
  621. RPI_LIBS
  622. RPI_CFLAGS
  623. FUSIONSOUND_LIBS
  624. FUSIONSOUND_CFLAGS
  625. ARTSCONFIG
  626. PULSEAUDIO_LIBS
  627. PULSEAUDIO_CFLAGS
  628. ESD_LIBS
  629. ESD_CFLAGS
  630. ESD_CONFIG
  631. JACK_LIBS
  632. JACK_CFLAGS
  633. ALSA_LIBS
  634. ALSA_CFLAGS
  635. POW_LIB
  636. LIBOBJS
  637. ALLOCA
  638. PKG_CONFIG_LIBDIR
  639. PKG_CONFIG_PATH
  640. PKG_CONFIG
  641. SET_MAKE
  642. INSTALL_DATA
  643. INSTALL_SCRIPT
  644. INSTALL_PROGRAM
  645. CXXCPP
  646. ac_ct_CXX
  647. CXXFLAGS
  648. CXX
  649. LT_AGE
  650. LT_REVISION
  651. LT_CURRENT
  652. LT_RELEASE
  653. RC
  654. CPP
  655. OTOOL64
  656. OTOOL
  657. LIPO
  658. NMEDIT
  659. DSYMUTIL
  660. MANIFEST_TOOL
  661. AWK
  662. RANLIB
  663. STRIP
  664. ac_ct_AR
  665. AR
  666. LN_S
  667. NM
  668. ac_ct_DUMPBIN
  669. DUMPBIN
  670. LD
  671. FGREP
  672. EGREP
  673. GREP
  674. SED
  675. OBJEXT
  676. EXEEXT
  677. ac_ct_CC
  678. CPPFLAGS
  679. LDFLAGS
  680. CFLAGS
  681. CC
  682. host_os
  683. host_vendor
  684. host_cpu
  685. host
  686. build_os
  687. build_vendor
  688. build_cpu
  689. build
  690. LIBTOOL
  691. OBJDUMP
  692. DLLTOOL
  693. AS
  694. SDL_VERSION
  695. SDL_BINARY_AGE
  696. SDL_INTERFACE_AGE
  697. SDL_MICRO_VERSION
  698. SDL_MINOR_VERSION
  699. SDL_MAJOR_VERSION
  700. target_alias
  701. host_alias
  702. build_alias
  703. LIBS
  704. ECHO_T
  705. ECHO_N
  706. ECHO_C
  707. DEFS
  708. mandir
  709. localedir
  710. libdir
  711. psdir
  712. pdfdir
  713. dvidir
  714. htmldir
  715. infodir
  716. docdir
  717. oldincludedir
  718. includedir
  719. runstatedir
  720. localstatedir
  721. sharedstatedir
  722. sysconfdir
  723. datadir
  724. datarootdir
  725. libexecdir
  726. sbindir
  727. bindir
  728. program_transform_name
  729. prefix
  730. exec_prefix
  731. PACKAGE_URL
  732. PACKAGE_BUGREPORT
  733. PACKAGE_STRING
  734. PACKAGE_VERSION
  735. PACKAGE_TARNAME
  736. PACKAGE_NAME
  737. PATH_SEPARATOR
  738. SHELL'
  739. ac_subst_files=''
  740. ac_user_opts='
  741. enable_option_checking
  742. enable_shared
  743. enable_static
  744. with_pic
  745. enable_fast_install
  746. with_gnu_ld
  747. with_sysroot
  748. enable_libtool_lock
  749. enable_assertions
  750. enable_dependency_tracking
  751. enable_libc
  752. enable_gcc_atomics
  753. enable_atomic
  754. enable_audio
  755. enable_video
  756. enable_render
  757. enable_events
  758. enable_joystick
  759. enable_haptic
  760. enable_sensor
  761. enable_power
  762. enable_filesystem
  763. enable_threads
  764. enable_timers
  765. enable_file
  766. enable_loadso
  767. enable_cpuinfo
  768. enable_assembly
  769. enable_ssemath
  770. enable_mmx
  771. enable_3dnow
  772. enable_sse
  773. enable_sse2
  774. enable_sse3
  775. enable_altivec
  776. enable_oss
  777. enable_alsa
  778. with_alsa_prefix
  779. with_alsa_inc_prefix
  780. enable_alsatest
  781. enable_alsa_shared
  782. enable_jack
  783. enable_jack_shared
  784. enable_esd
  785. with_esd_prefix
  786. with_esd_exec_prefix
  787. enable_esdtest
  788. enable_esd_shared
  789. enable_pulseaudio
  790. enable_pulseaudio_shared
  791. enable_arts
  792. enable_arts_shared
  793. enable_nas
  794. enable_nas_shared
  795. enable_sndio
  796. enable_sndio_shared
  797. enable_fusionsound
  798. enable_fusionsound_shared
  799. enable_diskaudio
  800. enable_dummyaudio
  801. enable_libsamplerate
  802. enable_libsamplerate_shared
  803. enable_arm_neon
  804. enable_arm_simd
  805. enable_video_wayland
  806. enable_video_wayland_qt_touch
  807. enable_wayland_shared
  808. enable_video_rpi
  809. enable_video_x11
  810. with_x
  811. enable_x11_shared
  812. enable_video_x11_xcursor
  813. enable_video_x11_xdbe
  814. enable_video_x11_xinerama
  815. enable_video_x11_xinput
  816. enable_video_x11_xrandr
  817. enable_video_x11_scrnsaver
  818. enable_video_x11_xshape
  819. enable_video_x11_vm
  820. enable_video_vivante
  821. enable_video_cocoa
  822. enable_video_metal
  823. enable_render_metal
  824. enable_video_directfb
  825. enable_directfb_shared
  826. enable_video_kmsdrm
  827. enable_kmsdrm_shared
  828. enable_video_dummy
  829. enable_video_opengl
  830. enable_video_opengles
  831. enable_video_opengles1
  832. enable_video_opengles2
  833. enable_video_vulkan
  834. enable_libudev
  835. enable_dbus
  836. enable_ime
  837. enable_ibus
  838. enable_fcitx
  839. enable_input_tslib
  840. enable_pthreads
  841. enable_pthread_sem
  842. enable_directx
  843. enable_wasapi
  844. enable_sdl_dlopen
  845. enable_hidapi
  846. enable_clock_gettime
  847. enable_rpath
  848. enable_backgrounding_signal
  849. enable_foregrounding_signal
  850. enable_joystick_virtual
  851. enable_render_d3d
  852. enable_sdl2_config
  853. '
  854. ac_precious_vars='build_alias
  855. host_alias
  856. target_alias
  857. CC
  858. CFLAGS
  859. LDFLAGS
  860. LIBS
  861. CPPFLAGS
  862. CPP
  863. CXX
  864. CXXFLAGS
  865. CCC
  866. CXXCPP
  867. PKG_CONFIG
  868. PKG_CONFIG_PATH
  869. PKG_CONFIG_LIBDIR
  870. JACK_CFLAGS
  871. JACK_LIBS
  872. PULSEAUDIO_CFLAGS
  873. PULSEAUDIO_LIBS
  874. FUSIONSOUND_CFLAGS
  875. FUSIONSOUND_LIBS
  876. RPI_CFLAGS
  877. RPI_LIBS
  878. XMKMF
  879. DIRECTFB_CFLAGS
  880. DIRECTFB_LIBS
  881. LIBDRM_CFLAGS
  882. LIBDRM_LIBS
  883. LIBGBM_CFLAGS
  884. LIBGBM_LIBS
  885. DBUS_CFLAGS
  886. DBUS_LIBS
  887. IBUS_CFLAGS
  888. IBUS_LIBS
  889. LIBUSB_CFLAGS
  890. LIBUSB_LIBS'
  891. # Initialize some variables set by options.
  892. ac_init_help=
  893. ac_init_version=false
  894. ac_unrecognized_opts=
  895. ac_unrecognized_sep=
  896. # The variables have the same names as the options, with
  897. # dashes changed to underlines.
  898. cache_file=/dev/null
  899. exec_prefix=NONE
  900. no_create=
  901. no_recursion=
  902. prefix=NONE
  903. program_prefix=NONE
  904. program_suffix=NONE
  905. program_transform_name=s,x,x,
  906. silent=
  907. site=
  908. srcdir=
  909. verbose=
  910. x_includes=NONE
  911. x_libraries=NONE
  912. # Installation directory options.
  913. # These are left unexpanded so users can "make install exec_prefix=/foo"
  914. # and all the variables that are supposed to be based on exec_prefix
  915. # by default will actually change.
  916. # Use braces instead of parens because sh, perl, etc. also accept them.
  917. # (The list follows the same order as the GNU Coding Standards.)
  918. bindir='${exec_prefix}/bin'
  919. sbindir='${exec_prefix}/sbin'
  920. libexecdir='${exec_prefix}/libexec'
  921. datarootdir='${prefix}/share'
  922. datadir='${datarootdir}'
  923. sysconfdir='${prefix}/etc'
  924. sharedstatedir='${prefix}/com'
  925. localstatedir='${prefix}/var'
  926. runstatedir='${localstatedir}/run'
  927. includedir='${prefix}/include'
  928. oldincludedir='/usr/include'
  929. docdir='${datarootdir}/doc/${PACKAGE}'
  930. infodir='${datarootdir}/info'
  931. htmldir='${docdir}'
  932. dvidir='${docdir}'
  933. pdfdir='${docdir}'
  934. psdir='${docdir}'
  935. libdir='${exec_prefix}/lib'
  936. localedir='${datarootdir}/locale'
  937. mandir='${datarootdir}/man'
  938. ac_prev=
  939. ac_dashdash=
  940. for ac_option
  941. do
  942. # If the previous option needs an argument, assign it.
  943. if test -n "$ac_prev"; then
  944. eval $ac_prev=\$ac_option
  945. ac_prev=
  946. continue
  947. fi
  948. case $ac_option in
  949. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  950. *=) ac_optarg= ;;
  951. *) ac_optarg=yes ;;
  952. esac
  953. # Accept the important Cygnus configure options, so we can diagnose typos.
  954. case $ac_dashdash$ac_option in
  955. --)
  956. ac_dashdash=yes ;;
  957. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  958. ac_prev=bindir ;;
  959. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  960. bindir=$ac_optarg ;;
  961. -build | --build | --buil | --bui | --bu)
  962. ac_prev=build_alias ;;
  963. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  964. build_alias=$ac_optarg ;;
  965. -cache-file | --cache-file | --cache-fil | --cache-fi \
  966. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  967. ac_prev=cache_file ;;
  968. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  969. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  970. cache_file=$ac_optarg ;;
  971. --config-cache | -C)
  972. cache_file=config.cache ;;
  973. -datadir | --datadir | --datadi | --datad)
  974. ac_prev=datadir ;;
  975. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  976. datadir=$ac_optarg ;;
  977. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  978. | --dataroo | --dataro | --datar)
  979. ac_prev=datarootdir ;;
  980. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  981. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  982. datarootdir=$ac_optarg ;;
  983. -disable-* | --disable-*)
  984. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  985. # Reject names that are not valid shell variable names.
  986. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  987. as_fn_error $? "invalid feature name: $ac_useropt"
  988. ac_useropt_orig=$ac_useropt
  989. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  990. case $ac_user_opts in
  991. *"
  992. "enable_$ac_useropt"
  993. "*) ;;
  994. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  995. ac_unrecognized_sep=', ';;
  996. esac
  997. eval enable_$ac_useropt=no ;;
  998. -docdir | --docdir | --docdi | --doc | --do)
  999. ac_prev=docdir ;;
  1000. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1001. docdir=$ac_optarg ;;
  1002. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1003. ac_prev=dvidir ;;
  1004. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1005. dvidir=$ac_optarg ;;
  1006. -enable-* | --enable-*)
  1007. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1008. # Reject names that are not valid shell variable names.
  1009. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1010. as_fn_error $? "invalid feature name: $ac_useropt"
  1011. ac_useropt_orig=$ac_useropt
  1012. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1013. case $ac_user_opts in
  1014. *"
  1015. "enable_$ac_useropt"
  1016. "*) ;;
  1017. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1018. ac_unrecognized_sep=', ';;
  1019. esac
  1020. eval enable_$ac_useropt=\$ac_optarg ;;
  1021. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1022. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1023. | --exec | --exe | --ex)
  1024. ac_prev=exec_prefix ;;
  1025. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1026. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1027. | --exec=* | --exe=* | --ex=*)
  1028. exec_prefix=$ac_optarg ;;
  1029. -gas | --gas | --ga | --g)
  1030. # Obsolete; use --with-gas.
  1031. with_gas=yes ;;
  1032. -help | --help | --hel | --he | -h)
  1033. ac_init_help=long ;;
  1034. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1035. ac_init_help=recursive ;;
  1036. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1037. ac_init_help=short ;;
  1038. -host | --host | --hos | --ho)
  1039. ac_prev=host_alias ;;
  1040. -host=* | --host=* | --hos=* | --ho=*)
  1041. host_alias=$ac_optarg ;;
  1042. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1043. ac_prev=htmldir ;;
  1044. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1045. | --ht=*)
  1046. htmldir=$ac_optarg ;;
  1047. -includedir | --includedir | --includedi | --included | --include \
  1048. | --includ | --inclu | --incl | --inc)
  1049. ac_prev=includedir ;;
  1050. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1051. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1052. includedir=$ac_optarg ;;
  1053. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1054. ac_prev=infodir ;;
  1055. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1056. infodir=$ac_optarg ;;
  1057. -libdir | --libdir | --libdi | --libd)
  1058. ac_prev=libdir ;;
  1059. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1060. libdir=$ac_optarg ;;
  1061. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1062. | --libexe | --libex | --libe)
  1063. ac_prev=libexecdir ;;
  1064. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1065. | --libexe=* | --libex=* | --libe=*)
  1066. libexecdir=$ac_optarg ;;
  1067. -localedir | --localedir | --localedi | --localed | --locale)
  1068. ac_prev=localedir ;;
  1069. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1070. localedir=$ac_optarg ;;
  1071. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1072. | --localstate | --localstat | --localsta | --localst | --locals)
  1073. ac_prev=localstatedir ;;
  1074. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1075. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1076. localstatedir=$ac_optarg ;;
  1077. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1078. ac_prev=mandir ;;
  1079. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1080. mandir=$ac_optarg ;;
  1081. -nfp | --nfp | --nf)
  1082. # Obsolete; use --without-fp.
  1083. with_fp=no ;;
  1084. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1085. | --no-cr | --no-c | -n)
  1086. no_create=yes ;;
  1087. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1088. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1089. no_recursion=yes ;;
  1090. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1091. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1092. | --oldin | --oldi | --old | --ol | --o)
  1093. ac_prev=oldincludedir ;;
  1094. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1095. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1096. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1097. oldincludedir=$ac_optarg ;;
  1098. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1099. ac_prev=prefix ;;
  1100. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1101. prefix=$ac_optarg ;;
  1102. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1103. | --program-pre | --program-pr | --program-p)
  1104. ac_prev=program_prefix ;;
  1105. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1106. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1107. program_prefix=$ac_optarg ;;
  1108. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1109. | --program-suf | --program-su | --program-s)
  1110. ac_prev=program_suffix ;;
  1111. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1112. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1113. program_suffix=$ac_optarg ;;
  1114. -program-transform-name | --program-transform-name \
  1115. | --program-transform-nam | --program-transform-na \
  1116. | --program-transform-n | --program-transform- \
  1117. | --program-transform | --program-transfor \
  1118. | --program-transfo | --program-transf \
  1119. | --program-trans | --program-tran \
  1120. | --progr-tra | --program-tr | --program-t)
  1121. ac_prev=program_transform_name ;;
  1122. -program-transform-name=* | --program-transform-name=* \
  1123. | --program-transform-nam=* | --program-transform-na=* \
  1124. | --program-transform-n=* | --program-transform-=* \
  1125. | --program-transform=* | --program-transfor=* \
  1126. | --program-transfo=* | --program-transf=* \
  1127. | --program-trans=* | --program-tran=* \
  1128. | --progr-tra=* | --program-tr=* | --program-t=*)
  1129. program_transform_name=$ac_optarg ;;
  1130. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1131. ac_prev=pdfdir ;;
  1132. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1133. pdfdir=$ac_optarg ;;
  1134. -psdir | --psdir | --psdi | --psd | --ps)
  1135. ac_prev=psdir ;;
  1136. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1137. psdir=$ac_optarg ;;
  1138. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1139. | -silent | --silent | --silen | --sile | --sil)
  1140. silent=yes ;;
  1141. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1142. | --runstate | --runstat | --runsta | --runst | --runs \
  1143. | --run | --ru | --r)
  1144. ac_prev=runstatedir ;;
  1145. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1146. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1147. | --run=* | --ru=* | --r=*)
  1148. runstatedir=$ac_optarg ;;
  1149. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1150. ac_prev=sbindir ;;
  1151. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1152. | --sbi=* | --sb=*)
  1153. sbindir=$ac_optarg ;;
  1154. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1155. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1156. | --sharedst | --shareds | --shared | --share | --shar \
  1157. | --sha | --sh)
  1158. ac_prev=sharedstatedir ;;
  1159. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1160. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1161. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1162. | --sha=* | --sh=*)
  1163. sharedstatedir=$ac_optarg ;;
  1164. -site | --site | --sit)
  1165. ac_prev=site ;;
  1166. -site=* | --site=* | --sit=*)
  1167. site=$ac_optarg ;;
  1168. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1169. ac_prev=srcdir ;;
  1170. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1171. srcdir=$ac_optarg ;;
  1172. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1173. | --syscon | --sysco | --sysc | --sys | --sy)
  1174. ac_prev=sysconfdir ;;
  1175. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1176. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1177. sysconfdir=$ac_optarg ;;
  1178. -target | --target | --targe | --targ | --tar | --ta | --t)
  1179. ac_prev=target_alias ;;
  1180. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1181. target_alias=$ac_optarg ;;
  1182. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1183. verbose=yes ;;
  1184. -version | --version | --versio | --versi | --vers | -V)
  1185. ac_init_version=: ;;
  1186. -with-* | --with-*)
  1187. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1188. # Reject names that are not valid shell variable names.
  1189. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1190. as_fn_error $? "invalid package name: $ac_useropt"
  1191. ac_useropt_orig=$ac_useropt
  1192. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1193. case $ac_user_opts in
  1194. *"
  1195. "with_$ac_useropt"
  1196. "*) ;;
  1197. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1198. ac_unrecognized_sep=', ';;
  1199. esac
  1200. eval with_$ac_useropt=\$ac_optarg ;;
  1201. -without-* | --without-*)
  1202. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1203. # Reject names that are not valid shell variable names.
  1204. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1205. as_fn_error $? "invalid package name: $ac_useropt"
  1206. ac_useropt_orig=$ac_useropt
  1207. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1208. case $ac_user_opts in
  1209. *"
  1210. "with_$ac_useropt"
  1211. "*) ;;
  1212. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1213. ac_unrecognized_sep=', ';;
  1214. esac
  1215. eval with_$ac_useropt=no ;;
  1216. --x)
  1217. # Obsolete; use --with-x.
  1218. with_x=yes ;;
  1219. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1220. | --x-incl | --x-inc | --x-in | --x-i)
  1221. ac_prev=x_includes ;;
  1222. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1223. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1224. x_includes=$ac_optarg ;;
  1225. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1226. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1227. ac_prev=x_libraries ;;
  1228. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1229. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1230. x_libraries=$ac_optarg ;;
  1231. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1232. Try \`$0 --help' for more information"
  1233. ;;
  1234. *=*)
  1235. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1236. # Reject names that are not valid shell variable names.
  1237. case $ac_envvar in #(
  1238. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1239. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1240. esac
  1241. eval $ac_envvar=\$ac_optarg
  1242. export $ac_envvar ;;
  1243. *)
  1244. # FIXME: should be removed in autoconf 3.0.
  1245. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1246. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1247. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1248. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1249. ;;
  1250. esac
  1251. done
  1252. if test -n "$ac_prev"; then
  1253. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1254. as_fn_error $? "missing argument to $ac_option"
  1255. fi
  1256. if test -n "$ac_unrecognized_opts"; then
  1257. case $enable_option_checking in
  1258. no) ;;
  1259. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1260. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1261. esac
  1262. fi
  1263. # Check all directory arguments for consistency.
  1264. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1265. datadir sysconfdir sharedstatedir localstatedir includedir \
  1266. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1267. libdir localedir mandir runstatedir
  1268. do
  1269. eval ac_val=\$$ac_var
  1270. # Remove trailing slashes.
  1271. case $ac_val in
  1272. */ )
  1273. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1274. eval $ac_var=\$ac_val;;
  1275. esac
  1276. # Be sure to have absolute directory names.
  1277. case $ac_val in
  1278. [\\/$]* | ?:[\\/]* ) continue;;
  1279. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1280. esac
  1281. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1282. done
  1283. # There might be people who depend on the old broken behavior: `$host'
  1284. # used to hold the argument of --host etc.
  1285. # FIXME: To remove some day.
  1286. build=$build_alias
  1287. host=$host_alias
  1288. target=$target_alias
  1289. # FIXME: To remove some day.
  1290. if test "x$host_alias" != x; then
  1291. if test "x$build_alias" = x; then
  1292. cross_compiling=maybe
  1293. elif test "x$build_alias" != "x$host_alias"; then
  1294. cross_compiling=yes
  1295. fi
  1296. fi
  1297. ac_tool_prefix=
  1298. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1299. test "$silent" = yes && exec 6>/dev/null
  1300. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1301. ac_ls_di=`ls -di .` &&
  1302. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1303. as_fn_error $? "working directory cannot be determined"
  1304. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1305. as_fn_error $? "pwd does not report name of working directory"
  1306. # Find the source files, if location was not specified.
  1307. if test -z "$srcdir"; then
  1308. ac_srcdir_defaulted=yes
  1309. # Try the directory containing this script, then the parent directory.
  1310. ac_confdir=`$as_dirname -- "$as_myself" ||
  1311. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1312. X"$as_myself" : 'X\(//\)[^/]' \| \
  1313. X"$as_myself" : 'X\(//\)$' \| \
  1314. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1315. $as_echo X"$as_myself" |
  1316. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1317. s//\1/
  1318. q
  1319. }
  1320. /^X\(\/\/\)[^/].*/{
  1321. s//\1/
  1322. q
  1323. }
  1324. /^X\(\/\/\)$/{
  1325. s//\1/
  1326. q
  1327. }
  1328. /^X\(\/\).*/{
  1329. s//\1/
  1330. q
  1331. }
  1332. s/.*/./; q'`
  1333. srcdir=$ac_confdir
  1334. if test ! -r "$srcdir/$ac_unique_file"; then
  1335. srcdir=..
  1336. fi
  1337. else
  1338. ac_srcdir_defaulted=no
  1339. fi
  1340. if test ! -r "$srcdir/$ac_unique_file"; then
  1341. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1342. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1343. fi
  1344. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1345. ac_abs_confdir=`(
  1346. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1347. pwd)`
  1348. # When building in place, set srcdir=.
  1349. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1350. srcdir=.
  1351. fi
  1352. # Remove unnecessary trailing slashes from srcdir.
  1353. # Double slashes in file names in object file debugging info
  1354. # mess up M-x gdb in Emacs.
  1355. case $srcdir in
  1356. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1357. esac
  1358. for ac_var in $ac_precious_vars; do
  1359. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1360. eval ac_env_${ac_var}_value=\$${ac_var}
  1361. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1362. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1363. done
  1364. #
  1365. # Report the --help message.
  1366. #
  1367. if test "$ac_init_help" = "long"; then
  1368. # Omit some internal or obsolete options to make the list less imposing.
  1369. # This message is too long to be a string in the A/UX 3.1 sh.
  1370. cat <<_ACEOF
  1371. \`configure' configures this package to adapt to many kinds of systems.
  1372. Usage: $0 [OPTION]... [VAR=VALUE]...
  1373. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1374. VAR=VALUE. See below for descriptions of some of the useful variables.
  1375. Defaults for the options are specified in brackets.
  1376. Configuration:
  1377. -h, --help display this help and exit
  1378. --help=short display options specific to this package
  1379. --help=recursive display the short help of all the included packages
  1380. -V, --version display version information and exit
  1381. -q, --quiet, --silent do not print \`checking ...' messages
  1382. --cache-file=FILE cache test results in FILE [disabled]
  1383. -C, --config-cache alias for \`--cache-file=config.cache'
  1384. -n, --no-create do not create output files
  1385. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1386. Installation directories:
  1387. --prefix=PREFIX install architecture-independent files in PREFIX
  1388. [$ac_default_prefix]
  1389. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1390. [PREFIX]
  1391. By default, \`make install' will install all the files in
  1392. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1393. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1394. for instance \`--prefix=\$HOME'.
  1395. For better control, use the options below.
  1396. Fine tuning of the installation directories:
  1397. --bindir=DIR user executables [EPREFIX/bin]
  1398. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1399. --libexecdir=DIR program executables [EPREFIX/libexec]
  1400. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1401. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1402. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1403. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1404. --libdir=DIR object code libraries [EPREFIX/lib]
  1405. --includedir=DIR C header files [PREFIX/include]
  1406. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1407. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1408. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1409. --infodir=DIR info documentation [DATAROOTDIR/info]
  1410. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1411. --mandir=DIR man documentation [DATAROOTDIR/man]
  1412. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1413. --htmldir=DIR html documentation [DOCDIR]
  1414. --dvidir=DIR dvi documentation [DOCDIR]
  1415. --pdfdir=DIR pdf documentation [DOCDIR]
  1416. --psdir=DIR ps documentation [DOCDIR]
  1417. _ACEOF
  1418. cat <<\_ACEOF
  1419. X features:
  1420. --x-includes=DIR X include files are in DIR
  1421. --x-libraries=DIR X library files are in DIR
  1422. System types:
  1423. --build=BUILD configure for building on BUILD [guessed]
  1424. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1425. _ACEOF
  1426. fi
  1427. if test -n "$ac_init_help"; then
  1428. cat <<\_ACEOF
  1429. Optional Features:
  1430. --disable-option-checking ignore unrecognized --enable/--with options
  1431. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1432. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1433. --enable-shared[=PKGS] build shared libraries [default=yes]
  1434. --enable-static[=PKGS] build static libraries [default=yes]
  1435. --enable-fast-install[=PKGS]
  1436. optimize for fast installation [default=yes]
  1437. --disable-libtool-lock avoid locking (might break parallel builds)
  1438. --enable-assertions Enable internal sanity checks
  1439. (auto/disabled/release/enabled/paranoid)
  1440. [[default=auto]]
  1441. --enable-dependency-tracking
  1442. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1443. --enable-libc Use the system C library [[default=yes]]
  1444. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1445. --enable-atomic Enable the atomic operations subsystem
  1446. [[default=yes]]
  1447. --enable-audio Enable the audio subsystem [[default=yes]]
  1448. --enable-video Enable the video subsystem [[default=yes]]
  1449. --enable-render Enable the render subsystem [[default=yes]]
  1450. --enable-events Enable the events subsystem [[default=yes]]
  1451. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1452. --enable-haptic Enable the haptic (force feedback) subsystem
  1453. [[default=yes]]
  1454. --enable-sensor Enable the sensor subsystem [[default=yes]]
  1455. --enable-power Enable the power subsystem [[default=yes]]
  1456. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1457. --enable-threads Enable the threading subsystem [[default=yes]]
  1458. --enable-timers Enable the timer subsystem [[default=yes]]
  1459. --enable-file Enable the file subsystem [[default=yes]]
  1460. --enable-loadso Enable the shared object loading subsystem
  1461. [[default=yes]]
  1462. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1463. --enable-assembly Enable assembly routines [[default=yes]]
  1464. --enable-ssemath Allow GCC to use SSE floating point math
  1465. [[default=maybe]]
  1466. --enable-mmx use MMX assembly routines [[default=yes]]
  1467. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1468. --enable-sse use SSE assembly routines [[default=yes]]
  1469. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1470. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1471. --enable-altivec use Altivec assembly routines [[default=yes]]
  1472. --enable-oss support the OSS audio API [[default=maybe]]
  1473. --enable-alsa support the ALSA audio API [[default=yes]]
  1474. --disable-alsatest Do not try to compile and run a test Alsa program
  1475. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1476. --enable-jack use JACK audio [[default=yes]]
  1477. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1478. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1479. --disable-esdtest Do not try to compile and run a test ESD program
  1480. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1481. --enable-pulseaudio use PulseAudio [[default=yes]]
  1482. --enable-pulseaudio-shared
  1483. dynamically load PulseAudio support [[default=yes]]
  1484. --enable-arts support the Analog Real Time Synthesizer
  1485. [[default=yes]]
  1486. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1487. --enable-nas support the NAS audio API [[default=yes]]
  1488. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1489. --enable-sndio support the sndio audio API [[default=yes]]
  1490. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1491. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1492. --enable-fusionsound-shared
  1493. dynamically load fusionsound audio support
  1494. [[default=yes]]
  1495. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1496. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1497. --enable-libsamplerate use libsamplerate for audio rate conversion
  1498. [[default=yes]]
  1499. --enable-libsamplerate-shared
  1500. dynamically load libsamplerate [[default=yes]]
  1501. --enable-arm-simd use SIMD assembly blitters on ARM [[default=yes]]
  1502. --enable-video-wayland use Wayland video driver [[default=yes]]
  1503. --enable-video-wayland-qt-touch
  1504. QtWayland server support for Wayland video driver
  1505. [[default=yes]]
  1506. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1507. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1508. --enable-video-x11 use X11 video driver [[default=yes]]
  1509. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1510. --enable-video-x11-xcursor
  1511. enable X11 Xcursor support [[default=yes]]
  1512. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1513. --enable-video-x11-xinerama
  1514. enable X11 Xinerama support [[default=yes]]
  1515. --enable-video-x11-xinput
  1516. enable X11 XInput extension for manymouse, tablets,
  1517. etc [[default=yes]]
  1518. --enable-video-x11-xrandr
  1519. enable X11 Xrandr extension for fullscreen
  1520. [[default=yes]]
  1521. --enable-video-x11-scrnsaver
  1522. enable X11 screensaver extension [[default=yes]]
  1523. --enable-video-x11-xshape
  1524. enable X11 XShape support [[default=yes]]
  1525. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1526. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1527. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1528. --enable-video-metal include Metal support [[default=yes]]
  1529. --enable-render-metal enable the Metal render driver [[default=yes]]
  1530. --enable-video-directfb use DirectFB video driver [[default=no]]
  1531. --enable-directfb-shared
  1532. dynamically load directfb support [[default=yes]]
  1533. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1534. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1535. --enable-video-dummy use dummy video driver [[default=yes]]
  1536. --enable-video-opengl include OpenGL support [[default=yes]]
  1537. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1538. --enable-video-opengles1
  1539. include OpenGL ES 1.1 support [[default=yes]]
  1540. --enable-video-opengles2
  1541. include OpenGL ES 2.0 support [[default=yes]]
  1542. --enable-video-vulkan include Vulkan support [[default=yes]]
  1543. --enable-libudev enable libudev support [[default=yes]]
  1544. --enable-dbus enable D-Bus support [[default=yes]]
  1545. --enable-ime enable IME support [[default=yes]]
  1546. --enable-ibus enable IBus support [[default=yes]]
  1547. --enable-fcitx enable fcitx support [[default=yes]]
  1548. --enable-input-tslib use the Touchscreen library for input
  1549. [[default=yes]]
  1550. --enable-pthreads use POSIX threads for multi-threading
  1551. [[default=yes]]
  1552. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1553. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1554. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1555. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1556. --enable-hidapi use HIDAPI for low level joystick drivers
  1557. [[default=no]]
  1558. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1559. UNIX [[default=yes]]
  1560. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1561. --enable-backgrounding-signal
  1562. number to use for magic backgrounding signal or 'no'
  1563. [[default=no]]
  1564. --enable-foregrounding-signal
  1565. number to use for magic foregrounding signal or 'no'
  1566. [[default=no]]
  1567. --enable-joystick-virtual
  1568. enable virtual joystick APIs [[default=yes]]
  1569. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1570. --enable-sdl2-config Install sdl2-config [default=yes]
  1571. Optional Packages:
  1572. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1573. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1574. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1575. both]
  1576. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1577. --with-sysroot=DIR Search for dependent libraries within DIR
  1578. (or the compiler's sysroot if not specified).
  1579. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1580. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1581. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1582. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1583. --with-x use the X Window System
  1584. Some influential environment variables:
  1585. CC C compiler command
  1586. CFLAGS C compiler flags
  1587. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1588. nonstandard directory <lib dir>
  1589. LIBS libraries to pass to the linker, e.g. -l<library>
  1590. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1591. you have headers in a nonstandard directory <include dir>
  1592. CPP C preprocessor
  1593. CXX C++ compiler command
  1594. CXXFLAGS C++ compiler flags
  1595. CXXCPP C++ preprocessor
  1596. PKG_CONFIG path to pkg-config utility
  1597. PKG_CONFIG_PATH
  1598. directories to add to pkg-config's search path
  1599. PKG_CONFIG_LIBDIR
  1600. path overriding pkg-config's built-in search path
  1601. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1602. JACK_LIBS linker flags for JACK, overriding pkg-config
  1603. PULSEAUDIO_CFLAGS
  1604. C compiler flags for PULSEAUDIO, overriding pkg-config
  1605. PULSEAUDIO_LIBS
  1606. linker flags for PULSEAUDIO, overriding pkg-config
  1607. FUSIONSOUND_CFLAGS
  1608. C compiler flags for FUSIONSOUND, overriding pkg-config
  1609. FUSIONSOUND_LIBS
  1610. linker flags for FUSIONSOUND, overriding pkg-config
  1611. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1612. RPI_LIBS linker flags for RPI, overriding pkg-config
  1613. XMKMF Path to xmkmf, Makefile generator for X Window System
  1614. DIRECTFB_CFLAGS
  1615. C compiler flags for DIRECTFB, overriding pkg-config
  1616. DIRECTFB_LIBS
  1617. linker flags for DIRECTFB, overriding pkg-config
  1618. LIBDRM_CFLAGS
  1619. C compiler flags for LIBDRM, overriding pkg-config
  1620. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1621. LIBGBM_CFLAGS
  1622. C compiler flags for LIBGBM, overriding pkg-config
  1623. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1624. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1625. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1626. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1627. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1628. LIBUSB_CFLAGS
  1629. C compiler flags for LIBUSB, overriding pkg-config
  1630. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1631. Use these variables to override the choices made by `configure' or to help
  1632. it to find libraries and programs with nonstandard names/locations.
  1633. Report bugs to the package provider.
  1634. _ACEOF
  1635. ac_status=$?
  1636. fi
  1637. if test "$ac_init_help" = "recursive"; then
  1638. # If there are subdirs, report their specific --help.
  1639. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1640. test -d "$ac_dir" ||
  1641. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1642. continue
  1643. ac_builddir=.
  1644. case "$ac_dir" in
  1645. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1646. *)
  1647. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1648. # A ".." for each directory in $ac_dir_suffix.
  1649. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1650. case $ac_top_builddir_sub in
  1651. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1652. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1653. esac ;;
  1654. esac
  1655. ac_abs_top_builddir=$ac_pwd
  1656. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1657. # for backward compatibility:
  1658. ac_top_builddir=$ac_top_build_prefix
  1659. case $srcdir in
  1660. .) # We are building in place.
  1661. ac_srcdir=.
  1662. ac_top_srcdir=$ac_top_builddir_sub
  1663. ac_abs_top_srcdir=$ac_pwd ;;
  1664. [\\/]* | ?:[\\/]* ) # Absolute name.
  1665. ac_srcdir=$srcdir$ac_dir_suffix;
  1666. ac_top_srcdir=$srcdir
  1667. ac_abs_top_srcdir=$srcdir ;;
  1668. *) # Relative name.
  1669. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1670. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1671. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1672. esac
  1673. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1674. cd "$ac_dir" || { ac_status=$?; continue; }
  1675. # Check for guested configure.
  1676. if test -f "$ac_srcdir/configure.gnu"; then
  1677. echo &&
  1678. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1679. elif test -f "$ac_srcdir/configure"; then
  1680. echo &&
  1681. $SHELL "$ac_srcdir/configure" --help=recursive
  1682. else
  1683. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1684. fi || ac_status=$?
  1685. cd "$ac_pwd" || { ac_status=$?; break; }
  1686. done
  1687. fi
  1688. test -n "$ac_init_help" && exit $ac_status
  1689. if $ac_init_version; then
  1690. cat <<\_ACEOF
  1691. configure
  1692. generated by GNU Autoconf 2.69
  1693. Copyright (C) 2012 Free Software Foundation, Inc.
  1694. This configure script is free software; the Free Software Foundation
  1695. gives unlimited permission to copy, distribute and modify it.
  1696. _ACEOF
  1697. exit
  1698. fi
  1699. ## ------------------------ ##
  1700. ## Autoconf initialization. ##
  1701. ## ------------------------ ##
  1702. # ac_fn_c_try_compile LINENO
  1703. # --------------------------
  1704. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1705. ac_fn_c_try_compile ()
  1706. {
  1707. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1708. rm -f conftest.$ac_objext
  1709. if { { ac_try="$ac_compile"
  1710. case "(($ac_try" in
  1711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1712. *) ac_try_echo=$ac_try;;
  1713. esac
  1714. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1715. $as_echo "$ac_try_echo"; } >&5
  1716. (eval "$ac_compile") 2>conftest.err
  1717. ac_status=$?
  1718. if test -s conftest.err; then
  1719. grep -v '^ *+' conftest.err >conftest.er1
  1720. cat conftest.er1 >&5
  1721. mv -f conftest.er1 conftest.err
  1722. fi
  1723. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1724. test $ac_status = 0; } && {
  1725. test -z "$ac_c_werror_flag" ||
  1726. test ! -s conftest.err
  1727. } && test -s conftest.$ac_objext; then :
  1728. ac_retval=0
  1729. else
  1730. $as_echo "$as_me: failed program was:" >&5
  1731. sed 's/^/| /' conftest.$ac_ext >&5
  1732. ac_retval=1
  1733. fi
  1734. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1735. as_fn_set_status $ac_retval
  1736. } # ac_fn_c_try_compile
  1737. # ac_fn_c_try_link LINENO
  1738. # -----------------------
  1739. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1740. ac_fn_c_try_link ()
  1741. {
  1742. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1743. rm -f conftest.$ac_objext conftest$ac_exeext
  1744. if { { ac_try="$ac_link"
  1745. case "(($ac_try" in
  1746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1747. *) ac_try_echo=$ac_try;;
  1748. esac
  1749. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1750. $as_echo "$ac_try_echo"; } >&5
  1751. (eval "$ac_link") 2>conftest.err
  1752. ac_status=$?
  1753. if test -s conftest.err; then
  1754. grep -v '^ *+' conftest.err >conftest.er1
  1755. cat conftest.er1 >&5
  1756. mv -f conftest.er1 conftest.err
  1757. fi
  1758. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1759. test $ac_status = 0; } && {
  1760. test -z "$ac_c_werror_flag" ||
  1761. test ! -s conftest.err
  1762. } && test -s conftest$ac_exeext && {
  1763. test "$cross_compiling" = yes ||
  1764. test -x conftest$ac_exeext
  1765. }; then :
  1766. ac_retval=0
  1767. else
  1768. $as_echo "$as_me: failed program was:" >&5
  1769. sed 's/^/| /' conftest.$ac_ext >&5
  1770. ac_retval=1
  1771. fi
  1772. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1773. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1774. # interfere with the next link command; also delete a directory that is
  1775. # left behind by Apple's compiler. We do this before executing the actions.
  1776. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1777. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1778. as_fn_set_status $ac_retval
  1779. } # ac_fn_c_try_link
  1780. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1781. # -------------------------------------------------------
  1782. # Tests whether HEADER exists and can be compiled using the include files in
  1783. # INCLUDES, setting the cache variable VAR accordingly.
  1784. ac_fn_c_check_header_compile ()
  1785. {
  1786. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1788. $as_echo_n "checking for $2... " >&6; }
  1789. if eval \${$3+:} false; then :
  1790. $as_echo_n "(cached) " >&6
  1791. else
  1792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1793. /* end confdefs.h. */
  1794. $4
  1795. #include <$2>
  1796. _ACEOF
  1797. if ac_fn_c_try_compile "$LINENO"; then :
  1798. eval "$3=yes"
  1799. else
  1800. eval "$3=no"
  1801. fi
  1802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1803. fi
  1804. eval ac_res=\$$3
  1805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1806. $as_echo "$ac_res" >&6; }
  1807. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1808. } # ac_fn_c_check_header_compile
  1809. # ac_fn_c_try_cpp LINENO
  1810. # ----------------------
  1811. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1812. ac_fn_c_try_cpp ()
  1813. {
  1814. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1815. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1816. case "(($ac_try" in
  1817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1818. *) ac_try_echo=$ac_try;;
  1819. esac
  1820. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1821. $as_echo "$ac_try_echo"; } >&5
  1822. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1823. ac_status=$?
  1824. if test -s conftest.err; then
  1825. grep -v '^ *+' conftest.err >conftest.er1
  1826. cat conftest.er1 >&5
  1827. mv -f conftest.er1 conftest.err
  1828. fi
  1829. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1830. test $ac_status = 0; } > conftest.i && {
  1831. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1832. test ! -s conftest.err
  1833. }; then :
  1834. ac_retval=0
  1835. else
  1836. $as_echo "$as_me: failed program was:" >&5
  1837. sed 's/^/| /' conftest.$ac_ext >&5
  1838. ac_retval=1
  1839. fi
  1840. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1841. as_fn_set_status $ac_retval
  1842. } # ac_fn_c_try_cpp
  1843. # ac_fn_c_try_run LINENO
  1844. # ----------------------
  1845. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1846. # that executables *can* be run.
  1847. ac_fn_c_try_run ()
  1848. {
  1849. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1850. if { { ac_try="$ac_link"
  1851. case "(($ac_try" in
  1852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1853. *) ac_try_echo=$ac_try;;
  1854. esac
  1855. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1856. $as_echo "$ac_try_echo"; } >&5
  1857. (eval "$ac_link") 2>&5
  1858. ac_status=$?
  1859. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1860. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1861. { { case "(($ac_try" in
  1862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1863. *) ac_try_echo=$ac_try;;
  1864. esac
  1865. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1866. $as_echo "$ac_try_echo"; } >&5
  1867. (eval "$ac_try") 2>&5
  1868. ac_status=$?
  1869. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1870. test $ac_status = 0; }; }; then :
  1871. ac_retval=0
  1872. else
  1873. $as_echo "$as_me: program exited with status $ac_status" >&5
  1874. $as_echo "$as_me: failed program was:" >&5
  1875. sed 's/^/| /' conftest.$ac_ext >&5
  1876. ac_retval=$ac_status
  1877. fi
  1878. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1879. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1880. as_fn_set_status $ac_retval
  1881. } # ac_fn_c_try_run
  1882. # ac_fn_c_check_func LINENO FUNC VAR
  1883. # ----------------------------------
  1884. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1885. ac_fn_c_check_func ()
  1886. {
  1887. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1889. $as_echo_n "checking for $2... " >&6; }
  1890. if eval \${$3+:} false; then :
  1891. $as_echo_n "(cached) " >&6
  1892. else
  1893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1894. /* end confdefs.h. */
  1895. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1896. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1897. #define $2 innocuous_$2
  1898. /* System header to define __stub macros and hopefully few prototypes,
  1899. which can conflict with char $2 (); below.
  1900. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1901. <limits.h> exists even on freestanding compilers. */
  1902. #ifdef __STDC__
  1903. # include <limits.h>
  1904. #else
  1905. # include <assert.h>
  1906. #endif
  1907. #undef $2
  1908. /* Override any GCC internal prototype to avoid an error.
  1909. Use char because int might match the return type of a GCC
  1910. builtin and then its argument prototype would still apply. */
  1911. #ifdef __cplusplus
  1912. extern "C"
  1913. #endif
  1914. char $2 ();
  1915. /* The GNU C library defines this for functions which it implements
  1916. to always fail with ENOSYS. Some functions are actually named
  1917. something starting with __ and the normal name is an alias. */
  1918. #if defined __stub_$2 || defined __stub___$2
  1919. choke me
  1920. #endif
  1921. int
  1922. main ()
  1923. {
  1924. return $2 ();
  1925. ;
  1926. return 0;
  1927. }
  1928. _ACEOF
  1929. if ac_fn_c_try_link "$LINENO"; then :
  1930. eval "$3=yes"
  1931. else
  1932. eval "$3=no"
  1933. fi
  1934. rm -f core conftest.err conftest.$ac_objext \
  1935. conftest$ac_exeext conftest.$ac_ext
  1936. fi
  1937. eval ac_res=\$$3
  1938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1939. $as_echo "$ac_res" >&6; }
  1940. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1941. } # ac_fn_c_check_func
  1942. # ac_fn_cxx_try_compile LINENO
  1943. # ----------------------------
  1944. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1945. ac_fn_cxx_try_compile ()
  1946. {
  1947. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1948. rm -f conftest.$ac_objext
  1949. if { { ac_try="$ac_compile"
  1950. case "(($ac_try" in
  1951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1952. *) ac_try_echo=$ac_try;;
  1953. esac
  1954. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1955. $as_echo "$ac_try_echo"; } >&5
  1956. (eval "$ac_compile") 2>conftest.err
  1957. ac_status=$?
  1958. if test -s conftest.err; then
  1959. grep -v '^ *+' conftest.err >conftest.er1
  1960. cat conftest.er1 >&5
  1961. mv -f conftest.er1 conftest.err
  1962. fi
  1963. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1964. test $ac_status = 0; } && {
  1965. test -z "$ac_cxx_werror_flag" ||
  1966. test ! -s conftest.err
  1967. } && test -s conftest.$ac_objext; then :
  1968. ac_retval=0
  1969. else
  1970. $as_echo "$as_me: failed program was:" >&5
  1971. sed 's/^/| /' conftest.$ac_ext >&5
  1972. ac_retval=1
  1973. fi
  1974. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1975. as_fn_set_status $ac_retval
  1976. } # ac_fn_cxx_try_compile
  1977. # ac_fn_cxx_try_cpp LINENO
  1978. # ------------------------
  1979. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1980. ac_fn_cxx_try_cpp ()
  1981. {
  1982. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1983. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1984. case "(($ac_try" in
  1985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1986. *) ac_try_echo=$ac_try;;
  1987. esac
  1988. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1989. $as_echo "$ac_try_echo"; } >&5
  1990. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1991. ac_status=$?
  1992. if test -s conftest.err; then
  1993. grep -v '^ *+' conftest.err >conftest.er1
  1994. cat conftest.er1 >&5
  1995. mv -f conftest.er1 conftest.err
  1996. fi
  1997. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1998. test $ac_status = 0; } > conftest.i && {
  1999. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2000. test ! -s conftest.err
  2001. }; then :
  2002. ac_retval=0
  2003. else
  2004. $as_echo "$as_me: failed program was:" >&5
  2005. sed 's/^/| /' conftest.$ac_ext >&5
  2006. ac_retval=1
  2007. fi
  2008. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2009. as_fn_set_status $ac_retval
  2010. } # ac_fn_cxx_try_cpp
  2011. # ac_fn_cxx_try_link LINENO
  2012. # -------------------------
  2013. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2014. ac_fn_cxx_try_link ()
  2015. {
  2016. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2017. rm -f conftest.$ac_objext conftest$ac_exeext
  2018. if { { ac_try="$ac_link"
  2019. case "(($ac_try" in
  2020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2021. *) ac_try_echo=$ac_try;;
  2022. esac
  2023. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2024. $as_echo "$ac_try_echo"; } >&5
  2025. (eval "$ac_link") 2>conftest.err
  2026. ac_status=$?
  2027. if test -s conftest.err; then
  2028. grep -v '^ *+' conftest.err >conftest.er1
  2029. cat conftest.er1 >&5
  2030. mv -f conftest.er1 conftest.err
  2031. fi
  2032. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2033. test $ac_status = 0; } && {
  2034. test -z "$ac_cxx_werror_flag" ||
  2035. test ! -s conftest.err
  2036. } && test -s conftest$ac_exeext && {
  2037. test "$cross_compiling" = yes ||
  2038. test -x conftest$ac_exeext
  2039. }; then :
  2040. ac_retval=0
  2041. else
  2042. $as_echo "$as_me: failed program was:" >&5
  2043. sed 's/^/| /' conftest.$ac_ext >&5
  2044. ac_retval=1
  2045. fi
  2046. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2047. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2048. # interfere with the next link command; also delete a directory that is
  2049. # left behind by Apple's compiler. We do this before executing the actions.
  2050. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2051. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2052. as_fn_set_status $ac_retval
  2053. } # ac_fn_cxx_try_link
  2054. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2055. # -------------------------------------------------------
  2056. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2057. # the include files in INCLUDES and setting the cache variable VAR
  2058. # accordingly.
  2059. ac_fn_c_check_header_mongrel ()
  2060. {
  2061. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2062. if eval \${$3+:} false; then :
  2063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2064. $as_echo_n "checking for $2... " >&6; }
  2065. if eval \${$3+:} false; then :
  2066. $as_echo_n "(cached) " >&6
  2067. fi
  2068. eval ac_res=\$$3
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2070. $as_echo "$ac_res" >&6; }
  2071. else
  2072. # Is the header compilable?
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2074. $as_echo_n "checking $2 usability... " >&6; }
  2075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2076. /* end confdefs.h. */
  2077. $4
  2078. #include <$2>
  2079. _ACEOF
  2080. if ac_fn_c_try_compile "$LINENO"; then :
  2081. ac_header_compiler=yes
  2082. else
  2083. ac_header_compiler=no
  2084. fi
  2085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2087. $as_echo "$ac_header_compiler" >&6; }
  2088. # Is the header present?
  2089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2090. $as_echo_n "checking $2 presence... " >&6; }
  2091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2092. /* end confdefs.h. */
  2093. #include <$2>
  2094. _ACEOF
  2095. if ac_fn_c_try_cpp "$LINENO"; then :
  2096. ac_header_preproc=yes
  2097. else
  2098. ac_header_preproc=no
  2099. fi
  2100. rm -f conftest.err conftest.i conftest.$ac_ext
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2102. $as_echo "$ac_header_preproc" >&6; }
  2103. # So? What about this header?
  2104. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2105. yes:no: )
  2106. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2107. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2109. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2110. ;;
  2111. no:yes:* )
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2113. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2115. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2117. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2119. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2120. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2121. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2122. ;;
  2123. esac
  2124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2125. $as_echo_n "checking for $2... " >&6; }
  2126. if eval \${$3+:} false; then :
  2127. $as_echo_n "(cached) " >&6
  2128. else
  2129. eval "$3=\$ac_header_compiler"
  2130. fi
  2131. eval ac_res=\$$3
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2133. $as_echo "$ac_res" >&6; }
  2134. fi
  2135. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2136. } # ac_fn_c_check_header_mongrel
  2137. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2138. # -------------------------------------------
  2139. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2140. # variable VAR accordingly.
  2141. ac_fn_c_check_type ()
  2142. {
  2143. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2145. $as_echo_n "checking for $2... " >&6; }
  2146. if eval \${$3+:} false; then :
  2147. $as_echo_n "(cached) " >&6
  2148. else
  2149. eval "$3=no"
  2150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2151. /* end confdefs.h. */
  2152. $4
  2153. int
  2154. main ()
  2155. {
  2156. if (sizeof ($2))
  2157. return 0;
  2158. ;
  2159. return 0;
  2160. }
  2161. _ACEOF
  2162. if ac_fn_c_try_compile "$LINENO"; then :
  2163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2164. /* end confdefs.h. */
  2165. $4
  2166. int
  2167. main ()
  2168. {
  2169. if (sizeof (($2)))
  2170. return 0;
  2171. ;
  2172. return 0;
  2173. }
  2174. _ACEOF
  2175. if ac_fn_c_try_compile "$LINENO"; then :
  2176. else
  2177. eval "$3=yes"
  2178. fi
  2179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2180. fi
  2181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2182. fi
  2183. eval ac_res=\$$3
  2184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2185. $as_echo "$ac_res" >&6; }
  2186. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2187. } # ac_fn_c_check_type
  2188. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2189. # ----------------------------------------------------
  2190. # Tries to find if the field MEMBER exists in type AGGR, after including
  2191. # INCLUDES, setting cache variable VAR accordingly.
  2192. ac_fn_c_check_member ()
  2193. {
  2194. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2196. $as_echo_n "checking for $2.$3... " >&6; }
  2197. if eval \${$4+:} false; then :
  2198. $as_echo_n "(cached) " >&6
  2199. else
  2200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2201. /* end confdefs.h. */
  2202. $5
  2203. int
  2204. main ()
  2205. {
  2206. static $2 ac_aggr;
  2207. if (ac_aggr.$3)
  2208. return 0;
  2209. ;
  2210. return 0;
  2211. }
  2212. _ACEOF
  2213. if ac_fn_c_try_compile "$LINENO"; then :
  2214. eval "$4=yes"
  2215. else
  2216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2217. /* end confdefs.h. */
  2218. $5
  2219. int
  2220. main ()
  2221. {
  2222. static $2 ac_aggr;
  2223. if (sizeof ac_aggr.$3)
  2224. return 0;
  2225. ;
  2226. return 0;
  2227. }
  2228. _ACEOF
  2229. if ac_fn_c_try_compile "$LINENO"; then :
  2230. eval "$4=yes"
  2231. else
  2232. eval "$4=no"
  2233. fi
  2234. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2235. fi
  2236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2237. fi
  2238. eval ac_res=\$$4
  2239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2240. $as_echo "$ac_res" >&6; }
  2241. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2242. } # ac_fn_c_check_member
  2243. cat >config.log <<_ACEOF
  2244. This file contains any messages produced by compilers while
  2245. running configure, to aid debugging if configure makes a mistake.
  2246. It was created by $as_me, which was
  2247. generated by GNU Autoconf 2.69. Invocation command line was
  2248. $ $0 $@
  2249. _ACEOF
  2250. exec 5>>config.log
  2251. {
  2252. cat <<_ASUNAME
  2253. ## --------- ##
  2254. ## Platform. ##
  2255. ## --------- ##
  2256. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2257. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2258. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2259. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2260. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2261. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2262. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2263. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2264. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2265. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2266. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2267. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2268. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2269. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2270. _ASUNAME
  2271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2272. for as_dir in $PATH
  2273. do
  2274. IFS=$as_save_IFS
  2275. test -z "$as_dir" && as_dir=.
  2276. $as_echo "PATH: $as_dir"
  2277. done
  2278. IFS=$as_save_IFS
  2279. } >&5
  2280. cat >&5 <<_ACEOF
  2281. ## ----------- ##
  2282. ## Core tests. ##
  2283. ## ----------- ##
  2284. _ACEOF
  2285. # Keep a trace of the command line.
  2286. # Strip out --no-create and --no-recursion so they do not pile up.
  2287. # Strip out --silent because we don't want to record it for future runs.
  2288. # Also quote any args containing shell meta-characters.
  2289. # Make two passes to allow for proper duplicate-argument suppression.
  2290. ac_configure_args=
  2291. ac_configure_args0=
  2292. ac_configure_args1=
  2293. ac_must_keep_next=false
  2294. for ac_pass in 1 2
  2295. do
  2296. for ac_arg
  2297. do
  2298. case $ac_arg in
  2299. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2300. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2301. | -silent | --silent | --silen | --sile | --sil)
  2302. continue ;;
  2303. *\'*)
  2304. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2305. esac
  2306. case $ac_pass in
  2307. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2308. 2)
  2309. as_fn_append ac_configure_args1 " '$ac_arg'"
  2310. if test $ac_must_keep_next = true; then
  2311. ac_must_keep_next=false # Got value, back to normal.
  2312. else
  2313. case $ac_arg in
  2314. *=* | --config-cache | -C | -disable-* | --disable-* \
  2315. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2316. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2317. | -with-* | --with-* | -without-* | --without-* | --x)
  2318. case "$ac_configure_args0 " in
  2319. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2320. esac
  2321. ;;
  2322. -* ) ac_must_keep_next=true ;;
  2323. esac
  2324. fi
  2325. as_fn_append ac_configure_args " '$ac_arg'"
  2326. ;;
  2327. esac
  2328. done
  2329. done
  2330. { ac_configure_args0=; unset ac_configure_args0;}
  2331. { ac_configure_args1=; unset ac_configure_args1;}
  2332. # When interrupted or exit'd, cleanup temporary files, and complete
  2333. # config.log. We remove comments because anyway the quotes in there
  2334. # would cause problems or look ugly.
  2335. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2336. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2337. trap 'exit_status=$?
  2338. # Save into config.log some information that might help in debugging.
  2339. {
  2340. echo
  2341. $as_echo "## ---------------- ##
  2342. ## Cache variables. ##
  2343. ## ---------------- ##"
  2344. echo
  2345. # The following way of writing the cache mishandles newlines in values,
  2346. (
  2347. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2348. eval ac_val=\$$ac_var
  2349. case $ac_val in #(
  2350. *${as_nl}*)
  2351. case $ac_var in #(
  2352. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2353. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2354. esac
  2355. case $ac_var in #(
  2356. _ | IFS | as_nl) ;; #(
  2357. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2358. *) { eval $ac_var=; unset $ac_var;} ;;
  2359. esac ;;
  2360. esac
  2361. done
  2362. (set) 2>&1 |
  2363. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2364. *${as_nl}ac_space=\ *)
  2365. sed -n \
  2366. "s/'\''/'\''\\\\'\'''\''/g;
  2367. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2368. ;; #(
  2369. *)
  2370. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2371. ;;
  2372. esac |
  2373. sort
  2374. )
  2375. echo
  2376. $as_echo "## ----------------- ##
  2377. ## Output variables. ##
  2378. ## ----------------- ##"
  2379. echo
  2380. for ac_var in $ac_subst_vars
  2381. do
  2382. eval ac_val=\$$ac_var
  2383. case $ac_val in
  2384. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2385. esac
  2386. $as_echo "$ac_var='\''$ac_val'\''"
  2387. done | sort
  2388. echo
  2389. if test -n "$ac_subst_files"; then
  2390. $as_echo "## ------------------- ##
  2391. ## File substitutions. ##
  2392. ## ------------------- ##"
  2393. echo
  2394. for ac_var in $ac_subst_files
  2395. do
  2396. eval ac_val=\$$ac_var
  2397. case $ac_val in
  2398. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2399. esac
  2400. $as_echo "$ac_var='\''$ac_val'\''"
  2401. done | sort
  2402. echo
  2403. fi
  2404. if test -s confdefs.h; then
  2405. $as_echo "## ----------- ##
  2406. ## confdefs.h. ##
  2407. ## ----------- ##"
  2408. echo
  2409. cat confdefs.h
  2410. echo
  2411. fi
  2412. test "$ac_signal" != 0 &&
  2413. $as_echo "$as_me: caught signal $ac_signal"
  2414. $as_echo "$as_me: exit $exit_status"
  2415. } >&5
  2416. rm -f core *.core core.conftest.* &&
  2417. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2418. exit $exit_status
  2419. ' 0
  2420. for ac_signal in 1 2 13 15; do
  2421. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2422. done
  2423. ac_signal=0
  2424. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2425. rm -f -r conftest* confdefs.h
  2426. $as_echo "/* confdefs.h */" > confdefs.h
  2427. # Predefined preprocessor variables.
  2428. cat >>confdefs.h <<_ACEOF
  2429. #define PACKAGE_NAME "$PACKAGE_NAME"
  2430. _ACEOF
  2431. cat >>confdefs.h <<_ACEOF
  2432. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2433. _ACEOF
  2434. cat >>confdefs.h <<_ACEOF
  2435. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2436. _ACEOF
  2437. cat >>confdefs.h <<_ACEOF
  2438. #define PACKAGE_STRING "$PACKAGE_STRING"
  2439. _ACEOF
  2440. cat >>confdefs.h <<_ACEOF
  2441. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2442. _ACEOF
  2443. cat >>confdefs.h <<_ACEOF
  2444. #define PACKAGE_URL "$PACKAGE_URL"
  2445. _ACEOF
  2446. # Let the site file select an alternate cache file if it wants to.
  2447. # Prefer an explicitly selected file to automatically selected ones.
  2448. ac_site_file1=NONE
  2449. ac_site_file2=NONE
  2450. if test -n "$CONFIG_SITE"; then
  2451. # We do not want a PATH search for config.site.
  2452. case $CONFIG_SITE in #((
  2453. -*) ac_site_file1=./$CONFIG_SITE;;
  2454. */*) ac_site_file1=$CONFIG_SITE;;
  2455. *) ac_site_file1=./$CONFIG_SITE;;
  2456. esac
  2457. elif test "x$prefix" != xNONE; then
  2458. ac_site_file1=$prefix/share/config.site
  2459. ac_site_file2=$prefix/etc/config.site
  2460. else
  2461. ac_site_file1=$ac_default_prefix/share/config.site
  2462. ac_site_file2=$ac_default_prefix/etc/config.site
  2463. fi
  2464. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2465. do
  2466. test "x$ac_site_file" = xNONE && continue
  2467. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2468. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2469. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2470. sed 's/^/| /' "$ac_site_file" >&5
  2471. . "$ac_site_file" \
  2472. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2473. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2474. as_fn_error $? "failed to load site script $ac_site_file
  2475. See \`config.log' for more details" "$LINENO" 5; }
  2476. fi
  2477. done
  2478. if test -r "$cache_file"; then
  2479. # Some versions of bash will fail to source /dev/null (special files
  2480. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2481. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2483. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2484. case $cache_file in
  2485. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2486. *) . "./$cache_file";;
  2487. esac
  2488. fi
  2489. else
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2491. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2492. >$cache_file
  2493. fi
  2494. # Check that the precious variables saved in the cache have kept the same
  2495. # value.
  2496. ac_cache_corrupted=false
  2497. for ac_var in $ac_precious_vars; do
  2498. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2499. eval ac_new_set=\$ac_env_${ac_var}_set
  2500. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2501. eval ac_new_val=\$ac_env_${ac_var}_value
  2502. case $ac_old_set,$ac_new_set in
  2503. set,)
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2505. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2506. ac_cache_corrupted=: ;;
  2507. ,set)
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2509. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2510. ac_cache_corrupted=: ;;
  2511. ,);;
  2512. *)
  2513. if test "x$ac_old_val" != "x$ac_new_val"; then
  2514. # differences in whitespace do not lead to failure.
  2515. ac_old_val_w=`echo x $ac_old_val`
  2516. ac_new_val_w=`echo x $ac_new_val`
  2517. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2519. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2520. ac_cache_corrupted=:
  2521. else
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2523. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2524. eval $ac_var=\$ac_old_val
  2525. fi
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2527. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2528. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2529. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2530. fi;;
  2531. esac
  2532. # Pass precious variables to config.status.
  2533. if test "$ac_new_set" = set; then
  2534. case $ac_new_val in
  2535. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2536. *) ac_arg=$ac_var=$ac_new_val ;;
  2537. esac
  2538. case " $ac_configure_args " in
  2539. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2540. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2541. esac
  2542. fi
  2543. done
  2544. if $ac_cache_corrupted; then
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2546. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2547. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2548. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2549. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2550. fi
  2551. ## -------------------- ##
  2552. ## Main body of script. ##
  2553. ## -------------------- ##
  2554. ac_ext=c
  2555. ac_cpp='$CPP $CPPFLAGS'
  2556. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2557. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2558. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2559. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2560. ac_aux_dir=
  2561. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2562. if test -f "$ac_dir/install-sh"; then
  2563. ac_aux_dir=$ac_dir
  2564. ac_install_sh="$ac_aux_dir/install-sh -c"
  2565. break
  2566. elif test -f "$ac_dir/install.sh"; then
  2567. ac_aux_dir=$ac_dir
  2568. ac_install_sh="$ac_aux_dir/install.sh -c"
  2569. break
  2570. elif test -f "$ac_dir/shtool"; then
  2571. ac_aux_dir=$ac_dir
  2572. ac_install_sh="$ac_aux_dir/shtool install -c"
  2573. break
  2574. fi
  2575. done
  2576. if test -z "$ac_aux_dir"; then
  2577. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2578. fi
  2579. # These three variables are undocumented and unsupported,
  2580. # and are intended to be withdrawn in a future Autoconf release.
  2581. # They can cause serious problems if a builder's source tree is in a directory
  2582. # whose full name contains unusual characters.
  2583. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2584. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2585. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2586. orig_CFLAGS="$CFLAGS"
  2587. #
  2588. # Making releases:
  2589. # Edit include/SDL_version.h and change the version, then:
  2590. # SDL_MICRO_VERSION += 1;
  2591. # SDL_INTERFACE_AGE += 1;
  2592. # SDL_BINARY_AGE += 1;
  2593. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2594. # if backwards compatibility has been broken,
  2595. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2596. #
  2597. SDL_MAJOR_VERSION=2
  2598. SDL_MINOR_VERSION=0
  2599. SDL_MICRO_VERSION=13
  2600. SDL_INTERFACE_AGE=1
  2601. SDL_BINARY_AGE=13
  2602. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2603. # libtool versioning
  2604. case `pwd` in
  2605. *\ * | *\ *)
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2607. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2608. esac
  2609. macro_version='2.4.2'
  2610. macro_revision='1.3337'
  2611. ltmain="$ac_aux_dir/ltmain.sh"
  2612. # Make sure we can run config.sub.
  2613. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2614. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2616. $as_echo_n "checking build system type... " >&6; }
  2617. if ${ac_cv_build+:} false; then :
  2618. $as_echo_n "(cached) " >&6
  2619. else
  2620. ac_build_alias=$build_alias
  2621. test "x$ac_build_alias" = x &&
  2622. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2623. test "x$ac_build_alias" = x &&
  2624. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2625. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2626. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2627. fi
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2629. $as_echo "$ac_cv_build" >&6; }
  2630. case $ac_cv_build in
  2631. *-*-*) ;;
  2632. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2633. esac
  2634. build=$ac_cv_build
  2635. ac_save_IFS=$IFS; IFS='-'
  2636. set x $ac_cv_build
  2637. shift
  2638. build_cpu=$1
  2639. build_vendor=$2
  2640. shift; shift
  2641. # Remember, the first character of IFS is used to create $*,
  2642. # except with old shells:
  2643. build_os=$*
  2644. IFS=$ac_save_IFS
  2645. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2647. $as_echo_n "checking host system type... " >&6; }
  2648. if ${ac_cv_host+:} false; then :
  2649. $as_echo_n "(cached) " >&6
  2650. else
  2651. if test "x$host_alias" = x; then
  2652. ac_cv_host=$ac_cv_build
  2653. else
  2654. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2655. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2656. fi
  2657. fi
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2659. $as_echo "$ac_cv_host" >&6; }
  2660. case $ac_cv_host in
  2661. *-*-*) ;;
  2662. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2663. esac
  2664. host=$ac_cv_host
  2665. ac_save_IFS=$IFS; IFS='-'
  2666. set x $ac_cv_host
  2667. shift
  2668. host_cpu=$1
  2669. host_vendor=$2
  2670. shift; shift
  2671. # Remember, the first character of IFS is used to create $*,
  2672. # except with old shells:
  2673. host_os=$*
  2674. IFS=$ac_save_IFS
  2675. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2676. # Backslashify metacharacters that are still active within
  2677. # double-quoted strings.
  2678. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2679. # Same as above, but do not quote variable references.
  2680. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2681. # Sed substitution to delay expansion of an escaped shell variable in a
  2682. # double_quote_subst'ed string.
  2683. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2684. # Sed substitution to delay expansion of an escaped single quote.
  2685. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2686. # Sed substitution to avoid accidental globbing in evaled expressions
  2687. no_glob_subst='s/\*/\\\*/g'
  2688. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2689. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2690. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2692. $as_echo_n "checking how to print strings... " >&6; }
  2693. # Test print first, because it will be a builtin if present.
  2694. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2695. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2696. ECHO='print -r --'
  2697. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2698. ECHO='printf %s\n'
  2699. else
  2700. # Use this function as a fallback that always works.
  2701. func_fallback_echo ()
  2702. {
  2703. eval 'cat <<_LTECHO_EOF
  2704. $1
  2705. _LTECHO_EOF'
  2706. }
  2707. ECHO='func_fallback_echo'
  2708. fi
  2709. # func_echo_all arg...
  2710. # Invoke $ECHO with all args, space-separated.
  2711. func_echo_all ()
  2712. {
  2713. $ECHO ""
  2714. }
  2715. case "$ECHO" in
  2716. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2717. $as_echo "printf" >&6; } ;;
  2718. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2719. $as_echo "print -r" >&6; } ;;
  2720. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2721. $as_echo "cat" >&6; } ;;
  2722. esac
  2723. ac_ext=c
  2724. ac_cpp='$CPP $CPPFLAGS'
  2725. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2726. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2727. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2728. if test -n "$ac_tool_prefix"; then
  2729. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2730. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2732. $as_echo_n "checking for $ac_word... " >&6; }
  2733. if ${ac_cv_prog_CC+:} false; then :
  2734. $as_echo_n "(cached) " >&6
  2735. else
  2736. if test -n "$CC"; then
  2737. ac_cv_prog_CC="$CC" # Let the user override the test.
  2738. else
  2739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2740. for as_dir in $PATH
  2741. do
  2742. IFS=$as_save_IFS
  2743. test -z "$as_dir" && as_dir=.
  2744. for ac_exec_ext in '' $ac_executable_extensions; do
  2745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2746. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2748. break 2
  2749. fi
  2750. done
  2751. done
  2752. IFS=$as_save_IFS
  2753. fi
  2754. fi
  2755. CC=$ac_cv_prog_CC
  2756. if test -n "$CC"; then
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2758. $as_echo "$CC" >&6; }
  2759. else
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2761. $as_echo "no" >&6; }
  2762. fi
  2763. fi
  2764. if test -z "$ac_cv_prog_CC"; then
  2765. ac_ct_CC=$CC
  2766. # Extract the first word of "gcc", so it can be a program name with args.
  2767. set dummy gcc; ac_word=$2
  2768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2769. $as_echo_n "checking for $ac_word... " >&6; }
  2770. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2771. $as_echo_n "(cached) " >&6
  2772. else
  2773. if test -n "$ac_ct_CC"; then
  2774. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2775. else
  2776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2777. for as_dir in $PATH
  2778. do
  2779. IFS=$as_save_IFS
  2780. test -z "$as_dir" && as_dir=.
  2781. for ac_exec_ext in '' $ac_executable_extensions; do
  2782. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2783. ac_cv_prog_ac_ct_CC="gcc"
  2784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2785. break 2
  2786. fi
  2787. done
  2788. done
  2789. IFS=$as_save_IFS
  2790. fi
  2791. fi
  2792. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2793. if test -n "$ac_ct_CC"; then
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2795. $as_echo "$ac_ct_CC" >&6; }
  2796. else
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2798. $as_echo "no" >&6; }
  2799. fi
  2800. if test "x$ac_ct_CC" = x; then
  2801. CC=""
  2802. else
  2803. case $cross_compiling:$ac_tool_warned in
  2804. yes:)
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2806. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2807. ac_tool_warned=yes ;;
  2808. esac
  2809. CC=$ac_ct_CC
  2810. fi
  2811. else
  2812. CC="$ac_cv_prog_CC"
  2813. fi
  2814. if test -z "$CC"; then
  2815. if test -n "$ac_tool_prefix"; then
  2816. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2817. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2819. $as_echo_n "checking for $ac_word... " >&6; }
  2820. if ${ac_cv_prog_CC+:} false; then :
  2821. $as_echo_n "(cached) " >&6
  2822. else
  2823. if test -n "$CC"; then
  2824. ac_cv_prog_CC="$CC" # Let the user override the test.
  2825. else
  2826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2827. for as_dir in $PATH
  2828. do
  2829. IFS=$as_save_IFS
  2830. test -z "$as_dir" && as_dir=.
  2831. for ac_exec_ext in '' $ac_executable_extensions; do
  2832. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2833. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2835. break 2
  2836. fi
  2837. done
  2838. done
  2839. IFS=$as_save_IFS
  2840. fi
  2841. fi
  2842. CC=$ac_cv_prog_CC
  2843. if test -n "$CC"; then
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2845. $as_echo "$CC" >&6; }
  2846. else
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2848. $as_echo "no" >&6; }
  2849. fi
  2850. fi
  2851. fi
  2852. if test -z "$CC"; then
  2853. # Extract the first word of "cc", so it can be a program name with args.
  2854. set dummy cc; ac_word=$2
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2856. $as_echo_n "checking for $ac_word... " >&6; }
  2857. if ${ac_cv_prog_CC+:} false; then :
  2858. $as_echo_n "(cached) " >&6
  2859. else
  2860. if test -n "$CC"; then
  2861. ac_cv_prog_CC="$CC" # Let the user override the test.
  2862. else
  2863. ac_prog_rejected=no
  2864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2865. for as_dir in $PATH
  2866. do
  2867. IFS=$as_save_IFS
  2868. test -z "$as_dir" && as_dir=.
  2869. for ac_exec_ext in '' $ac_executable_extensions; do
  2870. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2871. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2872. ac_prog_rejected=yes
  2873. continue
  2874. fi
  2875. ac_cv_prog_CC="cc"
  2876. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2877. break 2
  2878. fi
  2879. done
  2880. done
  2881. IFS=$as_save_IFS
  2882. if test $ac_prog_rejected = yes; then
  2883. # We found a bogon in the path, so make sure we never use it.
  2884. set dummy $ac_cv_prog_CC
  2885. shift
  2886. if test $# != 0; then
  2887. # We chose a different compiler from the bogus one.
  2888. # However, it has the same basename, so the bogon will be chosen
  2889. # first if we set CC to just the basename; use the full file name.
  2890. shift
  2891. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2892. fi
  2893. fi
  2894. fi
  2895. fi
  2896. CC=$ac_cv_prog_CC
  2897. if test -n "$CC"; then
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2899. $as_echo "$CC" >&6; }
  2900. else
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2902. $as_echo "no" >&6; }
  2903. fi
  2904. fi
  2905. if test -z "$CC"; then
  2906. if test -n "$ac_tool_prefix"; then
  2907. for ac_prog in cl.exe
  2908. do
  2909. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2910. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2912. $as_echo_n "checking for $ac_word... " >&6; }
  2913. if ${ac_cv_prog_CC+:} false; then :
  2914. $as_echo_n "(cached) " >&6
  2915. else
  2916. if test -n "$CC"; then
  2917. ac_cv_prog_CC="$CC" # Let the user override the test.
  2918. else
  2919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2920. for as_dir in $PATH
  2921. do
  2922. IFS=$as_save_IFS
  2923. test -z "$as_dir" && as_dir=.
  2924. for ac_exec_ext in '' $ac_executable_extensions; do
  2925. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2926. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2927. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2928. break 2
  2929. fi
  2930. done
  2931. done
  2932. IFS=$as_save_IFS
  2933. fi
  2934. fi
  2935. CC=$ac_cv_prog_CC
  2936. if test -n "$CC"; then
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2938. $as_echo "$CC" >&6; }
  2939. else
  2940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2941. $as_echo "no" >&6; }
  2942. fi
  2943. test -n "$CC" && break
  2944. done
  2945. fi
  2946. if test -z "$CC"; then
  2947. ac_ct_CC=$CC
  2948. for ac_prog in cl.exe
  2949. do
  2950. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2951. set dummy $ac_prog; ac_word=$2
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2953. $as_echo_n "checking for $ac_word... " >&6; }
  2954. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2955. $as_echo_n "(cached) " >&6
  2956. else
  2957. if test -n "$ac_ct_CC"; then
  2958. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2959. else
  2960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2961. for as_dir in $PATH
  2962. do
  2963. IFS=$as_save_IFS
  2964. test -z "$as_dir" && as_dir=.
  2965. for ac_exec_ext in '' $ac_executable_extensions; do
  2966. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2967. ac_cv_prog_ac_ct_CC="$ac_prog"
  2968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2969. break 2
  2970. fi
  2971. done
  2972. done
  2973. IFS=$as_save_IFS
  2974. fi
  2975. fi
  2976. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2977. if test -n "$ac_ct_CC"; then
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2979. $as_echo "$ac_ct_CC" >&6; }
  2980. else
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2982. $as_echo "no" >&6; }
  2983. fi
  2984. test -n "$ac_ct_CC" && break
  2985. done
  2986. if test "x$ac_ct_CC" = x; then
  2987. CC=""
  2988. else
  2989. case $cross_compiling:$ac_tool_warned in
  2990. yes:)
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2992. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2993. ac_tool_warned=yes ;;
  2994. esac
  2995. CC=$ac_ct_CC
  2996. fi
  2997. fi
  2998. fi
  2999. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3000. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3001. as_fn_error $? "no acceptable C compiler found in \$PATH
  3002. See \`config.log' for more details" "$LINENO" 5; }
  3003. # Provide some information about the compiler.
  3004. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3005. set X $ac_compile
  3006. ac_compiler=$2
  3007. for ac_option in --version -v -V -qversion; do
  3008. { { ac_try="$ac_compiler $ac_option >&5"
  3009. case "(($ac_try" in
  3010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3011. *) ac_try_echo=$ac_try;;
  3012. esac
  3013. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3014. $as_echo "$ac_try_echo"; } >&5
  3015. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3016. ac_status=$?
  3017. if test -s conftest.err; then
  3018. sed '10a\
  3019. ... rest of stderr output deleted ...
  3020. 10q' conftest.err >conftest.er1
  3021. cat conftest.er1 >&5
  3022. fi
  3023. rm -f conftest.er1 conftest.err
  3024. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3025. test $ac_status = 0; }
  3026. done
  3027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3028. /* end confdefs.h. */
  3029. int
  3030. main ()
  3031. {
  3032. ;
  3033. return 0;
  3034. }
  3035. _ACEOF
  3036. ac_clean_files_save=$ac_clean_files
  3037. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3038. # Try to create an executable without -o first, disregard a.out.
  3039. # It will help us diagnose broken compilers, and finding out an intuition
  3040. # of exeext.
  3041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3042. $as_echo_n "checking whether the C compiler works... " >&6; }
  3043. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3044. # The possible output files:
  3045. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3046. ac_rmfiles=
  3047. for ac_file in $ac_files
  3048. do
  3049. case $ac_file in
  3050. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3051. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3052. esac
  3053. done
  3054. rm -f $ac_rmfiles
  3055. if { { ac_try="$ac_link_default"
  3056. case "(($ac_try" in
  3057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3058. *) ac_try_echo=$ac_try;;
  3059. esac
  3060. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3061. $as_echo "$ac_try_echo"; } >&5
  3062. (eval "$ac_link_default") 2>&5
  3063. ac_status=$?
  3064. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3065. test $ac_status = 0; }; then :
  3066. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3067. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3068. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3069. # so that the user can short-circuit this test for compilers unknown to
  3070. # Autoconf.
  3071. for ac_file in $ac_files ''
  3072. do
  3073. test -f "$ac_file" || continue
  3074. case $ac_file in
  3075. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3076. ;;
  3077. [ab].out )
  3078. # We found the default executable, but exeext='' is most
  3079. # certainly right.
  3080. break;;
  3081. *.* )
  3082. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3083. then :; else
  3084. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3085. fi
  3086. # We set ac_cv_exeext here because the later test for it is not
  3087. # safe: cross compilers may not add the suffix if given an `-o'
  3088. # argument, so we may need to know it at that point already.
  3089. # Even if this section looks crufty: it has the advantage of
  3090. # actually working.
  3091. break;;
  3092. * )
  3093. break;;
  3094. esac
  3095. done
  3096. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3097. else
  3098. ac_file=''
  3099. fi
  3100. if test -z "$ac_file"; then :
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3102. $as_echo "no" >&6; }
  3103. $as_echo "$as_me: failed program was:" >&5
  3104. sed 's/^/| /' conftest.$ac_ext >&5
  3105. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3106. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3107. as_fn_error 77 "C compiler cannot create executables
  3108. See \`config.log' for more details" "$LINENO" 5; }
  3109. else
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3111. $as_echo "yes" >&6; }
  3112. fi
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3114. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3116. $as_echo "$ac_file" >&6; }
  3117. ac_exeext=$ac_cv_exeext
  3118. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3119. ac_clean_files=$ac_clean_files_save
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3121. $as_echo_n "checking for suffix of executables... " >&6; }
  3122. if { { ac_try="$ac_link"
  3123. case "(($ac_try" in
  3124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3125. *) ac_try_echo=$ac_try;;
  3126. esac
  3127. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3128. $as_echo "$ac_try_echo"; } >&5
  3129. (eval "$ac_link") 2>&5
  3130. ac_status=$?
  3131. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3132. test $ac_status = 0; }; then :
  3133. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3134. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3135. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3136. # `rm'.
  3137. for ac_file in conftest.exe conftest conftest.*; do
  3138. test -f "$ac_file" || continue
  3139. case $ac_file in
  3140. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3141. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3142. break;;
  3143. * ) break;;
  3144. esac
  3145. done
  3146. else
  3147. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3148. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3149. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3150. See \`config.log' for more details" "$LINENO" 5; }
  3151. fi
  3152. rm -f conftest conftest$ac_cv_exeext
  3153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3154. $as_echo "$ac_cv_exeext" >&6; }
  3155. rm -f conftest.$ac_ext
  3156. EXEEXT=$ac_cv_exeext
  3157. ac_exeext=$EXEEXT
  3158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3159. /* end confdefs.h. */
  3160. #include <stdio.h>
  3161. int
  3162. main ()
  3163. {
  3164. FILE *f = fopen ("conftest.out", "w");
  3165. return ferror (f) || fclose (f) != 0;
  3166. ;
  3167. return 0;
  3168. }
  3169. _ACEOF
  3170. ac_clean_files="$ac_clean_files conftest.out"
  3171. # Check that the compiler produces executables we can run. If not, either
  3172. # the compiler is broken, or we cross compile.
  3173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3174. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3175. if test "$cross_compiling" != yes; then
  3176. { { ac_try="$ac_link"
  3177. case "(($ac_try" in
  3178. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3179. *) ac_try_echo=$ac_try;;
  3180. esac
  3181. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3182. $as_echo "$ac_try_echo"; } >&5
  3183. (eval "$ac_link") 2>&5
  3184. ac_status=$?
  3185. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3186. test $ac_status = 0; }
  3187. if { ac_try='./conftest$ac_cv_exeext'
  3188. { { case "(($ac_try" in
  3189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3190. *) ac_try_echo=$ac_try;;
  3191. esac
  3192. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3193. $as_echo "$ac_try_echo"; } >&5
  3194. (eval "$ac_try") 2>&5
  3195. ac_status=$?
  3196. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3197. test $ac_status = 0; }; }; then
  3198. cross_compiling=no
  3199. else
  3200. if test "$cross_compiling" = maybe; then
  3201. cross_compiling=yes
  3202. else
  3203. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3204. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3205. as_fn_error $? "cannot run C compiled programs.
  3206. If you meant to cross compile, use \`--host'.
  3207. See \`config.log' for more details" "$LINENO" 5; }
  3208. fi
  3209. fi
  3210. fi
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3212. $as_echo "$cross_compiling" >&6; }
  3213. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3214. ac_clean_files=$ac_clean_files_save
  3215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3216. $as_echo_n "checking for suffix of object files... " >&6; }
  3217. if ${ac_cv_objext+:} false; then :
  3218. $as_echo_n "(cached) " >&6
  3219. else
  3220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3221. /* end confdefs.h. */
  3222. int
  3223. main ()
  3224. {
  3225. ;
  3226. return 0;
  3227. }
  3228. _ACEOF
  3229. rm -f conftest.o conftest.obj
  3230. if { { ac_try="$ac_compile"
  3231. case "(($ac_try" in
  3232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3233. *) ac_try_echo=$ac_try;;
  3234. esac
  3235. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3236. $as_echo "$ac_try_echo"; } >&5
  3237. (eval "$ac_compile") 2>&5
  3238. ac_status=$?
  3239. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3240. test $ac_status = 0; }; then :
  3241. for ac_file in conftest.o conftest.obj conftest.*; do
  3242. test -f "$ac_file" || continue;
  3243. case $ac_file in
  3244. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3245. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3246. break;;
  3247. esac
  3248. done
  3249. else
  3250. $as_echo "$as_me: failed program was:" >&5
  3251. sed 's/^/| /' conftest.$ac_ext >&5
  3252. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3253. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3254. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3255. See \`config.log' for more details" "$LINENO" 5; }
  3256. fi
  3257. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3258. fi
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3260. $as_echo "$ac_cv_objext" >&6; }
  3261. OBJEXT=$ac_cv_objext
  3262. ac_objext=$OBJEXT
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3264. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3265. if ${ac_cv_c_compiler_gnu+:} false; then :
  3266. $as_echo_n "(cached) " >&6
  3267. else
  3268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3269. /* end confdefs.h. */
  3270. int
  3271. main ()
  3272. {
  3273. #ifndef __GNUC__
  3274. choke me
  3275. #endif
  3276. ;
  3277. return 0;
  3278. }
  3279. _ACEOF
  3280. if ac_fn_c_try_compile "$LINENO"; then :
  3281. ac_compiler_gnu=yes
  3282. else
  3283. ac_compiler_gnu=no
  3284. fi
  3285. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3286. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3287. fi
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3289. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3290. if test $ac_compiler_gnu = yes; then
  3291. GCC=yes
  3292. else
  3293. GCC=
  3294. fi
  3295. ac_test_CFLAGS=${CFLAGS+set}
  3296. ac_save_CFLAGS=$CFLAGS
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3298. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3299. if ${ac_cv_prog_cc_g+:} false; then :
  3300. $as_echo_n "(cached) " >&6
  3301. else
  3302. ac_save_c_werror_flag=$ac_c_werror_flag
  3303. ac_c_werror_flag=yes
  3304. ac_cv_prog_cc_g=no
  3305. CFLAGS="-g"
  3306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3307. /* end confdefs.h. */
  3308. int
  3309. main ()
  3310. {
  3311. ;
  3312. return 0;
  3313. }
  3314. _ACEOF
  3315. if ac_fn_c_try_compile "$LINENO"; then :
  3316. ac_cv_prog_cc_g=yes
  3317. else
  3318. CFLAGS=""
  3319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3320. /* end confdefs.h. */
  3321. int
  3322. main ()
  3323. {
  3324. ;
  3325. return 0;
  3326. }
  3327. _ACEOF
  3328. if ac_fn_c_try_compile "$LINENO"; then :
  3329. else
  3330. ac_c_werror_flag=$ac_save_c_werror_flag
  3331. CFLAGS="-g"
  3332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3333. /* end confdefs.h. */
  3334. int
  3335. main ()
  3336. {
  3337. ;
  3338. return 0;
  3339. }
  3340. _ACEOF
  3341. if ac_fn_c_try_compile "$LINENO"; then :
  3342. ac_cv_prog_cc_g=yes
  3343. fi
  3344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3345. fi
  3346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3347. fi
  3348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3349. ac_c_werror_flag=$ac_save_c_werror_flag
  3350. fi
  3351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3352. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3353. if test "$ac_test_CFLAGS" = set; then
  3354. CFLAGS=$ac_save_CFLAGS
  3355. elif test $ac_cv_prog_cc_g = yes; then
  3356. if test "$GCC" = yes; then
  3357. CFLAGS="-g -O2"
  3358. else
  3359. CFLAGS="-g"
  3360. fi
  3361. else
  3362. if test "$GCC" = yes; then
  3363. CFLAGS="-O2"
  3364. else
  3365. CFLAGS=
  3366. fi
  3367. fi
  3368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3369. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3370. if ${ac_cv_prog_cc_c89+:} false; then :
  3371. $as_echo_n "(cached) " >&6
  3372. else
  3373. ac_cv_prog_cc_c89=no
  3374. ac_save_CC=$CC
  3375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3376. /* end confdefs.h. */
  3377. #include <stdarg.h>
  3378. #include <stdio.h>
  3379. struct stat;
  3380. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3381. struct buf { int x; };
  3382. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3383. static char *e (p, i)
  3384. char **p;
  3385. int i;
  3386. {
  3387. return p[i];
  3388. }
  3389. static char *f (char * (*g) (char **, int), char **p, ...)
  3390. {
  3391. char *s;
  3392. va_list v;
  3393. va_start (v,p);
  3394. s = g (p, va_arg (v,int));
  3395. va_end (v);
  3396. return s;
  3397. }
  3398. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3399. function prototypes and stuff, but not '\xHH' hex character constants.
  3400. These don't provoke an error unfortunately, instead are silently treated
  3401. as 'x'. The following induces an error, until -std is added to get
  3402. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3403. array size at least. It's necessary to write '\x00'==0 to get something
  3404. that's true only with -std. */
  3405. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3406. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3407. inside strings and character constants. */
  3408. #define FOO(x) 'x'
  3409. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3410. int test (int i, double x);
  3411. struct s1 {int (*f) (int a);};
  3412. struct s2 {int (*f) (double a);};
  3413. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3414. int argc;
  3415. char **argv;
  3416. int
  3417. main ()
  3418. {
  3419. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3420. ;
  3421. return 0;
  3422. }
  3423. _ACEOF
  3424. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3425. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3426. do
  3427. CC="$ac_save_CC $ac_arg"
  3428. if ac_fn_c_try_compile "$LINENO"; then :
  3429. ac_cv_prog_cc_c89=$ac_arg
  3430. fi
  3431. rm -f core conftest.err conftest.$ac_objext
  3432. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3433. done
  3434. rm -f conftest.$ac_ext
  3435. CC=$ac_save_CC
  3436. fi
  3437. # AC_CACHE_VAL
  3438. case "x$ac_cv_prog_cc_c89" in
  3439. x)
  3440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3441. $as_echo "none needed" >&6; } ;;
  3442. xno)
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3444. $as_echo "unsupported" >&6; } ;;
  3445. *)
  3446. CC="$CC $ac_cv_prog_cc_c89"
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3448. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3449. esac
  3450. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3451. fi
  3452. ac_ext=c
  3453. ac_cpp='$CPP $CPPFLAGS'
  3454. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3455. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3456. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3458. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3459. if ${ac_cv_path_SED+:} false; then :
  3460. $as_echo_n "(cached) " >&6
  3461. else
  3462. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3463. for ac_i in 1 2 3 4 5 6 7; do
  3464. ac_script="$ac_script$as_nl$ac_script"
  3465. done
  3466. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3467. { ac_script=; unset ac_script;}
  3468. if test -z "$SED"; then
  3469. ac_path_SED_found=false
  3470. # Loop through the user's path and test for each of PROGNAME-LIST
  3471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3472. for as_dir in $PATH
  3473. do
  3474. IFS=$as_save_IFS
  3475. test -z "$as_dir" && as_dir=.
  3476. for ac_prog in sed gsed; do
  3477. for ac_exec_ext in '' $ac_executable_extensions; do
  3478. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3479. as_fn_executable_p "$ac_path_SED" || continue
  3480. # Check for GNU ac_path_SED and select it if it is found.
  3481. # Check for GNU $ac_path_SED
  3482. case `"$ac_path_SED" --version 2>&1` in
  3483. *GNU*)
  3484. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3485. *)
  3486. ac_count=0
  3487. $as_echo_n 0123456789 >"conftest.in"
  3488. while :
  3489. do
  3490. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3491. mv "conftest.tmp" "conftest.in"
  3492. cp "conftest.in" "conftest.nl"
  3493. $as_echo '' >> "conftest.nl"
  3494. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3495. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3496. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3497. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3498. # Best one so far, save it but keep looking for a better one
  3499. ac_cv_path_SED="$ac_path_SED"
  3500. ac_path_SED_max=$ac_count
  3501. fi
  3502. # 10*(2^10) chars as input seems more than enough
  3503. test $ac_count -gt 10 && break
  3504. done
  3505. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3506. esac
  3507. $ac_path_SED_found && break 3
  3508. done
  3509. done
  3510. done
  3511. IFS=$as_save_IFS
  3512. if test -z "$ac_cv_path_SED"; then
  3513. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3514. fi
  3515. else
  3516. ac_cv_path_SED=$SED
  3517. fi
  3518. fi
  3519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3520. $as_echo "$ac_cv_path_SED" >&6; }
  3521. SED="$ac_cv_path_SED"
  3522. rm -f conftest.sed
  3523. test -z "$SED" && SED=sed
  3524. Xsed="$SED -e 1s/^X//"
  3525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3526. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3527. if ${ac_cv_path_GREP+:} false; then :
  3528. $as_echo_n "(cached) " >&6
  3529. else
  3530. if test -z "$GREP"; then
  3531. ac_path_GREP_found=false
  3532. # Loop through the user's path and test for each of PROGNAME-LIST
  3533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3534. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3535. do
  3536. IFS=$as_save_IFS
  3537. test -z "$as_dir" && as_dir=.
  3538. for ac_prog in grep ggrep; do
  3539. for ac_exec_ext in '' $ac_executable_extensions; do
  3540. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3541. as_fn_executable_p "$ac_path_GREP" || continue
  3542. # Check for GNU ac_path_GREP and select it if it is found.
  3543. # Check for GNU $ac_path_GREP
  3544. case `"$ac_path_GREP" --version 2>&1` in
  3545. *GNU*)
  3546. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3547. *)
  3548. ac_count=0
  3549. $as_echo_n 0123456789 >"conftest.in"
  3550. while :
  3551. do
  3552. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3553. mv "conftest.tmp" "conftest.in"
  3554. cp "conftest.in" "conftest.nl"
  3555. $as_echo 'GREP' >> "conftest.nl"
  3556. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3557. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3558. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3559. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3560. # Best one so far, save it but keep looking for a better one
  3561. ac_cv_path_GREP="$ac_path_GREP"
  3562. ac_path_GREP_max=$ac_count
  3563. fi
  3564. # 10*(2^10) chars as input seems more than enough
  3565. test $ac_count -gt 10 && break
  3566. done
  3567. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3568. esac
  3569. $ac_path_GREP_found && break 3
  3570. done
  3571. done
  3572. done
  3573. IFS=$as_save_IFS
  3574. if test -z "$ac_cv_path_GREP"; then
  3575. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3576. fi
  3577. else
  3578. ac_cv_path_GREP=$GREP
  3579. fi
  3580. fi
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3582. $as_echo "$ac_cv_path_GREP" >&6; }
  3583. GREP="$ac_cv_path_GREP"
  3584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3585. $as_echo_n "checking for egrep... " >&6; }
  3586. if ${ac_cv_path_EGREP+:} false; then :
  3587. $as_echo_n "(cached) " >&6
  3588. else
  3589. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3590. then ac_cv_path_EGREP="$GREP -E"
  3591. else
  3592. if test -z "$EGREP"; then
  3593. ac_path_EGREP_found=false
  3594. # Loop through the user's path and test for each of PROGNAME-LIST
  3595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3596. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3597. do
  3598. IFS=$as_save_IFS
  3599. test -z "$as_dir" && as_dir=.
  3600. for ac_prog in egrep; do
  3601. for ac_exec_ext in '' $ac_executable_extensions; do
  3602. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3603. as_fn_executable_p "$ac_path_EGREP" || continue
  3604. # Check for GNU ac_path_EGREP and select it if it is found.
  3605. # Check for GNU $ac_path_EGREP
  3606. case `"$ac_path_EGREP" --version 2>&1` in
  3607. *GNU*)
  3608. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3609. *)
  3610. ac_count=0
  3611. $as_echo_n 0123456789 >"conftest.in"
  3612. while :
  3613. do
  3614. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3615. mv "conftest.tmp" "conftest.in"
  3616. cp "conftest.in" "conftest.nl"
  3617. $as_echo 'EGREP' >> "conftest.nl"
  3618. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3619. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3620. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3621. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3622. # Best one so far, save it but keep looking for a better one
  3623. ac_cv_path_EGREP="$ac_path_EGREP"
  3624. ac_path_EGREP_max=$ac_count
  3625. fi
  3626. # 10*(2^10) chars as input seems more than enough
  3627. test $ac_count -gt 10 && break
  3628. done
  3629. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3630. esac
  3631. $ac_path_EGREP_found && break 3
  3632. done
  3633. done
  3634. done
  3635. IFS=$as_save_IFS
  3636. if test -z "$ac_cv_path_EGREP"; then
  3637. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3638. fi
  3639. else
  3640. ac_cv_path_EGREP=$EGREP
  3641. fi
  3642. fi
  3643. fi
  3644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3645. $as_echo "$ac_cv_path_EGREP" >&6; }
  3646. EGREP="$ac_cv_path_EGREP"
  3647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3648. $as_echo_n "checking for fgrep... " >&6; }
  3649. if ${ac_cv_path_FGREP+:} false; then :
  3650. $as_echo_n "(cached) " >&6
  3651. else
  3652. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3653. then ac_cv_path_FGREP="$GREP -F"
  3654. else
  3655. if test -z "$FGREP"; then
  3656. ac_path_FGREP_found=false
  3657. # Loop through the user's path and test for each of PROGNAME-LIST
  3658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3659. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3660. do
  3661. IFS=$as_save_IFS
  3662. test -z "$as_dir" && as_dir=.
  3663. for ac_prog in fgrep; do
  3664. for ac_exec_ext in '' $ac_executable_extensions; do
  3665. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3666. as_fn_executable_p "$ac_path_FGREP" || continue
  3667. # Check for GNU ac_path_FGREP and select it if it is found.
  3668. # Check for GNU $ac_path_FGREP
  3669. case `"$ac_path_FGREP" --version 2>&1` in
  3670. *GNU*)
  3671. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3672. *)
  3673. ac_count=0
  3674. $as_echo_n 0123456789 >"conftest.in"
  3675. while :
  3676. do
  3677. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3678. mv "conftest.tmp" "conftest.in"
  3679. cp "conftest.in" "conftest.nl"
  3680. $as_echo 'FGREP' >> "conftest.nl"
  3681. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3682. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3683. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3684. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3685. # Best one so far, save it but keep looking for a better one
  3686. ac_cv_path_FGREP="$ac_path_FGREP"
  3687. ac_path_FGREP_max=$ac_count
  3688. fi
  3689. # 10*(2^10) chars as input seems more than enough
  3690. test $ac_count -gt 10 && break
  3691. done
  3692. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3693. esac
  3694. $ac_path_FGREP_found && break 3
  3695. done
  3696. done
  3697. done
  3698. IFS=$as_save_IFS
  3699. if test -z "$ac_cv_path_FGREP"; then
  3700. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3701. fi
  3702. else
  3703. ac_cv_path_FGREP=$FGREP
  3704. fi
  3705. fi
  3706. fi
  3707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3708. $as_echo "$ac_cv_path_FGREP" >&6; }
  3709. FGREP="$ac_cv_path_FGREP"
  3710. test -z "$GREP" && GREP=grep
  3711. # Check whether --with-gnu-ld was given.
  3712. if test "${with_gnu_ld+set}" = set; then :
  3713. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3714. else
  3715. with_gnu_ld=no
  3716. fi
  3717. ac_prog=ld
  3718. if test "$GCC" = yes; then
  3719. # Check if gcc -print-prog-name=ld gives a path.
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3721. $as_echo_n "checking for ld used by $CC... " >&6; }
  3722. case $host in
  3723. *-*-mingw*)
  3724. # gcc leaves a trailing carriage return which upsets mingw
  3725. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3726. *)
  3727. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3728. esac
  3729. case $ac_prog in
  3730. # Accept absolute paths.
  3731. [\\/]* | ?:[\\/]*)
  3732. re_direlt='/[^/][^/]*/\.\./'
  3733. # Canonicalize the pathname of ld
  3734. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3735. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3736. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3737. done
  3738. test -z "$LD" && LD="$ac_prog"
  3739. ;;
  3740. "")
  3741. # If it fails, then pretend we aren't using GCC.
  3742. ac_prog=ld
  3743. ;;
  3744. *)
  3745. # If it is relative, then search for the first ld in PATH.
  3746. with_gnu_ld=unknown
  3747. ;;
  3748. esac
  3749. elif test "$with_gnu_ld" = yes; then
  3750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3751. $as_echo_n "checking for GNU ld... " >&6; }
  3752. else
  3753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3754. $as_echo_n "checking for non-GNU ld... " >&6; }
  3755. fi
  3756. if ${lt_cv_path_LD+:} false; then :
  3757. $as_echo_n "(cached) " >&6
  3758. else
  3759. if test -z "$LD"; then
  3760. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3761. for ac_dir in $PATH; do
  3762. IFS="$lt_save_ifs"
  3763. test -z "$ac_dir" && ac_dir=.
  3764. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3765. lt_cv_path_LD="$ac_dir/$ac_prog"
  3766. # Check to see if the program is GNU ld. I'd rather use --version,
  3767. # but apparently some variants of GNU ld only accept -v.
  3768. # Break only if it was the GNU/non-GNU ld that we prefer.
  3769. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3770. *GNU* | *'with BFD'*)
  3771. test "$with_gnu_ld" != no && break
  3772. ;;
  3773. *)
  3774. test "$with_gnu_ld" != yes && break
  3775. ;;
  3776. esac
  3777. fi
  3778. done
  3779. IFS="$lt_save_ifs"
  3780. else
  3781. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3782. fi
  3783. fi
  3784. LD="$lt_cv_path_LD"
  3785. if test -n "$LD"; then
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3787. $as_echo "$LD" >&6; }
  3788. else
  3789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3790. $as_echo "no" >&6; }
  3791. fi
  3792. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3794. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3795. if ${lt_cv_prog_gnu_ld+:} false; then :
  3796. $as_echo_n "(cached) " >&6
  3797. else
  3798. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3799. case `$LD -v 2>&1 </dev/null` in
  3800. *GNU* | *'with BFD'*)
  3801. lt_cv_prog_gnu_ld=yes
  3802. ;;
  3803. *)
  3804. lt_cv_prog_gnu_ld=no
  3805. ;;
  3806. esac
  3807. fi
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3809. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3810. with_gnu_ld=$lt_cv_prog_gnu_ld
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3812. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3813. if ${lt_cv_path_NM+:} false; then :
  3814. $as_echo_n "(cached) " >&6
  3815. else
  3816. if test -n "$NM"; then
  3817. # Let the user override the test.
  3818. lt_cv_path_NM="$NM"
  3819. else
  3820. lt_nm_to_check="${ac_tool_prefix}nm"
  3821. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3822. lt_nm_to_check="$lt_nm_to_check nm"
  3823. fi
  3824. for lt_tmp_nm in $lt_nm_to_check; do
  3825. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3826. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3827. IFS="$lt_save_ifs"
  3828. test -z "$ac_dir" && ac_dir=.
  3829. tmp_nm="$ac_dir/$lt_tmp_nm"
  3830. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3831. # Check to see if the nm accepts a BSD-compat flag.
  3832. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3833. # nm: unknown option "B" ignored
  3834. # Tru64's nm complains that /dev/null is an invalid object file
  3835. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3836. */dev/null* | *'Invalid file or object type'*)
  3837. lt_cv_path_NM="$tmp_nm -B"
  3838. break
  3839. ;;
  3840. *)
  3841. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3842. */dev/null*)
  3843. lt_cv_path_NM="$tmp_nm -p"
  3844. break
  3845. ;;
  3846. *)
  3847. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3848. continue # so that we can try to find one that supports BSD flags
  3849. ;;
  3850. esac
  3851. ;;
  3852. esac
  3853. fi
  3854. done
  3855. IFS="$lt_save_ifs"
  3856. done
  3857. : ${lt_cv_path_NM=no}
  3858. fi
  3859. fi
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3861. $as_echo "$lt_cv_path_NM" >&6; }
  3862. if test "$lt_cv_path_NM" != "no"; then
  3863. NM="$lt_cv_path_NM"
  3864. else
  3865. # Didn't find any BSD compatible name lister, look for dumpbin.
  3866. if test -n "$DUMPBIN"; then :
  3867. # Let the user override the test.
  3868. else
  3869. if test -n "$ac_tool_prefix"; then
  3870. for ac_prog in dumpbin "link -dump"
  3871. do
  3872. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3873. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3875. $as_echo_n "checking for $ac_word... " >&6; }
  3876. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3877. $as_echo_n "(cached) " >&6
  3878. else
  3879. if test -n "$DUMPBIN"; then
  3880. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3881. else
  3882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3883. for as_dir in $PATH
  3884. do
  3885. IFS=$as_save_IFS
  3886. test -z "$as_dir" && as_dir=.
  3887. for ac_exec_ext in '' $ac_executable_extensions; do
  3888. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3889. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3890. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3891. break 2
  3892. fi
  3893. done
  3894. done
  3895. IFS=$as_save_IFS
  3896. fi
  3897. fi
  3898. DUMPBIN=$ac_cv_prog_DUMPBIN
  3899. if test -n "$DUMPBIN"; then
  3900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3901. $as_echo "$DUMPBIN" >&6; }
  3902. else
  3903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3904. $as_echo "no" >&6; }
  3905. fi
  3906. test -n "$DUMPBIN" && break
  3907. done
  3908. fi
  3909. if test -z "$DUMPBIN"; then
  3910. ac_ct_DUMPBIN=$DUMPBIN
  3911. for ac_prog in dumpbin "link -dump"
  3912. do
  3913. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3914. set dummy $ac_prog; ac_word=$2
  3915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3916. $as_echo_n "checking for $ac_word... " >&6; }
  3917. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3918. $as_echo_n "(cached) " >&6
  3919. else
  3920. if test -n "$ac_ct_DUMPBIN"; then
  3921. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3922. else
  3923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3924. for as_dir in $PATH
  3925. do
  3926. IFS=$as_save_IFS
  3927. test -z "$as_dir" && as_dir=.
  3928. for ac_exec_ext in '' $ac_executable_extensions; do
  3929. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3930. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3932. break 2
  3933. fi
  3934. done
  3935. done
  3936. IFS=$as_save_IFS
  3937. fi
  3938. fi
  3939. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3940. if test -n "$ac_ct_DUMPBIN"; then
  3941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3942. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3943. else
  3944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3945. $as_echo "no" >&6; }
  3946. fi
  3947. test -n "$ac_ct_DUMPBIN" && break
  3948. done
  3949. if test "x$ac_ct_DUMPBIN" = x; then
  3950. DUMPBIN=":"
  3951. else
  3952. case $cross_compiling:$ac_tool_warned in
  3953. yes:)
  3954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3955. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3956. ac_tool_warned=yes ;;
  3957. esac
  3958. DUMPBIN=$ac_ct_DUMPBIN
  3959. fi
  3960. fi
  3961. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3962. *COFF*)
  3963. DUMPBIN="$DUMPBIN -symbols"
  3964. ;;
  3965. *)
  3966. DUMPBIN=:
  3967. ;;
  3968. esac
  3969. fi
  3970. if test "$DUMPBIN" != ":"; then
  3971. NM="$DUMPBIN"
  3972. fi
  3973. fi
  3974. test -z "$NM" && NM=nm
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3976. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3977. if ${lt_cv_nm_interface+:} false; then :
  3978. $as_echo_n "(cached) " >&6
  3979. else
  3980. lt_cv_nm_interface="BSD nm"
  3981. echo "int some_variable = 0;" > conftest.$ac_ext
  3982. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3983. (eval "$ac_compile" 2>conftest.err)
  3984. cat conftest.err >&5
  3985. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3986. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3987. cat conftest.err >&5
  3988. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3989. cat conftest.out >&5
  3990. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3991. lt_cv_nm_interface="MS dumpbin"
  3992. fi
  3993. rm -f conftest*
  3994. fi
  3995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3996. $as_echo "$lt_cv_nm_interface" >&6; }
  3997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3998. $as_echo_n "checking whether ln -s works... " >&6; }
  3999. LN_S=$as_ln_s
  4000. if test "$LN_S" = "ln -s"; then
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4002. $as_echo "yes" >&6; }
  4003. else
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4005. $as_echo "no, using $LN_S" >&6; }
  4006. fi
  4007. # find the maximum length of command line arguments
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4009. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4010. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4011. $as_echo_n "(cached) " >&6
  4012. else
  4013. i=0
  4014. teststring="ABCD"
  4015. case $build_os in
  4016. msdosdjgpp*)
  4017. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4018. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4019. # during glob expansion). Even if it were fixed, the result of this
  4020. # check would be larger than it should be.
  4021. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4022. ;;
  4023. gnu*)
  4024. # Under GNU Hurd, this test is not required because there is
  4025. # no limit to the length of command line arguments.
  4026. # Libtool will interpret -1 as no limit whatsoever
  4027. lt_cv_sys_max_cmd_len=-1;
  4028. ;;
  4029. cygwin* | mingw* | cegcc*)
  4030. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4031. # about 5 minutes as the teststring grows exponentially.
  4032. # Worse, since 9x/ME are not pre-emptively multitasking,
  4033. # you end up with a "frozen" computer, even though with patience
  4034. # the test eventually succeeds (with a max line length of 256k).
  4035. # Instead, let's just punt: use the minimum linelength reported by
  4036. # all of the supported platforms: 8192 (on NT/2K/XP).
  4037. lt_cv_sys_max_cmd_len=8192;
  4038. ;;
  4039. mint*)
  4040. # On MiNT this can take a long time and run out of memory.
  4041. lt_cv_sys_max_cmd_len=8192;
  4042. ;;
  4043. amigaos*)
  4044. # On AmigaOS with pdksh, this test takes hours, literally.
  4045. # So we just punt and use a minimum line length of 8192.
  4046. lt_cv_sys_max_cmd_len=8192;
  4047. ;;
  4048. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4049. # This has been around since 386BSD, at least. Likely further.
  4050. if test -x /sbin/sysctl; then
  4051. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4052. elif test -x /usr/sbin/sysctl; then
  4053. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4054. else
  4055. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4056. fi
  4057. # And add a safety zone
  4058. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4059. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4060. ;;
  4061. interix*)
  4062. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4063. lt_cv_sys_max_cmd_len=196608
  4064. ;;
  4065. os2*)
  4066. # The test takes a long time on OS/2.
  4067. lt_cv_sys_max_cmd_len=8192
  4068. ;;
  4069. osf*)
  4070. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4071. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4072. # nice to cause kernel panics so lets avoid the loop below.
  4073. # First set a reasonable default.
  4074. lt_cv_sys_max_cmd_len=16384
  4075. #
  4076. if test -x /sbin/sysconfig; then
  4077. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4078. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4079. esac
  4080. fi
  4081. ;;
  4082. sco3.2v5*)
  4083. lt_cv_sys_max_cmd_len=102400
  4084. ;;
  4085. sysv5* | sco5v6* | sysv4.2uw2*)
  4086. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4087. if test -n "$kargmax"; then
  4088. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4089. else
  4090. lt_cv_sys_max_cmd_len=32768
  4091. fi
  4092. ;;
  4093. *)
  4094. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4095. if test -n "$lt_cv_sys_max_cmd_len"; then
  4096. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4097. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4098. else
  4099. # Make teststring a little bigger before we do anything with it.
  4100. # a 1K string should be a reasonable start.
  4101. for i in 1 2 3 4 5 6 7 8 ; do
  4102. teststring=$teststring$teststring
  4103. done
  4104. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4105. # If test is not a shell built-in, we'll probably end up computing a
  4106. # maximum length that is only half of the actual maximum length, but
  4107. # we can't tell.
  4108. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4109. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4110. test $i != 17 # 1/2 MB should be enough
  4111. do
  4112. i=`expr $i + 1`
  4113. teststring=$teststring$teststring
  4114. done
  4115. # Only check the string length outside the loop.
  4116. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4117. teststring=
  4118. # Add a significant safety factor because C++ compilers can tack on
  4119. # massive amounts of additional arguments before passing them to the
  4120. # linker. It appears as though 1/2 is a usable value.
  4121. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4122. fi
  4123. ;;
  4124. esac
  4125. fi
  4126. if test -n $lt_cv_sys_max_cmd_len ; then
  4127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4128. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4129. else
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4131. $as_echo "none" >&6; }
  4132. fi
  4133. max_cmd_len=$lt_cv_sys_max_cmd_len
  4134. : ${CP="cp -f"}
  4135. : ${MV="mv -f"}
  4136. : ${RM="rm -f"}
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4138. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4139. # Try some XSI features
  4140. xsi_shell=no
  4141. ( _lt_dummy="a/b/c"
  4142. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4143. = c,a/b,b/c, \
  4144. && eval 'test $(( 1 + 1 )) -eq 2 \
  4145. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4146. && xsi_shell=yes
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4148. $as_echo "$xsi_shell" >&6; }
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4150. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4151. lt_shell_append=no
  4152. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4153. >/dev/null 2>&1 \
  4154. && lt_shell_append=yes
  4155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4156. $as_echo "$lt_shell_append" >&6; }
  4157. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4158. lt_unset=unset
  4159. else
  4160. lt_unset=false
  4161. fi
  4162. # test EBCDIC or ASCII
  4163. case `echo X|tr X '\101'` in
  4164. A) # ASCII based system
  4165. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4166. lt_SP2NL='tr \040 \012'
  4167. lt_NL2SP='tr \015\012 \040\040'
  4168. ;;
  4169. *) # EBCDIC based system
  4170. lt_SP2NL='tr \100 \n'
  4171. lt_NL2SP='tr \r\n \100\100'
  4172. ;;
  4173. esac
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4175. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4176. if ${lt_cv_to_host_file_cmd+:} false; then :
  4177. $as_echo_n "(cached) " >&6
  4178. else
  4179. case $host in
  4180. *-*-mingw* )
  4181. case $build in
  4182. *-*-mingw* ) # actually msys
  4183. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4184. ;;
  4185. *-*-cygwin* )
  4186. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4187. ;;
  4188. * ) # otherwise, assume *nix
  4189. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4190. ;;
  4191. esac
  4192. ;;
  4193. *-*-cygwin* )
  4194. case $build in
  4195. *-*-mingw* ) # actually msys
  4196. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4197. ;;
  4198. *-*-cygwin* )
  4199. lt_cv_to_host_file_cmd=func_convert_file_noop
  4200. ;;
  4201. * ) # otherwise, assume *nix
  4202. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4203. ;;
  4204. esac
  4205. ;;
  4206. * ) # unhandled hosts (and "normal" native builds)
  4207. lt_cv_to_host_file_cmd=func_convert_file_noop
  4208. ;;
  4209. esac
  4210. fi
  4211. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4213. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4215. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4216. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4217. $as_echo_n "(cached) " >&6
  4218. else
  4219. #assume ordinary cross tools, or native build.
  4220. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4221. case $host in
  4222. *-*-mingw* )
  4223. case $build in
  4224. *-*-mingw* ) # actually msys
  4225. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4226. ;;
  4227. esac
  4228. ;;
  4229. esac
  4230. fi
  4231. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4233. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4235. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4236. if ${lt_cv_ld_reload_flag+:} false; then :
  4237. $as_echo_n "(cached) " >&6
  4238. else
  4239. lt_cv_ld_reload_flag='-r'
  4240. fi
  4241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4242. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4243. reload_flag=$lt_cv_ld_reload_flag
  4244. case $reload_flag in
  4245. "" | " "*) ;;
  4246. *) reload_flag=" $reload_flag" ;;
  4247. esac
  4248. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4249. case $host_os in
  4250. cygwin* | mingw* | pw32* | cegcc*)
  4251. if test "$GCC" != yes; then
  4252. reload_cmds=false
  4253. fi
  4254. ;;
  4255. darwin*)
  4256. if test "$GCC" = yes; then
  4257. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4258. else
  4259. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4260. fi
  4261. ;;
  4262. esac
  4263. if test -n "$ac_tool_prefix"; then
  4264. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4265. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4267. $as_echo_n "checking for $ac_word... " >&6; }
  4268. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4269. $as_echo_n "(cached) " >&6
  4270. else
  4271. if test -n "$OBJDUMP"; then
  4272. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4273. else
  4274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4275. for as_dir in $PATH
  4276. do
  4277. IFS=$as_save_IFS
  4278. test -z "$as_dir" && as_dir=.
  4279. for ac_exec_ext in '' $ac_executable_extensions; do
  4280. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4281. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4282. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4283. break 2
  4284. fi
  4285. done
  4286. done
  4287. IFS=$as_save_IFS
  4288. fi
  4289. fi
  4290. OBJDUMP=$ac_cv_prog_OBJDUMP
  4291. if test -n "$OBJDUMP"; then
  4292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4293. $as_echo "$OBJDUMP" >&6; }
  4294. else
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4296. $as_echo "no" >&6; }
  4297. fi
  4298. fi
  4299. if test -z "$ac_cv_prog_OBJDUMP"; then
  4300. ac_ct_OBJDUMP=$OBJDUMP
  4301. # Extract the first word of "objdump", so it can be a program name with args.
  4302. set dummy objdump; ac_word=$2
  4303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4304. $as_echo_n "checking for $ac_word... " >&6; }
  4305. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4306. $as_echo_n "(cached) " >&6
  4307. else
  4308. if test -n "$ac_ct_OBJDUMP"; then
  4309. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4310. else
  4311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4312. for as_dir in $PATH
  4313. do
  4314. IFS=$as_save_IFS
  4315. test -z "$as_dir" && as_dir=.
  4316. for ac_exec_ext in '' $ac_executable_extensions; do
  4317. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4318. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4319. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4320. break 2
  4321. fi
  4322. done
  4323. done
  4324. IFS=$as_save_IFS
  4325. fi
  4326. fi
  4327. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4328. if test -n "$ac_ct_OBJDUMP"; then
  4329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4330. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4331. else
  4332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4333. $as_echo "no" >&6; }
  4334. fi
  4335. if test "x$ac_ct_OBJDUMP" = x; then
  4336. OBJDUMP="false"
  4337. else
  4338. case $cross_compiling:$ac_tool_warned in
  4339. yes:)
  4340. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4341. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4342. ac_tool_warned=yes ;;
  4343. esac
  4344. OBJDUMP=$ac_ct_OBJDUMP
  4345. fi
  4346. else
  4347. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4348. fi
  4349. test -z "$OBJDUMP" && OBJDUMP=objdump
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4351. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4352. if ${lt_cv_deplibs_check_method+:} false; then :
  4353. $as_echo_n "(cached) " >&6
  4354. else
  4355. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4356. lt_cv_file_magic_test_file=
  4357. lt_cv_deplibs_check_method='unknown'
  4358. # Need to set the preceding variable on all platforms that support
  4359. # interlibrary dependencies.
  4360. # 'none' -- dependencies not supported.
  4361. # `unknown' -- same as none, but documents that we really don't know.
  4362. # 'pass_all' -- all dependencies passed with no checks.
  4363. # 'test_compile' -- check by making test program.
  4364. # 'file_magic [[regex]]' -- check by looking for files in library path
  4365. # which responds to the $file_magic_cmd with a given extended regex.
  4366. # If you have `file' or equivalent on your system and you're not sure
  4367. # whether `pass_all' will *always* work, you probably want this one.
  4368. case $host_os in
  4369. aix[4-9]*)
  4370. lt_cv_deplibs_check_method=pass_all
  4371. ;;
  4372. beos*)
  4373. lt_cv_deplibs_check_method=pass_all
  4374. ;;
  4375. bsdi[45]*)
  4376. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4377. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4378. lt_cv_file_magic_test_file=/shlib/libc.so
  4379. ;;
  4380. cygwin*)
  4381. # func_win32_libid is a shell function defined in ltmain.sh
  4382. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4383. lt_cv_file_magic_cmd='func_win32_libid'
  4384. lt_cv_deplibs_check_method=pass_all
  4385. ;;
  4386. mingw* | pw32*)
  4387. # Base MSYS/MinGW do not provide the 'file' command needed by
  4388. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4389. # unless we find 'file', for example because we are cross-compiling.
  4390. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4391. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4392. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4393. lt_cv_file_magic_cmd='func_win32_libid'
  4394. else
  4395. # Keep this pattern in sync with the one in func_win32_libid.
  4396. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4397. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4398. fi
  4399. lt_cv_deplibs_check_method=pass_all
  4400. ;;
  4401. cegcc*)
  4402. # use the weaker test based on 'objdump'. See mingw*.
  4403. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4404. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4405. ;;
  4406. darwin* | rhapsody*)
  4407. lt_cv_deplibs_check_method=pass_all
  4408. ;;
  4409. freebsd* | dragonfly*)
  4410. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4411. case $host_cpu in
  4412. i*86 )
  4413. # Not sure whether the presence of OpenBSD here was a mistake.
  4414. # Let's accept both of them until this is cleared up.
  4415. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4416. lt_cv_file_magic_cmd=/usr/bin/file
  4417. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4418. ;;
  4419. esac
  4420. else
  4421. lt_cv_deplibs_check_method=pass_all
  4422. fi
  4423. ;;
  4424. gnu*)
  4425. lt_cv_deplibs_check_method=pass_all
  4426. ;;
  4427. haiku*)
  4428. lt_cv_deplibs_check_method=pass_all
  4429. ;;
  4430. hpux10.20* | hpux11*)
  4431. lt_cv_file_magic_cmd=/usr/bin/file
  4432. case $host_cpu in
  4433. ia64*)
  4434. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4435. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4436. ;;
  4437. hppa*64*)
  4438. 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]'
  4439. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4440. ;;
  4441. *)
  4442. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4443. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4444. ;;
  4445. esac
  4446. ;;
  4447. interix[3-9]*)
  4448. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4449. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4450. ;;
  4451. irix5* | irix6* | nonstopux*)
  4452. case $LD in
  4453. *-32|*"-32 ") libmagic=32-bit;;
  4454. *-n32|*"-n32 ") libmagic=N32;;
  4455. *-64|*"-64 ") libmagic=64-bit;;
  4456. *) libmagic=never-match;;
  4457. esac
  4458. lt_cv_deplibs_check_method=pass_all
  4459. ;;
  4460. # This must be glibc/ELF.
  4461. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4462. lt_cv_deplibs_check_method=pass_all
  4463. ;;
  4464. netbsd*)
  4465. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4466. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4467. else
  4468. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4469. fi
  4470. ;;
  4471. newos6*)
  4472. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4473. lt_cv_file_magic_cmd=/usr/bin/file
  4474. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4475. ;;
  4476. *nto* | *qnx*)
  4477. lt_cv_deplibs_check_method=pass_all
  4478. ;;
  4479. openbsd*)
  4480. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4481. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4482. else
  4483. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4484. fi
  4485. ;;
  4486. osf3* | osf4* | osf5*)
  4487. lt_cv_deplibs_check_method=pass_all
  4488. ;;
  4489. rdos*)
  4490. lt_cv_deplibs_check_method=pass_all
  4491. ;;
  4492. solaris*)
  4493. lt_cv_deplibs_check_method=pass_all
  4494. ;;
  4495. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4496. lt_cv_deplibs_check_method=pass_all
  4497. ;;
  4498. sysv4 | sysv4.3*)
  4499. case $host_vendor in
  4500. motorola)
  4501. 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]'
  4502. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4503. ;;
  4504. ncr)
  4505. lt_cv_deplibs_check_method=pass_all
  4506. ;;
  4507. sequent)
  4508. lt_cv_file_magic_cmd='/bin/file'
  4509. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4510. ;;
  4511. sni)
  4512. lt_cv_file_magic_cmd='/bin/file'
  4513. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4514. lt_cv_file_magic_test_file=/lib/libc.so
  4515. ;;
  4516. siemens)
  4517. lt_cv_deplibs_check_method=pass_all
  4518. ;;
  4519. pc)
  4520. lt_cv_deplibs_check_method=pass_all
  4521. ;;
  4522. esac
  4523. ;;
  4524. tpf*)
  4525. lt_cv_deplibs_check_method=pass_all
  4526. ;;
  4527. esac
  4528. fi
  4529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4530. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4531. file_magic_glob=
  4532. want_nocaseglob=no
  4533. if test "$build" = "$host"; then
  4534. case $host_os in
  4535. mingw* | pw32*)
  4536. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4537. want_nocaseglob=yes
  4538. else
  4539. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4540. fi
  4541. ;;
  4542. esac
  4543. fi
  4544. file_magic_cmd=$lt_cv_file_magic_cmd
  4545. deplibs_check_method=$lt_cv_deplibs_check_method
  4546. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4547. if test -n "$ac_tool_prefix"; then
  4548. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4549. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4551. $as_echo_n "checking for $ac_word... " >&6; }
  4552. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4553. $as_echo_n "(cached) " >&6
  4554. else
  4555. if test -n "$DLLTOOL"; then
  4556. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4557. else
  4558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4559. for as_dir in $PATH
  4560. do
  4561. IFS=$as_save_IFS
  4562. test -z "$as_dir" && as_dir=.
  4563. for ac_exec_ext in '' $ac_executable_extensions; do
  4564. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4565. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4566. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4567. break 2
  4568. fi
  4569. done
  4570. done
  4571. IFS=$as_save_IFS
  4572. fi
  4573. fi
  4574. DLLTOOL=$ac_cv_prog_DLLTOOL
  4575. if test -n "$DLLTOOL"; then
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4577. $as_echo "$DLLTOOL" >&6; }
  4578. else
  4579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4580. $as_echo "no" >&6; }
  4581. fi
  4582. fi
  4583. if test -z "$ac_cv_prog_DLLTOOL"; then
  4584. ac_ct_DLLTOOL=$DLLTOOL
  4585. # Extract the first word of "dlltool", so it can be a program name with args.
  4586. set dummy dlltool; ac_word=$2
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4588. $as_echo_n "checking for $ac_word... " >&6; }
  4589. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4590. $as_echo_n "(cached) " >&6
  4591. else
  4592. if test -n "$ac_ct_DLLTOOL"; then
  4593. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4594. else
  4595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4596. for as_dir in $PATH
  4597. do
  4598. IFS=$as_save_IFS
  4599. test -z "$as_dir" && as_dir=.
  4600. for ac_exec_ext in '' $ac_executable_extensions; do
  4601. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4602. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4603. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4604. break 2
  4605. fi
  4606. done
  4607. done
  4608. IFS=$as_save_IFS
  4609. fi
  4610. fi
  4611. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4612. if test -n "$ac_ct_DLLTOOL"; then
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4614. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4615. else
  4616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4617. $as_echo "no" >&6; }
  4618. fi
  4619. if test "x$ac_ct_DLLTOOL" = x; then
  4620. DLLTOOL="false"
  4621. else
  4622. case $cross_compiling:$ac_tool_warned in
  4623. yes:)
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4625. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4626. ac_tool_warned=yes ;;
  4627. esac
  4628. DLLTOOL=$ac_ct_DLLTOOL
  4629. fi
  4630. else
  4631. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4632. fi
  4633. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4635. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4636. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4637. $as_echo_n "(cached) " >&6
  4638. else
  4639. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4640. case $host_os in
  4641. cygwin* | mingw* | pw32* | cegcc*)
  4642. # two different shell functions defined in ltmain.sh
  4643. # decide which to use based on capabilities of $DLLTOOL
  4644. case `$DLLTOOL --help 2>&1` in
  4645. *--identify-strict*)
  4646. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4647. ;;
  4648. *)
  4649. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4650. ;;
  4651. esac
  4652. ;;
  4653. *)
  4654. # fallback: assume linklib IS sharedlib
  4655. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4656. ;;
  4657. esac
  4658. fi
  4659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4660. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4661. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4662. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4663. if test -n "$ac_tool_prefix"; then
  4664. for ac_prog in ar
  4665. do
  4666. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4667. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4669. $as_echo_n "checking for $ac_word... " >&6; }
  4670. if ${ac_cv_prog_AR+:} false; then :
  4671. $as_echo_n "(cached) " >&6
  4672. else
  4673. if test -n "$AR"; then
  4674. ac_cv_prog_AR="$AR" # Let the user override the test.
  4675. else
  4676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4677. for as_dir in $PATH
  4678. do
  4679. IFS=$as_save_IFS
  4680. test -z "$as_dir" && as_dir=.
  4681. for ac_exec_ext in '' $ac_executable_extensions; do
  4682. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4683. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4684. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4685. break 2
  4686. fi
  4687. done
  4688. done
  4689. IFS=$as_save_IFS
  4690. fi
  4691. fi
  4692. AR=$ac_cv_prog_AR
  4693. if test -n "$AR"; then
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4695. $as_echo "$AR" >&6; }
  4696. else
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4698. $as_echo "no" >&6; }
  4699. fi
  4700. test -n "$AR" && break
  4701. done
  4702. fi
  4703. if test -z "$AR"; then
  4704. ac_ct_AR=$AR
  4705. for ac_prog in ar
  4706. do
  4707. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4708. set dummy $ac_prog; ac_word=$2
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4710. $as_echo_n "checking for $ac_word... " >&6; }
  4711. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4712. $as_echo_n "(cached) " >&6
  4713. else
  4714. if test -n "$ac_ct_AR"; then
  4715. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4716. else
  4717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4718. for as_dir in $PATH
  4719. do
  4720. IFS=$as_save_IFS
  4721. test -z "$as_dir" && as_dir=.
  4722. for ac_exec_ext in '' $ac_executable_extensions; do
  4723. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4724. ac_cv_prog_ac_ct_AR="$ac_prog"
  4725. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4726. break 2
  4727. fi
  4728. done
  4729. done
  4730. IFS=$as_save_IFS
  4731. fi
  4732. fi
  4733. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4734. if test -n "$ac_ct_AR"; then
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4736. $as_echo "$ac_ct_AR" >&6; }
  4737. else
  4738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4739. $as_echo "no" >&6; }
  4740. fi
  4741. test -n "$ac_ct_AR" && break
  4742. done
  4743. if test "x$ac_ct_AR" = x; then
  4744. AR="false"
  4745. else
  4746. case $cross_compiling:$ac_tool_warned in
  4747. yes:)
  4748. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4749. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4750. ac_tool_warned=yes ;;
  4751. esac
  4752. AR=$ac_ct_AR
  4753. fi
  4754. fi
  4755. : ${AR=ar}
  4756. : ${AR_FLAGS=cru}
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4758. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4759. if ${lt_cv_ar_at_file+:} false; then :
  4760. $as_echo_n "(cached) " >&6
  4761. else
  4762. lt_cv_ar_at_file=no
  4763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4764. /* end confdefs.h. */
  4765. int
  4766. main ()
  4767. {
  4768. ;
  4769. return 0;
  4770. }
  4771. _ACEOF
  4772. if ac_fn_c_try_compile "$LINENO"; then :
  4773. echo conftest.$ac_objext > conftest.lst
  4774. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4775. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4776. (eval $lt_ar_try) 2>&5
  4777. ac_status=$?
  4778. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4779. test $ac_status = 0; }
  4780. if test "$ac_status" -eq 0; then
  4781. # Ensure the archiver fails upon bogus file names.
  4782. rm -f conftest.$ac_objext libconftest.a
  4783. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4784. (eval $lt_ar_try) 2>&5
  4785. ac_status=$?
  4786. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4787. test $ac_status = 0; }
  4788. if test "$ac_status" -ne 0; then
  4789. lt_cv_ar_at_file=@
  4790. fi
  4791. fi
  4792. rm -f conftest.* libconftest.a
  4793. fi
  4794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4795. fi
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4797. $as_echo "$lt_cv_ar_at_file" >&6; }
  4798. if test "x$lt_cv_ar_at_file" = xno; then
  4799. archiver_list_spec=
  4800. else
  4801. archiver_list_spec=$lt_cv_ar_at_file
  4802. fi
  4803. if test -n "$ac_tool_prefix"; then
  4804. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4805. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4807. $as_echo_n "checking for $ac_word... " >&6; }
  4808. if ${ac_cv_prog_STRIP+:} false; then :
  4809. $as_echo_n "(cached) " >&6
  4810. else
  4811. if test -n "$STRIP"; then
  4812. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4813. else
  4814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4815. for as_dir in $PATH
  4816. do
  4817. IFS=$as_save_IFS
  4818. test -z "$as_dir" && as_dir=.
  4819. for ac_exec_ext in '' $ac_executable_extensions; do
  4820. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4821. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4823. break 2
  4824. fi
  4825. done
  4826. done
  4827. IFS=$as_save_IFS
  4828. fi
  4829. fi
  4830. STRIP=$ac_cv_prog_STRIP
  4831. if test -n "$STRIP"; then
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4833. $as_echo "$STRIP" >&6; }
  4834. else
  4835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4836. $as_echo "no" >&6; }
  4837. fi
  4838. fi
  4839. if test -z "$ac_cv_prog_STRIP"; then
  4840. ac_ct_STRIP=$STRIP
  4841. # Extract the first word of "strip", so it can be a program name with args.
  4842. set dummy strip; ac_word=$2
  4843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4844. $as_echo_n "checking for $ac_word... " >&6; }
  4845. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4846. $as_echo_n "(cached) " >&6
  4847. else
  4848. if test -n "$ac_ct_STRIP"; then
  4849. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4850. else
  4851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4852. for as_dir in $PATH
  4853. do
  4854. IFS=$as_save_IFS
  4855. test -z "$as_dir" && as_dir=.
  4856. for ac_exec_ext in '' $ac_executable_extensions; do
  4857. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4858. ac_cv_prog_ac_ct_STRIP="strip"
  4859. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4860. break 2
  4861. fi
  4862. done
  4863. done
  4864. IFS=$as_save_IFS
  4865. fi
  4866. fi
  4867. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4868. if test -n "$ac_ct_STRIP"; then
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4870. $as_echo "$ac_ct_STRIP" >&6; }
  4871. else
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4873. $as_echo "no" >&6; }
  4874. fi
  4875. if test "x$ac_ct_STRIP" = x; then
  4876. STRIP=":"
  4877. else
  4878. case $cross_compiling:$ac_tool_warned in
  4879. yes:)
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4881. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4882. ac_tool_warned=yes ;;
  4883. esac
  4884. STRIP=$ac_ct_STRIP
  4885. fi
  4886. else
  4887. STRIP="$ac_cv_prog_STRIP"
  4888. fi
  4889. test -z "$STRIP" && STRIP=:
  4890. if test -n "$ac_tool_prefix"; then
  4891. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4892. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4894. $as_echo_n "checking for $ac_word... " >&6; }
  4895. if ${ac_cv_prog_RANLIB+:} false; then :
  4896. $as_echo_n "(cached) " >&6
  4897. else
  4898. if test -n "$RANLIB"; then
  4899. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4900. else
  4901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4902. for as_dir in $PATH
  4903. do
  4904. IFS=$as_save_IFS
  4905. test -z "$as_dir" && as_dir=.
  4906. for ac_exec_ext in '' $ac_executable_extensions; do
  4907. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4908. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4909. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4910. break 2
  4911. fi
  4912. done
  4913. done
  4914. IFS=$as_save_IFS
  4915. fi
  4916. fi
  4917. RANLIB=$ac_cv_prog_RANLIB
  4918. if test -n "$RANLIB"; then
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4920. $as_echo "$RANLIB" >&6; }
  4921. else
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4923. $as_echo "no" >&6; }
  4924. fi
  4925. fi
  4926. if test -z "$ac_cv_prog_RANLIB"; then
  4927. ac_ct_RANLIB=$RANLIB
  4928. # Extract the first word of "ranlib", so it can be a program name with args.
  4929. set dummy ranlib; ac_word=$2
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4931. $as_echo_n "checking for $ac_word... " >&6; }
  4932. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4933. $as_echo_n "(cached) " >&6
  4934. else
  4935. if test -n "$ac_ct_RANLIB"; then
  4936. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4937. else
  4938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4939. for as_dir in $PATH
  4940. do
  4941. IFS=$as_save_IFS
  4942. test -z "$as_dir" && as_dir=.
  4943. for ac_exec_ext in '' $ac_executable_extensions; do
  4944. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4945. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4946. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4947. break 2
  4948. fi
  4949. done
  4950. done
  4951. IFS=$as_save_IFS
  4952. fi
  4953. fi
  4954. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4955. if test -n "$ac_ct_RANLIB"; then
  4956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4957. $as_echo "$ac_ct_RANLIB" >&6; }
  4958. else
  4959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4960. $as_echo "no" >&6; }
  4961. fi
  4962. if test "x$ac_ct_RANLIB" = x; then
  4963. RANLIB=":"
  4964. else
  4965. case $cross_compiling:$ac_tool_warned in
  4966. yes:)
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4968. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4969. ac_tool_warned=yes ;;
  4970. esac
  4971. RANLIB=$ac_ct_RANLIB
  4972. fi
  4973. else
  4974. RANLIB="$ac_cv_prog_RANLIB"
  4975. fi
  4976. test -z "$RANLIB" && RANLIB=:
  4977. # Determine commands to create old-style static archives.
  4978. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4979. old_postinstall_cmds='chmod 644 $oldlib'
  4980. old_postuninstall_cmds=
  4981. if test -n "$RANLIB"; then
  4982. case $host_os in
  4983. openbsd*)
  4984. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4985. ;;
  4986. *)
  4987. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4988. ;;
  4989. esac
  4990. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4991. fi
  4992. case $host_os in
  4993. darwin*)
  4994. lock_old_archive_extraction=yes ;;
  4995. *)
  4996. lock_old_archive_extraction=no ;;
  4997. esac
  4998. for ac_prog in gawk mawk nawk awk
  4999. do
  5000. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5001. set dummy $ac_prog; ac_word=$2
  5002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5003. $as_echo_n "checking for $ac_word... " >&6; }
  5004. if ${ac_cv_prog_AWK+:} false; then :
  5005. $as_echo_n "(cached) " >&6
  5006. else
  5007. if test -n "$AWK"; then
  5008. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5009. else
  5010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5011. for as_dir in $PATH
  5012. do
  5013. IFS=$as_save_IFS
  5014. test -z "$as_dir" && as_dir=.
  5015. for ac_exec_ext in '' $ac_executable_extensions; do
  5016. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5017. ac_cv_prog_AWK="$ac_prog"
  5018. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5019. break 2
  5020. fi
  5021. done
  5022. done
  5023. IFS=$as_save_IFS
  5024. fi
  5025. fi
  5026. AWK=$ac_cv_prog_AWK
  5027. if test -n "$AWK"; then
  5028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5029. $as_echo "$AWK" >&6; }
  5030. else
  5031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5032. $as_echo "no" >&6; }
  5033. fi
  5034. test -n "$AWK" && break
  5035. done
  5036. # If no C compiler was specified, use CC.
  5037. LTCC=${LTCC-"$CC"}
  5038. # If no C compiler flags were specified, use CFLAGS.
  5039. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5040. # Allow CC to be a program name with arguments.
  5041. compiler=$CC
  5042. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5044. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5045. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5046. $as_echo_n "(cached) " >&6
  5047. else
  5048. # These are sane defaults that work on at least a few old systems.
  5049. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5050. # Character class describing NM global symbol codes.
  5051. symcode='[BCDEGRST]'
  5052. # Regexp to match symbols that can be accessed directly from C.
  5053. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5054. # Define system-specific variables.
  5055. case $host_os in
  5056. aix*)
  5057. symcode='[BCDT]'
  5058. ;;
  5059. cygwin* | mingw* | pw32* | cegcc*)
  5060. symcode='[ABCDGISTW]'
  5061. ;;
  5062. hpux*)
  5063. if test "$host_cpu" = ia64; then
  5064. symcode='[ABCDEGRST]'
  5065. fi
  5066. ;;
  5067. irix* | nonstopux*)
  5068. symcode='[BCDEGRST]'
  5069. ;;
  5070. osf*)
  5071. symcode='[BCDEGQRST]'
  5072. ;;
  5073. solaris*)
  5074. symcode='[BDRT]'
  5075. ;;
  5076. sco3.2v5*)
  5077. symcode='[DT]'
  5078. ;;
  5079. sysv4.2uw2*)
  5080. symcode='[DT]'
  5081. ;;
  5082. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5083. symcode='[ABDT]'
  5084. ;;
  5085. sysv4)
  5086. symcode='[DFNSTU]'
  5087. ;;
  5088. esac
  5089. # If we're using GNU nm, then use its standard symbol codes.
  5090. case `$NM -V 2>&1` in
  5091. *GNU* | *'with BFD'*)
  5092. symcode='[ABCDGIRSTW]' ;;
  5093. esac
  5094. # Transform an extracted symbol line into a proper C declaration.
  5095. # Some systems (esp. on ia64) link data and code symbols differently,
  5096. # so use this general approach.
  5097. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5098. # Transform an extracted symbol line into symbol name and symbol address
  5099. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5100. 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'"
  5101. # Handle CRLF in mingw tool chain
  5102. opt_cr=
  5103. case $build_os in
  5104. mingw*)
  5105. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5106. ;;
  5107. esac
  5108. # Try without a prefix underscore, then with it.
  5109. for ac_symprfx in "" "_"; do
  5110. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5111. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5112. # Write the raw and C identifiers.
  5113. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5114. # Fake it for dumpbin and say T for any non-static function
  5115. # and D for any global variable.
  5116. # Also find C++ and __fastcall symbols from MSVC++,
  5117. # which start with @ or ?.
  5118. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5119. " {last_section=section; section=\$ 3};"\
  5120. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5121. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5122. " \$ 0!~/External *\|/{next};"\
  5123. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5124. " {if(hide[section]) next};"\
  5125. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5126. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5127. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5128. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5129. " ' prfx=^$ac_symprfx"
  5130. else
  5131. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5132. fi
  5133. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5134. # Check to see that the pipe works correctly.
  5135. pipe_works=no
  5136. rm -f conftest*
  5137. cat > conftest.$ac_ext <<_LT_EOF
  5138. #ifdef __cplusplus
  5139. extern "C" {
  5140. #endif
  5141. char nm_test_var;
  5142. void nm_test_func(void);
  5143. void nm_test_func(void){}
  5144. #ifdef __cplusplus
  5145. }
  5146. #endif
  5147. int main(){nm_test_var='a';nm_test_func();return(0);}
  5148. _LT_EOF
  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. # Now try to grab the symbols.
  5155. nlist=conftest.nm
  5156. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5157. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5158. ac_status=$?
  5159. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5160. test $ac_status = 0; } && test -s "$nlist"; then
  5161. # Try sorting and uniquifying the output.
  5162. if sort "$nlist" | uniq > "$nlist"T; then
  5163. mv -f "$nlist"T "$nlist"
  5164. else
  5165. rm -f "$nlist"T
  5166. fi
  5167. # Make sure that we snagged all the symbols we need.
  5168. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5169. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5170. cat <<_LT_EOF > conftest.$ac_ext
  5171. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5172. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5173. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5174. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5175. # define LT_DLSYM_CONST
  5176. #elif defined(__osf__)
  5177. /* This system does not cope well with relocations in const data. */
  5178. # define LT_DLSYM_CONST
  5179. #else
  5180. # define LT_DLSYM_CONST const
  5181. #endif
  5182. #ifdef __cplusplus
  5183. extern "C" {
  5184. #endif
  5185. _LT_EOF
  5186. # Now generate the symbol file.
  5187. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5188. cat <<_LT_EOF >> conftest.$ac_ext
  5189. /* The mapping between symbol names and symbols. */
  5190. LT_DLSYM_CONST struct {
  5191. const char *name;
  5192. void *address;
  5193. }
  5194. lt__PROGRAM__LTX_preloaded_symbols[] =
  5195. {
  5196. { "@PROGRAM@", (void *) 0 },
  5197. _LT_EOF
  5198. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5199. cat <<\_LT_EOF >> conftest.$ac_ext
  5200. {0, (void *) 0}
  5201. };
  5202. /* This works around a problem in FreeBSD linker */
  5203. #ifdef FREEBSD_WORKAROUND
  5204. static const void *lt_preloaded_setup() {
  5205. return lt__PROGRAM__LTX_preloaded_symbols;
  5206. }
  5207. #endif
  5208. #ifdef __cplusplus
  5209. }
  5210. #endif
  5211. _LT_EOF
  5212. # Now try linking the two files.
  5213. mv conftest.$ac_objext conftstm.$ac_objext
  5214. lt_globsym_save_LIBS=$LIBS
  5215. lt_globsym_save_CFLAGS=$CFLAGS
  5216. LIBS="conftstm.$ac_objext"
  5217. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5218. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5219. (eval $ac_link) 2>&5
  5220. ac_status=$?
  5221. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5222. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5223. pipe_works=yes
  5224. fi
  5225. LIBS=$lt_globsym_save_LIBS
  5226. CFLAGS=$lt_globsym_save_CFLAGS
  5227. else
  5228. echo "cannot find nm_test_func in $nlist" >&5
  5229. fi
  5230. else
  5231. echo "cannot find nm_test_var in $nlist" >&5
  5232. fi
  5233. else
  5234. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5235. fi
  5236. else
  5237. echo "$progname: failed program was:" >&5
  5238. cat conftest.$ac_ext >&5
  5239. fi
  5240. rm -rf conftest* conftst*
  5241. # Do not use the global_symbol_pipe unless it works.
  5242. if test "$pipe_works" = yes; then
  5243. break
  5244. else
  5245. lt_cv_sys_global_symbol_pipe=
  5246. fi
  5247. done
  5248. fi
  5249. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5250. lt_cv_sys_global_symbol_to_cdecl=
  5251. fi
  5252. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5254. $as_echo "failed" >&6; }
  5255. else
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5257. $as_echo "ok" >&6; }
  5258. fi
  5259. # Response file support.
  5260. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5261. nm_file_list_spec='@'
  5262. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5263. nm_file_list_spec='@'
  5264. fi
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5266. $as_echo_n "checking for sysroot... " >&6; }
  5267. # Check whether --with-sysroot was given.
  5268. if test "${with_sysroot+set}" = set; then :
  5269. withval=$with_sysroot;
  5270. else
  5271. with_sysroot=no
  5272. fi
  5273. lt_sysroot=
  5274. case ${with_sysroot} in #(
  5275. yes)
  5276. if test "$GCC" = yes; then
  5277. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5278. fi
  5279. ;; #(
  5280. /*)
  5281. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5282. ;; #(
  5283. no|'')
  5284. ;; #(
  5285. *)
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5287. $as_echo "${with_sysroot}" >&6; }
  5288. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5289. ;;
  5290. esac
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5292. $as_echo "${lt_sysroot:-no}" >&6; }
  5293. # Check whether --enable-libtool-lock was given.
  5294. if test "${enable_libtool_lock+set}" = set; then :
  5295. enableval=$enable_libtool_lock;
  5296. fi
  5297. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5298. # Some flags need to be propagated to the compiler or linker for good
  5299. # libtool support.
  5300. case $host in
  5301. ia64-*-hpux*)
  5302. # Find out which ABI we are using.
  5303. echo 'int i;' > conftest.$ac_ext
  5304. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5305. (eval $ac_compile) 2>&5
  5306. ac_status=$?
  5307. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5308. test $ac_status = 0; }; then
  5309. case `/usr/bin/file conftest.$ac_objext` in
  5310. *ELF-32*)
  5311. HPUX_IA64_MODE="32"
  5312. ;;
  5313. *ELF-64*)
  5314. HPUX_IA64_MODE="64"
  5315. ;;
  5316. esac
  5317. fi
  5318. rm -rf conftest*
  5319. ;;
  5320. *-*-irix6*)
  5321. # Find out which ABI we are using.
  5322. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5323. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5324. (eval $ac_compile) 2>&5
  5325. ac_status=$?
  5326. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5327. test $ac_status = 0; }; then
  5328. if test "$lt_cv_prog_gnu_ld" = yes; then
  5329. case `/usr/bin/file conftest.$ac_objext` in
  5330. *32-bit*)
  5331. LD="${LD-ld} -melf32bsmip"
  5332. ;;
  5333. *N32*)
  5334. LD="${LD-ld} -melf32bmipn32"
  5335. ;;
  5336. *64-bit*)
  5337. LD="${LD-ld} -melf64bmip"
  5338. ;;
  5339. esac
  5340. else
  5341. case `/usr/bin/file conftest.$ac_objext` in
  5342. *32-bit*)
  5343. LD="${LD-ld} -32"
  5344. ;;
  5345. *N32*)
  5346. LD="${LD-ld} -n32"
  5347. ;;
  5348. *64-bit*)
  5349. LD="${LD-ld} -64"
  5350. ;;
  5351. esac
  5352. fi
  5353. fi
  5354. rm -rf conftest*
  5355. ;;
  5356. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5357. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5358. # Find out which ABI we are using.
  5359. echo 'int i;' > conftest.$ac_ext
  5360. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5361. (eval $ac_compile) 2>&5
  5362. ac_status=$?
  5363. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5364. test $ac_status = 0; }; then
  5365. case `/usr/bin/file conftest.o` in
  5366. *32-bit*)
  5367. case $host in
  5368. x86_64-*kfreebsd*-gnu)
  5369. LD="${LD-ld} -m elf_i386_fbsd"
  5370. ;;
  5371. x86_64-*linux*)
  5372. LD="${LD-ld} -m elf_i386"
  5373. ;;
  5374. ppc64-*linux*|powerpc64-*linux*)
  5375. LD="${LD-ld} -m elf32ppclinux"
  5376. ;;
  5377. s390x-*linux*)
  5378. LD="${LD-ld} -m elf_s390"
  5379. ;;
  5380. sparc64-*linux*)
  5381. LD="${LD-ld} -m elf32_sparc"
  5382. ;;
  5383. esac
  5384. ;;
  5385. *64-bit*)
  5386. case $host in
  5387. x86_64-*kfreebsd*-gnu)
  5388. LD="${LD-ld} -m elf_x86_64_fbsd"
  5389. ;;
  5390. x86_64-*linux*)
  5391. LD="${LD-ld} -m elf_x86_64"
  5392. ;;
  5393. powerpc64le-*linux*)
  5394. LD="${LD-ld} -m elf64lppc"
  5395. ;;
  5396. powerpc64-*linux*)
  5397. LD="${LD-ld} -m elf64ppc"
  5398. ;;
  5399. s390*-*linux*|s390*-*tpf*)
  5400. LD="${LD-ld} -m elf64_s390"
  5401. ;;
  5402. sparc*-*linux*)
  5403. LD="${LD-ld} -m elf64_sparc"
  5404. ;;
  5405. esac
  5406. ;;
  5407. esac
  5408. fi
  5409. rm -rf conftest*
  5410. ;;
  5411. *-*-sco3.2v5*)
  5412. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5413. SAVE_CFLAGS="$CFLAGS"
  5414. CFLAGS="$CFLAGS -belf"
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5416. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5417. if ${lt_cv_cc_needs_belf+:} false; then :
  5418. $as_echo_n "(cached) " >&6
  5419. else
  5420. ac_ext=c
  5421. ac_cpp='$CPP $CPPFLAGS'
  5422. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5423. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5424. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5426. /* end confdefs.h. */
  5427. int
  5428. main ()
  5429. {
  5430. ;
  5431. return 0;
  5432. }
  5433. _ACEOF
  5434. if ac_fn_c_try_link "$LINENO"; then :
  5435. lt_cv_cc_needs_belf=yes
  5436. else
  5437. lt_cv_cc_needs_belf=no
  5438. fi
  5439. rm -f core conftest.err conftest.$ac_objext \
  5440. conftest$ac_exeext conftest.$ac_ext
  5441. ac_ext=c
  5442. ac_cpp='$CPP $CPPFLAGS'
  5443. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5444. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5445. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5446. fi
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5448. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5449. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5450. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5451. CFLAGS="$SAVE_CFLAGS"
  5452. fi
  5453. ;;
  5454. *-*solaris*)
  5455. # Find out which ABI we are using.
  5456. echo 'int i;' > conftest.$ac_ext
  5457. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5458. (eval $ac_compile) 2>&5
  5459. ac_status=$?
  5460. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5461. test $ac_status = 0; }; then
  5462. case `/usr/bin/file conftest.o` in
  5463. *64-bit*)
  5464. case $lt_cv_prog_gnu_ld in
  5465. yes*)
  5466. case $host in
  5467. i?86-*-solaris*)
  5468. LD="${LD-ld} -m elf_x86_64"
  5469. ;;
  5470. sparc*-*-solaris*)
  5471. LD="${LD-ld} -m elf64_sparc"
  5472. ;;
  5473. esac
  5474. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5475. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5476. LD="${LD-ld}_sol2"
  5477. fi
  5478. ;;
  5479. *)
  5480. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5481. LD="${LD-ld} -64"
  5482. fi
  5483. ;;
  5484. esac
  5485. ;;
  5486. esac
  5487. fi
  5488. rm -rf conftest*
  5489. ;;
  5490. esac
  5491. need_locks="$enable_libtool_lock"
  5492. if test -n "$ac_tool_prefix"; then
  5493. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5494. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5496. $as_echo_n "checking for $ac_word... " >&6; }
  5497. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5498. $as_echo_n "(cached) " >&6
  5499. else
  5500. if test -n "$MANIFEST_TOOL"; then
  5501. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5502. else
  5503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5504. for as_dir in $PATH
  5505. do
  5506. IFS=$as_save_IFS
  5507. test -z "$as_dir" && as_dir=.
  5508. for ac_exec_ext in '' $ac_executable_extensions; do
  5509. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5510. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5511. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5512. break 2
  5513. fi
  5514. done
  5515. done
  5516. IFS=$as_save_IFS
  5517. fi
  5518. fi
  5519. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5520. if test -n "$MANIFEST_TOOL"; then
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5522. $as_echo "$MANIFEST_TOOL" >&6; }
  5523. else
  5524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5525. $as_echo "no" >&6; }
  5526. fi
  5527. fi
  5528. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5529. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5530. # Extract the first word of "mt", so it can be a program name with args.
  5531. set dummy mt; ac_word=$2
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5533. $as_echo_n "checking for $ac_word... " >&6; }
  5534. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5535. $as_echo_n "(cached) " >&6
  5536. else
  5537. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5538. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5539. else
  5540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5541. for as_dir in $PATH
  5542. do
  5543. IFS=$as_save_IFS
  5544. test -z "$as_dir" && as_dir=.
  5545. for ac_exec_ext in '' $ac_executable_extensions; do
  5546. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5547. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5548. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5549. break 2
  5550. fi
  5551. done
  5552. done
  5553. IFS=$as_save_IFS
  5554. fi
  5555. fi
  5556. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5557. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5559. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5560. else
  5561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5562. $as_echo "no" >&6; }
  5563. fi
  5564. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5565. MANIFEST_TOOL=":"
  5566. else
  5567. case $cross_compiling:$ac_tool_warned in
  5568. yes:)
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5570. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5571. ac_tool_warned=yes ;;
  5572. esac
  5573. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5574. fi
  5575. else
  5576. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5577. fi
  5578. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5580. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5581. if ${lt_cv_path_mainfest_tool+:} false; then :
  5582. $as_echo_n "(cached) " >&6
  5583. else
  5584. lt_cv_path_mainfest_tool=no
  5585. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5586. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5587. cat conftest.err >&5
  5588. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5589. lt_cv_path_mainfest_tool=yes
  5590. fi
  5591. rm -f conftest*
  5592. fi
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5594. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5595. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5596. MANIFEST_TOOL=:
  5597. fi
  5598. case $host_os in
  5599. rhapsody* | darwin*)
  5600. if test -n "$ac_tool_prefix"; then
  5601. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5602. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5604. $as_echo_n "checking for $ac_word... " >&6; }
  5605. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5606. $as_echo_n "(cached) " >&6
  5607. else
  5608. if test -n "$DSYMUTIL"; then
  5609. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5610. else
  5611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5612. for as_dir in $PATH
  5613. do
  5614. IFS=$as_save_IFS
  5615. test -z "$as_dir" && as_dir=.
  5616. for ac_exec_ext in '' $ac_executable_extensions; do
  5617. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5618. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5620. break 2
  5621. fi
  5622. done
  5623. done
  5624. IFS=$as_save_IFS
  5625. fi
  5626. fi
  5627. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5628. if test -n "$DSYMUTIL"; then
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5630. $as_echo "$DSYMUTIL" >&6; }
  5631. else
  5632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5633. $as_echo "no" >&6; }
  5634. fi
  5635. fi
  5636. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5637. ac_ct_DSYMUTIL=$DSYMUTIL
  5638. # Extract the first word of "dsymutil", so it can be a program name with args.
  5639. set dummy dsymutil; ac_word=$2
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5641. $as_echo_n "checking for $ac_word... " >&6; }
  5642. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5643. $as_echo_n "(cached) " >&6
  5644. else
  5645. if test -n "$ac_ct_DSYMUTIL"; then
  5646. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5647. else
  5648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5649. for as_dir in $PATH
  5650. do
  5651. IFS=$as_save_IFS
  5652. test -z "$as_dir" && as_dir=.
  5653. for ac_exec_ext in '' $ac_executable_extensions; do
  5654. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5655. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5656. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5657. break 2
  5658. fi
  5659. done
  5660. done
  5661. IFS=$as_save_IFS
  5662. fi
  5663. fi
  5664. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5665. if test -n "$ac_ct_DSYMUTIL"; then
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5667. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5668. else
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5670. $as_echo "no" >&6; }
  5671. fi
  5672. if test "x$ac_ct_DSYMUTIL" = x; then
  5673. DSYMUTIL=":"
  5674. else
  5675. case $cross_compiling:$ac_tool_warned in
  5676. yes:)
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5678. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5679. ac_tool_warned=yes ;;
  5680. esac
  5681. DSYMUTIL=$ac_ct_DSYMUTIL
  5682. fi
  5683. else
  5684. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5685. fi
  5686. if test -n "$ac_tool_prefix"; then
  5687. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5688. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5690. $as_echo_n "checking for $ac_word... " >&6; }
  5691. if ${ac_cv_prog_NMEDIT+:} false; then :
  5692. $as_echo_n "(cached) " >&6
  5693. else
  5694. if test -n "$NMEDIT"; then
  5695. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5696. else
  5697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5698. for as_dir in $PATH
  5699. do
  5700. IFS=$as_save_IFS
  5701. test -z "$as_dir" && as_dir=.
  5702. for ac_exec_ext in '' $ac_executable_extensions; do
  5703. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5704. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5705. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5706. break 2
  5707. fi
  5708. done
  5709. done
  5710. IFS=$as_save_IFS
  5711. fi
  5712. fi
  5713. NMEDIT=$ac_cv_prog_NMEDIT
  5714. if test -n "$NMEDIT"; then
  5715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5716. $as_echo "$NMEDIT" >&6; }
  5717. else
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5719. $as_echo "no" >&6; }
  5720. fi
  5721. fi
  5722. if test -z "$ac_cv_prog_NMEDIT"; then
  5723. ac_ct_NMEDIT=$NMEDIT
  5724. # Extract the first word of "nmedit", so it can be a program name with args.
  5725. set dummy nmedit; ac_word=$2
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5727. $as_echo_n "checking for $ac_word... " >&6; }
  5728. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5729. $as_echo_n "(cached) " >&6
  5730. else
  5731. if test -n "$ac_ct_NMEDIT"; then
  5732. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5733. else
  5734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5735. for as_dir in $PATH
  5736. do
  5737. IFS=$as_save_IFS
  5738. test -z "$as_dir" && as_dir=.
  5739. for ac_exec_ext in '' $ac_executable_extensions; do
  5740. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5741. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5742. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5743. break 2
  5744. fi
  5745. done
  5746. done
  5747. IFS=$as_save_IFS
  5748. fi
  5749. fi
  5750. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5751. if test -n "$ac_ct_NMEDIT"; then
  5752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5753. $as_echo "$ac_ct_NMEDIT" >&6; }
  5754. else
  5755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5756. $as_echo "no" >&6; }
  5757. fi
  5758. if test "x$ac_ct_NMEDIT" = x; then
  5759. NMEDIT=":"
  5760. else
  5761. case $cross_compiling:$ac_tool_warned in
  5762. yes:)
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5764. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5765. ac_tool_warned=yes ;;
  5766. esac
  5767. NMEDIT=$ac_ct_NMEDIT
  5768. fi
  5769. else
  5770. NMEDIT="$ac_cv_prog_NMEDIT"
  5771. fi
  5772. if test -n "$ac_tool_prefix"; then
  5773. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5774. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5776. $as_echo_n "checking for $ac_word... " >&6; }
  5777. if ${ac_cv_prog_LIPO+:} false; then :
  5778. $as_echo_n "(cached) " >&6
  5779. else
  5780. if test -n "$LIPO"; then
  5781. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5782. else
  5783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5784. for as_dir in $PATH
  5785. do
  5786. IFS=$as_save_IFS
  5787. test -z "$as_dir" && as_dir=.
  5788. for ac_exec_ext in '' $ac_executable_extensions; do
  5789. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5790. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5792. break 2
  5793. fi
  5794. done
  5795. done
  5796. IFS=$as_save_IFS
  5797. fi
  5798. fi
  5799. LIPO=$ac_cv_prog_LIPO
  5800. if test -n "$LIPO"; then
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5802. $as_echo "$LIPO" >&6; }
  5803. else
  5804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5805. $as_echo "no" >&6; }
  5806. fi
  5807. fi
  5808. if test -z "$ac_cv_prog_LIPO"; then
  5809. ac_ct_LIPO=$LIPO
  5810. # Extract the first word of "lipo", so it can be a program name with args.
  5811. set dummy lipo; ac_word=$2
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5813. $as_echo_n "checking for $ac_word... " >&6; }
  5814. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5815. $as_echo_n "(cached) " >&6
  5816. else
  5817. if test -n "$ac_ct_LIPO"; then
  5818. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5819. else
  5820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5821. for as_dir in $PATH
  5822. do
  5823. IFS=$as_save_IFS
  5824. test -z "$as_dir" && as_dir=.
  5825. for ac_exec_ext in '' $ac_executable_extensions; do
  5826. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5827. ac_cv_prog_ac_ct_LIPO="lipo"
  5828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5829. break 2
  5830. fi
  5831. done
  5832. done
  5833. IFS=$as_save_IFS
  5834. fi
  5835. fi
  5836. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5837. if test -n "$ac_ct_LIPO"; then
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5839. $as_echo "$ac_ct_LIPO" >&6; }
  5840. else
  5841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5842. $as_echo "no" >&6; }
  5843. fi
  5844. if test "x$ac_ct_LIPO" = x; then
  5845. LIPO=":"
  5846. else
  5847. case $cross_compiling:$ac_tool_warned in
  5848. yes:)
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5850. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5851. ac_tool_warned=yes ;;
  5852. esac
  5853. LIPO=$ac_ct_LIPO
  5854. fi
  5855. else
  5856. LIPO="$ac_cv_prog_LIPO"
  5857. fi
  5858. if test -n "$ac_tool_prefix"; then
  5859. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5860. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5862. $as_echo_n "checking for $ac_word... " >&6; }
  5863. if ${ac_cv_prog_OTOOL+:} false; then :
  5864. $as_echo_n "(cached) " >&6
  5865. else
  5866. if test -n "$OTOOL"; then
  5867. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5868. else
  5869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5870. for as_dir in $PATH
  5871. do
  5872. IFS=$as_save_IFS
  5873. test -z "$as_dir" && as_dir=.
  5874. for ac_exec_ext in '' $ac_executable_extensions; do
  5875. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5876. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5878. break 2
  5879. fi
  5880. done
  5881. done
  5882. IFS=$as_save_IFS
  5883. fi
  5884. fi
  5885. OTOOL=$ac_cv_prog_OTOOL
  5886. if test -n "$OTOOL"; then
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5888. $as_echo "$OTOOL" >&6; }
  5889. else
  5890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5891. $as_echo "no" >&6; }
  5892. fi
  5893. fi
  5894. if test -z "$ac_cv_prog_OTOOL"; then
  5895. ac_ct_OTOOL=$OTOOL
  5896. # Extract the first word of "otool", so it can be a program name with args.
  5897. set dummy otool; ac_word=$2
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5899. $as_echo_n "checking for $ac_word... " >&6; }
  5900. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5901. $as_echo_n "(cached) " >&6
  5902. else
  5903. if test -n "$ac_ct_OTOOL"; then
  5904. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5905. else
  5906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5907. for as_dir in $PATH
  5908. do
  5909. IFS=$as_save_IFS
  5910. test -z "$as_dir" && as_dir=.
  5911. for ac_exec_ext in '' $ac_executable_extensions; do
  5912. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5913. ac_cv_prog_ac_ct_OTOOL="otool"
  5914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5915. break 2
  5916. fi
  5917. done
  5918. done
  5919. IFS=$as_save_IFS
  5920. fi
  5921. fi
  5922. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5923. if test -n "$ac_ct_OTOOL"; then
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5925. $as_echo "$ac_ct_OTOOL" >&6; }
  5926. else
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5928. $as_echo "no" >&6; }
  5929. fi
  5930. if test "x$ac_ct_OTOOL" = x; then
  5931. OTOOL=":"
  5932. else
  5933. case $cross_compiling:$ac_tool_warned in
  5934. yes:)
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5936. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5937. ac_tool_warned=yes ;;
  5938. esac
  5939. OTOOL=$ac_ct_OTOOL
  5940. fi
  5941. else
  5942. OTOOL="$ac_cv_prog_OTOOL"
  5943. fi
  5944. if test -n "$ac_tool_prefix"; then
  5945. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5946. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5948. $as_echo_n "checking for $ac_word... " >&6; }
  5949. if ${ac_cv_prog_OTOOL64+:} false; then :
  5950. $as_echo_n "(cached) " >&6
  5951. else
  5952. if test -n "$OTOOL64"; then
  5953. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5954. else
  5955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5956. for as_dir in $PATH
  5957. do
  5958. IFS=$as_save_IFS
  5959. test -z "$as_dir" && as_dir=.
  5960. for ac_exec_ext in '' $ac_executable_extensions; do
  5961. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5962. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5964. break 2
  5965. fi
  5966. done
  5967. done
  5968. IFS=$as_save_IFS
  5969. fi
  5970. fi
  5971. OTOOL64=$ac_cv_prog_OTOOL64
  5972. if test -n "$OTOOL64"; then
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5974. $as_echo "$OTOOL64" >&6; }
  5975. else
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5977. $as_echo "no" >&6; }
  5978. fi
  5979. fi
  5980. if test -z "$ac_cv_prog_OTOOL64"; then
  5981. ac_ct_OTOOL64=$OTOOL64
  5982. # Extract the first word of "otool64", so it can be a program name with args.
  5983. set dummy otool64; ac_word=$2
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5985. $as_echo_n "checking for $ac_word... " >&6; }
  5986. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5987. $as_echo_n "(cached) " >&6
  5988. else
  5989. if test -n "$ac_ct_OTOOL64"; then
  5990. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5991. else
  5992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5993. for as_dir in $PATH
  5994. do
  5995. IFS=$as_save_IFS
  5996. test -z "$as_dir" && as_dir=.
  5997. for ac_exec_ext in '' $ac_executable_extensions; do
  5998. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5999. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6000. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6001. break 2
  6002. fi
  6003. done
  6004. done
  6005. IFS=$as_save_IFS
  6006. fi
  6007. fi
  6008. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6009. if test -n "$ac_ct_OTOOL64"; then
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6011. $as_echo "$ac_ct_OTOOL64" >&6; }
  6012. else
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6014. $as_echo "no" >&6; }
  6015. fi
  6016. if test "x$ac_ct_OTOOL64" = x; then
  6017. OTOOL64=":"
  6018. else
  6019. case $cross_compiling:$ac_tool_warned in
  6020. yes:)
  6021. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6022. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6023. ac_tool_warned=yes ;;
  6024. esac
  6025. OTOOL64=$ac_ct_OTOOL64
  6026. fi
  6027. else
  6028. OTOOL64="$ac_cv_prog_OTOOL64"
  6029. fi
  6030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6031. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6032. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6033. $as_echo_n "(cached) " >&6
  6034. else
  6035. lt_cv_apple_cc_single_mod=no
  6036. if test -z "${LT_MULTI_MODULE}"; then
  6037. # By default we will add the -single_module flag. You can override
  6038. # by either setting the environment variable LT_MULTI_MODULE
  6039. # non-empty at configure time, or by adding -multi_module to the
  6040. # link flags.
  6041. rm -rf libconftest.dylib*
  6042. echo "int foo(void){return 1;}" > conftest.c
  6043. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6044. -dynamiclib -Wl,-single_module conftest.c" >&5
  6045. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6046. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6047. _lt_result=$?
  6048. # If there is a non-empty error log, and "single_module"
  6049. # appears in it, assume the flag caused a linker warning
  6050. if test -s conftest.err && $GREP single_module conftest.err; then
  6051. cat conftest.err >&5
  6052. # Otherwise, if the output was created with a 0 exit code from
  6053. # the compiler, it worked.
  6054. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6055. lt_cv_apple_cc_single_mod=yes
  6056. else
  6057. cat conftest.err >&5
  6058. fi
  6059. rm -rf libconftest.dylib*
  6060. rm -f conftest.*
  6061. fi
  6062. fi
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6064. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6066. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6067. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6068. $as_echo_n "(cached) " >&6
  6069. else
  6070. lt_cv_ld_exported_symbols_list=no
  6071. save_LDFLAGS=$LDFLAGS
  6072. echo "_main" > conftest.sym
  6073. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6075. /* end confdefs.h. */
  6076. int
  6077. main ()
  6078. {
  6079. ;
  6080. return 0;
  6081. }
  6082. _ACEOF
  6083. if ac_fn_c_try_link "$LINENO"; then :
  6084. lt_cv_ld_exported_symbols_list=yes
  6085. else
  6086. lt_cv_ld_exported_symbols_list=no
  6087. fi
  6088. rm -f core conftest.err conftest.$ac_objext \
  6089. conftest$ac_exeext conftest.$ac_ext
  6090. LDFLAGS="$save_LDFLAGS"
  6091. fi
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6093. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6095. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6096. if ${lt_cv_ld_force_load+:} false; then :
  6097. $as_echo_n "(cached) " >&6
  6098. else
  6099. lt_cv_ld_force_load=no
  6100. cat > conftest.c << _LT_EOF
  6101. int forced_loaded() { return 2;}
  6102. _LT_EOF
  6103. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6104. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6105. echo "$AR cru libconftest.a conftest.o" >&5
  6106. $AR cru libconftest.a conftest.o 2>&5
  6107. echo "$RANLIB libconftest.a" >&5
  6108. $RANLIB libconftest.a 2>&5
  6109. cat > conftest.c << _LT_EOF
  6110. int main() { return 0;}
  6111. _LT_EOF
  6112. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6113. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6114. _lt_result=$?
  6115. if test -s conftest.err && $GREP force_load conftest.err; then
  6116. cat conftest.err >&5
  6117. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6118. lt_cv_ld_force_load=yes
  6119. else
  6120. cat conftest.err >&5
  6121. fi
  6122. rm -f conftest.err libconftest.a conftest conftest.c
  6123. rm -rf conftest.dSYM
  6124. fi
  6125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6126. $as_echo "$lt_cv_ld_force_load" >&6; }
  6127. case $host_os in
  6128. rhapsody* | darwin1.[012])
  6129. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6130. darwin1.*)
  6131. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6132. darwin*) # darwin 5.x on
  6133. # if running on 10.5 or later, the deployment target defaults
  6134. # to the OS version, if on x86, and 10.4, the deployment
  6135. # target defaults to 10.4. Don't you love it?
  6136. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6137. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6138. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6139. 10.[012]*)
  6140. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6141. 10.*)
  6142. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6143. esac
  6144. ;;
  6145. esac
  6146. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6147. _lt_dar_single_mod='$single_module'
  6148. fi
  6149. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6150. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6151. else
  6152. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6153. fi
  6154. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6155. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6156. else
  6157. _lt_dsymutil=
  6158. fi
  6159. ;;
  6160. esac
  6161. ac_ext=c
  6162. ac_cpp='$CPP $CPPFLAGS'
  6163. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6164. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6165. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6167. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6168. # On Suns, sometimes $CPP names a directory.
  6169. if test -n "$CPP" && test -d "$CPP"; then
  6170. CPP=
  6171. fi
  6172. if test -z "$CPP"; then
  6173. if ${ac_cv_prog_CPP+:} false; then :
  6174. $as_echo_n "(cached) " >&6
  6175. else
  6176. # Double quotes because CPP needs to be expanded
  6177. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6178. do
  6179. ac_preproc_ok=false
  6180. for ac_c_preproc_warn_flag in '' yes
  6181. do
  6182. # Use a header file that comes with gcc, so configuring glibc
  6183. # with a fresh cross-compiler works.
  6184. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6185. # <limits.h> exists even on freestanding compilers.
  6186. # On the NeXT, cc -E runs the code through the compiler's parser,
  6187. # not just through cpp. "Syntax error" is here to catch this case.
  6188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6189. /* end confdefs.h. */
  6190. #ifdef __STDC__
  6191. # include <limits.h>
  6192. #else
  6193. # include <assert.h>
  6194. #endif
  6195. Syntax error
  6196. _ACEOF
  6197. if ac_fn_c_try_cpp "$LINENO"; then :
  6198. else
  6199. # Broken: fails on valid input.
  6200. continue
  6201. fi
  6202. rm -f conftest.err conftest.i conftest.$ac_ext
  6203. # OK, works on sane cases. Now check whether nonexistent headers
  6204. # can be detected and how.
  6205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6206. /* end confdefs.h. */
  6207. #include <ac_nonexistent.h>
  6208. _ACEOF
  6209. if ac_fn_c_try_cpp "$LINENO"; then :
  6210. # Broken: success on invalid input.
  6211. continue
  6212. else
  6213. # Passes both tests.
  6214. ac_preproc_ok=:
  6215. break
  6216. fi
  6217. rm -f conftest.err conftest.i conftest.$ac_ext
  6218. done
  6219. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6220. rm -f conftest.i conftest.err conftest.$ac_ext
  6221. if $ac_preproc_ok; then :
  6222. break
  6223. fi
  6224. done
  6225. ac_cv_prog_CPP=$CPP
  6226. fi
  6227. CPP=$ac_cv_prog_CPP
  6228. else
  6229. ac_cv_prog_CPP=$CPP
  6230. fi
  6231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6232. $as_echo "$CPP" >&6; }
  6233. ac_preproc_ok=false
  6234. for ac_c_preproc_warn_flag in '' yes
  6235. do
  6236. # Use a header file that comes with gcc, so configuring glibc
  6237. # with a fresh cross-compiler works.
  6238. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6239. # <limits.h> exists even on freestanding compilers.
  6240. # On the NeXT, cc -E runs the code through the compiler's parser,
  6241. # not just through cpp. "Syntax error" is here to catch this case.
  6242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6243. /* end confdefs.h. */
  6244. #ifdef __STDC__
  6245. # include <limits.h>
  6246. #else
  6247. # include <assert.h>
  6248. #endif
  6249. Syntax error
  6250. _ACEOF
  6251. if ac_fn_c_try_cpp "$LINENO"; then :
  6252. else
  6253. # Broken: fails on valid input.
  6254. continue
  6255. fi
  6256. rm -f conftest.err conftest.i conftest.$ac_ext
  6257. # OK, works on sane cases. Now check whether nonexistent headers
  6258. # can be detected and how.
  6259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6260. /* end confdefs.h. */
  6261. #include <ac_nonexistent.h>
  6262. _ACEOF
  6263. if ac_fn_c_try_cpp "$LINENO"; then :
  6264. # Broken: success on invalid input.
  6265. continue
  6266. else
  6267. # Passes both tests.
  6268. ac_preproc_ok=:
  6269. break
  6270. fi
  6271. rm -f conftest.err conftest.i conftest.$ac_ext
  6272. done
  6273. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6274. rm -f conftest.i conftest.err conftest.$ac_ext
  6275. if $ac_preproc_ok; then :
  6276. else
  6277. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6278. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6279. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6280. See \`config.log' for more details" "$LINENO" 5; }
  6281. fi
  6282. ac_ext=c
  6283. ac_cpp='$CPP $CPPFLAGS'
  6284. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6285. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6286. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6288. $as_echo_n "checking for ANSI C header files... " >&6; }
  6289. if ${ac_cv_header_stdc+:} false; then :
  6290. $as_echo_n "(cached) " >&6
  6291. else
  6292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6293. /* end confdefs.h. */
  6294. #include <stdlib.h>
  6295. #include <stdarg.h>
  6296. #include <string.h>
  6297. #include <float.h>
  6298. int
  6299. main ()
  6300. {
  6301. ;
  6302. return 0;
  6303. }
  6304. _ACEOF
  6305. if ac_fn_c_try_compile "$LINENO"; then :
  6306. ac_cv_header_stdc=yes
  6307. else
  6308. ac_cv_header_stdc=no
  6309. fi
  6310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6311. if test $ac_cv_header_stdc = yes; then
  6312. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6314. /* end confdefs.h. */
  6315. #include <string.h>
  6316. _ACEOF
  6317. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6318. $EGREP "memchr" >/dev/null 2>&1; then :
  6319. else
  6320. ac_cv_header_stdc=no
  6321. fi
  6322. rm -f conftest*
  6323. fi
  6324. if test $ac_cv_header_stdc = yes; then
  6325. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6327. /* end confdefs.h. */
  6328. #include <stdlib.h>
  6329. _ACEOF
  6330. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6331. $EGREP "free" >/dev/null 2>&1; then :
  6332. else
  6333. ac_cv_header_stdc=no
  6334. fi
  6335. rm -f conftest*
  6336. fi
  6337. if test $ac_cv_header_stdc = yes; then
  6338. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6339. if test "$cross_compiling" = yes; then :
  6340. :
  6341. else
  6342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6343. /* end confdefs.h. */
  6344. #include <ctype.h>
  6345. #include <stdlib.h>
  6346. #if ((' ' & 0x0FF) == 0x020)
  6347. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6348. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6349. #else
  6350. # define ISLOWER(c) \
  6351. (('a' <= (c) && (c) <= 'i') \
  6352. || ('j' <= (c) && (c) <= 'r') \
  6353. || ('s' <= (c) && (c) <= 'z'))
  6354. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6355. #endif
  6356. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6357. int
  6358. main ()
  6359. {
  6360. int i;
  6361. for (i = 0; i < 256; i++)
  6362. if (XOR (islower (i), ISLOWER (i))
  6363. || toupper (i) != TOUPPER (i))
  6364. return 2;
  6365. return 0;
  6366. }
  6367. _ACEOF
  6368. if ac_fn_c_try_run "$LINENO"; then :
  6369. else
  6370. ac_cv_header_stdc=no
  6371. fi
  6372. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6373. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6374. fi
  6375. fi
  6376. fi
  6377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6378. $as_echo "$ac_cv_header_stdc" >&6; }
  6379. if test $ac_cv_header_stdc = yes; then
  6380. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6381. fi
  6382. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6383. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6384. inttypes.h stdint.h unistd.h
  6385. do :
  6386. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6387. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6388. "
  6389. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6390. cat >>confdefs.h <<_ACEOF
  6391. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6392. _ACEOF
  6393. fi
  6394. done
  6395. for ac_header in dlfcn.h
  6396. do :
  6397. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6398. "
  6399. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6400. cat >>confdefs.h <<_ACEOF
  6401. #define HAVE_DLFCN_H 1
  6402. _ACEOF
  6403. fi
  6404. done
  6405. # Set options
  6406. enable_win32_dll=yes
  6407. case $host in
  6408. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6409. if test -n "$ac_tool_prefix"; then
  6410. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6411. set dummy ${ac_tool_prefix}as; ac_word=$2
  6412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6413. $as_echo_n "checking for $ac_word... " >&6; }
  6414. if ${ac_cv_prog_AS+:} false; then :
  6415. $as_echo_n "(cached) " >&6
  6416. else
  6417. if test -n "$AS"; then
  6418. ac_cv_prog_AS="$AS" # Let the user override the test.
  6419. else
  6420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6421. for as_dir in $PATH
  6422. do
  6423. IFS=$as_save_IFS
  6424. test -z "$as_dir" && as_dir=.
  6425. for ac_exec_ext in '' $ac_executable_extensions; do
  6426. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6427. ac_cv_prog_AS="${ac_tool_prefix}as"
  6428. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6429. break 2
  6430. fi
  6431. done
  6432. done
  6433. IFS=$as_save_IFS
  6434. fi
  6435. fi
  6436. AS=$ac_cv_prog_AS
  6437. if test -n "$AS"; then
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6439. $as_echo "$AS" >&6; }
  6440. else
  6441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6442. $as_echo "no" >&6; }
  6443. fi
  6444. fi
  6445. if test -z "$ac_cv_prog_AS"; then
  6446. ac_ct_AS=$AS
  6447. # Extract the first word of "as", so it can be a program name with args.
  6448. set dummy as; ac_word=$2
  6449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6450. $as_echo_n "checking for $ac_word... " >&6; }
  6451. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6452. $as_echo_n "(cached) " >&6
  6453. else
  6454. if test -n "$ac_ct_AS"; then
  6455. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6456. else
  6457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6458. for as_dir in $PATH
  6459. do
  6460. IFS=$as_save_IFS
  6461. test -z "$as_dir" && as_dir=.
  6462. for ac_exec_ext in '' $ac_executable_extensions; do
  6463. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6464. ac_cv_prog_ac_ct_AS="as"
  6465. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6466. break 2
  6467. fi
  6468. done
  6469. done
  6470. IFS=$as_save_IFS
  6471. fi
  6472. fi
  6473. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6474. if test -n "$ac_ct_AS"; then
  6475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6476. $as_echo "$ac_ct_AS" >&6; }
  6477. else
  6478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6479. $as_echo "no" >&6; }
  6480. fi
  6481. if test "x$ac_ct_AS" = x; then
  6482. AS="false"
  6483. else
  6484. case $cross_compiling:$ac_tool_warned in
  6485. yes:)
  6486. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6487. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6488. ac_tool_warned=yes ;;
  6489. esac
  6490. AS=$ac_ct_AS
  6491. fi
  6492. else
  6493. AS="$ac_cv_prog_AS"
  6494. fi
  6495. if test -n "$ac_tool_prefix"; then
  6496. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6497. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6499. $as_echo_n "checking for $ac_word... " >&6; }
  6500. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6501. $as_echo_n "(cached) " >&6
  6502. else
  6503. if test -n "$DLLTOOL"; then
  6504. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6505. else
  6506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6507. for as_dir in $PATH
  6508. do
  6509. IFS=$as_save_IFS
  6510. test -z "$as_dir" && as_dir=.
  6511. for ac_exec_ext in '' $ac_executable_extensions; do
  6512. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6513. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6514. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6515. break 2
  6516. fi
  6517. done
  6518. done
  6519. IFS=$as_save_IFS
  6520. fi
  6521. fi
  6522. DLLTOOL=$ac_cv_prog_DLLTOOL
  6523. if test -n "$DLLTOOL"; then
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6525. $as_echo "$DLLTOOL" >&6; }
  6526. else
  6527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6528. $as_echo "no" >&6; }
  6529. fi
  6530. fi
  6531. if test -z "$ac_cv_prog_DLLTOOL"; then
  6532. ac_ct_DLLTOOL=$DLLTOOL
  6533. # Extract the first word of "dlltool", so it can be a program name with args.
  6534. set dummy dlltool; ac_word=$2
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6536. $as_echo_n "checking for $ac_word... " >&6; }
  6537. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6538. $as_echo_n "(cached) " >&6
  6539. else
  6540. if test -n "$ac_ct_DLLTOOL"; then
  6541. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6542. else
  6543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6544. for as_dir in $PATH
  6545. do
  6546. IFS=$as_save_IFS
  6547. test -z "$as_dir" && as_dir=.
  6548. for ac_exec_ext in '' $ac_executable_extensions; do
  6549. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6550. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6551. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6552. break 2
  6553. fi
  6554. done
  6555. done
  6556. IFS=$as_save_IFS
  6557. fi
  6558. fi
  6559. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6560. if test -n "$ac_ct_DLLTOOL"; then
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6562. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6563. else
  6564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6565. $as_echo "no" >&6; }
  6566. fi
  6567. if test "x$ac_ct_DLLTOOL" = x; then
  6568. DLLTOOL="false"
  6569. else
  6570. case $cross_compiling:$ac_tool_warned in
  6571. yes:)
  6572. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6573. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6574. ac_tool_warned=yes ;;
  6575. esac
  6576. DLLTOOL=$ac_ct_DLLTOOL
  6577. fi
  6578. else
  6579. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6580. fi
  6581. if test -n "$ac_tool_prefix"; then
  6582. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6583. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6585. $as_echo_n "checking for $ac_word... " >&6; }
  6586. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6587. $as_echo_n "(cached) " >&6
  6588. else
  6589. if test -n "$OBJDUMP"; then
  6590. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6591. else
  6592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6593. for as_dir in $PATH
  6594. do
  6595. IFS=$as_save_IFS
  6596. test -z "$as_dir" && as_dir=.
  6597. for ac_exec_ext in '' $ac_executable_extensions; do
  6598. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6599. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6601. break 2
  6602. fi
  6603. done
  6604. done
  6605. IFS=$as_save_IFS
  6606. fi
  6607. fi
  6608. OBJDUMP=$ac_cv_prog_OBJDUMP
  6609. if test -n "$OBJDUMP"; then
  6610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6611. $as_echo "$OBJDUMP" >&6; }
  6612. else
  6613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6614. $as_echo "no" >&6; }
  6615. fi
  6616. fi
  6617. if test -z "$ac_cv_prog_OBJDUMP"; then
  6618. ac_ct_OBJDUMP=$OBJDUMP
  6619. # Extract the first word of "objdump", so it can be a program name with args.
  6620. set dummy objdump; ac_word=$2
  6621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6622. $as_echo_n "checking for $ac_word... " >&6; }
  6623. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6624. $as_echo_n "(cached) " >&6
  6625. else
  6626. if test -n "$ac_ct_OBJDUMP"; then
  6627. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6628. else
  6629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6630. for as_dir in $PATH
  6631. do
  6632. IFS=$as_save_IFS
  6633. test -z "$as_dir" && as_dir=.
  6634. for ac_exec_ext in '' $ac_executable_extensions; do
  6635. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6636. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6638. break 2
  6639. fi
  6640. done
  6641. done
  6642. IFS=$as_save_IFS
  6643. fi
  6644. fi
  6645. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6646. if test -n "$ac_ct_OBJDUMP"; then
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6648. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6649. else
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6651. $as_echo "no" >&6; }
  6652. fi
  6653. if test "x$ac_ct_OBJDUMP" = x; then
  6654. OBJDUMP="false"
  6655. else
  6656. case $cross_compiling:$ac_tool_warned in
  6657. yes:)
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6659. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6660. ac_tool_warned=yes ;;
  6661. esac
  6662. OBJDUMP=$ac_ct_OBJDUMP
  6663. fi
  6664. else
  6665. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6666. fi
  6667. ;;
  6668. esac
  6669. test -z "$AS" && AS=as
  6670. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6671. test -z "$OBJDUMP" && OBJDUMP=objdump
  6672. enable_dlopen=no
  6673. # Check whether --enable-shared was given.
  6674. if test "${enable_shared+set}" = set; then :
  6675. enableval=$enable_shared; p=${PACKAGE-default}
  6676. case $enableval in
  6677. yes) enable_shared=yes ;;
  6678. no) enable_shared=no ;;
  6679. *)
  6680. enable_shared=no
  6681. # Look at the argument we got. We use all the common list separators.
  6682. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6683. for pkg in $enableval; do
  6684. IFS="$lt_save_ifs"
  6685. if test "X$pkg" = "X$p"; then
  6686. enable_shared=yes
  6687. fi
  6688. done
  6689. IFS="$lt_save_ifs"
  6690. ;;
  6691. esac
  6692. else
  6693. enable_shared=yes
  6694. fi
  6695. # Check whether --enable-static was given.
  6696. if test "${enable_static+set}" = set; then :
  6697. enableval=$enable_static; p=${PACKAGE-default}
  6698. case $enableval in
  6699. yes) enable_static=yes ;;
  6700. no) enable_static=no ;;
  6701. *)
  6702. enable_static=no
  6703. # Look at the argument we got. We use all the common list separators.
  6704. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6705. for pkg in $enableval; do
  6706. IFS="$lt_save_ifs"
  6707. if test "X$pkg" = "X$p"; then
  6708. enable_static=yes
  6709. fi
  6710. done
  6711. IFS="$lt_save_ifs"
  6712. ;;
  6713. esac
  6714. else
  6715. enable_static=yes
  6716. fi
  6717. # Check whether --with-pic was given.
  6718. if test "${with_pic+set}" = set; then :
  6719. withval=$with_pic; lt_p=${PACKAGE-default}
  6720. case $withval in
  6721. yes|no) pic_mode=$withval ;;
  6722. *)
  6723. pic_mode=default
  6724. # Look at the argument we got. We use all the common list separators.
  6725. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6726. for lt_pkg in $withval; do
  6727. IFS="$lt_save_ifs"
  6728. if test "X$lt_pkg" = "X$lt_p"; then
  6729. pic_mode=yes
  6730. fi
  6731. done
  6732. IFS="$lt_save_ifs"
  6733. ;;
  6734. esac
  6735. else
  6736. pic_mode=default
  6737. fi
  6738. test -z "$pic_mode" && pic_mode=default
  6739. # Check whether --enable-fast-install was given.
  6740. if test "${enable_fast_install+set}" = set; then :
  6741. enableval=$enable_fast_install; p=${PACKAGE-default}
  6742. case $enableval in
  6743. yes) enable_fast_install=yes ;;
  6744. no) enable_fast_install=no ;;
  6745. *)
  6746. enable_fast_install=no
  6747. # Look at the argument we got. We use all the common list separators.
  6748. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6749. for pkg in $enableval; do
  6750. IFS="$lt_save_ifs"
  6751. if test "X$pkg" = "X$p"; then
  6752. enable_fast_install=yes
  6753. fi
  6754. done
  6755. IFS="$lt_save_ifs"
  6756. ;;
  6757. esac
  6758. else
  6759. enable_fast_install=yes
  6760. fi
  6761. # This can be used to rebuild libtool when needed
  6762. LIBTOOL_DEPS="$ltmain"
  6763. # Always use our own libtool.
  6764. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6765. test -z "$LN_S" && LN_S="ln -s"
  6766. if test -n "${ZSH_VERSION+set}" ; then
  6767. setopt NO_GLOB_SUBST
  6768. fi
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6770. $as_echo_n "checking for objdir... " >&6; }
  6771. if ${lt_cv_objdir+:} false; then :
  6772. $as_echo_n "(cached) " >&6
  6773. else
  6774. rm -f .libs 2>/dev/null
  6775. mkdir .libs 2>/dev/null
  6776. if test -d .libs; then
  6777. lt_cv_objdir=.libs
  6778. else
  6779. # MS-DOS does not allow filenames that begin with a dot.
  6780. lt_cv_objdir=_libs
  6781. fi
  6782. rmdir .libs 2>/dev/null
  6783. fi
  6784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6785. $as_echo "$lt_cv_objdir" >&6; }
  6786. objdir=$lt_cv_objdir
  6787. cat >>confdefs.h <<_ACEOF
  6788. #define LT_OBJDIR "$lt_cv_objdir/"
  6789. _ACEOF
  6790. case $host_os in
  6791. aix3*)
  6792. # AIX sometimes has problems with the GCC collect2 program. For some
  6793. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6794. # vanish in a puff of smoke.
  6795. if test "X${COLLECT_NAMES+set}" != Xset; then
  6796. COLLECT_NAMES=
  6797. export COLLECT_NAMES
  6798. fi
  6799. ;;
  6800. esac
  6801. # Global variables:
  6802. ofile=libtool
  6803. can_build_shared=yes
  6804. # All known linkers require a `.a' archive for static linking (except MSVC,
  6805. # which needs '.lib').
  6806. libext=a
  6807. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6808. old_CC="$CC"
  6809. old_CFLAGS="$CFLAGS"
  6810. # Set sane defaults for various variables
  6811. test -z "$CC" && CC=cc
  6812. test -z "$LTCC" && LTCC=$CC
  6813. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6814. test -z "$LD" && LD=ld
  6815. test -z "$ac_objext" && ac_objext=o
  6816. for cc_temp in $compiler""; do
  6817. case $cc_temp in
  6818. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6819. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6820. \-*) ;;
  6821. *) break;;
  6822. esac
  6823. done
  6824. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6825. # Only perform the check for file, if the check method requires it
  6826. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6827. case $deplibs_check_method in
  6828. file_magic*)
  6829. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6831. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6832. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6833. $as_echo_n "(cached) " >&6
  6834. else
  6835. case $MAGIC_CMD in
  6836. [\\/*] | ?:[\\/]*)
  6837. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6838. ;;
  6839. *)
  6840. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6841. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6842. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6843. for ac_dir in $ac_dummy; do
  6844. IFS="$lt_save_ifs"
  6845. test -z "$ac_dir" && ac_dir=.
  6846. if test -f $ac_dir/${ac_tool_prefix}file; then
  6847. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6848. if test -n "$file_magic_test_file"; then
  6849. case $deplibs_check_method in
  6850. "file_magic "*)
  6851. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6852. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6853. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6854. $EGREP "$file_magic_regex" > /dev/null; then
  6855. :
  6856. else
  6857. cat <<_LT_EOF 1>&2
  6858. *** Warning: the command libtool uses to detect shared libraries,
  6859. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6860. *** The result is that libtool may fail to recognize shared libraries
  6861. *** as such. This will affect the creation of libtool libraries that
  6862. *** depend on shared libraries, but programs linked with such libtool
  6863. *** libraries will work regardless of this problem. Nevertheless, you
  6864. *** may want to report the problem to your system manager and/or to
  6865. *** bug-libtool@gnu.org
  6866. _LT_EOF
  6867. fi ;;
  6868. esac
  6869. fi
  6870. break
  6871. fi
  6872. done
  6873. IFS="$lt_save_ifs"
  6874. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6875. ;;
  6876. esac
  6877. fi
  6878. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6879. if test -n "$MAGIC_CMD"; then
  6880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6881. $as_echo "$MAGIC_CMD" >&6; }
  6882. else
  6883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6884. $as_echo "no" >&6; }
  6885. fi
  6886. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6887. if test -n "$ac_tool_prefix"; then
  6888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6889. $as_echo_n "checking for file... " >&6; }
  6890. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6891. $as_echo_n "(cached) " >&6
  6892. else
  6893. case $MAGIC_CMD in
  6894. [\\/*] | ?:[\\/]*)
  6895. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6896. ;;
  6897. *)
  6898. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6899. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6900. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6901. for ac_dir in $ac_dummy; do
  6902. IFS="$lt_save_ifs"
  6903. test -z "$ac_dir" && ac_dir=.
  6904. if test -f $ac_dir/file; then
  6905. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6906. if test -n "$file_magic_test_file"; then
  6907. case $deplibs_check_method in
  6908. "file_magic "*)
  6909. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6910. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6911. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6912. $EGREP "$file_magic_regex" > /dev/null; then
  6913. :
  6914. else
  6915. cat <<_LT_EOF 1>&2
  6916. *** Warning: the command libtool uses to detect shared libraries,
  6917. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6918. *** The result is that libtool may fail to recognize shared libraries
  6919. *** as such. This will affect the creation of libtool libraries that
  6920. *** depend on shared libraries, but programs linked with such libtool
  6921. *** libraries will work regardless of this problem. Nevertheless, you
  6922. *** may want to report the problem to your system manager and/or to
  6923. *** bug-libtool@gnu.org
  6924. _LT_EOF
  6925. fi ;;
  6926. esac
  6927. fi
  6928. break
  6929. fi
  6930. done
  6931. IFS="$lt_save_ifs"
  6932. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6933. ;;
  6934. esac
  6935. fi
  6936. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6937. if test -n "$MAGIC_CMD"; then
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6939. $as_echo "$MAGIC_CMD" >&6; }
  6940. else
  6941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6942. $as_echo "no" >&6; }
  6943. fi
  6944. else
  6945. MAGIC_CMD=:
  6946. fi
  6947. fi
  6948. fi
  6949. ;;
  6950. esac
  6951. # Use C for the default configuration in the libtool script
  6952. lt_save_CC="$CC"
  6953. ac_ext=c
  6954. ac_cpp='$CPP $CPPFLAGS'
  6955. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6956. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6957. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6958. # Source file extension for C test sources.
  6959. ac_ext=c
  6960. # Object file extension for compiled C test sources.
  6961. objext=o
  6962. objext=$objext
  6963. # Code to be used in simple compile tests
  6964. lt_simple_compile_test_code="int some_variable = 0;"
  6965. # Code to be used in simple link tests
  6966. lt_simple_link_test_code='int main(){return(0);}'
  6967. # If no C compiler was specified, use CC.
  6968. LTCC=${LTCC-"$CC"}
  6969. # If no C compiler flags were specified, use CFLAGS.
  6970. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6971. # Allow CC to be a program name with arguments.
  6972. compiler=$CC
  6973. # Save the default compiler, since it gets overwritten when the other
  6974. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6975. compiler_DEFAULT=$CC
  6976. # save warnings/boilerplate of simple test code
  6977. ac_outfile=conftest.$ac_objext
  6978. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6979. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6980. _lt_compiler_boilerplate=`cat conftest.err`
  6981. $RM conftest*
  6982. ac_outfile=conftest.$ac_objext
  6983. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6984. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6985. _lt_linker_boilerplate=`cat conftest.err`
  6986. $RM -r conftest*
  6987. ## CAVEAT EMPTOR:
  6988. ## There is no encapsulation within the following macros, do not change
  6989. ## the running order or otherwise move them around unless you know exactly
  6990. ## what you are doing...
  6991. if test -n "$compiler"; then
  6992. lt_prog_compiler_no_builtin_flag=
  6993. if test "$GCC" = yes; then
  6994. case $cc_basename in
  6995. nvcc*)
  6996. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6997. *)
  6998. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6999. esac
  7000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7001. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7002. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7003. $as_echo_n "(cached) " >&6
  7004. else
  7005. lt_cv_prog_compiler_rtti_exceptions=no
  7006. ac_outfile=conftest.$ac_objext
  7007. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7008. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7009. # Insert the option either (1) after the last *FLAGS variable, or
  7010. # (2) before a word containing "conftest.", or (3) at the end.
  7011. # Note that $ac_compile itself does not contain backslashes and begins
  7012. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7013. # The option is referenced via a variable to avoid confusing sed.
  7014. lt_compile=`echo "$ac_compile" | $SED \
  7015. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7016. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7017. -e 's:$: $lt_compiler_flag:'`
  7018. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7019. (eval "$lt_compile" 2>conftest.err)
  7020. ac_status=$?
  7021. cat conftest.err >&5
  7022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7023. if (exit $ac_status) && test -s "$ac_outfile"; then
  7024. # The compiler can only warn and ignore the option if not recognized
  7025. # So say no if there are warnings other than the usual output.
  7026. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7027. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7028. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7029. lt_cv_prog_compiler_rtti_exceptions=yes
  7030. fi
  7031. fi
  7032. $RM conftest*
  7033. fi
  7034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7035. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7036. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7037. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7038. else
  7039. :
  7040. fi
  7041. fi
  7042. lt_prog_compiler_wl=
  7043. lt_prog_compiler_pic=
  7044. lt_prog_compiler_static=
  7045. if test "$GCC" = yes; then
  7046. lt_prog_compiler_wl='-Wl,'
  7047. lt_prog_compiler_static='-static'
  7048. case $host_os in
  7049. aix*)
  7050. # All AIX code is PIC.
  7051. if test "$host_cpu" = ia64; then
  7052. # AIX 5 now supports IA64 processor
  7053. lt_prog_compiler_static='-Bstatic'
  7054. fi
  7055. ;;
  7056. amigaos*)
  7057. case $host_cpu in
  7058. powerpc)
  7059. # see comment about AmigaOS4 .so support
  7060. lt_prog_compiler_pic='-fPIC'
  7061. ;;
  7062. m68k)
  7063. # FIXME: we need at least 68020 code to build shared libraries, but
  7064. # adding the `-m68020' flag to GCC prevents building anything better,
  7065. # like `-m68040'.
  7066. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7067. ;;
  7068. esac
  7069. ;;
  7070. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7071. # PIC is the default for these OSes.
  7072. ;;
  7073. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7074. # This hack is so that the source file can tell whether it is being
  7075. # built for inclusion in a dll (and should export symbols for example).
  7076. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7077. # (--disable-auto-import) libraries
  7078. lt_prog_compiler_pic='-DDLL_EXPORT'
  7079. ;;
  7080. darwin* | rhapsody*)
  7081. # PIC is the default on this platform
  7082. # Common symbols not allowed in MH_DYLIB files
  7083. lt_prog_compiler_pic='-fno-common'
  7084. ;;
  7085. haiku*)
  7086. # PIC is the default for Haiku.
  7087. # The "-static" flag exists, but is broken.
  7088. lt_prog_compiler_static=
  7089. ;;
  7090. hpux*)
  7091. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7092. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7093. # sets the default TLS model and affects inlining.
  7094. case $host_cpu in
  7095. hppa*64*)
  7096. # +Z the default
  7097. ;;
  7098. *)
  7099. lt_prog_compiler_pic='-fPIC'
  7100. ;;
  7101. esac
  7102. ;;
  7103. interix[3-9]*)
  7104. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7105. # Instead, we relocate shared libraries at runtime.
  7106. ;;
  7107. msdosdjgpp*)
  7108. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7109. # on systems that don't support them.
  7110. lt_prog_compiler_can_build_shared=no
  7111. enable_shared=no
  7112. ;;
  7113. *nto* | *qnx*)
  7114. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7115. # it will coredump.
  7116. lt_prog_compiler_pic='-fPIC -shared'
  7117. ;;
  7118. sysv4*MP*)
  7119. if test -d /usr/nec; then
  7120. lt_prog_compiler_pic=-Kconform_pic
  7121. fi
  7122. ;;
  7123. *)
  7124. lt_prog_compiler_pic='-fPIC'
  7125. ;;
  7126. esac
  7127. case $cc_basename in
  7128. nvcc*) # Cuda Compiler Driver 2.2
  7129. lt_prog_compiler_wl='-Xlinker '
  7130. if test -n "$lt_prog_compiler_pic"; then
  7131. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7132. fi
  7133. ;;
  7134. esac
  7135. else
  7136. # PORTME Check for flag to pass linker flags through the system compiler.
  7137. case $host_os in
  7138. aix*)
  7139. lt_prog_compiler_wl='-Wl,'
  7140. if test "$host_cpu" = ia64; then
  7141. # AIX 5 now supports IA64 processor
  7142. lt_prog_compiler_static='-Bstatic'
  7143. else
  7144. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7145. fi
  7146. ;;
  7147. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7148. # This hack is so that the source file can tell whether it is being
  7149. # built for inclusion in a dll (and should export symbols for example).
  7150. lt_prog_compiler_pic='-DDLL_EXPORT'
  7151. ;;
  7152. hpux9* | hpux10* | hpux11*)
  7153. lt_prog_compiler_wl='-Wl,'
  7154. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7155. # not for PA HP-UX.
  7156. case $host_cpu in
  7157. hppa*64*|ia64*)
  7158. # +Z the default
  7159. ;;
  7160. *)
  7161. lt_prog_compiler_pic='+Z'
  7162. ;;
  7163. esac
  7164. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7165. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7166. ;;
  7167. irix5* | irix6* | nonstopux*)
  7168. lt_prog_compiler_wl='-Wl,'
  7169. # PIC (with -KPIC) is the default.
  7170. lt_prog_compiler_static='-non_shared'
  7171. ;;
  7172. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7173. case $cc_basename in
  7174. # old Intel for x86_64 which still supported -KPIC.
  7175. ecc*)
  7176. lt_prog_compiler_wl='-Wl,'
  7177. lt_prog_compiler_pic='-KPIC'
  7178. lt_prog_compiler_static='-static'
  7179. ;;
  7180. # icc used to be incompatible with GCC.
  7181. # ICC 10 doesn't accept -KPIC any more.
  7182. icc* | ifort*)
  7183. lt_prog_compiler_wl='-Wl,'
  7184. lt_prog_compiler_pic='-fPIC'
  7185. lt_prog_compiler_static='-static'
  7186. ;;
  7187. # Lahey Fortran 8.1.
  7188. lf95*)
  7189. lt_prog_compiler_wl='-Wl,'
  7190. lt_prog_compiler_pic='--shared'
  7191. lt_prog_compiler_static='--static'
  7192. ;;
  7193. nagfor*)
  7194. # NAG Fortran compiler
  7195. lt_prog_compiler_wl='-Wl,-Wl,,'
  7196. lt_prog_compiler_pic='-PIC'
  7197. lt_prog_compiler_static='-Bstatic'
  7198. ;;
  7199. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7200. # Portland Group compilers (*not* the Pentium gcc compiler,
  7201. # which looks to be a dead project)
  7202. lt_prog_compiler_wl='-Wl,'
  7203. lt_prog_compiler_pic='-fpic'
  7204. lt_prog_compiler_static='-Bstatic'
  7205. ;;
  7206. ccc*)
  7207. lt_prog_compiler_wl='-Wl,'
  7208. # All Alpha code is PIC.
  7209. lt_prog_compiler_static='-non_shared'
  7210. ;;
  7211. xl* | bgxl* | bgf* | mpixl*)
  7212. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7213. lt_prog_compiler_wl='-Wl,'
  7214. lt_prog_compiler_pic='-qpic'
  7215. lt_prog_compiler_static='-qstaticlink'
  7216. ;;
  7217. *)
  7218. case `$CC -V 2>&1 | sed 5q` in
  7219. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7220. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7221. lt_prog_compiler_pic='-KPIC'
  7222. lt_prog_compiler_static='-Bstatic'
  7223. lt_prog_compiler_wl=''
  7224. ;;
  7225. *Sun\ F* | *Sun*Fortran*)
  7226. lt_prog_compiler_pic='-KPIC'
  7227. lt_prog_compiler_static='-Bstatic'
  7228. lt_prog_compiler_wl='-Qoption ld '
  7229. ;;
  7230. *Sun\ C*)
  7231. # Sun C 5.9
  7232. lt_prog_compiler_pic='-KPIC'
  7233. lt_prog_compiler_static='-Bstatic'
  7234. lt_prog_compiler_wl='-Wl,'
  7235. ;;
  7236. *Intel*\ [CF]*Compiler*)
  7237. lt_prog_compiler_wl='-Wl,'
  7238. lt_prog_compiler_pic='-fPIC'
  7239. lt_prog_compiler_static='-static'
  7240. ;;
  7241. *Portland\ Group*)
  7242. lt_prog_compiler_wl='-Wl,'
  7243. lt_prog_compiler_pic='-fpic'
  7244. lt_prog_compiler_static='-Bstatic'
  7245. ;;
  7246. esac
  7247. ;;
  7248. esac
  7249. ;;
  7250. newsos6)
  7251. lt_prog_compiler_pic='-KPIC'
  7252. lt_prog_compiler_static='-Bstatic'
  7253. ;;
  7254. *nto* | *qnx*)
  7255. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7256. # it will coredump.
  7257. lt_prog_compiler_pic='-fPIC -shared'
  7258. ;;
  7259. osf3* | osf4* | osf5*)
  7260. lt_prog_compiler_wl='-Wl,'
  7261. # All OSF/1 code is PIC.
  7262. lt_prog_compiler_static='-non_shared'
  7263. ;;
  7264. rdos*)
  7265. lt_prog_compiler_static='-non_shared'
  7266. ;;
  7267. solaris*)
  7268. lt_prog_compiler_pic='-KPIC'
  7269. lt_prog_compiler_static='-Bstatic'
  7270. case $cc_basename in
  7271. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7272. lt_prog_compiler_wl='-Qoption ld ';;
  7273. *)
  7274. lt_prog_compiler_wl='-Wl,';;
  7275. esac
  7276. ;;
  7277. sunos4*)
  7278. lt_prog_compiler_wl='-Qoption ld '
  7279. lt_prog_compiler_pic='-PIC'
  7280. lt_prog_compiler_static='-Bstatic'
  7281. ;;
  7282. sysv4 | sysv4.2uw2* | sysv4.3*)
  7283. lt_prog_compiler_wl='-Wl,'
  7284. lt_prog_compiler_pic='-KPIC'
  7285. lt_prog_compiler_static='-Bstatic'
  7286. ;;
  7287. sysv4*MP*)
  7288. if test -d /usr/nec ;then
  7289. lt_prog_compiler_pic='-Kconform_pic'
  7290. lt_prog_compiler_static='-Bstatic'
  7291. fi
  7292. ;;
  7293. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7294. lt_prog_compiler_wl='-Wl,'
  7295. lt_prog_compiler_pic='-KPIC'
  7296. lt_prog_compiler_static='-Bstatic'
  7297. ;;
  7298. unicos*)
  7299. lt_prog_compiler_wl='-Wl,'
  7300. lt_prog_compiler_can_build_shared=no
  7301. ;;
  7302. uts4*)
  7303. lt_prog_compiler_pic='-pic'
  7304. lt_prog_compiler_static='-Bstatic'
  7305. ;;
  7306. *)
  7307. lt_prog_compiler_can_build_shared=no
  7308. ;;
  7309. esac
  7310. fi
  7311. case $host_os in
  7312. # For platforms which do not support PIC, -DPIC is meaningless:
  7313. *djgpp*)
  7314. lt_prog_compiler_pic=
  7315. ;;
  7316. *)
  7317. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7318. ;;
  7319. esac
  7320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7321. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7322. if ${lt_cv_prog_compiler_pic+:} false; then :
  7323. $as_echo_n "(cached) " >&6
  7324. else
  7325. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7326. fi
  7327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7328. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7329. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7330. #
  7331. # Check to make sure the PIC flag actually works.
  7332. #
  7333. if test -n "$lt_prog_compiler_pic"; then
  7334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7335. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7336. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7337. $as_echo_n "(cached) " >&6
  7338. else
  7339. lt_cv_prog_compiler_pic_works=no
  7340. ac_outfile=conftest.$ac_objext
  7341. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7342. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7343. # Insert the option either (1) after the last *FLAGS variable, or
  7344. # (2) before a word containing "conftest.", or (3) at the end.
  7345. # Note that $ac_compile itself does not contain backslashes and begins
  7346. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7347. # The option is referenced via a variable to avoid confusing sed.
  7348. lt_compile=`echo "$ac_compile" | $SED \
  7349. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7350. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7351. -e 's:$: $lt_compiler_flag:'`
  7352. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7353. (eval "$lt_compile" 2>conftest.err)
  7354. ac_status=$?
  7355. cat conftest.err >&5
  7356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7357. if (exit $ac_status) && test -s "$ac_outfile"; then
  7358. # The compiler can only warn and ignore the option if not recognized
  7359. # So say no if there are warnings other than the usual output.
  7360. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7361. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7362. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7363. lt_cv_prog_compiler_pic_works=yes
  7364. fi
  7365. fi
  7366. $RM conftest*
  7367. fi
  7368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7369. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7370. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7371. case $lt_prog_compiler_pic in
  7372. "" | " "*) ;;
  7373. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7374. esac
  7375. else
  7376. lt_prog_compiler_pic=
  7377. lt_prog_compiler_can_build_shared=no
  7378. fi
  7379. fi
  7380. #
  7381. # Check to make sure the static flag actually works.
  7382. #
  7383. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7385. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7386. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7387. $as_echo_n "(cached) " >&6
  7388. else
  7389. lt_cv_prog_compiler_static_works=no
  7390. save_LDFLAGS="$LDFLAGS"
  7391. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7392. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7393. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7394. # The linker can only warn and ignore the option if not recognized
  7395. # So say no if there are warnings
  7396. if test -s conftest.err; then
  7397. # Append any errors to the config.log.
  7398. cat conftest.err 1>&5
  7399. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7400. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7401. if diff conftest.exp conftest.er2 >/dev/null; then
  7402. lt_cv_prog_compiler_static_works=yes
  7403. fi
  7404. else
  7405. lt_cv_prog_compiler_static_works=yes
  7406. fi
  7407. fi
  7408. $RM -r conftest*
  7409. LDFLAGS="$save_LDFLAGS"
  7410. fi
  7411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7412. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7413. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7414. :
  7415. else
  7416. lt_prog_compiler_static=
  7417. fi
  7418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7419. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7420. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7421. $as_echo_n "(cached) " >&6
  7422. else
  7423. lt_cv_prog_compiler_c_o=no
  7424. $RM -r conftest 2>/dev/null
  7425. mkdir conftest
  7426. cd conftest
  7427. mkdir out
  7428. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7429. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7430. # Insert the option either (1) after the last *FLAGS variable, or
  7431. # (2) before a word containing "conftest.", or (3) at the end.
  7432. # Note that $ac_compile itself does not contain backslashes and begins
  7433. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7434. lt_compile=`echo "$ac_compile" | $SED \
  7435. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7436. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7437. -e 's:$: $lt_compiler_flag:'`
  7438. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7439. (eval "$lt_compile" 2>out/conftest.err)
  7440. ac_status=$?
  7441. cat out/conftest.err >&5
  7442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7443. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7444. then
  7445. # The compiler can only warn and ignore the option if not recognized
  7446. # So say no if there are warnings
  7447. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7448. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7449. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7450. lt_cv_prog_compiler_c_o=yes
  7451. fi
  7452. fi
  7453. chmod u+w . 2>&5
  7454. $RM conftest*
  7455. # SGI C++ compiler will create directory out/ii_files/ for
  7456. # template instantiation
  7457. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7458. $RM out/* && rmdir out
  7459. cd ..
  7460. $RM -r conftest
  7461. $RM conftest*
  7462. fi
  7463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7464. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7466. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7467. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7468. $as_echo_n "(cached) " >&6
  7469. else
  7470. lt_cv_prog_compiler_c_o=no
  7471. $RM -r conftest 2>/dev/null
  7472. mkdir conftest
  7473. cd conftest
  7474. mkdir out
  7475. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7476. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7477. # Insert the option either (1) after the last *FLAGS variable, or
  7478. # (2) before a word containing "conftest.", or (3) at the end.
  7479. # Note that $ac_compile itself does not contain backslashes and begins
  7480. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7481. lt_compile=`echo "$ac_compile" | $SED \
  7482. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7483. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7484. -e 's:$: $lt_compiler_flag:'`
  7485. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7486. (eval "$lt_compile" 2>out/conftest.err)
  7487. ac_status=$?
  7488. cat out/conftest.err >&5
  7489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7490. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7491. then
  7492. # The compiler can only warn and ignore the option if not recognized
  7493. # So say no if there are warnings
  7494. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7495. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7496. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7497. lt_cv_prog_compiler_c_o=yes
  7498. fi
  7499. fi
  7500. chmod u+w . 2>&5
  7501. $RM conftest*
  7502. # SGI C++ compiler will create directory out/ii_files/ for
  7503. # template instantiation
  7504. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7505. $RM out/* && rmdir out
  7506. cd ..
  7507. $RM -r conftest
  7508. $RM conftest*
  7509. fi
  7510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7511. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7512. hard_links="nottested"
  7513. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7514. # do not overwrite the value of need_locks provided by the user
  7515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7516. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7517. hard_links=yes
  7518. $RM conftest*
  7519. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7520. touch conftest.a
  7521. ln conftest.a conftest.b 2>&5 || hard_links=no
  7522. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7524. $as_echo "$hard_links" >&6; }
  7525. if test "$hard_links" = no; then
  7526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7527. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7528. need_locks=warn
  7529. fi
  7530. else
  7531. need_locks=no
  7532. fi
  7533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7534. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7535. runpath_var=
  7536. allow_undefined_flag=
  7537. always_export_symbols=no
  7538. archive_cmds=
  7539. archive_expsym_cmds=
  7540. compiler_needs_object=no
  7541. enable_shared_with_static_runtimes=no
  7542. export_dynamic_flag_spec=
  7543. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7544. hardcode_automatic=no
  7545. hardcode_direct=no
  7546. hardcode_direct_absolute=no
  7547. hardcode_libdir_flag_spec=
  7548. hardcode_libdir_separator=
  7549. hardcode_minus_L=no
  7550. hardcode_shlibpath_var=unsupported
  7551. inherit_rpath=no
  7552. link_all_deplibs=unknown
  7553. module_cmds=
  7554. module_expsym_cmds=
  7555. old_archive_from_new_cmds=
  7556. old_archive_from_expsyms_cmds=
  7557. thread_safe_flag_spec=
  7558. whole_archive_flag_spec=
  7559. # include_expsyms should be a list of space-separated symbols to be *always*
  7560. # included in the symbol list
  7561. include_expsyms=
  7562. # exclude_expsyms can be an extended regexp of symbols to exclude
  7563. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7564. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7565. # as well as any symbol that contains `d'.
  7566. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7567. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7568. # platforms (ab)use it in PIC code, but their linkers get confused if
  7569. # the symbol is explicitly referenced. Since portable code cannot
  7570. # rely on this symbol name, it's probably fine to never include it in
  7571. # preloaded symbol tables.
  7572. # Exclude shared library initialization/finalization symbols.
  7573. extract_expsyms_cmds=
  7574. case $host_os in
  7575. cygwin* | mingw* | pw32* | cegcc*)
  7576. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7577. # When not using gcc, we currently assume that we are using
  7578. # Microsoft Visual C++.
  7579. if test "$GCC" != yes; then
  7580. with_gnu_ld=no
  7581. fi
  7582. ;;
  7583. interix*)
  7584. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7585. with_gnu_ld=yes
  7586. ;;
  7587. openbsd*)
  7588. with_gnu_ld=no
  7589. ;;
  7590. esac
  7591. ld_shlibs=yes
  7592. # On some targets, GNU ld is compatible enough with the native linker
  7593. # that we're better off using the native interface for both.
  7594. lt_use_gnu_ld_interface=no
  7595. if test "$with_gnu_ld" = yes; then
  7596. case $host_os in
  7597. aix*)
  7598. # The AIX port of GNU ld has always aspired to compatibility
  7599. # with the native linker. However, as the warning in the GNU ld
  7600. # block says, versions before 2.19.5* couldn't really create working
  7601. # shared libraries, regardless of the interface used.
  7602. case `$LD -v 2>&1` in
  7603. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7604. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7605. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7606. *)
  7607. lt_use_gnu_ld_interface=yes
  7608. ;;
  7609. esac
  7610. ;;
  7611. *)
  7612. lt_use_gnu_ld_interface=yes
  7613. ;;
  7614. esac
  7615. fi
  7616. if test "$lt_use_gnu_ld_interface" = yes; then
  7617. # If archive_cmds runs LD, not CC, wlarc should be empty
  7618. wlarc='${wl}'
  7619. # Set some defaults for GNU ld with shared library support. These
  7620. # are reset later if shared libraries are not supported. Putting them
  7621. # here allows them to be overridden if necessary.
  7622. runpath_var=LD_RUN_PATH
  7623. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7624. export_dynamic_flag_spec='${wl}--export-dynamic'
  7625. # ancient GNU ld didn't support --whole-archive et. al.
  7626. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7627. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7628. else
  7629. whole_archive_flag_spec=
  7630. fi
  7631. supports_anon_versioning=no
  7632. case `$LD -v 2>&1` in
  7633. *GNU\ gold*) supports_anon_versioning=yes ;;
  7634. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7635. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7636. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7637. *\ 2.11.*) ;; # other 2.11 versions
  7638. *) supports_anon_versioning=yes ;;
  7639. esac
  7640. # See if GNU ld supports shared libraries.
  7641. case $host_os in
  7642. aix[3-9]*)
  7643. # On AIX/PPC, the GNU linker is very broken
  7644. if test "$host_cpu" != ia64; then
  7645. ld_shlibs=no
  7646. cat <<_LT_EOF 1>&2
  7647. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7648. *** to be unable to reliably create shared libraries on AIX.
  7649. *** Therefore, libtool is disabling shared libraries support. If you
  7650. *** really care for shared libraries, you may want to install binutils
  7651. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7652. *** You will then need to restart the configuration process.
  7653. _LT_EOF
  7654. fi
  7655. ;;
  7656. amigaos*)
  7657. case $host_cpu in
  7658. powerpc)
  7659. # see comment about AmigaOS4 .so support
  7660. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7661. archive_expsym_cmds=''
  7662. ;;
  7663. m68k)
  7664. 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)'
  7665. hardcode_libdir_flag_spec='-L$libdir'
  7666. hardcode_minus_L=yes
  7667. ;;
  7668. esac
  7669. ;;
  7670. beos*)
  7671. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7672. allow_undefined_flag=unsupported
  7673. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7674. # support --undefined. This deserves some investigation. FIXME
  7675. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7676. else
  7677. ld_shlibs=no
  7678. fi
  7679. ;;
  7680. cygwin* | mingw* | pw32* | cegcc*)
  7681. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7682. # as there is no search path for DLLs.
  7683. hardcode_libdir_flag_spec='-L$libdir'
  7684. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7685. allow_undefined_flag=unsupported
  7686. always_export_symbols=no
  7687. enable_shared_with_static_runtimes=yes
  7688. 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'
  7689. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7690. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7691. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7692. # If the export-symbols file already is a .def file (1st line
  7693. # is EXPORTS), use it as is; otherwise, prepend...
  7694. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7695. cp $export_symbols $output_objdir/$soname.def;
  7696. else
  7697. echo EXPORTS > $output_objdir/$soname.def;
  7698. cat $export_symbols >> $output_objdir/$soname.def;
  7699. fi~
  7700. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7701. else
  7702. ld_shlibs=no
  7703. fi
  7704. ;;
  7705. haiku*)
  7706. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7707. link_all_deplibs=yes
  7708. ;;
  7709. interix[3-9]*)
  7710. hardcode_direct=no
  7711. hardcode_shlibpath_var=no
  7712. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7713. export_dynamic_flag_spec='${wl}-E'
  7714. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7715. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7716. # default) and relocated if they conflict, which is a slow very memory
  7717. # consuming and fragmenting process. To avoid this, we pick a random,
  7718. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7719. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7720. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7721. 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'
  7722. ;;
  7723. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7724. tmp_diet=no
  7725. if test "$host_os" = linux-dietlibc; then
  7726. case $cc_basename in
  7727. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7728. esac
  7729. fi
  7730. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7731. && test "$tmp_diet" = no
  7732. then
  7733. tmp_addflag=' $pic_flag'
  7734. tmp_sharedflag='-shared'
  7735. case $cc_basename,$host_cpu in
  7736. pgcc*) # Portland Group C compiler
  7737. 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'
  7738. tmp_addflag=' $pic_flag'
  7739. ;;
  7740. pgf77* | pgf90* | pgf95* | pgfortran*)
  7741. # Portland Group f77 and f90 compilers
  7742. 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'
  7743. tmp_addflag=' $pic_flag -Mnomain' ;;
  7744. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7745. tmp_addflag=' -i_dynamic' ;;
  7746. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7747. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7748. ifc* | ifort*) # Intel Fortran compiler
  7749. tmp_addflag=' -nofor_main' ;;
  7750. lf95*) # Lahey Fortran 8.1
  7751. whole_archive_flag_spec=
  7752. tmp_sharedflag='--shared' ;;
  7753. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7754. tmp_sharedflag='-qmkshrobj'
  7755. tmp_addflag= ;;
  7756. nvcc*) # Cuda Compiler Driver 2.2
  7757. 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'
  7758. compiler_needs_object=yes
  7759. ;;
  7760. esac
  7761. case `$CC -V 2>&1 | sed 5q` in
  7762. *Sun\ C*) # Sun C 5.9
  7763. 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'
  7764. compiler_needs_object=yes
  7765. tmp_sharedflag='-G' ;;
  7766. *Sun\ F*) # Sun Fortran 8.3
  7767. tmp_sharedflag='-G' ;;
  7768. esac
  7769. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7770. if test "x$supports_anon_versioning" = xyes; then
  7771. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7772. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7773. echo "local: *; };" >> $output_objdir/$libname.ver~
  7774. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7775. fi
  7776. case $cc_basename in
  7777. xlf* | bgf* | bgxlf* | mpixlf*)
  7778. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7779. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7780. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7781. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7782. if test "x$supports_anon_versioning" = xyes; then
  7783. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7784. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7785. echo "local: *; };" >> $output_objdir/$libname.ver~
  7786. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7787. fi
  7788. ;;
  7789. esac
  7790. else
  7791. ld_shlibs=no
  7792. fi
  7793. ;;
  7794. netbsd*)
  7795. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7796. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7797. wlarc=
  7798. else
  7799. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7800. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7801. fi
  7802. ;;
  7803. solaris*)
  7804. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7805. ld_shlibs=no
  7806. cat <<_LT_EOF 1>&2
  7807. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7808. *** create shared libraries on Solaris systems. Therefore, libtool
  7809. *** is disabling shared libraries support. We urge you to upgrade GNU
  7810. *** binutils to release 2.9.1 or newer. Another option is to modify
  7811. *** your PATH or compiler configuration so that the native linker is
  7812. *** used, and then restart.
  7813. _LT_EOF
  7814. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7815. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7816. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7817. else
  7818. ld_shlibs=no
  7819. fi
  7820. ;;
  7821. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7822. case `$LD -v 2>&1` in
  7823. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7824. ld_shlibs=no
  7825. cat <<_LT_EOF 1>&2
  7826. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7827. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7828. *** is disabling shared libraries support. We urge you to upgrade GNU
  7829. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7830. *** your PATH or compiler configuration so that the native linker is
  7831. *** used, and then restart.
  7832. _LT_EOF
  7833. ;;
  7834. *)
  7835. # For security reasons, it is highly recommended that you always
  7836. # use absolute paths for naming shared libraries, and exclude the
  7837. # DT_RUNPATH tag from executables and libraries. But doing so
  7838. # requires that you compile everything twice, which is a pain.
  7839. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7840. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7841. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7842. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7843. else
  7844. ld_shlibs=no
  7845. fi
  7846. ;;
  7847. esac
  7848. ;;
  7849. sunos4*)
  7850. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7851. wlarc=
  7852. hardcode_direct=yes
  7853. hardcode_shlibpath_var=no
  7854. ;;
  7855. *)
  7856. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7857. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7858. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7859. else
  7860. ld_shlibs=no
  7861. fi
  7862. ;;
  7863. esac
  7864. if test "$ld_shlibs" = no; then
  7865. runpath_var=
  7866. hardcode_libdir_flag_spec=
  7867. export_dynamic_flag_spec=
  7868. whole_archive_flag_spec=
  7869. fi
  7870. else
  7871. # PORTME fill in a description of your system's linker (not GNU ld)
  7872. case $host_os in
  7873. aix3*)
  7874. allow_undefined_flag=unsupported
  7875. always_export_symbols=yes
  7876. 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'
  7877. # Note: this linker hardcodes the directories in LIBPATH if there
  7878. # are no directories specified by -L.
  7879. hardcode_minus_L=yes
  7880. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7881. # Neither direct hardcoding nor static linking is supported with a
  7882. # broken collect2.
  7883. hardcode_direct=unsupported
  7884. fi
  7885. ;;
  7886. aix[4-9]*)
  7887. if test "$host_cpu" = ia64; then
  7888. # On IA64, the linker does run time linking by default, so we don't
  7889. # have to do anything special.
  7890. aix_use_runtimelinking=no
  7891. exp_sym_flag='-Bexport'
  7892. no_entry_flag=""
  7893. else
  7894. # If we're using GNU nm, then we don't want the "-C" option.
  7895. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7896. # Also, AIX nm treats weak defined symbols like other global
  7897. # defined symbols, whereas GNU nm marks them as "W".
  7898. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7899. 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'
  7900. else
  7901. 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'
  7902. fi
  7903. aix_use_runtimelinking=no
  7904. # Test if we are trying to use run time linking or normal
  7905. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7906. # need to do runtime linking.
  7907. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7908. for ld_flag in $LDFLAGS; do
  7909. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7910. aix_use_runtimelinking=yes
  7911. break
  7912. fi
  7913. done
  7914. ;;
  7915. esac
  7916. exp_sym_flag='-bexport'
  7917. no_entry_flag='-bnoentry'
  7918. fi
  7919. # When large executables or shared objects are built, AIX ld can
  7920. # have problems creating the table of contents. If linking a library
  7921. # or program results in "error TOC overflow" add -mminimal-toc to
  7922. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7923. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7924. archive_cmds=''
  7925. hardcode_direct=yes
  7926. hardcode_direct_absolute=yes
  7927. hardcode_libdir_separator=':'
  7928. link_all_deplibs=yes
  7929. file_list_spec='${wl}-f,'
  7930. if test "$GCC" = yes; then
  7931. case $host_os in aix4.[012]|aix4.[012].*)
  7932. # We only want to do this on AIX 4.2 and lower, the check
  7933. # below for broken collect2 doesn't work under 4.3+
  7934. collect2name=`${CC} -print-prog-name=collect2`
  7935. if test -f "$collect2name" &&
  7936. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7937. then
  7938. # We have reworked collect2
  7939. :
  7940. else
  7941. # We have old collect2
  7942. hardcode_direct=unsupported
  7943. # It fails to find uninstalled libraries when the uninstalled
  7944. # path is not listed in the libpath. Setting hardcode_minus_L
  7945. # to unsupported forces relinking
  7946. hardcode_minus_L=yes
  7947. hardcode_libdir_flag_spec='-L$libdir'
  7948. hardcode_libdir_separator=
  7949. fi
  7950. ;;
  7951. esac
  7952. shared_flag='-shared'
  7953. if test "$aix_use_runtimelinking" = yes; then
  7954. shared_flag="$shared_flag "'${wl}-G'
  7955. fi
  7956. else
  7957. # not using gcc
  7958. if test "$host_cpu" = ia64; then
  7959. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7960. # chokes on -Wl,-G. The following line is correct:
  7961. shared_flag='-G'
  7962. else
  7963. if test "$aix_use_runtimelinking" = yes; then
  7964. shared_flag='${wl}-G'
  7965. else
  7966. shared_flag='${wl}-bM:SRE'
  7967. fi
  7968. fi
  7969. fi
  7970. export_dynamic_flag_spec='${wl}-bexpall'
  7971. # It seems that -bexpall does not export symbols beginning with
  7972. # underscore (_), so it is better to generate a list of symbols to export.
  7973. always_export_symbols=yes
  7974. if test "$aix_use_runtimelinking" = yes; then
  7975. # Warning - without using the other runtime loading flags (-brtl),
  7976. # -berok will link without error, but may produce a broken library.
  7977. allow_undefined_flag='-berok'
  7978. # Determine the default libpath from the value encoded in an
  7979. # empty executable.
  7980. if test "${lt_cv_aix_libpath+set}" = set; then
  7981. aix_libpath=$lt_cv_aix_libpath
  7982. else
  7983. if ${lt_cv_aix_libpath_+:} false; then :
  7984. $as_echo_n "(cached) " >&6
  7985. else
  7986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7987. /* end confdefs.h. */
  7988. int
  7989. main ()
  7990. {
  7991. ;
  7992. return 0;
  7993. }
  7994. _ACEOF
  7995. if ac_fn_c_try_link "$LINENO"; then :
  7996. lt_aix_libpath_sed='
  7997. /Import File Strings/,/^$/ {
  7998. /^0/ {
  7999. s/^0 *\([^ ]*\) *$/\1/
  8000. p
  8001. }
  8002. }'
  8003. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8004. # Check for a 64-bit object if we didn't find anything.
  8005. if test -z "$lt_cv_aix_libpath_"; then
  8006. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8007. fi
  8008. fi
  8009. rm -f core conftest.err conftest.$ac_objext \
  8010. conftest$ac_exeext conftest.$ac_ext
  8011. if test -z "$lt_cv_aix_libpath_"; then
  8012. lt_cv_aix_libpath_="/usr/lib:/lib"
  8013. fi
  8014. fi
  8015. aix_libpath=$lt_cv_aix_libpath_
  8016. fi
  8017. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8018. 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"
  8019. else
  8020. if test "$host_cpu" = ia64; then
  8021. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8022. allow_undefined_flag="-z nodefs"
  8023. 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"
  8024. else
  8025. # Determine the default libpath from the value encoded in an
  8026. # empty executable.
  8027. if test "${lt_cv_aix_libpath+set}" = set; then
  8028. aix_libpath=$lt_cv_aix_libpath
  8029. else
  8030. if ${lt_cv_aix_libpath_+:} false; then :
  8031. $as_echo_n "(cached) " >&6
  8032. else
  8033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8034. /* end confdefs.h. */
  8035. int
  8036. main ()
  8037. {
  8038. ;
  8039. return 0;
  8040. }
  8041. _ACEOF
  8042. if ac_fn_c_try_link "$LINENO"; then :
  8043. lt_aix_libpath_sed='
  8044. /Import File Strings/,/^$/ {
  8045. /^0/ {
  8046. s/^0 *\([^ ]*\) *$/\1/
  8047. p
  8048. }
  8049. }'
  8050. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8051. # Check for a 64-bit object if we didn't find anything.
  8052. if test -z "$lt_cv_aix_libpath_"; then
  8053. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8054. fi
  8055. fi
  8056. rm -f core conftest.err conftest.$ac_objext \
  8057. conftest$ac_exeext conftest.$ac_ext
  8058. if test -z "$lt_cv_aix_libpath_"; then
  8059. lt_cv_aix_libpath_="/usr/lib:/lib"
  8060. fi
  8061. fi
  8062. aix_libpath=$lt_cv_aix_libpath_
  8063. fi
  8064. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8065. # Warning - without using the other run time loading flags,
  8066. # -berok will link without error, but may produce a broken library.
  8067. no_undefined_flag=' ${wl}-bernotok'
  8068. allow_undefined_flag=' ${wl}-berok'
  8069. if test "$with_gnu_ld" = yes; then
  8070. # We only use this code for GNU lds that support --whole-archive.
  8071. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8072. else
  8073. # Exported symbols can be pulled into shared objects from archives
  8074. whole_archive_flag_spec='$convenience'
  8075. fi
  8076. archive_cmds_need_lc=yes
  8077. # This is similar to how AIX traditionally builds its shared libraries.
  8078. 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'
  8079. fi
  8080. fi
  8081. ;;
  8082. amigaos*)
  8083. case $host_cpu in
  8084. powerpc)
  8085. # see comment about AmigaOS4 .so support
  8086. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8087. archive_expsym_cmds=''
  8088. ;;
  8089. m68k)
  8090. 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)'
  8091. hardcode_libdir_flag_spec='-L$libdir'
  8092. hardcode_minus_L=yes
  8093. ;;
  8094. esac
  8095. ;;
  8096. bsdi[45]*)
  8097. export_dynamic_flag_spec=-rdynamic
  8098. ;;
  8099. cygwin* | mingw* | pw32* | cegcc*)
  8100. # When not using gcc, we currently assume that we are using
  8101. # Microsoft Visual C++.
  8102. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8103. # no search path for DLLs.
  8104. case $cc_basename in
  8105. cl*)
  8106. # Native MSVC
  8107. hardcode_libdir_flag_spec=' '
  8108. allow_undefined_flag=unsupported
  8109. always_export_symbols=yes
  8110. file_list_spec='@'
  8111. # Tell ltmain to make .lib files, not .a files.
  8112. libext=lib
  8113. # Tell ltmain to make .dll files, not .so files.
  8114. shrext_cmds=".dll"
  8115. # FIXME: Setting linknames here is a bad hack.
  8116. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8117. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8118. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8119. else
  8120. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8121. fi~
  8122. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8123. linknames='
  8124. # The linker will not automatically build a static lib if we build a DLL.
  8125. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8126. enable_shared_with_static_runtimes=yes
  8127. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8128. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8129. # Don't use ranlib
  8130. old_postinstall_cmds='chmod 644 $oldlib'
  8131. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8132. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8133. case $lt_outputfile in
  8134. *.exe|*.EXE) ;;
  8135. *)
  8136. lt_outputfile="$lt_outputfile.exe"
  8137. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8138. ;;
  8139. esac~
  8140. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8141. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8142. $RM "$lt_outputfile.manifest";
  8143. fi'
  8144. ;;
  8145. *)
  8146. # Assume MSVC wrapper
  8147. hardcode_libdir_flag_spec=' '
  8148. allow_undefined_flag=unsupported
  8149. # Tell ltmain to make .lib files, not .a files.
  8150. libext=lib
  8151. # Tell ltmain to make .dll files, not .so files.
  8152. shrext_cmds=".dll"
  8153. # FIXME: Setting linknames here is a bad hack.
  8154. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8155. # The linker will automatically build a .lib file if we build a DLL.
  8156. old_archive_from_new_cmds='true'
  8157. # FIXME: Should let the user specify the lib program.
  8158. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8159. enable_shared_with_static_runtimes=yes
  8160. ;;
  8161. esac
  8162. ;;
  8163. darwin* | rhapsody*)
  8164. archive_cmds_need_lc=no
  8165. hardcode_direct=no
  8166. hardcode_automatic=yes
  8167. hardcode_shlibpath_var=unsupported
  8168. if test "$lt_cv_ld_force_load" = "yes"; then
  8169. 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\"`'
  8170. else
  8171. whole_archive_flag_spec=''
  8172. fi
  8173. link_all_deplibs=yes
  8174. allow_undefined_flag="$_lt_dar_allow_undefined"
  8175. case $cc_basename in
  8176. ifort*) _lt_dar_can_shared=yes ;;
  8177. *) _lt_dar_can_shared=$GCC ;;
  8178. esac
  8179. if test "$_lt_dar_can_shared" = "yes"; then
  8180. output_verbose_link_cmd=func_echo_all
  8181. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8182. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8183. 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}"
  8184. 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}"
  8185. else
  8186. ld_shlibs=no
  8187. fi
  8188. ;;
  8189. dgux*)
  8190. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8191. hardcode_libdir_flag_spec='-L$libdir'
  8192. hardcode_shlibpath_var=no
  8193. ;;
  8194. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8195. # support. Future versions do this automatically, but an explicit c++rt0.o
  8196. # does not break anything, and helps significantly (at the cost of a little
  8197. # extra space).
  8198. freebsd2.2*)
  8199. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8200. hardcode_libdir_flag_spec='-R$libdir'
  8201. hardcode_direct=yes
  8202. hardcode_shlibpath_var=no
  8203. ;;
  8204. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8205. freebsd2.*)
  8206. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8207. hardcode_direct=yes
  8208. hardcode_minus_L=yes
  8209. hardcode_shlibpath_var=no
  8210. ;;
  8211. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8212. freebsd* | dragonfly*)
  8213. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8214. hardcode_libdir_flag_spec='-R$libdir'
  8215. hardcode_direct=yes
  8216. hardcode_shlibpath_var=no
  8217. ;;
  8218. hpux9*)
  8219. if test "$GCC" = yes; then
  8220. 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'
  8221. else
  8222. 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'
  8223. fi
  8224. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8225. hardcode_libdir_separator=:
  8226. hardcode_direct=yes
  8227. # hardcode_minus_L: Not really in the search PATH,
  8228. # but as the default location of the library.
  8229. hardcode_minus_L=yes
  8230. export_dynamic_flag_spec='${wl}-E'
  8231. ;;
  8232. hpux10*)
  8233. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8234. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8235. else
  8236. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8237. fi
  8238. if test "$with_gnu_ld" = no; then
  8239. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8240. hardcode_libdir_separator=:
  8241. hardcode_direct=yes
  8242. hardcode_direct_absolute=yes
  8243. export_dynamic_flag_spec='${wl}-E'
  8244. # hardcode_minus_L: Not really in the search PATH,
  8245. # but as the default location of the library.
  8246. hardcode_minus_L=yes
  8247. fi
  8248. ;;
  8249. hpux11*)
  8250. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8251. case $host_cpu in
  8252. hppa*64*)
  8253. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8254. ;;
  8255. ia64*)
  8256. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8257. ;;
  8258. *)
  8259. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8260. ;;
  8261. esac
  8262. else
  8263. case $host_cpu in
  8264. hppa*64*)
  8265. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8266. ;;
  8267. ia64*)
  8268. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8269. ;;
  8270. *)
  8271. # Older versions of the 11.00 compiler do not understand -b yet
  8272. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8274. $as_echo_n "checking if $CC understands -b... " >&6; }
  8275. if ${lt_cv_prog_compiler__b+:} false; then :
  8276. $as_echo_n "(cached) " >&6
  8277. else
  8278. lt_cv_prog_compiler__b=no
  8279. save_LDFLAGS="$LDFLAGS"
  8280. LDFLAGS="$LDFLAGS -b"
  8281. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8282. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8283. # The linker can only warn and ignore the option if not recognized
  8284. # So say no if there are warnings
  8285. if test -s conftest.err; then
  8286. # Append any errors to the config.log.
  8287. cat conftest.err 1>&5
  8288. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8289. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8290. if diff conftest.exp conftest.er2 >/dev/null; then
  8291. lt_cv_prog_compiler__b=yes
  8292. fi
  8293. else
  8294. lt_cv_prog_compiler__b=yes
  8295. fi
  8296. fi
  8297. $RM -r conftest*
  8298. LDFLAGS="$save_LDFLAGS"
  8299. fi
  8300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8301. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8302. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8303. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8304. else
  8305. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8306. fi
  8307. ;;
  8308. esac
  8309. fi
  8310. if test "$with_gnu_ld" = no; then
  8311. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8312. hardcode_libdir_separator=:
  8313. case $host_cpu in
  8314. hppa*64*|ia64*)
  8315. hardcode_direct=no
  8316. hardcode_shlibpath_var=no
  8317. ;;
  8318. *)
  8319. hardcode_direct=yes
  8320. hardcode_direct_absolute=yes
  8321. export_dynamic_flag_spec='${wl}-E'
  8322. # hardcode_minus_L: Not really in the search PATH,
  8323. # but as the default location of the library.
  8324. hardcode_minus_L=yes
  8325. ;;
  8326. esac
  8327. fi
  8328. ;;
  8329. irix5* | irix6* | nonstopux*)
  8330. if test "$GCC" = yes; then
  8331. 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'
  8332. # Try to use the -exported_symbol ld option, if it does not
  8333. # work, assume that -exports_file does not work either and
  8334. # implicitly export all symbols.
  8335. # This should be the same for all languages, so no per-tag cache variable.
  8336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8337. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8338. if ${lt_cv_irix_exported_symbol+:} false; then :
  8339. $as_echo_n "(cached) " >&6
  8340. else
  8341. save_LDFLAGS="$LDFLAGS"
  8342. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8344. /* end confdefs.h. */
  8345. int foo (void) { return 0; }
  8346. _ACEOF
  8347. if ac_fn_c_try_link "$LINENO"; then :
  8348. lt_cv_irix_exported_symbol=yes
  8349. else
  8350. lt_cv_irix_exported_symbol=no
  8351. fi
  8352. rm -f core conftest.err conftest.$ac_objext \
  8353. conftest$ac_exeext conftest.$ac_ext
  8354. LDFLAGS="$save_LDFLAGS"
  8355. fi
  8356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8357. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8358. if test "$lt_cv_irix_exported_symbol" = yes; then
  8359. 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'
  8360. fi
  8361. else
  8362. 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'
  8363. 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'
  8364. fi
  8365. archive_cmds_need_lc='no'
  8366. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8367. hardcode_libdir_separator=:
  8368. inherit_rpath=yes
  8369. link_all_deplibs=yes
  8370. ;;
  8371. netbsd*)
  8372. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8373. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8374. else
  8375. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8376. fi
  8377. hardcode_libdir_flag_spec='-R$libdir'
  8378. hardcode_direct=yes
  8379. hardcode_shlibpath_var=no
  8380. ;;
  8381. newsos6)
  8382. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8383. hardcode_direct=yes
  8384. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8385. hardcode_libdir_separator=:
  8386. hardcode_shlibpath_var=no
  8387. ;;
  8388. *nto* | *qnx*)
  8389. ;;
  8390. openbsd*)
  8391. if test -f /usr/libexec/ld.so; then
  8392. hardcode_direct=yes
  8393. hardcode_shlibpath_var=no
  8394. hardcode_direct_absolute=yes
  8395. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8396. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8397. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8398. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8399. export_dynamic_flag_spec='${wl}-E'
  8400. else
  8401. case $host_os in
  8402. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8403. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8404. hardcode_libdir_flag_spec='-R$libdir'
  8405. ;;
  8406. *)
  8407. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8408. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8409. ;;
  8410. esac
  8411. fi
  8412. else
  8413. ld_shlibs=no
  8414. fi
  8415. ;;
  8416. os2*)
  8417. hardcode_libdir_flag_spec='-L$libdir'
  8418. hardcode_minus_L=yes
  8419. allow_undefined_flag=unsupported
  8420. 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'
  8421. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8422. ;;
  8423. osf3*)
  8424. if test "$GCC" = yes; then
  8425. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8426. 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'
  8427. else
  8428. allow_undefined_flag=' -expect_unresolved \*'
  8429. 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'
  8430. fi
  8431. archive_cmds_need_lc='no'
  8432. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8433. hardcode_libdir_separator=:
  8434. ;;
  8435. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8436. if test "$GCC" = yes; then
  8437. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8438. 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'
  8439. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8440. else
  8441. allow_undefined_flag=' -expect_unresolved \*'
  8442. 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'
  8443. 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~
  8444. $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'
  8445. # Both c and cxx compiler support -rpath directly
  8446. hardcode_libdir_flag_spec='-rpath $libdir'
  8447. fi
  8448. archive_cmds_need_lc='no'
  8449. hardcode_libdir_separator=:
  8450. ;;
  8451. solaris*)
  8452. no_undefined_flag=' -z defs'
  8453. if test "$GCC" = yes; then
  8454. wlarc='${wl}'
  8455. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8456. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8457. $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'
  8458. else
  8459. case `$CC -V 2>&1` in
  8460. *"Compilers 5.0"*)
  8461. wlarc=''
  8462. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8463. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8464. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8465. ;;
  8466. *)
  8467. wlarc='${wl}'
  8468. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8469. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8470. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8471. ;;
  8472. esac
  8473. fi
  8474. hardcode_libdir_flag_spec='-R$libdir'
  8475. hardcode_shlibpath_var=no
  8476. case $host_os in
  8477. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8478. *)
  8479. # The compiler driver will combine and reorder linker options,
  8480. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8481. # but is careful enough not to reorder.
  8482. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8483. if test "$GCC" = yes; then
  8484. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8485. else
  8486. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8487. fi
  8488. ;;
  8489. esac
  8490. link_all_deplibs=yes
  8491. ;;
  8492. sunos4*)
  8493. if test "x$host_vendor" = xsequent; then
  8494. # Use $CC to link under sequent, because it throws in some extra .o
  8495. # files that make .init and .fini sections work.
  8496. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8497. else
  8498. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8499. fi
  8500. hardcode_libdir_flag_spec='-L$libdir'
  8501. hardcode_direct=yes
  8502. hardcode_minus_L=yes
  8503. hardcode_shlibpath_var=no
  8504. ;;
  8505. sysv4)
  8506. case $host_vendor in
  8507. sni)
  8508. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8509. hardcode_direct=yes # is this really true???
  8510. ;;
  8511. siemens)
  8512. ## LD is ld it makes a PLAMLIB
  8513. ## CC just makes a GrossModule.
  8514. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8515. reload_cmds='$CC -r -o $output$reload_objs'
  8516. hardcode_direct=no
  8517. ;;
  8518. motorola)
  8519. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8520. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8521. ;;
  8522. esac
  8523. runpath_var='LD_RUN_PATH'
  8524. hardcode_shlibpath_var=no
  8525. ;;
  8526. sysv4.3*)
  8527. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8528. hardcode_shlibpath_var=no
  8529. export_dynamic_flag_spec='-Bexport'
  8530. ;;
  8531. sysv4*MP*)
  8532. if test -d /usr/nec; then
  8533. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8534. hardcode_shlibpath_var=no
  8535. runpath_var=LD_RUN_PATH
  8536. hardcode_runpath_var=yes
  8537. ld_shlibs=yes
  8538. fi
  8539. ;;
  8540. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8541. no_undefined_flag='${wl}-z,text'
  8542. archive_cmds_need_lc=no
  8543. hardcode_shlibpath_var=no
  8544. runpath_var='LD_RUN_PATH'
  8545. if test "$GCC" = yes; then
  8546. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8547. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8548. else
  8549. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8550. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8551. fi
  8552. ;;
  8553. sysv5* | sco3.2v5* | sco5v6*)
  8554. # Note: We can NOT use -z defs as we might desire, because we do not
  8555. # link with -lc, and that would cause any symbols used from libc to
  8556. # always be unresolved, which means just about no library would
  8557. # ever link correctly. If we're not using GNU ld we use -z text
  8558. # though, which does catch some bad symbols but isn't as heavy-handed
  8559. # as -z defs.
  8560. no_undefined_flag='${wl}-z,text'
  8561. allow_undefined_flag='${wl}-z,nodefs'
  8562. archive_cmds_need_lc=no
  8563. hardcode_shlibpath_var=no
  8564. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8565. hardcode_libdir_separator=':'
  8566. link_all_deplibs=yes
  8567. export_dynamic_flag_spec='${wl}-Bexport'
  8568. runpath_var='LD_RUN_PATH'
  8569. if test "$GCC" = yes; then
  8570. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8571. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8572. else
  8573. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8574. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8575. fi
  8576. ;;
  8577. uts4*)
  8578. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8579. hardcode_libdir_flag_spec='-L$libdir'
  8580. hardcode_shlibpath_var=no
  8581. ;;
  8582. *)
  8583. ld_shlibs=no
  8584. ;;
  8585. esac
  8586. if test x$host_vendor = xsni; then
  8587. case $host in
  8588. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8589. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8590. ;;
  8591. esac
  8592. fi
  8593. fi
  8594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8595. $as_echo "$ld_shlibs" >&6; }
  8596. test "$ld_shlibs" = no && can_build_shared=no
  8597. with_gnu_ld=$with_gnu_ld
  8598. #
  8599. # Do we need to explicitly link libc?
  8600. #
  8601. case "x$archive_cmds_need_lc" in
  8602. x|xyes)
  8603. # Assume -lc should be added
  8604. archive_cmds_need_lc=yes
  8605. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8606. case $archive_cmds in
  8607. *'~'*)
  8608. # FIXME: we may have to deal with multi-command sequences.
  8609. ;;
  8610. '$CC '*)
  8611. # Test whether the compiler implicitly links with -lc since on some
  8612. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8613. # to ld, don't add -lc before -lgcc.
  8614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8615. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8616. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8617. $as_echo_n "(cached) " >&6
  8618. else
  8619. $RM conftest*
  8620. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8621. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8622. (eval $ac_compile) 2>&5
  8623. ac_status=$?
  8624. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8625. test $ac_status = 0; } 2>conftest.err; then
  8626. soname=conftest
  8627. lib=conftest
  8628. libobjs=conftest.$ac_objext
  8629. deplibs=
  8630. wl=$lt_prog_compiler_wl
  8631. pic_flag=$lt_prog_compiler_pic
  8632. compiler_flags=-v
  8633. linker_flags=-v
  8634. verstring=
  8635. output_objdir=.
  8636. libname=conftest
  8637. lt_save_allow_undefined_flag=$allow_undefined_flag
  8638. allow_undefined_flag=
  8639. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8640. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8641. ac_status=$?
  8642. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8643. test $ac_status = 0; }
  8644. then
  8645. lt_cv_archive_cmds_need_lc=no
  8646. else
  8647. lt_cv_archive_cmds_need_lc=yes
  8648. fi
  8649. allow_undefined_flag=$lt_save_allow_undefined_flag
  8650. else
  8651. cat conftest.err 1>&5
  8652. fi
  8653. $RM conftest*
  8654. fi
  8655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8656. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8657. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8658. ;;
  8659. esac
  8660. fi
  8661. ;;
  8662. esac
  8663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8664. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8665. if test "$GCC" = yes; then
  8666. case $host_os in
  8667. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8668. *) lt_awk_arg="/^libraries:/" ;;
  8669. esac
  8670. case $host_os in
  8671. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8672. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8673. esac
  8674. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8675. case $lt_search_path_spec in
  8676. *\;*)
  8677. # if the path contains ";" then we assume it to be the separator
  8678. # otherwise default to the standard path separator (i.e. ":") - it is
  8679. # assumed that no part of a normal pathname contains ";" but that should
  8680. # okay in the real world where ";" in dirpaths is itself problematic.
  8681. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8682. ;;
  8683. *)
  8684. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8685. ;;
  8686. esac
  8687. # Ok, now we have the path, separated by spaces, we can step through it
  8688. # and add multilib dir if necessary...
  8689. lt_tmp_lt_search_path_spec=
  8690. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8691. # ...but if some path already ends with the multilib dir we assume
  8692. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8693. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8694. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8695. lt_multi_os_dir=
  8696. ;;
  8697. esac
  8698. for lt_sys_path in $lt_search_path_spec; do
  8699. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8700. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8701. elif test -n "$lt_multi_os_dir"; then
  8702. test -d "$lt_sys_path" && \
  8703. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8704. fi
  8705. done
  8706. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8707. BEGIN {RS=" "; FS="/|\n";} {
  8708. lt_foo="";
  8709. lt_count=0;
  8710. for (lt_i = NF; lt_i > 0; lt_i--) {
  8711. if ($lt_i != "" && $lt_i != ".") {
  8712. if ($lt_i == "..") {
  8713. lt_count++;
  8714. } else {
  8715. if (lt_count == 0) {
  8716. lt_foo="/" $lt_i lt_foo;
  8717. } else {
  8718. lt_count--;
  8719. }
  8720. }
  8721. }
  8722. }
  8723. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8724. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8725. }'`
  8726. # AWK program above erroneously prepends '/' to C:/dos/paths
  8727. # for these hosts.
  8728. case $host_os in
  8729. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8730. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8731. esac
  8732. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8733. else
  8734. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8735. fi
  8736. library_names_spec=
  8737. libname_spec='lib$name'
  8738. soname_spec=
  8739. shrext_cmds=".so"
  8740. postinstall_cmds=
  8741. postuninstall_cmds=
  8742. finish_cmds=
  8743. finish_eval=
  8744. shlibpath_var=
  8745. shlibpath_overrides_runpath=unknown
  8746. version_type=none
  8747. dynamic_linker="$host_os ld.so"
  8748. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8749. need_lib_prefix=unknown
  8750. hardcode_into_libs=no
  8751. # when you set need_version to no, make sure it does not cause -set_version
  8752. # flags to be left without arguments
  8753. need_version=unknown
  8754. case $host_os in
  8755. aix3*)
  8756. version_type=linux # correct to gnu/linux during the next big refactor
  8757. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8758. shlibpath_var=LIBPATH
  8759. # AIX 3 has no versioning support, so we append a major version to the name.
  8760. soname_spec='${libname}${release}${shared_ext}$major'
  8761. ;;
  8762. aix[4-9]*)
  8763. version_type=linux # correct to gnu/linux during the next big refactor
  8764. need_lib_prefix=no
  8765. need_version=no
  8766. hardcode_into_libs=yes
  8767. if test "$host_cpu" = ia64; then
  8768. # AIX 5 supports IA64
  8769. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8770. shlibpath_var=LD_LIBRARY_PATH
  8771. else
  8772. # With GCC up to 2.95.x, collect2 would create an import file
  8773. # for dependence libraries. The import file would start with
  8774. # the line `#! .'. This would cause the generated library to
  8775. # depend on `.', always an invalid library. This was fixed in
  8776. # development snapshots of GCC prior to 3.0.
  8777. case $host_os in
  8778. aix4 | aix4.[01] | aix4.[01].*)
  8779. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8780. echo ' yes '
  8781. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8782. :
  8783. else
  8784. can_build_shared=no
  8785. fi
  8786. ;;
  8787. esac
  8788. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8789. # soname into executable. Probably we can add versioning support to
  8790. # collect2, so additional links can be useful in future.
  8791. if test "$aix_use_runtimelinking" = yes; then
  8792. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8793. # instead of lib<name>.a to let people know that these are not
  8794. # typical AIX shared libraries.
  8795. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8796. else
  8797. # We preserve .a as extension for shared libraries through AIX4.2
  8798. # and later when we are not doing run time linking.
  8799. library_names_spec='${libname}${release}.a $libname.a'
  8800. soname_spec='${libname}${release}${shared_ext}$major'
  8801. fi
  8802. shlibpath_var=LIBPATH
  8803. fi
  8804. ;;
  8805. amigaos*)
  8806. case $host_cpu in
  8807. powerpc)
  8808. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8809. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8810. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8811. ;;
  8812. m68k)
  8813. library_names_spec='$libname.ixlibrary $libname.a'
  8814. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8815. 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'
  8816. ;;
  8817. esac
  8818. ;;
  8819. beos*)
  8820. library_names_spec='${libname}${shared_ext}'
  8821. dynamic_linker="$host_os ld.so"
  8822. shlibpath_var=LIBRARY_PATH
  8823. ;;
  8824. bsdi[45]*)
  8825. version_type=linux # correct to gnu/linux during the next big refactor
  8826. need_version=no
  8827. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8828. soname_spec='${libname}${release}${shared_ext}$major'
  8829. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8830. shlibpath_var=LD_LIBRARY_PATH
  8831. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8832. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8833. # the default ld.so.conf also contains /usr/contrib/lib and
  8834. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8835. # libtool to hard-code these into programs
  8836. ;;
  8837. cygwin* | mingw* | pw32* | cegcc*)
  8838. version_type=windows
  8839. shrext_cmds=".dll"
  8840. need_version=no
  8841. need_lib_prefix=no
  8842. case $GCC,$cc_basename in
  8843. yes,*)
  8844. # gcc
  8845. library_names_spec='$libname.dll.a'
  8846. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8847. postinstall_cmds='base_file=`basename \${file}`~
  8848. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8849. dldir=$destdir/`dirname \$dlpath`~
  8850. test -d \$dldir || mkdir -p \$dldir~
  8851. $install_prog $dir/$dlname \$dldir/$dlname~
  8852. chmod a+x \$dldir/$dlname~
  8853. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8854. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8855. fi'
  8856. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8857. dlpath=$dir/\$dldll~
  8858. $RM \$dlpath'
  8859. shlibpath_overrides_runpath=yes
  8860. case $host_os in
  8861. cygwin*)
  8862. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8863. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8864. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8865. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8866. ;;
  8867. mingw* | cegcc*)
  8868. # MinGW DLLs use traditional 'lib' prefix
  8869. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8870. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8871. ;;
  8872. pw32*)
  8873. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8874. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8875. ;;
  8876. esac
  8877. dynamic_linker='Win32 ld.exe'
  8878. ;;
  8879. *,cl*)
  8880. # Native MSVC
  8881. libname_spec='$name'
  8882. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8883. library_names_spec='${libname}.dll.lib'
  8884. case $build_os in
  8885. mingw*)
  8886. sys_lib_search_path_spec=
  8887. lt_save_ifs=$IFS
  8888. IFS=';'
  8889. for lt_path in $LIB
  8890. do
  8891. IFS=$lt_save_ifs
  8892. # Let DOS variable expansion print the short 8.3 style file name.
  8893. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8894. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8895. done
  8896. IFS=$lt_save_ifs
  8897. # Convert to MSYS style.
  8898. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8899. ;;
  8900. cygwin*)
  8901. # Convert to unix form, then to dos form, then back to unix form
  8902. # but this time dos style (no spaces!) so that the unix form looks
  8903. # like /cygdrive/c/PROGRA~1:/cygdr...
  8904. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8905. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8906. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8907. ;;
  8908. *)
  8909. sys_lib_search_path_spec="$LIB"
  8910. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8911. # It is most probably a Windows format PATH.
  8912. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8913. else
  8914. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8915. fi
  8916. # FIXME: find the short name or the path components, as spaces are
  8917. # common. (e.g. "Program Files" -> "PROGRA~1")
  8918. ;;
  8919. esac
  8920. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8921. postinstall_cmds='base_file=`basename \${file}`~
  8922. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8923. dldir=$destdir/`dirname \$dlpath`~
  8924. test -d \$dldir || mkdir -p \$dldir~
  8925. $install_prog $dir/$dlname \$dldir/$dlname'
  8926. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8927. dlpath=$dir/\$dldll~
  8928. $RM \$dlpath'
  8929. shlibpath_overrides_runpath=yes
  8930. dynamic_linker='Win32 link.exe'
  8931. ;;
  8932. *)
  8933. # Assume MSVC wrapper
  8934. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8935. dynamic_linker='Win32 ld.exe'
  8936. ;;
  8937. esac
  8938. # FIXME: first we should search . and the directory the executable is in
  8939. shlibpath_var=PATH
  8940. ;;
  8941. darwin* | rhapsody*)
  8942. dynamic_linker="$host_os dyld"
  8943. version_type=darwin
  8944. need_lib_prefix=no
  8945. need_version=no
  8946. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8947. soname_spec='${libname}${release}${major}$shared_ext'
  8948. shlibpath_overrides_runpath=yes
  8949. shlibpath_var=DYLD_LIBRARY_PATH
  8950. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8951. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8952. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8953. ;;
  8954. dgux*)
  8955. version_type=linux # correct to gnu/linux during the next big refactor
  8956. need_lib_prefix=no
  8957. need_version=no
  8958. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8959. soname_spec='${libname}${release}${shared_ext}$major'
  8960. shlibpath_var=LD_LIBRARY_PATH
  8961. ;;
  8962. freebsd* | dragonfly*)
  8963. # DragonFly does not have aout. When/if they implement a new
  8964. # versioning mechanism, adjust this.
  8965. if test -x /usr/bin/objformat; then
  8966. objformat=`/usr/bin/objformat`
  8967. else
  8968. case $host_os in
  8969. freebsd[23].*) objformat=aout ;;
  8970. *) objformat=elf ;;
  8971. esac
  8972. fi
  8973. version_type=freebsd-$objformat
  8974. case $version_type in
  8975. freebsd-elf*)
  8976. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8977. need_version=no
  8978. need_lib_prefix=no
  8979. ;;
  8980. freebsd-*)
  8981. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8982. need_version=yes
  8983. ;;
  8984. esac
  8985. shlibpath_var=LD_LIBRARY_PATH
  8986. case $host_os in
  8987. freebsd2.*)
  8988. shlibpath_overrides_runpath=yes
  8989. ;;
  8990. freebsd3.[01]* | freebsdelf3.[01]*)
  8991. shlibpath_overrides_runpath=yes
  8992. hardcode_into_libs=yes
  8993. ;;
  8994. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8995. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8996. shlibpath_overrides_runpath=no
  8997. hardcode_into_libs=yes
  8998. ;;
  8999. *) # from 4.6 on, and DragonFly
  9000. shlibpath_overrides_runpath=yes
  9001. hardcode_into_libs=yes
  9002. ;;
  9003. esac
  9004. ;;
  9005. gnu*)
  9006. version_type=linux # correct to gnu/linux during the next big refactor
  9007. need_lib_prefix=no
  9008. need_version=no
  9009. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9010. soname_spec='${libname}${release}${shared_ext}$major'
  9011. shlibpath_var=LD_LIBRARY_PATH
  9012. shlibpath_overrides_runpath=no
  9013. hardcode_into_libs=yes
  9014. ;;
  9015. haiku*)
  9016. version_type=linux # correct to gnu/linux during the next big refactor
  9017. need_lib_prefix=no
  9018. need_version=no
  9019. dynamic_linker="$host_os runtime_loader"
  9020. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9021. soname_spec='${libname}${release}${shared_ext}$major'
  9022. shlibpath_var=LIBRARY_PATH
  9023. shlibpath_overrides_runpath=yes
  9024. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9025. hardcode_into_libs=yes
  9026. ;;
  9027. hpux9* | hpux10* | hpux11*)
  9028. # Give a soname corresponding to the major version so that dld.sl refuses to
  9029. # link against other versions.
  9030. version_type=sunos
  9031. need_lib_prefix=no
  9032. need_version=no
  9033. case $host_cpu in
  9034. ia64*)
  9035. shrext_cmds='.so'
  9036. hardcode_into_libs=yes
  9037. dynamic_linker="$host_os dld.so"
  9038. shlibpath_var=LD_LIBRARY_PATH
  9039. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9040. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9041. soname_spec='${libname}${release}${shared_ext}$major'
  9042. if test "X$HPUX_IA64_MODE" = X32; then
  9043. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9044. else
  9045. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9046. fi
  9047. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9048. ;;
  9049. hppa*64*)
  9050. shrext_cmds='.sl'
  9051. hardcode_into_libs=yes
  9052. dynamic_linker="$host_os dld.sl"
  9053. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9054. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9056. soname_spec='${libname}${release}${shared_ext}$major'
  9057. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9058. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9059. ;;
  9060. *)
  9061. shrext_cmds='.sl'
  9062. dynamic_linker="$host_os dld.sl"
  9063. shlibpath_var=SHLIB_PATH
  9064. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9065. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9066. soname_spec='${libname}${release}${shared_ext}$major'
  9067. ;;
  9068. esac
  9069. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9070. postinstall_cmds='chmod 555 $lib'
  9071. # or fails outright, so override atomically:
  9072. install_override_mode=555
  9073. ;;
  9074. interix[3-9]*)
  9075. version_type=linux # correct to gnu/linux during the next big refactor
  9076. need_lib_prefix=no
  9077. need_version=no
  9078. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9079. soname_spec='${libname}${release}${shared_ext}$major'
  9080. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9081. shlibpath_var=LD_LIBRARY_PATH
  9082. shlibpath_overrides_runpath=no
  9083. hardcode_into_libs=yes
  9084. ;;
  9085. irix5* | irix6* | nonstopux*)
  9086. case $host_os in
  9087. nonstopux*) version_type=nonstopux ;;
  9088. *)
  9089. if test "$lt_cv_prog_gnu_ld" = yes; then
  9090. version_type=linux # correct to gnu/linux during the next big refactor
  9091. else
  9092. version_type=irix
  9093. fi ;;
  9094. esac
  9095. need_lib_prefix=no
  9096. need_version=no
  9097. soname_spec='${libname}${release}${shared_ext}$major'
  9098. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9099. case $host_os in
  9100. irix5* | nonstopux*)
  9101. libsuff= shlibsuff=
  9102. ;;
  9103. *)
  9104. case $LD in # libtool.m4 will add one of these switches to LD
  9105. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9106. libsuff= shlibsuff= libmagic=32-bit;;
  9107. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9108. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9109. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9110. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9111. *) libsuff= shlibsuff= libmagic=never-match;;
  9112. esac
  9113. ;;
  9114. esac
  9115. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9116. shlibpath_overrides_runpath=no
  9117. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9118. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9119. hardcode_into_libs=yes
  9120. ;;
  9121. # No shared lib support for Linux oldld, aout, or coff.
  9122. linux*oldld* | linux*aout* | linux*coff*)
  9123. dynamic_linker=no
  9124. ;;
  9125. # This must be glibc/ELF.
  9126. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9127. version_type=linux # correct to gnu/linux during the next big refactor
  9128. need_lib_prefix=no
  9129. need_version=no
  9130. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9131. soname_spec='${libname}${release}${shared_ext}$major'
  9132. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9133. shlibpath_var=LD_LIBRARY_PATH
  9134. shlibpath_overrides_runpath=no
  9135. # Some binutils ld are patched to set DT_RUNPATH
  9136. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9137. $as_echo_n "(cached) " >&6
  9138. else
  9139. lt_cv_shlibpath_overrides_runpath=no
  9140. save_LDFLAGS=$LDFLAGS
  9141. save_libdir=$libdir
  9142. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9143. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9145. /* end confdefs.h. */
  9146. int
  9147. main ()
  9148. {
  9149. ;
  9150. return 0;
  9151. }
  9152. _ACEOF
  9153. if ac_fn_c_try_link "$LINENO"; then :
  9154. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9155. lt_cv_shlibpath_overrides_runpath=yes
  9156. fi
  9157. fi
  9158. rm -f core conftest.err conftest.$ac_objext \
  9159. conftest$ac_exeext conftest.$ac_ext
  9160. LDFLAGS=$save_LDFLAGS
  9161. libdir=$save_libdir
  9162. fi
  9163. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9164. # This implies no fast_install, which is unacceptable.
  9165. # Some rework will be needed to allow for fast_install
  9166. # before this can be enabled.
  9167. hardcode_into_libs=yes
  9168. # Append ld.so.conf contents to the search path
  9169. if test -f /etc/ld.so.conf; then
  9170. 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' ' '`
  9171. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9172. fi
  9173. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9174. # powerpc, because MkLinux only supported shared libraries with the
  9175. # GNU dynamic linker. Since this was broken with cross compilers,
  9176. # most powerpc-linux boxes support dynamic linking these days and
  9177. # people can always --disable-shared, the test was removed, and we
  9178. # assume the GNU/Linux dynamic linker is in use.
  9179. dynamic_linker='GNU/Linux ld.so'
  9180. ;;
  9181. netbsd*)
  9182. version_type=sunos
  9183. need_lib_prefix=no
  9184. need_version=no
  9185. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9187. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9188. dynamic_linker='NetBSD (a.out) ld.so'
  9189. else
  9190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9191. soname_spec='${libname}${release}${shared_ext}$major'
  9192. dynamic_linker='NetBSD ld.elf_so'
  9193. fi
  9194. shlibpath_var=LD_LIBRARY_PATH
  9195. shlibpath_overrides_runpath=yes
  9196. hardcode_into_libs=yes
  9197. ;;
  9198. newsos6)
  9199. version_type=linux # correct to gnu/linux during the next big refactor
  9200. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9201. shlibpath_var=LD_LIBRARY_PATH
  9202. shlibpath_overrides_runpath=yes
  9203. ;;
  9204. *nto* | *qnx*)
  9205. version_type=qnx
  9206. need_lib_prefix=no
  9207. need_version=no
  9208. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9209. soname_spec='${libname}${release}${shared_ext}$major'
  9210. shlibpath_var=LD_LIBRARY_PATH
  9211. shlibpath_overrides_runpath=no
  9212. hardcode_into_libs=yes
  9213. dynamic_linker='ldqnx.so'
  9214. ;;
  9215. openbsd*)
  9216. version_type=sunos
  9217. sys_lib_dlsearch_path_spec="/usr/lib"
  9218. need_lib_prefix=no
  9219. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9220. case $host_os in
  9221. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9222. *) need_version=no ;;
  9223. esac
  9224. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9225. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9226. shlibpath_var=LD_LIBRARY_PATH
  9227. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9228. case $host_os in
  9229. openbsd2.[89] | openbsd2.[89].*)
  9230. shlibpath_overrides_runpath=no
  9231. ;;
  9232. *)
  9233. shlibpath_overrides_runpath=yes
  9234. ;;
  9235. esac
  9236. else
  9237. shlibpath_overrides_runpath=yes
  9238. fi
  9239. ;;
  9240. os2*)
  9241. libname_spec='$name'
  9242. shrext_cmds=".dll"
  9243. need_lib_prefix=no
  9244. library_names_spec='$libname${shared_ext} $libname.a'
  9245. dynamic_linker='OS/2 ld.exe'
  9246. shlibpath_var=LIBPATH
  9247. ;;
  9248. osf3* | osf4* | osf5*)
  9249. version_type=osf
  9250. need_lib_prefix=no
  9251. need_version=no
  9252. soname_spec='${libname}${release}${shared_ext}$major'
  9253. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9254. shlibpath_var=LD_LIBRARY_PATH
  9255. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9256. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9257. ;;
  9258. rdos*)
  9259. dynamic_linker=no
  9260. ;;
  9261. solaris*)
  9262. version_type=linux # correct to gnu/linux during the next big refactor
  9263. need_lib_prefix=no
  9264. need_version=no
  9265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9266. soname_spec='${libname}${release}${shared_ext}$major'
  9267. shlibpath_var=LD_LIBRARY_PATH
  9268. shlibpath_overrides_runpath=yes
  9269. hardcode_into_libs=yes
  9270. # ldd complains unless libraries are executable
  9271. postinstall_cmds='chmod +x $lib'
  9272. ;;
  9273. sunos4*)
  9274. version_type=sunos
  9275. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9276. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9277. shlibpath_var=LD_LIBRARY_PATH
  9278. shlibpath_overrides_runpath=yes
  9279. if test "$with_gnu_ld" = yes; then
  9280. need_lib_prefix=no
  9281. fi
  9282. need_version=yes
  9283. ;;
  9284. sysv4 | sysv4.3*)
  9285. version_type=linux # correct to gnu/linux during the next big refactor
  9286. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9287. soname_spec='${libname}${release}${shared_ext}$major'
  9288. shlibpath_var=LD_LIBRARY_PATH
  9289. case $host_vendor in
  9290. sni)
  9291. shlibpath_overrides_runpath=no
  9292. need_lib_prefix=no
  9293. runpath_var=LD_RUN_PATH
  9294. ;;
  9295. siemens)
  9296. need_lib_prefix=no
  9297. ;;
  9298. motorola)
  9299. need_lib_prefix=no
  9300. need_version=no
  9301. shlibpath_overrides_runpath=no
  9302. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9303. ;;
  9304. esac
  9305. ;;
  9306. sysv4*MP*)
  9307. if test -d /usr/nec ;then
  9308. version_type=linux # correct to gnu/linux during the next big refactor
  9309. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9310. soname_spec='$libname${shared_ext}.$major'
  9311. shlibpath_var=LD_LIBRARY_PATH
  9312. fi
  9313. ;;
  9314. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9315. version_type=freebsd-elf
  9316. need_lib_prefix=no
  9317. need_version=no
  9318. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9319. soname_spec='${libname}${release}${shared_ext}$major'
  9320. shlibpath_var=LD_LIBRARY_PATH
  9321. shlibpath_overrides_runpath=yes
  9322. hardcode_into_libs=yes
  9323. if test "$with_gnu_ld" = yes; then
  9324. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9325. else
  9326. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9327. case $host_os in
  9328. sco3.2v5*)
  9329. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9330. ;;
  9331. esac
  9332. fi
  9333. sys_lib_dlsearch_path_spec='/usr/lib'
  9334. ;;
  9335. tpf*)
  9336. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9337. version_type=linux # correct to gnu/linux during the next big refactor
  9338. need_lib_prefix=no
  9339. need_version=no
  9340. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9341. shlibpath_var=LD_LIBRARY_PATH
  9342. shlibpath_overrides_runpath=no
  9343. hardcode_into_libs=yes
  9344. ;;
  9345. uts4*)
  9346. version_type=linux # correct to gnu/linux during the next big refactor
  9347. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9348. soname_spec='${libname}${release}${shared_ext}$major'
  9349. shlibpath_var=LD_LIBRARY_PATH
  9350. ;;
  9351. *)
  9352. dynamic_linker=no
  9353. ;;
  9354. esac
  9355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9356. $as_echo "$dynamic_linker" >&6; }
  9357. test "$dynamic_linker" = no && can_build_shared=no
  9358. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9359. if test "$GCC" = yes; then
  9360. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9361. fi
  9362. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9363. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9364. fi
  9365. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9366. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9367. fi
  9368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9369. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9370. hardcode_action=
  9371. if test -n "$hardcode_libdir_flag_spec" ||
  9372. test -n "$runpath_var" ||
  9373. test "X$hardcode_automatic" = "Xyes" ; then
  9374. # We can hardcode non-existent directories.
  9375. if test "$hardcode_direct" != no &&
  9376. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9377. # have to relink, otherwise we might link with an installed library
  9378. # when we should be linking with a yet-to-be-installed one
  9379. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9380. test "$hardcode_minus_L" != no; then
  9381. # Linking always hardcodes the temporary library directory.
  9382. hardcode_action=relink
  9383. else
  9384. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9385. hardcode_action=immediate
  9386. fi
  9387. else
  9388. # We cannot hardcode anything, or else we can only hardcode existing
  9389. # directories.
  9390. hardcode_action=unsupported
  9391. fi
  9392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9393. $as_echo "$hardcode_action" >&6; }
  9394. if test "$hardcode_action" = relink ||
  9395. test "$inherit_rpath" = yes; then
  9396. # Fast installation is not supported
  9397. enable_fast_install=no
  9398. elif test "$shlibpath_overrides_runpath" = yes ||
  9399. test "$enable_shared" = no; then
  9400. # Fast installation is not necessary
  9401. enable_fast_install=needless
  9402. fi
  9403. if test "x$enable_dlopen" != xyes; then
  9404. enable_dlopen=unknown
  9405. enable_dlopen_self=unknown
  9406. enable_dlopen_self_static=unknown
  9407. else
  9408. lt_cv_dlopen=no
  9409. lt_cv_dlopen_libs=
  9410. case $host_os in
  9411. beos*)
  9412. lt_cv_dlopen="load_add_on"
  9413. lt_cv_dlopen_libs=
  9414. lt_cv_dlopen_self=yes
  9415. ;;
  9416. mingw* | pw32* | cegcc*)
  9417. lt_cv_dlopen="LoadLibrary"
  9418. lt_cv_dlopen_libs=
  9419. ;;
  9420. cygwin*)
  9421. lt_cv_dlopen="dlopen"
  9422. lt_cv_dlopen_libs=
  9423. ;;
  9424. darwin*)
  9425. # if libdl is installed we need to link against it
  9426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9427. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9428. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9429. $as_echo_n "(cached) " >&6
  9430. else
  9431. ac_check_lib_save_LIBS=$LIBS
  9432. LIBS="-ldl $LIBS"
  9433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9434. /* end confdefs.h. */
  9435. /* Override any GCC internal prototype to avoid an error.
  9436. Use char because int might match the return type of a GCC
  9437. builtin and then its argument prototype would still apply. */
  9438. #ifdef __cplusplus
  9439. extern "C"
  9440. #endif
  9441. char dlopen ();
  9442. int
  9443. main ()
  9444. {
  9445. return dlopen ();
  9446. ;
  9447. return 0;
  9448. }
  9449. _ACEOF
  9450. if ac_fn_c_try_link "$LINENO"; then :
  9451. ac_cv_lib_dl_dlopen=yes
  9452. else
  9453. ac_cv_lib_dl_dlopen=no
  9454. fi
  9455. rm -f core conftest.err conftest.$ac_objext \
  9456. conftest$ac_exeext conftest.$ac_ext
  9457. LIBS=$ac_check_lib_save_LIBS
  9458. fi
  9459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9460. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9461. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9462. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9463. else
  9464. lt_cv_dlopen="dyld"
  9465. lt_cv_dlopen_libs=
  9466. lt_cv_dlopen_self=yes
  9467. fi
  9468. ;;
  9469. *)
  9470. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9471. if test "x$ac_cv_func_shl_load" = xyes; then :
  9472. lt_cv_dlopen="shl_load"
  9473. else
  9474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9475. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9476. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9477. $as_echo_n "(cached) " >&6
  9478. else
  9479. ac_check_lib_save_LIBS=$LIBS
  9480. LIBS="-ldld $LIBS"
  9481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9482. /* end confdefs.h. */
  9483. /* Override any GCC internal prototype to avoid an error.
  9484. Use char because int might match the return type of a GCC
  9485. builtin and then its argument prototype would still apply. */
  9486. #ifdef __cplusplus
  9487. extern "C"
  9488. #endif
  9489. char shl_load ();
  9490. int
  9491. main ()
  9492. {
  9493. return shl_load ();
  9494. ;
  9495. return 0;
  9496. }
  9497. _ACEOF
  9498. if ac_fn_c_try_link "$LINENO"; then :
  9499. ac_cv_lib_dld_shl_load=yes
  9500. else
  9501. ac_cv_lib_dld_shl_load=no
  9502. fi
  9503. rm -f core conftest.err conftest.$ac_objext \
  9504. conftest$ac_exeext conftest.$ac_ext
  9505. LIBS=$ac_check_lib_save_LIBS
  9506. fi
  9507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9508. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9509. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9510. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9511. else
  9512. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9513. if test "x$ac_cv_func_dlopen" = xyes; then :
  9514. lt_cv_dlopen="dlopen"
  9515. else
  9516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9517. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9518. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9519. $as_echo_n "(cached) " >&6
  9520. else
  9521. ac_check_lib_save_LIBS=$LIBS
  9522. LIBS="-ldl $LIBS"
  9523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9524. /* end confdefs.h. */
  9525. /* Override any GCC internal prototype to avoid an error.
  9526. Use char because int might match the return type of a GCC
  9527. builtin and then its argument prototype would still apply. */
  9528. #ifdef __cplusplus
  9529. extern "C"
  9530. #endif
  9531. char dlopen ();
  9532. int
  9533. main ()
  9534. {
  9535. return dlopen ();
  9536. ;
  9537. return 0;
  9538. }
  9539. _ACEOF
  9540. if ac_fn_c_try_link "$LINENO"; then :
  9541. ac_cv_lib_dl_dlopen=yes
  9542. else
  9543. ac_cv_lib_dl_dlopen=no
  9544. fi
  9545. rm -f core conftest.err conftest.$ac_objext \
  9546. conftest$ac_exeext conftest.$ac_ext
  9547. LIBS=$ac_check_lib_save_LIBS
  9548. fi
  9549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9550. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9551. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9552. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9553. else
  9554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9555. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9556. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9557. $as_echo_n "(cached) " >&6
  9558. else
  9559. ac_check_lib_save_LIBS=$LIBS
  9560. LIBS="-lsvld $LIBS"
  9561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9562. /* end confdefs.h. */
  9563. /* Override any GCC internal prototype to avoid an error.
  9564. Use char because int might match the return type of a GCC
  9565. builtin and then its argument prototype would still apply. */
  9566. #ifdef __cplusplus
  9567. extern "C"
  9568. #endif
  9569. char dlopen ();
  9570. int
  9571. main ()
  9572. {
  9573. return dlopen ();
  9574. ;
  9575. return 0;
  9576. }
  9577. _ACEOF
  9578. if ac_fn_c_try_link "$LINENO"; then :
  9579. ac_cv_lib_svld_dlopen=yes
  9580. else
  9581. ac_cv_lib_svld_dlopen=no
  9582. fi
  9583. rm -f core conftest.err conftest.$ac_objext \
  9584. conftest$ac_exeext conftest.$ac_ext
  9585. LIBS=$ac_check_lib_save_LIBS
  9586. fi
  9587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9588. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9589. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9590. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9591. else
  9592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9593. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9594. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9595. $as_echo_n "(cached) " >&6
  9596. else
  9597. ac_check_lib_save_LIBS=$LIBS
  9598. LIBS="-ldld $LIBS"
  9599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9600. /* end confdefs.h. */
  9601. /* Override any GCC internal prototype to avoid an error.
  9602. Use char because int might match the return type of a GCC
  9603. builtin and then its argument prototype would still apply. */
  9604. #ifdef __cplusplus
  9605. extern "C"
  9606. #endif
  9607. char dld_link ();
  9608. int
  9609. main ()
  9610. {
  9611. return dld_link ();
  9612. ;
  9613. return 0;
  9614. }
  9615. _ACEOF
  9616. if ac_fn_c_try_link "$LINENO"; then :
  9617. ac_cv_lib_dld_dld_link=yes
  9618. else
  9619. ac_cv_lib_dld_dld_link=no
  9620. fi
  9621. rm -f core conftest.err conftest.$ac_objext \
  9622. conftest$ac_exeext conftest.$ac_ext
  9623. LIBS=$ac_check_lib_save_LIBS
  9624. fi
  9625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9626. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9627. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9628. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9629. fi
  9630. fi
  9631. fi
  9632. fi
  9633. fi
  9634. fi
  9635. ;;
  9636. esac
  9637. if test "x$lt_cv_dlopen" != xno; then
  9638. enable_dlopen=yes
  9639. else
  9640. enable_dlopen=no
  9641. fi
  9642. case $lt_cv_dlopen in
  9643. dlopen)
  9644. save_CPPFLAGS="$CPPFLAGS"
  9645. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9646. save_LDFLAGS="$LDFLAGS"
  9647. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9648. save_LIBS="$LIBS"
  9649. LIBS="$lt_cv_dlopen_libs $LIBS"
  9650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9651. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9652. if ${lt_cv_dlopen_self+:} false; then :
  9653. $as_echo_n "(cached) " >&6
  9654. else
  9655. if test "$cross_compiling" = yes; then :
  9656. lt_cv_dlopen_self=cross
  9657. else
  9658. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9659. lt_status=$lt_dlunknown
  9660. cat > conftest.$ac_ext <<_LT_EOF
  9661. #line $LINENO "configure"
  9662. #include "confdefs.h"
  9663. #if HAVE_DLFCN_H
  9664. #include <dlfcn.h>
  9665. #endif
  9666. #include <stdio.h>
  9667. #ifdef RTLD_GLOBAL
  9668. # define LT_DLGLOBAL RTLD_GLOBAL
  9669. #else
  9670. # ifdef DL_GLOBAL
  9671. # define LT_DLGLOBAL DL_GLOBAL
  9672. # else
  9673. # define LT_DLGLOBAL 0
  9674. # endif
  9675. #endif
  9676. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9677. find out it does not work in some platform. */
  9678. #ifndef LT_DLLAZY_OR_NOW
  9679. # ifdef RTLD_LAZY
  9680. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9681. # else
  9682. # ifdef DL_LAZY
  9683. # define LT_DLLAZY_OR_NOW DL_LAZY
  9684. # else
  9685. # ifdef RTLD_NOW
  9686. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9687. # else
  9688. # ifdef DL_NOW
  9689. # define LT_DLLAZY_OR_NOW DL_NOW
  9690. # else
  9691. # define LT_DLLAZY_OR_NOW 0
  9692. # endif
  9693. # endif
  9694. # endif
  9695. # endif
  9696. #endif
  9697. /* When -fvisbility=hidden is used, assume the code has been annotated
  9698. correspondingly for the symbols needed. */
  9699. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9700. int fnord () __attribute__((visibility("default")));
  9701. #endif
  9702. int fnord () { return 42; }
  9703. int main ()
  9704. {
  9705. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9706. int status = $lt_dlunknown;
  9707. if (self)
  9708. {
  9709. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9710. else
  9711. {
  9712. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9713. else puts (dlerror ());
  9714. }
  9715. /* dlclose (self); */
  9716. }
  9717. else
  9718. puts (dlerror ());
  9719. return status;
  9720. }
  9721. _LT_EOF
  9722. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9723. (eval $ac_link) 2>&5
  9724. ac_status=$?
  9725. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9726. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9727. (./conftest; exit; ) >&5 2>/dev/null
  9728. lt_status=$?
  9729. case x$lt_status in
  9730. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9731. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9732. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9733. esac
  9734. else :
  9735. # compilation failed
  9736. lt_cv_dlopen_self=no
  9737. fi
  9738. fi
  9739. rm -fr conftest*
  9740. fi
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9742. $as_echo "$lt_cv_dlopen_self" >&6; }
  9743. if test "x$lt_cv_dlopen_self" = xyes; then
  9744. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9746. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9747. if ${lt_cv_dlopen_self_static+:} false; then :
  9748. $as_echo_n "(cached) " >&6
  9749. else
  9750. if test "$cross_compiling" = yes; then :
  9751. lt_cv_dlopen_self_static=cross
  9752. else
  9753. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9754. lt_status=$lt_dlunknown
  9755. cat > conftest.$ac_ext <<_LT_EOF
  9756. #line $LINENO "configure"
  9757. #include "confdefs.h"
  9758. #if HAVE_DLFCN_H
  9759. #include <dlfcn.h>
  9760. #endif
  9761. #include <stdio.h>
  9762. #ifdef RTLD_GLOBAL
  9763. # define LT_DLGLOBAL RTLD_GLOBAL
  9764. #else
  9765. # ifdef DL_GLOBAL
  9766. # define LT_DLGLOBAL DL_GLOBAL
  9767. # else
  9768. # define LT_DLGLOBAL 0
  9769. # endif
  9770. #endif
  9771. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9772. find out it does not work in some platform. */
  9773. #ifndef LT_DLLAZY_OR_NOW
  9774. # ifdef RTLD_LAZY
  9775. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9776. # else
  9777. # ifdef DL_LAZY
  9778. # define LT_DLLAZY_OR_NOW DL_LAZY
  9779. # else
  9780. # ifdef RTLD_NOW
  9781. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9782. # else
  9783. # ifdef DL_NOW
  9784. # define LT_DLLAZY_OR_NOW DL_NOW
  9785. # else
  9786. # define LT_DLLAZY_OR_NOW 0
  9787. # endif
  9788. # endif
  9789. # endif
  9790. # endif
  9791. #endif
  9792. /* When -fvisbility=hidden is used, assume the code has been annotated
  9793. correspondingly for the symbols needed. */
  9794. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9795. int fnord () __attribute__((visibility("default")));
  9796. #endif
  9797. int fnord () { return 42; }
  9798. int main ()
  9799. {
  9800. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9801. int status = $lt_dlunknown;
  9802. if (self)
  9803. {
  9804. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9805. else
  9806. {
  9807. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9808. else puts (dlerror ());
  9809. }
  9810. /* dlclose (self); */
  9811. }
  9812. else
  9813. puts (dlerror ());
  9814. return status;
  9815. }
  9816. _LT_EOF
  9817. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9818. (eval $ac_link) 2>&5
  9819. ac_status=$?
  9820. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9821. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9822. (./conftest; exit; ) >&5 2>/dev/null
  9823. lt_status=$?
  9824. case x$lt_status in
  9825. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9826. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9827. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9828. esac
  9829. else :
  9830. # compilation failed
  9831. lt_cv_dlopen_self_static=no
  9832. fi
  9833. fi
  9834. rm -fr conftest*
  9835. fi
  9836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9837. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9838. fi
  9839. CPPFLAGS="$save_CPPFLAGS"
  9840. LDFLAGS="$save_LDFLAGS"
  9841. LIBS="$save_LIBS"
  9842. ;;
  9843. esac
  9844. case $lt_cv_dlopen_self in
  9845. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9846. *) enable_dlopen_self=unknown ;;
  9847. esac
  9848. case $lt_cv_dlopen_self_static in
  9849. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9850. *) enable_dlopen_self_static=unknown ;;
  9851. esac
  9852. fi
  9853. striplib=
  9854. old_striplib=
  9855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9856. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9857. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9858. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9859. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9861. $as_echo "yes" >&6; }
  9862. else
  9863. # FIXME - insert some real tests, host_os isn't really good enough
  9864. case $host_os in
  9865. darwin*)
  9866. if test -n "$STRIP" ; then
  9867. striplib="$STRIP -x"
  9868. old_striplib="$STRIP -S"
  9869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9870. $as_echo "yes" >&6; }
  9871. else
  9872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9873. $as_echo "no" >&6; }
  9874. fi
  9875. ;;
  9876. *)
  9877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9878. $as_echo "no" >&6; }
  9879. ;;
  9880. esac
  9881. fi
  9882. # Report which library types will actually be built
  9883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9884. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9886. $as_echo "$can_build_shared" >&6; }
  9887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9888. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9889. test "$can_build_shared" = "no" && enable_shared=no
  9890. # On AIX, shared libraries and static libraries use the same namespace, and
  9891. # are all built from PIC.
  9892. case $host_os in
  9893. aix3*)
  9894. test "$enable_shared" = yes && enable_static=no
  9895. if test -n "$RANLIB"; then
  9896. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9897. postinstall_cmds='$RANLIB $lib'
  9898. fi
  9899. ;;
  9900. aix[4-9]*)
  9901. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9902. test "$enable_shared" = yes && enable_static=no
  9903. fi
  9904. ;;
  9905. esac
  9906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9907. $as_echo "$enable_shared" >&6; }
  9908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9909. $as_echo_n "checking whether to build static libraries... " >&6; }
  9910. # Make sure either enable_shared or enable_static is yes.
  9911. test "$enable_shared" = yes || enable_static=yes
  9912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9913. $as_echo "$enable_static" >&6; }
  9914. fi
  9915. ac_ext=c
  9916. ac_cpp='$CPP $CPPFLAGS'
  9917. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9918. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9919. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9920. CC="$lt_save_CC"
  9921. ac_config_commands="$ac_config_commands libtool"
  9922. # Only expand once:
  9923. if test -n "$ac_tool_prefix"; then
  9924. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  9925. set dummy ${ac_tool_prefix}windres; ac_word=$2
  9926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9927. $as_echo_n "checking for $ac_word... " >&6; }
  9928. if ${ac_cv_prog_RC+:} false; then :
  9929. $as_echo_n "(cached) " >&6
  9930. else
  9931. if test -n "$RC"; then
  9932. ac_cv_prog_RC="$RC" # Let the user override the test.
  9933. else
  9934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9935. for as_dir in $PATH
  9936. do
  9937. IFS=$as_save_IFS
  9938. test -z "$as_dir" && as_dir=.
  9939. for ac_exec_ext in '' $ac_executable_extensions; do
  9940. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9941. ac_cv_prog_RC="${ac_tool_prefix}windres"
  9942. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9943. break 2
  9944. fi
  9945. done
  9946. done
  9947. IFS=$as_save_IFS
  9948. fi
  9949. fi
  9950. RC=$ac_cv_prog_RC
  9951. if test -n "$RC"; then
  9952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  9953. $as_echo "$RC" >&6; }
  9954. else
  9955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9956. $as_echo "no" >&6; }
  9957. fi
  9958. fi
  9959. if test -z "$ac_cv_prog_RC"; then
  9960. ac_ct_RC=$RC
  9961. # Extract the first word of "windres", so it can be a program name with args.
  9962. set dummy windres; ac_word=$2
  9963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9964. $as_echo_n "checking for $ac_word... " >&6; }
  9965. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  9966. $as_echo_n "(cached) " >&6
  9967. else
  9968. if test -n "$ac_ct_RC"; then
  9969. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  9970. else
  9971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9972. for as_dir in $PATH
  9973. do
  9974. IFS=$as_save_IFS
  9975. test -z "$as_dir" && as_dir=.
  9976. for ac_exec_ext in '' $ac_executable_extensions; do
  9977. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9978. ac_cv_prog_ac_ct_RC="windres"
  9979. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9980. break 2
  9981. fi
  9982. done
  9983. done
  9984. IFS=$as_save_IFS
  9985. fi
  9986. fi
  9987. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  9988. if test -n "$ac_ct_RC"; then
  9989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  9990. $as_echo "$ac_ct_RC" >&6; }
  9991. else
  9992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9993. $as_echo "no" >&6; }
  9994. fi
  9995. if test "x$ac_ct_RC" = x; then
  9996. RC=""
  9997. else
  9998. case $cross_compiling:$ac_tool_warned in
  9999. yes:)
  10000. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10001. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10002. ac_tool_warned=yes ;;
  10003. esac
  10004. RC=$ac_ct_RC
  10005. fi
  10006. else
  10007. RC="$ac_cv_prog_RC"
  10008. fi
  10009. # Source file extension for RC test sources.
  10010. ac_ext=rc
  10011. # Object file extension for compiled RC test sources.
  10012. objext=o
  10013. objext_RC=$objext
  10014. # Code to be used in simple compile tests
  10015. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10016. # Code to be used in simple link tests
  10017. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10018. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10019. # If no C compiler was specified, use CC.
  10020. LTCC=${LTCC-"$CC"}
  10021. # If no C compiler flags were specified, use CFLAGS.
  10022. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10023. # Allow CC to be a program name with arguments.
  10024. compiler=$CC
  10025. # save warnings/boilerplate of simple test code
  10026. ac_outfile=conftest.$ac_objext
  10027. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10028. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10029. _lt_compiler_boilerplate=`cat conftest.err`
  10030. $RM conftest*
  10031. ac_outfile=conftest.$ac_objext
  10032. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10033. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10034. _lt_linker_boilerplate=`cat conftest.err`
  10035. $RM -r conftest*
  10036. # Allow CC to be a program name with arguments.
  10037. lt_save_CC="$CC"
  10038. lt_save_CFLAGS=$CFLAGS
  10039. lt_save_GCC=$GCC
  10040. GCC=
  10041. CC=${RC-"windres"}
  10042. CFLAGS=
  10043. compiler=$CC
  10044. compiler_RC=$CC
  10045. for cc_temp in $compiler""; do
  10046. case $cc_temp in
  10047. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10048. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10049. \-*) ;;
  10050. *) break;;
  10051. esac
  10052. done
  10053. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10054. lt_cv_prog_compiler_c_o_RC=yes
  10055. if test -n "$compiler"; then
  10056. :
  10057. fi
  10058. GCC=$lt_save_GCC
  10059. ac_ext=c
  10060. ac_cpp='$CPP $CPPFLAGS'
  10061. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10062. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10063. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10064. CC=$lt_save_CC
  10065. CFLAGS=$lt_save_CFLAGS
  10066. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10067. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10068. LT_REVISION=$SDL_INTERFACE_AGE
  10069. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10070. ac_ext=c
  10071. ac_cpp='$CPP $CPPFLAGS'
  10072. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10073. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10074. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10075. if test -n "$ac_tool_prefix"; then
  10076. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10077. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10079. $as_echo_n "checking for $ac_word... " >&6; }
  10080. if ${ac_cv_prog_CC+:} false; then :
  10081. $as_echo_n "(cached) " >&6
  10082. else
  10083. if test -n "$CC"; then
  10084. ac_cv_prog_CC="$CC" # Let the user override the test.
  10085. else
  10086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10087. for as_dir in $PATH
  10088. do
  10089. IFS=$as_save_IFS
  10090. test -z "$as_dir" && as_dir=.
  10091. for ac_exec_ext in '' $ac_executable_extensions; do
  10092. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10093. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10094. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10095. break 2
  10096. fi
  10097. done
  10098. done
  10099. IFS=$as_save_IFS
  10100. fi
  10101. fi
  10102. CC=$ac_cv_prog_CC
  10103. if test -n "$CC"; then
  10104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10105. $as_echo "$CC" >&6; }
  10106. else
  10107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10108. $as_echo "no" >&6; }
  10109. fi
  10110. fi
  10111. if test -z "$ac_cv_prog_CC"; then
  10112. ac_ct_CC=$CC
  10113. # Extract the first word of "gcc", so it can be a program name with args.
  10114. set dummy gcc; ac_word=$2
  10115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10116. $as_echo_n "checking for $ac_word... " >&6; }
  10117. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10118. $as_echo_n "(cached) " >&6
  10119. else
  10120. if test -n "$ac_ct_CC"; then
  10121. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10122. else
  10123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10124. for as_dir in $PATH
  10125. do
  10126. IFS=$as_save_IFS
  10127. test -z "$as_dir" && as_dir=.
  10128. for ac_exec_ext in '' $ac_executable_extensions; do
  10129. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10130. ac_cv_prog_ac_ct_CC="gcc"
  10131. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10132. break 2
  10133. fi
  10134. done
  10135. done
  10136. IFS=$as_save_IFS
  10137. fi
  10138. fi
  10139. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10140. if test -n "$ac_ct_CC"; then
  10141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10142. $as_echo "$ac_ct_CC" >&6; }
  10143. else
  10144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10145. $as_echo "no" >&6; }
  10146. fi
  10147. if test "x$ac_ct_CC" = x; then
  10148. CC=""
  10149. else
  10150. case $cross_compiling:$ac_tool_warned in
  10151. yes:)
  10152. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10153. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10154. ac_tool_warned=yes ;;
  10155. esac
  10156. CC=$ac_ct_CC
  10157. fi
  10158. else
  10159. CC="$ac_cv_prog_CC"
  10160. fi
  10161. if test -z "$CC"; then
  10162. if test -n "$ac_tool_prefix"; then
  10163. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10164. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10166. $as_echo_n "checking for $ac_word... " >&6; }
  10167. if ${ac_cv_prog_CC+:} false; then :
  10168. $as_echo_n "(cached) " >&6
  10169. else
  10170. if test -n "$CC"; then
  10171. ac_cv_prog_CC="$CC" # Let the user override the test.
  10172. else
  10173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10174. for as_dir in $PATH
  10175. do
  10176. IFS=$as_save_IFS
  10177. test -z "$as_dir" && as_dir=.
  10178. for ac_exec_ext in '' $ac_executable_extensions; do
  10179. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10180. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10181. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10182. break 2
  10183. fi
  10184. done
  10185. done
  10186. IFS=$as_save_IFS
  10187. fi
  10188. fi
  10189. CC=$ac_cv_prog_CC
  10190. if test -n "$CC"; then
  10191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10192. $as_echo "$CC" >&6; }
  10193. else
  10194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10195. $as_echo "no" >&6; }
  10196. fi
  10197. fi
  10198. fi
  10199. if test -z "$CC"; then
  10200. # Extract the first word of "cc", so it can be a program name with args.
  10201. set dummy cc; ac_word=$2
  10202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10203. $as_echo_n "checking for $ac_word... " >&6; }
  10204. if ${ac_cv_prog_CC+:} false; then :
  10205. $as_echo_n "(cached) " >&6
  10206. else
  10207. if test -n "$CC"; then
  10208. ac_cv_prog_CC="$CC" # Let the user override the test.
  10209. else
  10210. ac_prog_rejected=no
  10211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10212. for as_dir in $PATH
  10213. do
  10214. IFS=$as_save_IFS
  10215. test -z "$as_dir" && as_dir=.
  10216. for ac_exec_ext in '' $ac_executable_extensions; do
  10217. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10218. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10219. ac_prog_rejected=yes
  10220. continue
  10221. fi
  10222. ac_cv_prog_CC="cc"
  10223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10224. break 2
  10225. fi
  10226. done
  10227. done
  10228. IFS=$as_save_IFS
  10229. if test $ac_prog_rejected = yes; then
  10230. # We found a bogon in the path, so make sure we never use it.
  10231. set dummy $ac_cv_prog_CC
  10232. shift
  10233. if test $# != 0; then
  10234. # We chose a different compiler from the bogus one.
  10235. # However, it has the same basename, so the bogon will be chosen
  10236. # first if we set CC to just the basename; use the full file name.
  10237. shift
  10238. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10239. fi
  10240. fi
  10241. fi
  10242. fi
  10243. CC=$ac_cv_prog_CC
  10244. if test -n "$CC"; then
  10245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10246. $as_echo "$CC" >&6; }
  10247. else
  10248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10249. $as_echo "no" >&6; }
  10250. fi
  10251. fi
  10252. if test -z "$CC"; then
  10253. if test -n "$ac_tool_prefix"; then
  10254. for ac_prog in cl.exe
  10255. do
  10256. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10257. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10259. $as_echo_n "checking for $ac_word... " >&6; }
  10260. if ${ac_cv_prog_CC+:} false; then :
  10261. $as_echo_n "(cached) " >&6
  10262. else
  10263. if test -n "$CC"; then
  10264. ac_cv_prog_CC="$CC" # Let the user override the test.
  10265. else
  10266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10267. for as_dir in $PATH
  10268. do
  10269. IFS=$as_save_IFS
  10270. test -z "$as_dir" && as_dir=.
  10271. for ac_exec_ext in '' $ac_executable_extensions; do
  10272. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10273. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10274. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10275. break 2
  10276. fi
  10277. done
  10278. done
  10279. IFS=$as_save_IFS
  10280. fi
  10281. fi
  10282. CC=$ac_cv_prog_CC
  10283. if test -n "$CC"; then
  10284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10285. $as_echo "$CC" >&6; }
  10286. else
  10287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10288. $as_echo "no" >&6; }
  10289. fi
  10290. test -n "$CC" && break
  10291. done
  10292. fi
  10293. if test -z "$CC"; then
  10294. ac_ct_CC=$CC
  10295. for ac_prog in cl.exe
  10296. do
  10297. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10298. set dummy $ac_prog; ac_word=$2
  10299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10300. $as_echo_n "checking for $ac_word... " >&6; }
  10301. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10302. $as_echo_n "(cached) " >&6
  10303. else
  10304. if test -n "$ac_ct_CC"; then
  10305. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10306. else
  10307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10308. for as_dir in $PATH
  10309. do
  10310. IFS=$as_save_IFS
  10311. test -z "$as_dir" && as_dir=.
  10312. for ac_exec_ext in '' $ac_executable_extensions; do
  10313. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10314. ac_cv_prog_ac_ct_CC="$ac_prog"
  10315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10316. break 2
  10317. fi
  10318. done
  10319. done
  10320. IFS=$as_save_IFS
  10321. fi
  10322. fi
  10323. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10324. if test -n "$ac_ct_CC"; then
  10325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10326. $as_echo "$ac_ct_CC" >&6; }
  10327. else
  10328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10329. $as_echo "no" >&6; }
  10330. fi
  10331. test -n "$ac_ct_CC" && break
  10332. done
  10333. if test "x$ac_ct_CC" = x; then
  10334. CC=""
  10335. else
  10336. case $cross_compiling:$ac_tool_warned in
  10337. yes:)
  10338. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10339. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10340. ac_tool_warned=yes ;;
  10341. esac
  10342. CC=$ac_ct_CC
  10343. fi
  10344. fi
  10345. fi
  10346. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10347. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10348. as_fn_error $? "no acceptable C compiler found in \$PATH
  10349. See \`config.log' for more details" "$LINENO" 5; }
  10350. # Provide some information about the compiler.
  10351. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10352. set X $ac_compile
  10353. ac_compiler=$2
  10354. for ac_option in --version -v -V -qversion; do
  10355. { { ac_try="$ac_compiler $ac_option >&5"
  10356. case "(($ac_try" in
  10357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10358. *) ac_try_echo=$ac_try;;
  10359. esac
  10360. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10361. $as_echo "$ac_try_echo"; } >&5
  10362. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10363. ac_status=$?
  10364. if test -s conftest.err; then
  10365. sed '10a\
  10366. ... rest of stderr output deleted ...
  10367. 10q' conftest.err >conftest.er1
  10368. cat conftest.er1 >&5
  10369. fi
  10370. rm -f conftest.er1 conftest.err
  10371. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10372. test $ac_status = 0; }
  10373. done
  10374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10375. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10376. if ${ac_cv_c_compiler_gnu+:} false; then :
  10377. $as_echo_n "(cached) " >&6
  10378. else
  10379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10380. /* end confdefs.h. */
  10381. int
  10382. main ()
  10383. {
  10384. #ifndef __GNUC__
  10385. choke me
  10386. #endif
  10387. ;
  10388. return 0;
  10389. }
  10390. _ACEOF
  10391. if ac_fn_c_try_compile "$LINENO"; then :
  10392. ac_compiler_gnu=yes
  10393. else
  10394. ac_compiler_gnu=no
  10395. fi
  10396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10397. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10398. fi
  10399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10400. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10401. if test $ac_compiler_gnu = yes; then
  10402. GCC=yes
  10403. else
  10404. GCC=
  10405. fi
  10406. ac_test_CFLAGS=${CFLAGS+set}
  10407. ac_save_CFLAGS=$CFLAGS
  10408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10409. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10410. if ${ac_cv_prog_cc_g+:} false; then :
  10411. $as_echo_n "(cached) " >&6
  10412. else
  10413. ac_save_c_werror_flag=$ac_c_werror_flag
  10414. ac_c_werror_flag=yes
  10415. ac_cv_prog_cc_g=no
  10416. CFLAGS="-g"
  10417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10418. /* end confdefs.h. */
  10419. int
  10420. main ()
  10421. {
  10422. ;
  10423. return 0;
  10424. }
  10425. _ACEOF
  10426. if ac_fn_c_try_compile "$LINENO"; then :
  10427. ac_cv_prog_cc_g=yes
  10428. else
  10429. CFLAGS=""
  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_c_try_compile "$LINENO"; then :
  10440. else
  10441. ac_c_werror_flag=$ac_save_c_werror_flag
  10442. CFLAGS="-g"
  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_c_try_compile "$LINENO"; then :
  10453. ac_cv_prog_cc_g=yes
  10454. fi
  10455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10456. fi
  10457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10458. fi
  10459. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10460. ac_c_werror_flag=$ac_save_c_werror_flag
  10461. fi
  10462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10463. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10464. if test "$ac_test_CFLAGS" = set; then
  10465. CFLAGS=$ac_save_CFLAGS
  10466. elif test $ac_cv_prog_cc_g = yes; then
  10467. if test "$GCC" = yes; then
  10468. CFLAGS="-g -O2"
  10469. else
  10470. CFLAGS="-g"
  10471. fi
  10472. else
  10473. if test "$GCC" = yes; then
  10474. CFLAGS="-O2"
  10475. else
  10476. CFLAGS=
  10477. fi
  10478. fi
  10479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10480. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10481. if ${ac_cv_prog_cc_c89+:} false; then :
  10482. $as_echo_n "(cached) " >&6
  10483. else
  10484. ac_cv_prog_cc_c89=no
  10485. ac_save_CC=$CC
  10486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10487. /* end confdefs.h. */
  10488. #include <stdarg.h>
  10489. #include <stdio.h>
  10490. struct stat;
  10491. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10492. struct buf { int x; };
  10493. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10494. static char *e (p, i)
  10495. char **p;
  10496. int i;
  10497. {
  10498. return p[i];
  10499. }
  10500. static char *f (char * (*g) (char **, int), char **p, ...)
  10501. {
  10502. char *s;
  10503. va_list v;
  10504. va_start (v,p);
  10505. s = g (p, va_arg (v,int));
  10506. va_end (v);
  10507. return s;
  10508. }
  10509. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10510. function prototypes and stuff, but not '\xHH' hex character constants.
  10511. These don't provoke an error unfortunately, instead are silently treated
  10512. as 'x'. The following induces an error, until -std is added to get
  10513. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10514. array size at least. It's necessary to write '\x00'==0 to get something
  10515. that's true only with -std. */
  10516. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10517. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10518. inside strings and character constants. */
  10519. #define FOO(x) 'x'
  10520. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10521. int test (int i, double x);
  10522. struct s1 {int (*f) (int a);};
  10523. struct s2 {int (*f) (double a);};
  10524. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10525. int argc;
  10526. char **argv;
  10527. int
  10528. main ()
  10529. {
  10530. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10531. ;
  10532. return 0;
  10533. }
  10534. _ACEOF
  10535. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10536. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10537. do
  10538. CC="$ac_save_CC $ac_arg"
  10539. if ac_fn_c_try_compile "$LINENO"; then :
  10540. ac_cv_prog_cc_c89=$ac_arg
  10541. fi
  10542. rm -f core conftest.err conftest.$ac_objext
  10543. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10544. done
  10545. rm -f conftest.$ac_ext
  10546. CC=$ac_save_CC
  10547. fi
  10548. # AC_CACHE_VAL
  10549. case "x$ac_cv_prog_cc_c89" in
  10550. x)
  10551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10552. $as_echo "none needed" >&6; } ;;
  10553. xno)
  10554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10555. $as_echo "unsupported" >&6; } ;;
  10556. *)
  10557. CC="$CC $ac_cv_prog_cc_c89"
  10558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10559. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10560. esac
  10561. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10562. fi
  10563. ac_ext=c
  10564. ac_cpp='$CPP $CPPFLAGS'
  10565. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10566. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10567. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10568. ac_ext=cpp
  10569. ac_cpp='$CXXCPP $CPPFLAGS'
  10570. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10571. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10572. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10573. if test -z "$CXX"; then
  10574. if test -n "$CCC"; then
  10575. CXX=$CCC
  10576. else
  10577. if test -n "$ac_tool_prefix"; then
  10578. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10579. do
  10580. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10581. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10583. $as_echo_n "checking for $ac_word... " >&6; }
  10584. if ${ac_cv_prog_CXX+:} false; then :
  10585. $as_echo_n "(cached) " >&6
  10586. else
  10587. if test -n "$CXX"; then
  10588. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10589. else
  10590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10591. for as_dir in $PATH
  10592. do
  10593. IFS=$as_save_IFS
  10594. test -z "$as_dir" && as_dir=.
  10595. for ac_exec_ext in '' $ac_executable_extensions; do
  10596. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10597. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10598. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10599. break 2
  10600. fi
  10601. done
  10602. done
  10603. IFS=$as_save_IFS
  10604. fi
  10605. fi
  10606. CXX=$ac_cv_prog_CXX
  10607. if test -n "$CXX"; then
  10608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10609. $as_echo "$CXX" >&6; }
  10610. else
  10611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10612. $as_echo "no" >&6; }
  10613. fi
  10614. test -n "$CXX" && break
  10615. done
  10616. fi
  10617. if test -z "$CXX"; then
  10618. ac_ct_CXX=$CXX
  10619. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10620. do
  10621. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10622. set dummy $ac_prog; ac_word=$2
  10623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10624. $as_echo_n "checking for $ac_word... " >&6; }
  10625. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10626. $as_echo_n "(cached) " >&6
  10627. else
  10628. if test -n "$ac_ct_CXX"; then
  10629. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10630. else
  10631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10632. for as_dir in $PATH
  10633. do
  10634. IFS=$as_save_IFS
  10635. test -z "$as_dir" && as_dir=.
  10636. for ac_exec_ext in '' $ac_executable_extensions; do
  10637. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10638. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10639. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10640. break 2
  10641. fi
  10642. done
  10643. done
  10644. IFS=$as_save_IFS
  10645. fi
  10646. fi
  10647. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10648. if test -n "$ac_ct_CXX"; then
  10649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10650. $as_echo "$ac_ct_CXX" >&6; }
  10651. else
  10652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10653. $as_echo "no" >&6; }
  10654. fi
  10655. test -n "$ac_ct_CXX" && break
  10656. done
  10657. if test "x$ac_ct_CXX" = x; then
  10658. CXX="g++"
  10659. else
  10660. case $cross_compiling:$ac_tool_warned in
  10661. yes:)
  10662. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10663. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10664. ac_tool_warned=yes ;;
  10665. esac
  10666. CXX=$ac_ct_CXX
  10667. fi
  10668. fi
  10669. fi
  10670. fi
  10671. # Provide some information about the compiler.
  10672. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10673. set X $ac_compile
  10674. ac_compiler=$2
  10675. for ac_option in --version -v -V -qversion; do
  10676. { { ac_try="$ac_compiler $ac_option >&5"
  10677. case "(($ac_try" in
  10678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10679. *) ac_try_echo=$ac_try;;
  10680. esac
  10681. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10682. $as_echo "$ac_try_echo"; } >&5
  10683. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10684. ac_status=$?
  10685. if test -s conftest.err; then
  10686. sed '10a\
  10687. ... rest of stderr output deleted ...
  10688. 10q' conftest.err >conftest.er1
  10689. cat conftest.er1 >&5
  10690. fi
  10691. rm -f conftest.er1 conftest.err
  10692. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10693. test $ac_status = 0; }
  10694. done
  10695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10696. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10697. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10698. $as_echo_n "(cached) " >&6
  10699. else
  10700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10701. /* end confdefs.h. */
  10702. int
  10703. main ()
  10704. {
  10705. #ifndef __GNUC__
  10706. choke me
  10707. #endif
  10708. ;
  10709. return 0;
  10710. }
  10711. _ACEOF
  10712. if ac_fn_cxx_try_compile "$LINENO"; then :
  10713. ac_compiler_gnu=yes
  10714. else
  10715. ac_compiler_gnu=no
  10716. fi
  10717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10718. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10719. fi
  10720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10721. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10722. if test $ac_compiler_gnu = yes; then
  10723. GXX=yes
  10724. else
  10725. GXX=
  10726. fi
  10727. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10728. ac_save_CXXFLAGS=$CXXFLAGS
  10729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10730. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10731. if ${ac_cv_prog_cxx_g+:} false; then :
  10732. $as_echo_n "(cached) " >&6
  10733. else
  10734. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10735. ac_cxx_werror_flag=yes
  10736. ac_cv_prog_cxx_g=no
  10737. CXXFLAGS="-g"
  10738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10739. /* end confdefs.h. */
  10740. int
  10741. main ()
  10742. {
  10743. ;
  10744. return 0;
  10745. }
  10746. _ACEOF
  10747. if ac_fn_cxx_try_compile "$LINENO"; then :
  10748. ac_cv_prog_cxx_g=yes
  10749. else
  10750. CXXFLAGS=""
  10751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10752. /* end confdefs.h. */
  10753. int
  10754. main ()
  10755. {
  10756. ;
  10757. return 0;
  10758. }
  10759. _ACEOF
  10760. if ac_fn_cxx_try_compile "$LINENO"; then :
  10761. else
  10762. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10763. CXXFLAGS="-g"
  10764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10765. /* end confdefs.h. */
  10766. int
  10767. main ()
  10768. {
  10769. ;
  10770. return 0;
  10771. }
  10772. _ACEOF
  10773. if ac_fn_cxx_try_compile "$LINENO"; then :
  10774. ac_cv_prog_cxx_g=yes
  10775. fi
  10776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10777. fi
  10778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10779. fi
  10780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10781. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10782. fi
  10783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10784. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10785. if test "$ac_test_CXXFLAGS" = set; then
  10786. CXXFLAGS=$ac_save_CXXFLAGS
  10787. elif test $ac_cv_prog_cxx_g = yes; then
  10788. if test "$GXX" = yes; then
  10789. CXXFLAGS="-g -O2"
  10790. else
  10791. CXXFLAGS="-g"
  10792. fi
  10793. else
  10794. if test "$GXX" = yes; then
  10795. CXXFLAGS="-O2"
  10796. else
  10797. CXXFLAGS=
  10798. fi
  10799. fi
  10800. ac_ext=c
  10801. ac_cpp='$CPP $CPPFLAGS'
  10802. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10803. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10804. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10805. func_stripname_cnf ()
  10806. {
  10807. case ${2} in
  10808. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10809. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10810. esac
  10811. } # func_stripname_cnf
  10812. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10813. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10814. (test "X$CXX" != "Xg++"))) ; then
  10815. ac_ext=cpp
  10816. ac_cpp='$CXXCPP $CPPFLAGS'
  10817. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10818. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10819. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10821. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10822. if test -z "$CXXCPP"; then
  10823. if ${ac_cv_prog_CXXCPP+:} false; then :
  10824. $as_echo_n "(cached) " >&6
  10825. else
  10826. # Double quotes because CXXCPP needs to be expanded
  10827. for CXXCPP in "$CXX -E" "/lib/cpp"
  10828. do
  10829. ac_preproc_ok=false
  10830. for ac_cxx_preproc_warn_flag in '' yes
  10831. do
  10832. # Use a header file that comes with gcc, so configuring glibc
  10833. # with a fresh cross-compiler works.
  10834. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10835. # <limits.h> exists even on freestanding compilers.
  10836. # On the NeXT, cc -E runs the code through the compiler's parser,
  10837. # not just through cpp. "Syntax error" is here to catch this case.
  10838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10839. /* end confdefs.h. */
  10840. #ifdef __STDC__
  10841. # include <limits.h>
  10842. #else
  10843. # include <assert.h>
  10844. #endif
  10845. Syntax error
  10846. _ACEOF
  10847. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10848. else
  10849. # Broken: fails on valid input.
  10850. continue
  10851. fi
  10852. rm -f conftest.err conftest.i conftest.$ac_ext
  10853. # OK, works on sane cases. Now check whether nonexistent headers
  10854. # can be detected and how.
  10855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10856. /* end confdefs.h. */
  10857. #include <ac_nonexistent.h>
  10858. _ACEOF
  10859. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10860. # Broken: success on invalid input.
  10861. continue
  10862. else
  10863. # Passes both tests.
  10864. ac_preproc_ok=:
  10865. break
  10866. fi
  10867. rm -f conftest.err conftest.i conftest.$ac_ext
  10868. done
  10869. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10870. rm -f conftest.i conftest.err conftest.$ac_ext
  10871. if $ac_preproc_ok; then :
  10872. break
  10873. fi
  10874. done
  10875. ac_cv_prog_CXXCPP=$CXXCPP
  10876. fi
  10877. CXXCPP=$ac_cv_prog_CXXCPP
  10878. else
  10879. ac_cv_prog_CXXCPP=$CXXCPP
  10880. fi
  10881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10882. $as_echo "$CXXCPP" >&6; }
  10883. ac_preproc_ok=false
  10884. for ac_cxx_preproc_warn_flag in '' yes
  10885. do
  10886. # Use a header file that comes with gcc, so configuring glibc
  10887. # with a fresh cross-compiler works.
  10888. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10889. # <limits.h> exists even on freestanding compilers.
  10890. # On the NeXT, cc -E runs the code through the compiler's parser,
  10891. # not just through cpp. "Syntax error" is here to catch this case.
  10892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10893. /* end confdefs.h. */
  10894. #ifdef __STDC__
  10895. # include <limits.h>
  10896. #else
  10897. # include <assert.h>
  10898. #endif
  10899. Syntax error
  10900. _ACEOF
  10901. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10902. else
  10903. # Broken: fails on valid input.
  10904. continue
  10905. fi
  10906. rm -f conftest.err conftest.i conftest.$ac_ext
  10907. # OK, works on sane cases. Now check whether nonexistent headers
  10908. # can be detected and how.
  10909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10910. /* end confdefs.h. */
  10911. #include <ac_nonexistent.h>
  10912. _ACEOF
  10913. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10914. # Broken: success on invalid input.
  10915. continue
  10916. else
  10917. # Passes both tests.
  10918. ac_preproc_ok=:
  10919. break
  10920. fi
  10921. rm -f conftest.err conftest.i conftest.$ac_ext
  10922. done
  10923. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10924. rm -f conftest.i conftest.err conftest.$ac_ext
  10925. if $ac_preproc_ok; then :
  10926. else
  10927. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10928. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10929. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10930. See \`config.log' for more details" "$LINENO" 5; }
  10931. fi
  10932. ac_ext=c
  10933. ac_cpp='$CPP $CPPFLAGS'
  10934. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10935. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10936. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10937. else
  10938. _lt_caught_CXX_error=yes
  10939. fi
  10940. ac_ext=cpp
  10941. ac_cpp='$CXXCPP $CPPFLAGS'
  10942. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10943. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10944. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10945. archive_cmds_need_lc_CXX=no
  10946. allow_undefined_flag_CXX=
  10947. always_export_symbols_CXX=no
  10948. archive_expsym_cmds_CXX=
  10949. compiler_needs_object_CXX=no
  10950. export_dynamic_flag_spec_CXX=
  10951. hardcode_direct_CXX=no
  10952. hardcode_direct_absolute_CXX=no
  10953. hardcode_libdir_flag_spec_CXX=
  10954. hardcode_libdir_separator_CXX=
  10955. hardcode_minus_L_CXX=no
  10956. hardcode_shlibpath_var_CXX=unsupported
  10957. hardcode_automatic_CXX=no
  10958. inherit_rpath_CXX=no
  10959. module_cmds_CXX=
  10960. module_expsym_cmds_CXX=
  10961. link_all_deplibs_CXX=unknown
  10962. old_archive_cmds_CXX=$old_archive_cmds
  10963. reload_flag_CXX=$reload_flag
  10964. reload_cmds_CXX=$reload_cmds
  10965. no_undefined_flag_CXX=
  10966. whole_archive_flag_spec_CXX=
  10967. enable_shared_with_static_runtimes_CXX=no
  10968. # Source file extension for C++ test sources.
  10969. ac_ext=cpp
  10970. # Object file extension for compiled C++ test sources.
  10971. objext=o
  10972. objext_CXX=$objext
  10973. # No sense in running all these tests if we already determined that
  10974. # the CXX compiler isn't working. Some variables (like enable_shared)
  10975. # are currently assumed to apply to all compilers on this platform,
  10976. # and will be corrupted by setting them based on a non-working compiler.
  10977. if test "$_lt_caught_CXX_error" != yes; then
  10978. # Code to be used in simple compile tests
  10979. lt_simple_compile_test_code="int some_variable = 0;"
  10980. # Code to be used in simple link tests
  10981. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10982. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10983. # If no C compiler was specified, use CC.
  10984. LTCC=${LTCC-"$CC"}
  10985. # If no C compiler flags were specified, use CFLAGS.
  10986. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10987. # Allow CC to be a program name with arguments.
  10988. compiler=$CC
  10989. # save warnings/boilerplate of simple test code
  10990. ac_outfile=conftest.$ac_objext
  10991. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10992. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10993. _lt_compiler_boilerplate=`cat conftest.err`
  10994. $RM conftest*
  10995. ac_outfile=conftest.$ac_objext
  10996. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10997. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10998. _lt_linker_boilerplate=`cat conftest.err`
  10999. $RM -r conftest*
  11000. # Allow CC to be a program name with arguments.
  11001. lt_save_CC=$CC
  11002. lt_save_CFLAGS=$CFLAGS
  11003. lt_save_LD=$LD
  11004. lt_save_GCC=$GCC
  11005. GCC=$GXX
  11006. lt_save_with_gnu_ld=$with_gnu_ld
  11007. lt_save_path_LD=$lt_cv_path_LD
  11008. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11009. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11010. else
  11011. $as_unset lt_cv_prog_gnu_ld
  11012. fi
  11013. if test -n "${lt_cv_path_LDCXX+set}"; then
  11014. lt_cv_path_LD=$lt_cv_path_LDCXX
  11015. else
  11016. $as_unset lt_cv_path_LD
  11017. fi
  11018. test -z "${LDCXX+set}" || LD=$LDCXX
  11019. CC=${CXX-"c++"}
  11020. CFLAGS=$CXXFLAGS
  11021. compiler=$CC
  11022. compiler_CXX=$CC
  11023. for cc_temp in $compiler""; do
  11024. case $cc_temp in
  11025. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11026. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11027. \-*) ;;
  11028. *) break;;
  11029. esac
  11030. done
  11031. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11032. if test -n "$compiler"; then
  11033. # We don't want -fno-exception when compiling C++ code, so set the
  11034. # no_builtin_flag separately
  11035. if test "$GXX" = yes; then
  11036. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11037. else
  11038. lt_prog_compiler_no_builtin_flag_CXX=
  11039. fi
  11040. if test "$GXX" = yes; then
  11041. # Set up default GNU C++ configuration
  11042. # Check whether --with-gnu-ld was given.
  11043. if test "${with_gnu_ld+set}" = set; then :
  11044. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11045. else
  11046. with_gnu_ld=no
  11047. fi
  11048. ac_prog=ld
  11049. if test "$GCC" = yes; then
  11050. # Check if gcc -print-prog-name=ld gives a path.
  11051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11052. $as_echo_n "checking for ld used by $CC... " >&6; }
  11053. case $host in
  11054. *-*-mingw*)
  11055. # gcc leaves a trailing carriage return which upsets mingw
  11056. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11057. *)
  11058. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11059. esac
  11060. case $ac_prog in
  11061. # Accept absolute paths.
  11062. [\\/]* | ?:[\\/]*)
  11063. re_direlt='/[^/][^/]*/\.\./'
  11064. # Canonicalize the pathname of ld
  11065. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11066. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11067. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11068. done
  11069. test -z "$LD" && LD="$ac_prog"
  11070. ;;
  11071. "")
  11072. # If it fails, then pretend we aren't using GCC.
  11073. ac_prog=ld
  11074. ;;
  11075. *)
  11076. # If it is relative, then search for the first ld in PATH.
  11077. with_gnu_ld=unknown
  11078. ;;
  11079. esac
  11080. elif test "$with_gnu_ld" = yes; then
  11081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11082. $as_echo_n "checking for GNU ld... " >&6; }
  11083. else
  11084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11085. $as_echo_n "checking for non-GNU ld... " >&6; }
  11086. fi
  11087. if ${lt_cv_path_LD+:} false; then :
  11088. $as_echo_n "(cached) " >&6
  11089. else
  11090. if test -z "$LD"; then
  11091. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11092. for ac_dir in $PATH; do
  11093. IFS="$lt_save_ifs"
  11094. test -z "$ac_dir" && ac_dir=.
  11095. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11096. lt_cv_path_LD="$ac_dir/$ac_prog"
  11097. # Check to see if the program is GNU ld. I'd rather use --version,
  11098. # but apparently some variants of GNU ld only accept -v.
  11099. # Break only if it was the GNU/non-GNU ld that we prefer.
  11100. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11101. *GNU* | *'with BFD'*)
  11102. test "$with_gnu_ld" != no && break
  11103. ;;
  11104. *)
  11105. test "$with_gnu_ld" != yes && break
  11106. ;;
  11107. esac
  11108. fi
  11109. done
  11110. IFS="$lt_save_ifs"
  11111. else
  11112. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11113. fi
  11114. fi
  11115. LD="$lt_cv_path_LD"
  11116. if test -n "$LD"; then
  11117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11118. $as_echo "$LD" >&6; }
  11119. else
  11120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11121. $as_echo "no" >&6; }
  11122. fi
  11123. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11125. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11126. if ${lt_cv_prog_gnu_ld+:} false; then :
  11127. $as_echo_n "(cached) " >&6
  11128. else
  11129. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11130. case `$LD -v 2>&1 </dev/null` in
  11131. *GNU* | *'with BFD'*)
  11132. lt_cv_prog_gnu_ld=yes
  11133. ;;
  11134. *)
  11135. lt_cv_prog_gnu_ld=no
  11136. ;;
  11137. esac
  11138. fi
  11139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11140. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11141. with_gnu_ld=$lt_cv_prog_gnu_ld
  11142. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11143. # archiving commands below assume that GNU ld is being used.
  11144. if test "$with_gnu_ld" = yes; then
  11145. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11146. 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'
  11147. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11148. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11149. # If archive_cmds runs LD, not CC, wlarc should be empty
  11150. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11151. # investigate it a little bit more. (MM)
  11152. wlarc='${wl}'
  11153. # ancient GNU ld didn't support --whole-archive et. al.
  11154. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11155. $GREP 'no-whole-archive' > /dev/null; then
  11156. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11157. else
  11158. whole_archive_flag_spec_CXX=
  11159. fi
  11160. else
  11161. with_gnu_ld=no
  11162. wlarc=
  11163. # A generic and very simple default shared library creation
  11164. # command for GNU C++ for the case where it uses the native
  11165. # linker, instead of GNU ld. If possible, this setting should
  11166. # overridden to take advantage of the native linker features on
  11167. # the platform it is being used on.
  11168. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11169. fi
  11170. # Commands to make compiler produce verbose output that lists
  11171. # what "hidden" libraries, object files and flags are used when
  11172. # linking a shared library.
  11173. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11174. else
  11175. GXX=no
  11176. with_gnu_ld=no
  11177. wlarc=
  11178. fi
  11179. # PORTME: fill in a description of your system's C++ link characteristics
  11180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11181. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11182. ld_shlibs_CXX=yes
  11183. case $host_os in
  11184. aix3*)
  11185. # FIXME: insert proper C++ library support
  11186. ld_shlibs_CXX=no
  11187. ;;
  11188. aix[4-9]*)
  11189. if test "$host_cpu" = ia64; then
  11190. # On IA64, the linker does run time linking by default, so we don't
  11191. # have to do anything special.
  11192. aix_use_runtimelinking=no
  11193. exp_sym_flag='-Bexport'
  11194. no_entry_flag=""
  11195. else
  11196. aix_use_runtimelinking=no
  11197. # Test if we are trying to use run time linking or normal
  11198. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11199. # need to do runtime linking.
  11200. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11201. for ld_flag in $LDFLAGS; do
  11202. case $ld_flag in
  11203. *-brtl*)
  11204. aix_use_runtimelinking=yes
  11205. break
  11206. ;;
  11207. esac
  11208. done
  11209. ;;
  11210. esac
  11211. exp_sym_flag='-bexport'
  11212. no_entry_flag='-bnoentry'
  11213. fi
  11214. # When large executables or shared objects are built, AIX ld can
  11215. # have problems creating the table of contents. If linking a library
  11216. # or program results in "error TOC overflow" add -mminimal-toc to
  11217. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11218. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11219. archive_cmds_CXX=''
  11220. hardcode_direct_CXX=yes
  11221. hardcode_direct_absolute_CXX=yes
  11222. hardcode_libdir_separator_CXX=':'
  11223. link_all_deplibs_CXX=yes
  11224. file_list_spec_CXX='${wl}-f,'
  11225. if test "$GXX" = yes; then
  11226. case $host_os in aix4.[012]|aix4.[012].*)
  11227. # We only want to do this on AIX 4.2 and lower, the check
  11228. # below for broken collect2 doesn't work under 4.3+
  11229. collect2name=`${CC} -print-prog-name=collect2`
  11230. if test -f "$collect2name" &&
  11231. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11232. then
  11233. # We have reworked collect2
  11234. :
  11235. else
  11236. # We have old collect2
  11237. hardcode_direct_CXX=unsupported
  11238. # It fails to find uninstalled libraries when the uninstalled
  11239. # path is not listed in the libpath. Setting hardcode_minus_L
  11240. # to unsupported forces relinking
  11241. hardcode_minus_L_CXX=yes
  11242. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11243. hardcode_libdir_separator_CXX=
  11244. fi
  11245. esac
  11246. shared_flag='-shared'
  11247. if test "$aix_use_runtimelinking" = yes; then
  11248. shared_flag="$shared_flag "'${wl}-G'
  11249. fi
  11250. else
  11251. # not using gcc
  11252. if test "$host_cpu" = ia64; then
  11253. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11254. # chokes on -Wl,-G. The following line is correct:
  11255. shared_flag='-G'
  11256. else
  11257. if test "$aix_use_runtimelinking" = yes; then
  11258. shared_flag='${wl}-G'
  11259. else
  11260. shared_flag='${wl}-bM:SRE'
  11261. fi
  11262. fi
  11263. fi
  11264. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11265. # It seems that -bexpall does not export symbols beginning with
  11266. # underscore (_), so it is better to generate a list of symbols to
  11267. # export.
  11268. always_export_symbols_CXX=yes
  11269. if test "$aix_use_runtimelinking" = yes; then
  11270. # Warning - without using the other runtime loading flags (-brtl),
  11271. # -berok will link without error, but may produce a broken library.
  11272. allow_undefined_flag_CXX='-berok'
  11273. # Determine the default libpath from the value encoded in an empty
  11274. # executable.
  11275. if test "${lt_cv_aix_libpath+set}" = set; then
  11276. aix_libpath=$lt_cv_aix_libpath
  11277. else
  11278. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11279. $as_echo_n "(cached) " >&6
  11280. else
  11281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11282. /* end confdefs.h. */
  11283. int
  11284. main ()
  11285. {
  11286. ;
  11287. return 0;
  11288. }
  11289. _ACEOF
  11290. if ac_fn_cxx_try_link "$LINENO"; then :
  11291. lt_aix_libpath_sed='
  11292. /Import File Strings/,/^$/ {
  11293. /^0/ {
  11294. s/^0 *\([^ ]*\) *$/\1/
  11295. p
  11296. }
  11297. }'
  11298. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11299. # Check for a 64-bit object if we didn't find anything.
  11300. if test -z "$lt_cv_aix_libpath__CXX"; then
  11301. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11302. fi
  11303. fi
  11304. rm -f core conftest.err conftest.$ac_objext \
  11305. conftest$ac_exeext conftest.$ac_ext
  11306. if test -z "$lt_cv_aix_libpath__CXX"; then
  11307. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11308. fi
  11309. fi
  11310. aix_libpath=$lt_cv_aix_libpath__CXX
  11311. fi
  11312. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11313. 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"
  11314. else
  11315. if test "$host_cpu" = ia64; then
  11316. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11317. allow_undefined_flag_CXX="-z nodefs"
  11318. 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"
  11319. else
  11320. # Determine the default libpath from the value encoded in an
  11321. # empty executable.
  11322. if test "${lt_cv_aix_libpath+set}" = set; then
  11323. aix_libpath=$lt_cv_aix_libpath
  11324. else
  11325. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11326. $as_echo_n "(cached) " >&6
  11327. else
  11328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11329. /* end confdefs.h. */
  11330. int
  11331. main ()
  11332. {
  11333. ;
  11334. return 0;
  11335. }
  11336. _ACEOF
  11337. if ac_fn_cxx_try_link "$LINENO"; then :
  11338. lt_aix_libpath_sed='
  11339. /Import File Strings/,/^$/ {
  11340. /^0/ {
  11341. s/^0 *\([^ ]*\) *$/\1/
  11342. p
  11343. }
  11344. }'
  11345. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11346. # Check for a 64-bit object if we didn't find anything.
  11347. if test -z "$lt_cv_aix_libpath__CXX"; then
  11348. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11349. fi
  11350. fi
  11351. rm -f core conftest.err conftest.$ac_objext \
  11352. conftest$ac_exeext conftest.$ac_ext
  11353. if test -z "$lt_cv_aix_libpath__CXX"; then
  11354. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11355. fi
  11356. fi
  11357. aix_libpath=$lt_cv_aix_libpath__CXX
  11358. fi
  11359. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11360. # Warning - without using the other run time loading flags,
  11361. # -berok will link without error, but may produce a broken library.
  11362. no_undefined_flag_CXX=' ${wl}-bernotok'
  11363. allow_undefined_flag_CXX=' ${wl}-berok'
  11364. if test "$with_gnu_ld" = yes; then
  11365. # We only use this code for GNU lds that support --whole-archive.
  11366. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11367. else
  11368. # Exported symbols can be pulled into shared objects from archives
  11369. whole_archive_flag_spec_CXX='$convenience'
  11370. fi
  11371. archive_cmds_need_lc_CXX=yes
  11372. # This is similar to how AIX traditionally builds its shared
  11373. # libraries.
  11374. 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'
  11375. fi
  11376. fi
  11377. ;;
  11378. beos*)
  11379. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11380. allow_undefined_flag_CXX=unsupported
  11381. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11382. # support --undefined. This deserves some investigation. FIXME
  11383. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11384. else
  11385. ld_shlibs_CXX=no
  11386. fi
  11387. ;;
  11388. chorus*)
  11389. case $cc_basename in
  11390. *)
  11391. # FIXME: insert proper C++ library support
  11392. ld_shlibs_CXX=no
  11393. ;;
  11394. esac
  11395. ;;
  11396. cygwin* | mingw* | pw32* | cegcc*)
  11397. case $GXX,$cc_basename in
  11398. ,cl* | no,cl*)
  11399. # Native MSVC
  11400. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11401. # no search path for DLLs.
  11402. hardcode_libdir_flag_spec_CXX=' '
  11403. allow_undefined_flag_CXX=unsupported
  11404. always_export_symbols_CXX=yes
  11405. file_list_spec_CXX='@'
  11406. # Tell ltmain to make .lib files, not .a files.
  11407. libext=lib
  11408. # Tell ltmain to make .dll files, not .so files.
  11409. shrext_cmds=".dll"
  11410. # FIXME: Setting linknames here is a bad hack.
  11411. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11412. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11413. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11414. else
  11415. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11416. fi~
  11417. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11418. linknames='
  11419. # The linker will not automatically build a static lib if we build a DLL.
  11420. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11421. enable_shared_with_static_runtimes_CXX=yes
  11422. # Don't use ranlib
  11423. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11424. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11425. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11426. case $lt_outputfile in
  11427. *.exe|*.EXE) ;;
  11428. *)
  11429. lt_outputfile="$lt_outputfile.exe"
  11430. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11431. ;;
  11432. esac~
  11433. func_to_tool_file "$lt_outputfile"~
  11434. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11435. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11436. $RM "$lt_outputfile.manifest";
  11437. fi'
  11438. ;;
  11439. *)
  11440. # g++
  11441. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11442. # as there is no search path for DLLs.
  11443. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11444. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11445. allow_undefined_flag_CXX=unsupported
  11446. always_export_symbols_CXX=no
  11447. enable_shared_with_static_runtimes_CXX=yes
  11448. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11449. 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'
  11450. # If the export-symbols file already is a .def file (1st line
  11451. # is EXPORTS), use it as is; otherwise, prepend...
  11452. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11453. cp $export_symbols $output_objdir/$soname.def;
  11454. else
  11455. echo EXPORTS > $output_objdir/$soname.def;
  11456. cat $export_symbols >> $output_objdir/$soname.def;
  11457. fi~
  11458. $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'
  11459. else
  11460. ld_shlibs_CXX=no
  11461. fi
  11462. ;;
  11463. esac
  11464. ;;
  11465. darwin* | rhapsody*)
  11466. archive_cmds_need_lc_CXX=no
  11467. hardcode_direct_CXX=no
  11468. hardcode_automatic_CXX=yes
  11469. hardcode_shlibpath_var_CXX=unsupported
  11470. if test "$lt_cv_ld_force_load" = "yes"; then
  11471. 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\"`'
  11472. else
  11473. whole_archive_flag_spec_CXX=''
  11474. fi
  11475. link_all_deplibs_CXX=yes
  11476. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11477. case $cc_basename in
  11478. ifort*) _lt_dar_can_shared=yes ;;
  11479. *) _lt_dar_can_shared=$GCC ;;
  11480. esac
  11481. if test "$_lt_dar_can_shared" = "yes"; then
  11482. output_verbose_link_cmd=func_echo_all
  11483. 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}"
  11484. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11485. 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}"
  11486. 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}"
  11487. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11488. 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}"
  11489. 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}"
  11490. fi
  11491. else
  11492. ld_shlibs_CXX=no
  11493. fi
  11494. ;;
  11495. dgux*)
  11496. case $cc_basename in
  11497. ec++*)
  11498. # FIXME: insert proper C++ library support
  11499. ld_shlibs_CXX=no
  11500. ;;
  11501. ghcx*)
  11502. # Green Hills C++ Compiler
  11503. # FIXME: insert proper C++ library support
  11504. ld_shlibs_CXX=no
  11505. ;;
  11506. *)
  11507. # FIXME: insert proper C++ library support
  11508. ld_shlibs_CXX=no
  11509. ;;
  11510. esac
  11511. ;;
  11512. freebsd2.*)
  11513. # C++ shared libraries reported to be fairly broken before
  11514. # switch to ELF
  11515. ld_shlibs_CXX=no
  11516. ;;
  11517. freebsd-elf*)
  11518. archive_cmds_need_lc_CXX=no
  11519. ;;
  11520. freebsd* | dragonfly*)
  11521. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11522. # conventions
  11523. ld_shlibs_CXX=yes
  11524. ;;
  11525. gnu*)
  11526. ;;
  11527. haiku*)
  11528. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11529. link_all_deplibs_CXX=yes
  11530. ;;
  11531. hpux9*)
  11532. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11533. hardcode_libdir_separator_CXX=:
  11534. export_dynamic_flag_spec_CXX='${wl}-E'
  11535. hardcode_direct_CXX=yes
  11536. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11537. # but as the default
  11538. # location of the library.
  11539. case $cc_basename in
  11540. CC*)
  11541. # FIXME: insert proper C++ library support
  11542. ld_shlibs_CXX=no
  11543. ;;
  11544. aCC*)
  11545. 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'
  11546. # Commands to make compiler produce verbose output that lists
  11547. # what "hidden" libraries, object files and flags are used when
  11548. # linking a shared library.
  11549. #
  11550. # There doesn't appear to be a way to prevent this compiler from
  11551. # explicitly linking system object files so we need to strip them
  11552. # from the output so that they don't get included in the library
  11553. # dependencies.
  11554. 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"'
  11555. ;;
  11556. *)
  11557. if test "$GXX" = yes; then
  11558. 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'
  11559. else
  11560. # FIXME: insert proper C++ library support
  11561. ld_shlibs_CXX=no
  11562. fi
  11563. ;;
  11564. esac
  11565. ;;
  11566. hpux10*|hpux11*)
  11567. if test $with_gnu_ld = no; then
  11568. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11569. hardcode_libdir_separator_CXX=:
  11570. case $host_cpu in
  11571. hppa*64*|ia64*)
  11572. ;;
  11573. *)
  11574. export_dynamic_flag_spec_CXX='${wl}-E'
  11575. ;;
  11576. esac
  11577. fi
  11578. case $host_cpu in
  11579. hppa*64*|ia64*)
  11580. hardcode_direct_CXX=no
  11581. hardcode_shlibpath_var_CXX=no
  11582. ;;
  11583. *)
  11584. hardcode_direct_CXX=yes
  11585. hardcode_direct_absolute_CXX=yes
  11586. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11587. # but as the default
  11588. # location of the library.
  11589. ;;
  11590. esac
  11591. case $cc_basename in
  11592. CC*)
  11593. # FIXME: insert proper C++ library support
  11594. ld_shlibs_CXX=no
  11595. ;;
  11596. aCC*)
  11597. case $host_cpu in
  11598. hppa*64*)
  11599. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11600. ;;
  11601. ia64*)
  11602. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11603. ;;
  11604. *)
  11605. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11606. ;;
  11607. esac
  11608. # Commands to make compiler produce verbose output that lists
  11609. # what "hidden" libraries, object files and flags are used when
  11610. # linking a shared library.
  11611. #
  11612. # There doesn't appear to be a way to prevent this compiler from
  11613. # explicitly linking system object files so we need to strip them
  11614. # from the output so that they don't get included in the library
  11615. # dependencies.
  11616. 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"'
  11617. ;;
  11618. *)
  11619. if test "$GXX" = yes; then
  11620. if test $with_gnu_ld = no; then
  11621. case $host_cpu in
  11622. hppa*64*)
  11623. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11624. ;;
  11625. ia64*)
  11626. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11627. ;;
  11628. *)
  11629. 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'
  11630. ;;
  11631. esac
  11632. fi
  11633. else
  11634. # FIXME: insert proper C++ library support
  11635. ld_shlibs_CXX=no
  11636. fi
  11637. ;;
  11638. esac
  11639. ;;
  11640. interix[3-9]*)
  11641. hardcode_direct_CXX=no
  11642. hardcode_shlibpath_var_CXX=no
  11643. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11644. export_dynamic_flag_spec_CXX='${wl}-E'
  11645. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11646. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11647. # default) and relocated if they conflict, which is a slow very memory
  11648. # consuming and fragmenting process. To avoid this, we pick a random,
  11649. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11650. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11651. 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'
  11652. 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'
  11653. ;;
  11654. irix5* | irix6*)
  11655. case $cc_basename in
  11656. CC*)
  11657. # SGI C++
  11658. 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'
  11659. # Archives containing C++ object files must be created using
  11660. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11661. # necessary to make sure instantiated templates are included
  11662. # in the archive.
  11663. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11664. ;;
  11665. *)
  11666. if test "$GXX" = yes; then
  11667. if test "$with_gnu_ld" = no; then
  11668. 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'
  11669. else
  11670. 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'
  11671. fi
  11672. fi
  11673. link_all_deplibs_CXX=yes
  11674. ;;
  11675. esac
  11676. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11677. hardcode_libdir_separator_CXX=:
  11678. inherit_rpath_CXX=yes
  11679. ;;
  11680. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11681. case $cc_basename in
  11682. KCC*)
  11683. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11684. # KCC will only create a shared library if the output file
  11685. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11686. # to its proper name (with version) after linking.
  11687. 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'
  11688. 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'
  11689. # Commands to make compiler produce verbose output that lists
  11690. # what "hidden" libraries, object files and flags are used when
  11691. # linking a shared library.
  11692. #
  11693. # There doesn't appear to be a way to prevent this compiler from
  11694. # explicitly linking system object files so we need to strip them
  11695. # from the output so that they don't get included in the library
  11696. # dependencies.
  11697. 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"'
  11698. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11699. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11700. # Archives containing C++ object files must be created using
  11701. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11702. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11703. ;;
  11704. icpc* | ecpc* )
  11705. # Intel C++
  11706. with_gnu_ld=yes
  11707. # version 8.0 and above of icpc choke on multiply defined symbols
  11708. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11709. # earlier do not add the objects themselves.
  11710. case `$CC -V 2>&1` in
  11711. *"Version 7."*)
  11712. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11713. 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'
  11714. ;;
  11715. *) # Version 8.0 or newer
  11716. tmp_idyn=
  11717. case $host_cpu in
  11718. ia64*) tmp_idyn=' -i_dynamic';;
  11719. esac
  11720. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11721. 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'
  11722. ;;
  11723. esac
  11724. archive_cmds_need_lc_CXX=no
  11725. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11726. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11727. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11728. ;;
  11729. pgCC* | pgcpp*)
  11730. # Portland Group C++ compiler
  11731. case `$CC -V` in
  11732. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11733. prelink_cmds_CXX='tpldir=Template.dir~
  11734. rm -rf $tpldir~
  11735. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11736. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11737. old_archive_cmds_CXX='tpldir=Template.dir~
  11738. rm -rf $tpldir~
  11739. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11740. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11741. $RANLIB $oldlib'
  11742. archive_cmds_CXX='tpldir=Template.dir~
  11743. rm -rf $tpldir~
  11744. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11745. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11746. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11747. rm -rf $tpldir~
  11748. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11749. $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'
  11750. ;;
  11751. *) # Version 6 and above use weak symbols
  11752. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11753. 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'
  11754. ;;
  11755. esac
  11756. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11757. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11758. 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'
  11759. ;;
  11760. cxx*)
  11761. # Compaq C++
  11762. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11763. 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'
  11764. runpath_var=LD_RUN_PATH
  11765. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11766. hardcode_libdir_separator_CXX=:
  11767. # Commands to make compiler produce verbose output that lists
  11768. # what "hidden" libraries, object files and flags are used when
  11769. # linking a shared library.
  11770. #
  11771. # There doesn't appear to be a way to prevent this compiler from
  11772. # explicitly linking system object files so we need to strip them
  11773. # from the output so that they don't get included in the library
  11774. # dependencies.
  11775. 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'
  11776. ;;
  11777. xl* | mpixl* | bgxl*)
  11778. # IBM XL 8.0 on PPC, with GNU ld
  11779. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11780. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11781. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11782. if test "x$supports_anon_versioning" = xyes; then
  11783. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11784. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11785. echo "local: *; };" >> $output_objdir/$libname.ver~
  11786. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11787. fi
  11788. ;;
  11789. *)
  11790. case `$CC -V 2>&1 | sed 5q` in
  11791. *Sun\ C*)
  11792. # Sun C++ 5.9
  11793. no_undefined_flag_CXX=' -zdefs'
  11794. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11795. 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'
  11796. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11797. 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'
  11798. compiler_needs_object_CXX=yes
  11799. # Not sure whether something based on
  11800. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11801. # would be better.
  11802. output_verbose_link_cmd='func_echo_all'
  11803. # Archives containing C++ object files must be created using
  11804. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11805. # necessary to make sure instantiated templates are included
  11806. # in the archive.
  11807. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11808. ;;
  11809. esac
  11810. ;;
  11811. esac
  11812. ;;
  11813. lynxos*)
  11814. # FIXME: insert proper C++ library support
  11815. ld_shlibs_CXX=no
  11816. ;;
  11817. m88k*)
  11818. # FIXME: insert proper C++ library support
  11819. ld_shlibs_CXX=no
  11820. ;;
  11821. mvs*)
  11822. case $cc_basename in
  11823. cxx*)
  11824. # FIXME: insert proper C++ library support
  11825. ld_shlibs_CXX=no
  11826. ;;
  11827. *)
  11828. # FIXME: insert proper C++ library support
  11829. ld_shlibs_CXX=no
  11830. ;;
  11831. esac
  11832. ;;
  11833. netbsd*)
  11834. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11835. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11836. wlarc=
  11837. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11838. hardcode_direct_CXX=yes
  11839. hardcode_shlibpath_var_CXX=no
  11840. fi
  11841. # Workaround some broken pre-1.5 toolchains
  11842. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11843. ;;
  11844. *nto* | *qnx*)
  11845. ld_shlibs_CXX=yes
  11846. ;;
  11847. openbsd2*)
  11848. # C++ shared libraries are fairly broken
  11849. ld_shlibs_CXX=no
  11850. ;;
  11851. openbsd*)
  11852. if test -f /usr/libexec/ld.so; then
  11853. hardcode_direct_CXX=yes
  11854. hardcode_shlibpath_var_CXX=no
  11855. hardcode_direct_absolute_CXX=yes
  11856. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11857. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11858. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11859. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11860. export_dynamic_flag_spec_CXX='${wl}-E'
  11861. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11862. fi
  11863. output_verbose_link_cmd=func_echo_all
  11864. else
  11865. ld_shlibs_CXX=no
  11866. fi
  11867. ;;
  11868. osf3* | osf4* | osf5*)
  11869. case $cc_basename in
  11870. KCC*)
  11871. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11872. # KCC will only create a shared library if the output file
  11873. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11874. # to its proper name (with version) after linking.
  11875. 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'
  11876. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11877. hardcode_libdir_separator_CXX=:
  11878. # Archives containing C++ object files must be created using
  11879. # the KAI C++ compiler.
  11880. case $host in
  11881. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11882. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11883. esac
  11884. ;;
  11885. RCC*)
  11886. # Rational C++ 2.4.1
  11887. # FIXME: insert proper C++ library support
  11888. ld_shlibs_CXX=no
  11889. ;;
  11890. cxx*)
  11891. case $host in
  11892. osf3*)
  11893. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11894. 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'
  11895. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11896. ;;
  11897. *)
  11898. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11899. 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'
  11900. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11901. echo "-hidden">> $lib.exp~
  11902. $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~
  11903. $RM $lib.exp'
  11904. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11905. ;;
  11906. esac
  11907. hardcode_libdir_separator_CXX=:
  11908. # Commands to make compiler produce verbose output that lists
  11909. # what "hidden" libraries, object files and flags are used when
  11910. # linking a shared library.
  11911. #
  11912. # There doesn't appear to be a way to prevent this compiler from
  11913. # explicitly linking system object files so we need to strip them
  11914. # from the output so that they don't get included in the library
  11915. # dependencies.
  11916. 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"'
  11917. ;;
  11918. *)
  11919. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11920. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11921. case $host in
  11922. osf3*)
  11923. 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'
  11924. ;;
  11925. *)
  11926. 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'
  11927. ;;
  11928. esac
  11929. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11930. hardcode_libdir_separator_CXX=:
  11931. # Commands to make compiler produce verbose output that lists
  11932. # what "hidden" libraries, object files and flags are used when
  11933. # linking a shared library.
  11934. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11935. else
  11936. # FIXME: insert proper C++ library support
  11937. ld_shlibs_CXX=no
  11938. fi
  11939. ;;
  11940. esac
  11941. ;;
  11942. psos*)
  11943. # FIXME: insert proper C++ library support
  11944. ld_shlibs_CXX=no
  11945. ;;
  11946. sunos4*)
  11947. case $cc_basename in
  11948. CC*)
  11949. # Sun C++ 4.x
  11950. # FIXME: insert proper C++ library support
  11951. ld_shlibs_CXX=no
  11952. ;;
  11953. lcc*)
  11954. # Lucid
  11955. # FIXME: insert proper C++ library support
  11956. ld_shlibs_CXX=no
  11957. ;;
  11958. *)
  11959. # FIXME: insert proper C++ library support
  11960. ld_shlibs_CXX=no
  11961. ;;
  11962. esac
  11963. ;;
  11964. solaris*)
  11965. case $cc_basename in
  11966. CC* | sunCC*)
  11967. # Sun C++ 4.2, 5.x and Centerline C++
  11968. archive_cmds_need_lc_CXX=yes
  11969. no_undefined_flag_CXX=' -zdefs'
  11970. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11971. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11972. $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'
  11973. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11974. hardcode_shlibpath_var_CXX=no
  11975. case $host_os in
  11976. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11977. *)
  11978. # The compiler driver will combine and reorder linker options,
  11979. # but understands `-z linker_flag'.
  11980. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11981. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11982. ;;
  11983. esac
  11984. link_all_deplibs_CXX=yes
  11985. output_verbose_link_cmd='func_echo_all'
  11986. # Archives containing C++ object files must be created using
  11987. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11988. # necessary to make sure instantiated templates are included
  11989. # in the archive.
  11990. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11991. ;;
  11992. gcx*)
  11993. # Green Hills C++ Compiler
  11994. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11995. # The C++ compiler must be used to create the archive.
  11996. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11997. ;;
  11998. *)
  11999. # GNU C++ compiler with Solaris linker
  12000. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12001. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12002. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12003. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12004. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12005. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12006. # Commands to make compiler produce verbose output that lists
  12007. # what "hidden" libraries, object files and flags are used when
  12008. # linking a shared library.
  12009. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12010. else
  12011. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12012. # platform.
  12013. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12014. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12015. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12016. # Commands to make compiler produce verbose output that lists
  12017. # what "hidden" libraries, object files and flags are used when
  12018. # linking a shared library.
  12019. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12020. fi
  12021. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12022. case $host_os in
  12023. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12024. *)
  12025. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12026. ;;
  12027. esac
  12028. fi
  12029. ;;
  12030. esac
  12031. ;;
  12032. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12033. no_undefined_flag_CXX='${wl}-z,text'
  12034. archive_cmds_need_lc_CXX=no
  12035. hardcode_shlibpath_var_CXX=no
  12036. runpath_var='LD_RUN_PATH'
  12037. case $cc_basename in
  12038. CC*)
  12039. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12040. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12041. ;;
  12042. *)
  12043. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12044. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12045. ;;
  12046. esac
  12047. ;;
  12048. sysv5* | sco3.2v5* | sco5v6*)
  12049. # Note: We can NOT use -z defs as we might desire, because we do not
  12050. # link with -lc, and that would cause any symbols used from libc to
  12051. # always be unresolved, which means just about no library would
  12052. # ever link correctly. If we're not using GNU ld we use -z text
  12053. # though, which does catch some bad symbols but isn't as heavy-handed
  12054. # as -z defs.
  12055. no_undefined_flag_CXX='${wl}-z,text'
  12056. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12057. archive_cmds_need_lc_CXX=no
  12058. hardcode_shlibpath_var_CXX=no
  12059. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12060. hardcode_libdir_separator_CXX=':'
  12061. link_all_deplibs_CXX=yes
  12062. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12063. runpath_var='LD_RUN_PATH'
  12064. case $cc_basename in
  12065. CC*)
  12066. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12067. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12068. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12069. '"$old_archive_cmds_CXX"
  12070. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12071. '"$reload_cmds_CXX"
  12072. ;;
  12073. *)
  12074. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12075. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12076. ;;
  12077. esac
  12078. ;;
  12079. tandem*)
  12080. case $cc_basename in
  12081. NCC*)
  12082. # NonStop-UX NCC 3.20
  12083. # FIXME: insert proper C++ library support
  12084. ld_shlibs_CXX=no
  12085. ;;
  12086. *)
  12087. # FIXME: insert proper C++ library support
  12088. ld_shlibs_CXX=no
  12089. ;;
  12090. esac
  12091. ;;
  12092. vxworks*)
  12093. # FIXME: insert proper C++ library support
  12094. ld_shlibs_CXX=no
  12095. ;;
  12096. *)
  12097. # FIXME: insert proper C++ library support
  12098. ld_shlibs_CXX=no
  12099. ;;
  12100. esac
  12101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12102. $as_echo "$ld_shlibs_CXX" >&6; }
  12103. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12104. GCC_CXX="$GXX"
  12105. LD_CXX="$LD"
  12106. ## CAVEAT EMPTOR:
  12107. ## There is no encapsulation within the following macros, do not change
  12108. ## the running order or otherwise move them around unless you know exactly
  12109. ## what you are doing...
  12110. # Dependencies to place before and after the object being linked:
  12111. predep_objects_CXX=
  12112. postdep_objects_CXX=
  12113. predeps_CXX=
  12114. postdeps_CXX=
  12115. compiler_lib_search_path_CXX=
  12116. cat > conftest.$ac_ext <<_LT_EOF
  12117. class Foo
  12118. {
  12119. public:
  12120. Foo (void) { a = 0; }
  12121. private:
  12122. int a;
  12123. };
  12124. _LT_EOF
  12125. _lt_libdeps_save_CFLAGS=$CFLAGS
  12126. case "$CC $CFLAGS " in #(
  12127. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12128. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12129. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12130. esac
  12131. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12132. (eval $ac_compile) 2>&5
  12133. ac_status=$?
  12134. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12135. test $ac_status = 0; }; then
  12136. # Parse the compiler output and extract the necessary
  12137. # objects, libraries and library flags.
  12138. # Sentinel used to keep track of whether or not we are before
  12139. # the conftest object file.
  12140. pre_test_object_deps_done=no
  12141. for p in `eval "$output_verbose_link_cmd"`; do
  12142. case ${prev}${p} in
  12143. -L* | -R* | -l*)
  12144. # Some compilers place space between "-{L,R}" and the path.
  12145. # Remove the space.
  12146. if test $p = "-L" ||
  12147. test $p = "-R"; then
  12148. prev=$p
  12149. continue
  12150. fi
  12151. # Expand the sysroot to ease extracting the directories later.
  12152. if test -z "$prev"; then
  12153. case $p in
  12154. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12155. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12156. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12157. esac
  12158. fi
  12159. case $p in
  12160. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12161. esac
  12162. if test "$pre_test_object_deps_done" = no; then
  12163. case ${prev} in
  12164. -L | -R)
  12165. # Internal compiler library paths should come after those
  12166. # provided the user. The postdeps already come after the
  12167. # user supplied libs so there is no need to process them.
  12168. if test -z "$compiler_lib_search_path_CXX"; then
  12169. compiler_lib_search_path_CXX="${prev}${p}"
  12170. else
  12171. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12172. fi
  12173. ;;
  12174. # The "-l" case would never come before the object being
  12175. # linked, so don't bother handling this case.
  12176. esac
  12177. else
  12178. if test -z "$postdeps_CXX"; then
  12179. postdeps_CXX="${prev}${p}"
  12180. else
  12181. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12182. fi
  12183. fi
  12184. prev=
  12185. ;;
  12186. *.lto.$objext) ;; # Ignore GCC LTO objects
  12187. *.$objext)
  12188. # This assumes that the test object file only shows up
  12189. # once in the compiler output.
  12190. if test "$p" = "conftest.$objext"; then
  12191. pre_test_object_deps_done=yes
  12192. continue
  12193. fi
  12194. if test "$pre_test_object_deps_done" = no; then
  12195. if test -z "$predep_objects_CXX"; then
  12196. predep_objects_CXX="$p"
  12197. else
  12198. predep_objects_CXX="$predep_objects_CXX $p"
  12199. fi
  12200. else
  12201. if test -z "$postdep_objects_CXX"; then
  12202. postdep_objects_CXX="$p"
  12203. else
  12204. postdep_objects_CXX="$postdep_objects_CXX $p"
  12205. fi
  12206. fi
  12207. ;;
  12208. *) ;; # Ignore the rest.
  12209. esac
  12210. done
  12211. # Clean up.
  12212. rm -f a.out a.exe
  12213. else
  12214. echo "libtool.m4: error: problem compiling CXX test program"
  12215. fi
  12216. $RM -f confest.$objext
  12217. CFLAGS=$_lt_libdeps_save_CFLAGS
  12218. # PORTME: override above test on systems where it is broken
  12219. case $host_os in
  12220. interix[3-9]*)
  12221. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12222. # hack all around it, let's just trust "g++" to DTRT.
  12223. predep_objects_CXX=
  12224. postdep_objects_CXX=
  12225. postdeps_CXX=
  12226. ;;
  12227. linux*)
  12228. case `$CC -V 2>&1 | sed 5q` in
  12229. *Sun\ C*)
  12230. # Sun C++ 5.9
  12231. # The more standards-conforming stlport4 library is
  12232. # incompatible with the Cstd library. Avoid specifying
  12233. # it if it's in CXXFLAGS. Ignore libCrun as
  12234. # -library=stlport4 depends on it.
  12235. case " $CXX $CXXFLAGS " in
  12236. *" -library=stlport4 "*)
  12237. solaris_use_stlport4=yes
  12238. ;;
  12239. esac
  12240. if test "$solaris_use_stlport4" != yes; then
  12241. postdeps_CXX='-library=Cstd -library=Crun'
  12242. fi
  12243. ;;
  12244. esac
  12245. ;;
  12246. solaris*)
  12247. case $cc_basename in
  12248. CC* | sunCC*)
  12249. # The more standards-conforming stlport4 library is
  12250. # incompatible with the Cstd library. Avoid specifying
  12251. # it if it's in CXXFLAGS. Ignore libCrun as
  12252. # -library=stlport4 depends on it.
  12253. case " $CXX $CXXFLAGS " in
  12254. *" -library=stlport4 "*)
  12255. solaris_use_stlport4=yes
  12256. ;;
  12257. esac
  12258. # Adding this requires a known-good setup of shared libraries for
  12259. # Sun compiler versions before 5.6, else PIC objects from an old
  12260. # archive will be linked into the output, leading to subtle bugs.
  12261. if test "$solaris_use_stlport4" != yes; then
  12262. postdeps_CXX='-library=Cstd -library=Crun'
  12263. fi
  12264. ;;
  12265. esac
  12266. ;;
  12267. esac
  12268. case " $postdeps_CXX " in
  12269. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12270. esac
  12271. compiler_lib_search_dirs_CXX=
  12272. if test -n "${compiler_lib_search_path_CXX}"; then
  12273. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12274. fi
  12275. lt_prog_compiler_wl_CXX=
  12276. lt_prog_compiler_pic_CXX=
  12277. lt_prog_compiler_static_CXX=
  12278. # C++ specific cases for pic, static, wl, etc.
  12279. if test "$GXX" = yes; then
  12280. lt_prog_compiler_wl_CXX='-Wl,'
  12281. lt_prog_compiler_static_CXX='-static'
  12282. case $host_os in
  12283. aix*)
  12284. # All AIX code is PIC.
  12285. if test "$host_cpu" = ia64; then
  12286. # AIX 5 now supports IA64 processor
  12287. lt_prog_compiler_static_CXX='-Bstatic'
  12288. fi
  12289. ;;
  12290. amigaos*)
  12291. case $host_cpu in
  12292. powerpc)
  12293. # see comment about AmigaOS4 .so support
  12294. lt_prog_compiler_pic_CXX='-fPIC'
  12295. ;;
  12296. m68k)
  12297. # FIXME: we need at least 68020 code to build shared libraries, but
  12298. # adding the `-m68020' flag to GCC prevents building anything better,
  12299. # like `-m68040'.
  12300. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12301. ;;
  12302. esac
  12303. ;;
  12304. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12305. # PIC is the default for these OSes.
  12306. ;;
  12307. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12308. # This hack is so that the source file can tell whether it is being
  12309. # built for inclusion in a dll (and should export symbols for example).
  12310. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12311. # (--disable-auto-import) libraries
  12312. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12313. ;;
  12314. darwin* | rhapsody*)
  12315. # PIC is the default on this platform
  12316. # Common symbols not allowed in MH_DYLIB files
  12317. lt_prog_compiler_pic_CXX='-fno-common'
  12318. ;;
  12319. *djgpp*)
  12320. # DJGPP does not support shared libraries at all
  12321. lt_prog_compiler_pic_CXX=
  12322. ;;
  12323. haiku*)
  12324. # PIC is the default for Haiku.
  12325. # The "-static" flag exists, but is broken.
  12326. lt_prog_compiler_static_CXX=
  12327. ;;
  12328. interix[3-9]*)
  12329. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12330. # Instead, we relocate shared libraries at runtime.
  12331. ;;
  12332. sysv4*MP*)
  12333. if test -d /usr/nec; then
  12334. lt_prog_compiler_pic_CXX=-Kconform_pic
  12335. fi
  12336. ;;
  12337. hpux*)
  12338. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12339. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12340. # sets the default TLS model and affects inlining.
  12341. case $host_cpu in
  12342. hppa*64*)
  12343. ;;
  12344. *)
  12345. lt_prog_compiler_pic_CXX='-fPIC'
  12346. ;;
  12347. esac
  12348. ;;
  12349. *qnx* | *nto*)
  12350. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12351. # it will coredump.
  12352. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12353. ;;
  12354. *)
  12355. lt_prog_compiler_pic_CXX='-fPIC'
  12356. ;;
  12357. esac
  12358. else
  12359. case $host_os in
  12360. aix[4-9]*)
  12361. # All AIX code is PIC.
  12362. if test "$host_cpu" = ia64; then
  12363. # AIX 5 now supports IA64 processor
  12364. lt_prog_compiler_static_CXX='-Bstatic'
  12365. else
  12366. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12367. fi
  12368. ;;
  12369. chorus*)
  12370. case $cc_basename in
  12371. cxch68*)
  12372. # Green Hills C++ Compiler
  12373. # _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"
  12374. ;;
  12375. esac
  12376. ;;
  12377. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12378. # This hack is so that the source file can tell whether it is being
  12379. # built for inclusion in a dll (and should export symbols for example).
  12380. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12381. ;;
  12382. dgux*)
  12383. case $cc_basename in
  12384. ec++*)
  12385. lt_prog_compiler_pic_CXX='-KPIC'
  12386. ;;
  12387. ghcx*)
  12388. # Green Hills C++ Compiler
  12389. lt_prog_compiler_pic_CXX='-pic'
  12390. ;;
  12391. *)
  12392. ;;
  12393. esac
  12394. ;;
  12395. freebsd* | dragonfly*)
  12396. # FreeBSD uses GNU C++
  12397. ;;
  12398. hpux9* | hpux10* | hpux11*)
  12399. case $cc_basename in
  12400. CC*)
  12401. lt_prog_compiler_wl_CXX='-Wl,'
  12402. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12403. if test "$host_cpu" != ia64; then
  12404. lt_prog_compiler_pic_CXX='+Z'
  12405. fi
  12406. ;;
  12407. aCC*)
  12408. lt_prog_compiler_wl_CXX='-Wl,'
  12409. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12410. case $host_cpu in
  12411. hppa*64*|ia64*)
  12412. # +Z the default
  12413. ;;
  12414. *)
  12415. lt_prog_compiler_pic_CXX='+Z'
  12416. ;;
  12417. esac
  12418. ;;
  12419. *)
  12420. ;;
  12421. esac
  12422. ;;
  12423. interix*)
  12424. # This is c89, which is MS Visual C++ (no shared libs)
  12425. # Anyone wants to do a port?
  12426. ;;
  12427. irix5* | irix6* | nonstopux*)
  12428. case $cc_basename in
  12429. CC*)
  12430. lt_prog_compiler_wl_CXX='-Wl,'
  12431. lt_prog_compiler_static_CXX='-non_shared'
  12432. # CC pic flag -KPIC is the default.
  12433. ;;
  12434. *)
  12435. ;;
  12436. esac
  12437. ;;
  12438. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12439. case $cc_basename in
  12440. KCC*)
  12441. # KAI C++ Compiler
  12442. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12443. lt_prog_compiler_pic_CXX='-fPIC'
  12444. ;;
  12445. ecpc* )
  12446. # old Intel C++ for x86_64 which still supported -KPIC.
  12447. lt_prog_compiler_wl_CXX='-Wl,'
  12448. lt_prog_compiler_pic_CXX='-KPIC'
  12449. lt_prog_compiler_static_CXX='-static'
  12450. ;;
  12451. icpc* )
  12452. # Intel C++, used to be incompatible with GCC.
  12453. # ICC 10 doesn't accept -KPIC any more.
  12454. lt_prog_compiler_wl_CXX='-Wl,'
  12455. lt_prog_compiler_pic_CXX='-fPIC'
  12456. lt_prog_compiler_static_CXX='-static'
  12457. ;;
  12458. pgCC* | pgcpp*)
  12459. # Portland Group C++ compiler
  12460. lt_prog_compiler_wl_CXX='-Wl,'
  12461. lt_prog_compiler_pic_CXX='-fpic'
  12462. lt_prog_compiler_static_CXX='-Bstatic'
  12463. ;;
  12464. cxx*)
  12465. # Compaq C++
  12466. # Make sure the PIC flag is empty. It appears that all Alpha
  12467. # Linux and Compaq Tru64 Unix objects are PIC.
  12468. lt_prog_compiler_pic_CXX=
  12469. lt_prog_compiler_static_CXX='-non_shared'
  12470. ;;
  12471. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12472. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12473. lt_prog_compiler_wl_CXX='-Wl,'
  12474. lt_prog_compiler_pic_CXX='-qpic'
  12475. lt_prog_compiler_static_CXX='-qstaticlink'
  12476. ;;
  12477. *)
  12478. case `$CC -V 2>&1 | sed 5q` in
  12479. *Sun\ C*)
  12480. # Sun C++ 5.9
  12481. lt_prog_compiler_pic_CXX='-KPIC'
  12482. lt_prog_compiler_static_CXX='-Bstatic'
  12483. lt_prog_compiler_wl_CXX='-Qoption ld '
  12484. ;;
  12485. esac
  12486. ;;
  12487. esac
  12488. ;;
  12489. lynxos*)
  12490. ;;
  12491. m88k*)
  12492. ;;
  12493. mvs*)
  12494. case $cc_basename in
  12495. cxx*)
  12496. lt_prog_compiler_pic_CXX='-W c,exportall'
  12497. ;;
  12498. *)
  12499. ;;
  12500. esac
  12501. ;;
  12502. netbsd*)
  12503. ;;
  12504. *qnx* | *nto*)
  12505. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12506. # it will coredump.
  12507. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12508. ;;
  12509. osf3* | osf4* | osf5*)
  12510. case $cc_basename in
  12511. KCC*)
  12512. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12513. ;;
  12514. RCC*)
  12515. # Rational C++ 2.4.1
  12516. lt_prog_compiler_pic_CXX='-pic'
  12517. ;;
  12518. cxx*)
  12519. # Digital/Compaq C++
  12520. lt_prog_compiler_wl_CXX='-Wl,'
  12521. # Make sure the PIC flag is empty. It appears that all Alpha
  12522. # Linux and Compaq Tru64 Unix objects are PIC.
  12523. lt_prog_compiler_pic_CXX=
  12524. lt_prog_compiler_static_CXX='-non_shared'
  12525. ;;
  12526. *)
  12527. ;;
  12528. esac
  12529. ;;
  12530. psos*)
  12531. ;;
  12532. solaris*)
  12533. case $cc_basename in
  12534. CC* | sunCC*)
  12535. # Sun C++ 4.2, 5.x and Centerline C++
  12536. lt_prog_compiler_pic_CXX='-KPIC'
  12537. lt_prog_compiler_static_CXX='-Bstatic'
  12538. lt_prog_compiler_wl_CXX='-Qoption ld '
  12539. ;;
  12540. gcx*)
  12541. # Green Hills C++ Compiler
  12542. lt_prog_compiler_pic_CXX='-PIC'
  12543. ;;
  12544. *)
  12545. ;;
  12546. esac
  12547. ;;
  12548. sunos4*)
  12549. case $cc_basename in
  12550. CC*)
  12551. # Sun C++ 4.x
  12552. lt_prog_compiler_pic_CXX='-pic'
  12553. lt_prog_compiler_static_CXX='-Bstatic'
  12554. ;;
  12555. lcc*)
  12556. # Lucid
  12557. lt_prog_compiler_pic_CXX='-pic'
  12558. ;;
  12559. *)
  12560. ;;
  12561. esac
  12562. ;;
  12563. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12564. case $cc_basename in
  12565. CC*)
  12566. lt_prog_compiler_wl_CXX='-Wl,'
  12567. lt_prog_compiler_pic_CXX='-KPIC'
  12568. lt_prog_compiler_static_CXX='-Bstatic'
  12569. ;;
  12570. esac
  12571. ;;
  12572. tandem*)
  12573. case $cc_basename in
  12574. NCC*)
  12575. # NonStop-UX NCC 3.20
  12576. lt_prog_compiler_pic_CXX='-KPIC'
  12577. ;;
  12578. *)
  12579. ;;
  12580. esac
  12581. ;;
  12582. vxworks*)
  12583. ;;
  12584. *)
  12585. lt_prog_compiler_can_build_shared_CXX=no
  12586. ;;
  12587. esac
  12588. fi
  12589. case $host_os in
  12590. # For platforms which do not support PIC, -DPIC is meaningless:
  12591. *djgpp*)
  12592. lt_prog_compiler_pic_CXX=
  12593. ;;
  12594. *)
  12595. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12596. ;;
  12597. esac
  12598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12599. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12600. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12601. $as_echo_n "(cached) " >&6
  12602. else
  12603. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12604. fi
  12605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12606. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12607. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12608. #
  12609. # Check to make sure the PIC flag actually works.
  12610. #
  12611. if test -n "$lt_prog_compiler_pic_CXX"; then
  12612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12613. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12614. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12615. $as_echo_n "(cached) " >&6
  12616. else
  12617. lt_cv_prog_compiler_pic_works_CXX=no
  12618. ac_outfile=conftest.$ac_objext
  12619. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12620. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12621. # Insert the option either (1) after the last *FLAGS variable, or
  12622. # (2) before a word containing "conftest.", or (3) at the end.
  12623. # Note that $ac_compile itself does not contain backslashes and begins
  12624. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12625. # The option is referenced via a variable to avoid confusing sed.
  12626. lt_compile=`echo "$ac_compile" | $SED \
  12627. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12628. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12629. -e 's:$: $lt_compiler_flag:'`
  12630. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12631. (eval "$lt_compile" 2>conftest.err)
  12632. ac_status=$?
  12633. cat conftest.err >&5
  12634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12635. if (exit $ac_status) && test -s "$ac_outfile"; then
  12636. # The compiler can only warn and ignore the option if not recognized
  12637. # So say no if there are warnings other than the usual output.
  12638. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12639. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12640. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12641. lt_cv_prog_compiler_pic_works_CXX=yes
  12642. fi
  12643. fi
  12644. $RM conftest*
  12645. fi
  12646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12647. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12648. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12649. case $lt_prog_compiler_pic_CXX in
  12650. "" | " "*) ;;
  12651. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12652. esac
  12653. else
  12654. lt_prog_compiler_pic_CXX=
  12655. lt_prog_compiler_can_build_shared_CXX=no
  12656. fi
  12657. fi
  12658. #
  12659. # Check to make sure the static flag actually works.
  12660. #
  12661. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12663. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12664. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12665. $as_echo_n "(cached) " >&6
  12666. else
  12667. lt_cv_prog_compiler_static_works_CXX=no
  12668. save_LDFLAGS="$LDFLAGS"
  12669. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12670. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12671. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12672. # The linker can only warn and ignore the option if not recognized
  12673. # So say no if there are warnings
  12674. if test -s conftest.err; then
  12675. # Append any errors to the config.log.
  12676. cat conftest.err 1>&5
  12677. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12678. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12679. if diff conftest.exp conftest.er2 >/dev/null; then
  12680. lt_cv_prog_compiler_static_works_CXX=yes
  12681. fi
  12682. else
  12683. lt_cv_prog_compiler_static_works_CXX=yes
  12684. fi
  12685. fi
  12686. $RM -r conftest*
  12687. LDFLAGS="$save_LDFLAGS"
  12688. fi
  12689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12690. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12691. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12692. :
  12693. else
  12694. lt_prog_compiler_static_CXX=
  12695. fi
  12696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12697. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12698. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12699. $as_echo_n "(cached) " >&6
  12700. else
  12701. lt_cv_prog_compiler_c_o_CXX=no
  12702. $RM -r conftest 2>/dev/null
  12703. mkdir conftest
  12704. cd conftest
  12705. mkdir out
  12706. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12707. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12708. # Insert the option either (1) after the last *FLAGS variable, or
  12709. # (2) before a word containing "conftest.", or (3) at the end.
  12710. # Note that $ac_compile itself does not contain backslashes and begins
  12711. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12712. lt_compile=`echo "$ac_compile" | $SED \
  12713. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12714. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12715. -e 's:$: $lt_compiler_flag:'`
  12716. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12717. (eval "$lt_compile" 2>out/conftest.err)
  12718. ac_status=$?
  12719. cat out/conftest.err >&5
  12720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12721. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12722. then
  12723. # The compiler can only warn and ignore the option if not recognized
  12724. # So say no if there are warnings
  12725. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12726. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12727. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12728. lt_cv_prog_compiler_c_o_CXX=yes
  12729. fi
  12730. fi
  12731. chmod u+w . 2>&5
  12732. $RM conftest*
  12733. # SGI C++ compiler will create directory out/ii_files/ for
  12734. # template instantiation
  12735. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12736. $RM out/* && rmdir out
  12737. cd ..
  12738. $RM -r conftest
  12739. $RM conftest*
  12740. fi
  12741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12742. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12744. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12745. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12746. $as_echo_n "(cached) " >&6
  12747. else
  12748. lt_cv_prog_compiler_c_o_CXX=no
  12749. $RM -r conftest 2>/dev/null
  12750. mkdir conftest
  12751. cd conftest
  12752. mkdir out
  12753. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12754. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12755. # Insert the option either (1) after the last *FLAGS variable, or
  12756. # (2) before a word containing "conftest.", or (3) at the end.
  12757. # Note that $ac_compile itself does not contain backslashes and begins
  12758. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12759. lt_compile=`echo "$ac_compile" | $SED \
  12760. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12761. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12762. -e 's:$: $lt_compiler_flag:'`
  12763. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12764. (eval "$lt_compile" 2>out/conftest.err)
  12765. ac_status=$?
  12766. cat out/conftest.err >&5
  12767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12768. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12769. then
  12770. # The compiler can only warn and ignore the option if not recognized
  12771. # So say no if there are warnings
  12772. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12773. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12774. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12775. lt_cv_prog_compiler_c_o_CXX=yes
  12776. fi
  12777. fi
  12778. chmod u+w . 2>&5
  12779. $RM conftest*
  12780. # SGI C++ compiler will create directory out/ii_files/ for
  12781. # template instantiation
  12782. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12783. $RM out/* && rmdir out
  12784. cd ..
  12785. $RM -r conftest
  12786. $RM conftest*
  12787. fi
  12788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12789. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12790. hard_links="nottested"
  12791. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12792. # do not overwrite the value of need_locks provided by the user
  12793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12794. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12795. hard_links=yes
  12796. $RM conftest*
  12797. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12798. touch conftest.a
  12799. ln conftest.a conftest.b 2>&5 || hard_links=no
  12800. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12802. $as_echo "$hard_links" >&6; }
  12803. if test "$hard_links" = no; then
  12804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12805. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12806. need_locks=warn
  12807. fi
  12808. else
  12809. need_locks=no
  12810. fi
  12811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12812. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12813. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12814. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12815. case $host_os in
  12816. aix[4-9]*)
  12817. # If we're using GNU nm, then we don't want the "-C" option.
  12818. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12819. # Also, AIX nm treats weak defined symbols like other global defined
  12820. # symbols, whereas GNU nm marks them as "W".
  12821. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12822. 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'
  12823. else
  12824. 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'
  12825. fi
  12826. ;;
  12827. pw32*)
  12828. export_symbols_cmds_CXX="$ltdll_cmds"
  12829. ;;
  12830. cygwin* | mingw* | cegcc*)
  12831. case $cc_basename in
  12832. cl*)
  12833. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12834. ;;
  12835. *)
  12836. 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'
  12837. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12838. ;;
  12839. esac
  12840. ;;
  12841. *)
  12842. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12843. ;;
  12844. esac
  12845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12846. $as_echo "$ld_shlibs_CXX" >&6; }
  12847. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12848. with_gnu_ld_CXX=$with_gnu_ld
  12849. #
  12850. # Do we need to explicitly link libc?
  12851. #
  12852. case "x$archive_cmds_need_lc_CXX" in
  12853. x|xyes)
  12854. # Assume -lc should be added
  12855. archive_cmds_need_lc_CXX=yes
  12856. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12857. case $archive_cmds_CXX in
  12858. *'~'*)
  12859. # FIXME: we may have to deal with multi-command sequences.
  12860. ;;
  12861. '$CC '*)
  12862. # Test whether the compiler implicitly links with -lc since on some
  12863. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12864. # to ld, don't add -lc before -lgcc.
  12865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12866. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12867. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12868. $as_echo_n "(cached) " >&6
  12869. else
  12870. $RM conftest*
  12871. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12872. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12873. (eval $ac_compile) 2>&5
  12874. ac_status=$?
  12875. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12876. test $ac_status = 0; } 2>conftest.err; then
  12877. soname=conftest
  12878. lib=conftest
  12879. libobjs=conftest.$ac_objext
  12880. deplibs=
  12881. wl=$lt_prog_compiler_wl_CXX
  12882. pic_flag=$lt_prog_compiler_pic_CXX
  12883. compiler_flags=-v
  12884. linker_flags=-v
  12885. verstring=
  12886. output_objdir=.
  12887. libname=conftest
  12888. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12889. allow_undefined_flag_CXX=
  12890. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12891. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12892. ac_status=$?
  12893. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12894. test $ac_status = 0; }
  12895. then
  12896. lt_cv_archive_cmds_need_lc_CXX=no
  12897. else
  12898. lt_cv_archive_cmds_need_lc_CXX=yes
  12899. fi
  12900. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12901. else
  12902. cat conftest.err 1>&5
  12903. fi
  12904. $RM conftest*
  12905. fi
  12906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12907. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12908. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12909. ;;
  12910. esac
  12911. fi
  12912. ;;
  12913. esac
  12914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12915. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12916. library_names_spec=
  12917. libname_spec='lib$name'
  12918. soname_spec=
  12919. shrext_cmds=".so"
  12920. postinstall_cmds=
  12921. postuninstall_cmds=
  12922. finish_cmds=
  12923. finish_eval=
  12924. shlibpath_var=
  12925. shlibpath_overrides_runpath=unknown
  12926. version_type=none
  12927. dynamic_linker="$host_os ld.so"
  12928. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12929. need_lib_prefix=unknown
  12930. hardcode_into_libs=no
  12931. # when you set need_version to no, make sure it does not cause -set_version
  12932. # flags to be left without arguments
  12933. need_version=unknown
  12934. case $host_os in
  12935. aix3*)
  12936. version_type=linux # correct to gnu/linux during the next big refactor
  12937. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12938. shlibpath_var=LIBPATH
  12939. # AIX 3 has no versioning support, so we append a major version to the name.
  12940. soname_spec='${libname}${release}${shared_ext}$major'
  12941. ;;
  12942. aix[4-9]*)
  12943. version_type=linux # correct to gnu/linux during the next big refactor
  12944. need_lib_prefix=no
  12945. need_version=no
  12946. hardcode_into_libs=yes
  12947. if test "$host_cpu" = ia64; then
  12948. # AIX 5 supports IA64
  12949. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12950. shlibpath_var=LD_LIBRARY_PATH
  12951. else
  12952. # With GCC up to 2.95.x, collect2 would create an import file
  12953. # for dependence libraries. The import file would start with
  12954. # the line `#! .'. This would cause the generated library to
  12955. # depend on `.', always an invalid library. This was fixed in
  12956. # development snapshots of GCC prior to 3.0.
  12957. case $host_os in
  12958. aix4 | aix4.[01] | aix4.[01].*)
  12959. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12960. echo ' yes '
  12961. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12962. :
  12963. else
  12964. can_build_shared=no
  12965. fi
  12966. ;;
  12967. esac
  12968. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12969. # soname into executable. Probably we can add versioning support to
  12970. # collect2, so additional links can be useful in future.
  12971. if test "$aix_use_runtimelinking" = yes; then
  12972. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12973. # instead of lib<name>.a to let people know that these are not
  12974. # typical AIX shared libraries.
  12975. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12976. else
  12977. # We preserve .a as extension for shared libraries through AIX4.2
  12978. # and later when we are not doing run time linking.
  12979. library_names_spec='${libname}${release}.a $libname.a'
  12980. soname_spec='${libname}${release}${shared_ext}$major'
  12981. fi
  12982. shlibpath_var=LIBPATH
  12983. fi
  12984. ;;
  12985. amigaos*)
  12986. case $host_cpu in
  12987. powerpc)
  12988. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12989. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12990. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12991. ;;
  12992. m68k)
  12993. library_names_spec='$libname.ixlibrary $libname.a'
  12994. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12995. 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'
  12996. ;;
  12997. esac
  12998. ;;
  12999. beos*)
  13000. library_names_spec='${libname}${shared_ext}'
  13001. dynamic_linker="$host_os ld.so"
  13002. shlibpath_var=LIBRARY_PATH
  13003. ;;
  13004. bsdi[45]*)
  13005. version_type=linux # correct to gnu/linux during the next big refactor
  13006. need_version=no
  13007. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13008. soname_spec='${libname}${release}${shared_ext}$major'
  13009. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13010. shlibpath_var=LD_LIBRARY_PATH
  13011. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13012. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13013. # the default ld.so.conf also contains /usr/contrib/lib and
  13014. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13015. # libtool to hard-code these into programs
  13016. ;;
  13017. cygwin* | mingw* | pw32* | cegcc*)
  13018. version_type=windows
  13019. shrext_cmds=".dll"
  13020. need_version=no
  13021. need_lib_prefix=no
  13022. case $GCC,$cc_basename in
  13023. yes,*)
  13024. # gcc
  13025. library_names_spec='$libname.dll.a'
  13026. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13027. postinstall_cmds='base_file=`basename \${file}`~
  13028. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13029. dldir=$destdir/`dirname \$dlpath`~
  13030. test -d \$dldir || mkdir -p \$dldir~
  13031. $install_prog $dir/$dlname \$dldir/$dlname~
  13032. chmod a+x \$dldir/$dlname~
  13033. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13034. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13035. fi'
  13036. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13037. dlpath=$dir/\$dldll~
  13038. $RM \$dlpath'
  13039. shlibpath_overrides_runpath=yes
  13040. case $host_os in
  13041. cygwin*)
  13042. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13043. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13044. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  13045. ;;
  13046. mingw* | cegcc*)
  13047. # MinGW DLLs use traditional 'lib' prefix
  13048. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13049. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  13050. ;;
  13051. pw32*)
  13052. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13053. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13054. ;;
  13055. esac
  13056. dynamic_linker='Win32 ld.exe'
  13057. ;;
  13058. *,cl*)
  13059. # Native MSVC
  13060. libname_spec='$name'
  13061. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13062. library_names_spec='${libname}.dll.lib'
  13063. case $build_os in
  13064. mingw*)
  13065. sys_lib_search_path_spec=
  13066. lt_save_ifs=$IFS
  13067. IFS=';'
  13068. for lt_path in $LIB
  13069. do
  13070. IFS=$lt_save_ifs
  13071. # Let DOS variable expansion print the short 8.3 style file name.
  13072. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13073. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13074. done
  13075. IFS=$lt_save_ifs
  13076. # Convert to MSYS style.
  13077. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13078. ;;
  13079. cygwin*)
  13080. # Convert to unix form, then to dos form, then back to unix form
  13081. # but this time dos style (no spaces!) so that the unix form looks
  13082. # like /cygdrive/c/PROGRA~1:/cygdr...
  13083. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13084. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13085. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13086. ;;
  13087. *)
  13088. sys_lib_search_path_spec="$LIB"
  13089. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13090. # It is most probably a Windows format PATH.
  13091. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13092. else
  13093. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13094. fi
  13095. # FIXME: find the short name or the path components, as spaces are
  13096. # common. (e.g. "Program Files" -> "PROGRA~1")
  13097. ;;
  13098. esac
  13099. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13100. postinstall_cmds='base_file=`basename \${file}`~
  13101. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13102. dldir=$destdir/`dirname \$dlpath`~
  13103. test -d \$dldir || mkdir -p \$dldir~
  13104. $install_prog $dir/$dlname \$dldir/$dlname'
  13105. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13106. dlpath=$dir/\$dldll~
  13107. $RM \$dlpath'
  13108. shlibpath_overrides_runpath=yes
  13109. dynamic_linker='Win32 link.exe'
  13110. ;;
  13111. *)
  13112. # Assume MSVC wrapper
  13113. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13114. dynamic_linker='Win32 ld.exe'
  13115. ;;
  13116. esac
  13117. # FIXME: first we should search . and the directory the executable is in
  13118. shlibpath_var=PATH
  13119. ;;
  13120. darwin* | rhapsody*)
  13121. dynamic_linker="$host_os dyld"
  13122. version_type=darwin
  13123. need_lib_prefix=no
  13124. need_version=no
  13125. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13126. soname_spec='${libname}${release}${major}$shared_ext'
  13127. shlibpath_overrides_runpath=yes
  13128. shlibpath_var=DYLD_LIBRARY_PATH
  13129. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13130. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13131. ;;
  13132. dgux*)
  13133. version_type=linux # correct to gnu/linux during the next big refactor
  13134. need_lib_prefix=no
  13135. need_version=no
  13136. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13137. soname_spec='${libname}${release}${shared_ext}$major'
  13138. shlibpath_var=LD_LIBRARY_PATH
  13139. ;;
  13140. freebsd* | dragonfly*)
  13141. # DragonFly does not have aout. When/if they implement a new
  13142. # versioning mechanism, adjust this.
  13143. if test -x /usr/bin/objformat; then
  13144. objformat=`/usr/bin/objformat`
  13145. else
  13146. case $host_os in
  13147. freebsd[23].*) objformat=aout ;;
  13148. *) objformat=elf ;;
  13149. esac
  13150. fi
  13151. version_type=freebsd-$objformat
  13152. case $version_type in
  13153. freebsd-elf*)
  13154. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13155. need_version=no
  13156. need_lib_prefix=no
  13157. ;;
  13158. freebsd-*)
  13159. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13160. need_version=yes
  13161. ;;
  13162. esac
  13163. shlibpath_var=LD_LIBRARY_PATH
  13164. case $host_os in
  13165. freebsd2.*)
  13166. shlibpath_overrides_runpath=yes
  13167. ;;
  13168. freebsd3.[01]* | freebsdelf3.[01]*)
  13169. shlibpath_overrides_runpath=yes
  13170. hardcode_into_libs=yes
  13171. ;;
  13172. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13173. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13174. shlibpath_overrides_runpath=no
  13175. hardcode_into_libs=yes
  13176. ;;
  13177. *) # from 4.6 on, and DragonFly
  13178. shlibpath_overrides_runpath=yes
  13179. hardcode_into_libs=yes
  13180. ;;
  13181. esac
  13182. ;;
  13183. gnu*)
  13184. version_type=linux # correct to gnu/linux during the next big refactor
  13185. need_lib_prefix=no
  13186. need_version=no
  13187. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13188. soname_spec='${libname}${release}${shared_ext}$major'
  13189. shlibpath_var=LD_LIBRARY_PATH
  13190. shlibpath_overrides_runpath=no
  13191. hardcode_into_libs=yes
  13192. ;;
  13193. haiku*)
  13194. version_type=linux # correct to gnu/linux during the next big refactor
  13195. need_lib_prefix=no
  13196. need_version=no
  13197. dynamic_linker="$host_os runtime_loader"
  13198. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13199. soname_spec='${libname}${release}${shared_ext}$major'
  13200. shlibpath_var=LIBRARY_PATH
  13201. shlibpath_overrides_runpath=yes
  13202. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13203. hardcode_into_libs=yes
  13204. ;;
  13205. hpux9* | hpux10* | hpux11*)
  13206. # Give a soname corresponding to the major version so that dld.sl refuses to
  13207. # link against other versions.
  13208. version_type=sunos
  13209. need_lib_prefix=no
  13210. need_version=no
  13211. case $host_cpu in
  13212. ia64*)
  13213. shrext_cmds='.so'
  13214. hardcode_into_libs=yes
  13215. dynamic_linker="$host_os dld.so"
  13216. shlibpath_var=LD_LIBRARY_PATH
  13217. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13219. soname_spec='${libname}${release}${shared_ext}$major'
  13220. if test "X$HPUX_IA64_MODE" = X32; then
  13221. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13222. else
  13223. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13224. fi
  13225. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13226. ;;
  13227. hppa*64*)
  13228. shrext_cmds='.sl'
  13229. hardcode_into_libs=yes
  13230. dynamic_linker="$host_os dld.sl"
  13231. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13232. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13233. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13234. soname_spec='${libname}${release}${shared_ext}$major'
  13235. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13236. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13237. ;;
  13238. *)
  13239. shrext_cmds='.sl'
  13240. dynamic_linker="$host_os dld.sl"
  13241. shlibpath_var=SHLIB_PATH
  13242. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13243. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13244. soname_spec='${libname}${release}${shared_ext}$major'
  13245. ;;
  13246. esac
  13247. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13248. postinstall_cmds='chmod 555 $lib'
  13249. # or fails outright, so override atomically:
  13250. install_override_mode=555
  13251. ;;
  13252. interix[3-9]*)
  13253. version_type=linux # correct to gnu/linux during the next big refactor
  13254. need_lib_prefix=no
  13255. need_version=no
  13256. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13257. soname_spec='${libname}${release}${shared_ext}$major'
  13258. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13259. shlibpath_var=LD_LIBRARY_PATH
  13260. shlibpath_overrides_runpath=no
  13261. hardcode_into_libs=yes
  13262. ;;
  13263. irix5* | irix6* | nonstopux*)
  13264. case $host_os in
  13265. nonstopux*) version_type=nonstopux ;;
  13266. *)
  13267. if test "$lt_cv_prog_gnu_ld" = yes; then
  13268. version_type=linux # correct to gnu/linux during the next big refactor
  13269. else
  13270. version_type=irix
  13271. fi ;;
  13272. esac
  13273. need_lib_prefix=no
  13274. need_version=no
  13275. soname_spec='${libname}${release}${shared_ext}$major'
  13276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13277. case $host_os in
  13278. irix5* | nonstopux*)
  13279. libsuff= shlibsuff=
  13280. ;;
  13281. *)
  13282. case $LD in # libtool.m4 will add one of these switches to LD
  13283. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13284. libsuff= shlibsuff= libmagic=32-bit;;
  13285. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13286. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13287. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13288. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13289. *) libsuff= shlibsuff= libmagic=never-match;;
  13290. esac
  13291. ;;
  13292. esac
  13293. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13294. shlibpath_overrides_runpath=no
  13295. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13296. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13297. hardcode_into_libs=yes
  13298. ;;
  13299. # No shared lib support for Linux oldld, aout, or coff.
  13300. linux*oldld* | linux*aout* | linux*coff*)
  13301. dynamic_linker=no
  13302. ;;
  13303. # This must be glibc/ELF.
  13304. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13305. version_type=linux # correct to gnu/linux during the next big refactor
  13306. need_lib_prefix=no
  13307. need_version=no
  13308. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13309. soname_spec='${libname}${release}${shared_ext}$major'
  13310. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13311. shlibpath_var=LD_LIBRARY_PATH
  13312. shlibpath_overrides_runpath=no
  13313. # Some binutils ld are patched to set DT_RUNPATH
  13314. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13315. $as_echo_n "(cached) " >&6
  13316. else
  13317. lt_cv_shlibpath_overrides_runpath=no
  13318. save_LDFLAGS=$LDFLAGS
  13319. save_libdir=$libdir
  13320. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13321. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13323. /* end confdefs.h. */
  13324. int
  13325. main ()
  13326. {
  13327. ;
  13328. return 0;
  13329. }
  13330. _ACEOF
  13331. if ac_fn_cxx_try_link "$LINENO"; then :
  13332. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13333. lt_cv_shlibpath_overrides_runpath=yes
  13334. fi
  13335. fi
  13336. rm -f core conftest.err conftest.$ac_objext \
  13337. conftest$ac_exeext conftest.$ac_ext
  13338. LDFLAGS=$save_LDFLAGS
  13339. libdir=$save_libdir
  13340. fi
  13341. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13342. # This implies no fast_install, which is unacceptable.
  13343. # Some rework will be needed to allow for fast_install
  13344. # before this can be enabled.
  13345. hardcode_into_libs=yes
  13346. # Append ld.so.conf contents to the search path
  13347. if test -f /etc/ld.so.conf; then
  13348. 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' ' '`
  13349. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13350. fi
  13351. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13352. # powerpc, because MkLinux only supported shared libraries with the
  13353. # GNU dynamic linker. Since this was broken with cross compilers,
  13354. # most powerpc-linux boxes support dynamic linking these days and
  13355. # people can always --disable-shared, the test was removed, and we
  13356. # assume the GNU/Linux dynamic linker is in use.
  13357. dynamic_linker='GNU/Linux ld.so'
  13358. ;;
  13359. netbsd*)
  13360. version_type=sunos
  13361. need_lib_prefix=no
  13362. need_version=no
  13363. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13364. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13365. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13366. dynamic_linker='NetBSD (a.out) ld.so'
  13367. else
  13368. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13369. soname_spec='${libname}${release}${shared_ext}$major'
  13370. dynamic_linker='NetBSD ld.elf_so'
  13371. fi
  13372. shlibpath_var=LD_LIBRARY_PATH
  13373. shlibpath_overrides_runpath=yes
  13374. hardcode_into_libs=yes
  13375. ;;
  13376. newsos6)
  13377. version_type=linux # correct to gnu/linux during the next big refactor
  13378. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13379. shlibpath_var=LD_LIBRARY_PATH
  13380. shlibpath_overrides_runpath=yes
  13381. ;;
  13382. *nto* | *qnx*)
  13383. version_type=qnx
  13384. need_lib_prefix=no
  13385. need_version=no
  13386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13387. soname_spec='${libname}${release}${shared_ext}$major'
  13388. shlibpath_var=LD_LIBRARY_PATH
  13389. shlibpath_overrides_runpath=no
  13390. hardcode_into_libs=yes
  13391. dynamic_linker='ldqnx.so'
  13392. ;;
  13393. openbsd*)
  13394. version_type=sunos
  13395. sys_lib_dlsearch_path_spec="/usr/lib"
  13396. need_lib_prefix=no
  13397. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13398. case $host_os in
  13399. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13400. *) need_version=no ;;
  13401. esac
  13402. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13403. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13404. shlibpath_var=LD_LIBRARY_PATH
  13405. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13406. case $host_os in
  13407. openbsd2.[89] | openbsd2.[89].*)
  13408. shlibpath_overrides_runpath=no
  13409. ;;
  13410. *)
  13411. shlibpath_overrides_runpath=yes
  13412. ;;
  13413. esac
  13414. else
  13415. shlibpath_overrides_runpath=yes
  13416. fi
  13417. ;;
  13418. os2*)
  13419. libname_spec='$name'
  13420. shrext_cmds=".dll"
  13421. need_lib_prefix=no
  13422. library_names_spec='$libname${shared_ext} $libname.a'
  13423. dynamic_linker='OS/2 ld.exe'
  13424. shlibpath_var=LIBPATH
  13425. ;;
  13426. osf3* | osf4* | osf5*)
  13427. version_type=osf
  13428. need_lib_prefix=no
  13429. need_version=no
  13430. soname_spec='${libname}${release}${shared_ext}$major'
  13431. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13432. shlibpath_var=LD_LIBRARY_PATH
  13433. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13434. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13435. ;;
  13436. rdos*)
  13437. dynamic_linker=no
  13438. ;;
  13439. solaris*)
  13440. version_type=linux # correct to gnu/linux during the next big refactor
  13441. need_lib_prefix=no
  13442. need_version=no
  13443. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13444. soname_spec='${libname}${release}${shared_ext}$major'
  13445. shlibpath_var=LD_LIBRARY_PATH
  13446. shlibpath_overrides_runpath=yes
  13447. hardcode_into_libs=yes
  13448. # ldd complains unless libraries are executable
  13449. postinstall_cmds='chmod +x $lib'
  13450. ;;
  13451. sunos4*)
  13452. version_type=sunos
  13453. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13454. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13455. shlibpath_var=LD_LIBRARY_PATH
  13456. shlibpath_overrides_runpath=yes
  13457. if test "$with_gnu_ld" = yes; then
  13458. need_lib_prefix=no
  13459. fi
  13460. need_version=yes
  13461. ;;
  13462. sysv4 | sysv4.3*)
  13463. version_type=linux # correct to gnu/linux during the next big refactor
  13464. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13465. soname_spec='${libname}${release}${shared_ext}$major'
  13466. shlibpath_var=LD_LIBRARY_PATH
  13467. case $host_vendor in
  13468. sni)
  13469. shlibpath_overrides_runpath=no
  13470. need_lib_prefix=no
  13471. runpath_var=LD_RUN_PATH
  13472. ;;
  13473. siemens)
  13474. need_lib_prefix=no
  13475. ;;
  13476. motorola)
  13477. need_lib_prefix=no
  13478. need_version=no
  13479. shlibpath_overrides_runpath=no
  13480. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13481. ;;
  13482. esac
  13483. ;;
  13484. sysv4*MP*)
  13485. if test -d /usr/nec ;then
  13486. version_type=linux # correct to gnu/linux during the next big refactor
  13487. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13488. soname_spec='$libname${shared_ext}.$major'
  13489. shlibpath_var=LD_LIBRARY_PATH
  13490. fi
  13491. ;;
  13492. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13493. version_type=freebsd-elf
  13494. need_lib_prefix=no
  13495. need_version=no
  13496. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13497. soname_spec='${libname}${release}${shared_ext}$major'
  13498. shlibpath_var=LD_LIBRARY_PATH
  13499. shlibpath_overrides_runpath=yes
  13500. hardcode_into_libs=yes
  13501. if test "$with_gnu_ld" = yes; then
  13502. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13503. else
  13504. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13505. case $host_os in
  13506. sco3.2v5*)
  13507. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13508. ;;
  13509. esac
  13510. fi
  13511. sys_lib_dlsearch_path_spec='/usr/lib'
  13512. ;;
  13513. tpf*)
  13514. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13515. version_type=linux # correct to gnu/linux during the next big refactor
  13516. need_lib_prefix=no
  13517. need_version=no
  13518. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13519. shlibpath_var=LD_LIBRARY_PATH
  13520. shlibpath_overrides_runpath=no
  13521. hardcode_into_libs=yes
  13522. ;;
  13523. uts4*)
  13524. version_type=linux # correct to gnu/linux during the next big refactor
  13525. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13526. soname_spec='${libname}${release}${shared_ext}$major'
  13527. shlibpath_var=LD_LIBRARY_PATH
  13528. ;;
  13529. *)
  13530. dynamic_linker=no
  13531. ;;
  13532. esac
  13533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13534. $as_echo "$dynamic_linker" >&6; }
  13535. test "$dynamic_linker" = no && can_build_shared=no
  13536. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13537. if test "$GCC" = yes; then
  13538. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13539. fi
  13540. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13541. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13542. fi
  13543. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13544. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13545. fi
  13546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13547. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13548. hardcode_action_CXX=
  13549. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13550. test -n "$runpath_var_CXX" ||
  13551. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13552. # We can hardcode non-existent directories.
  13553. if test "$hardcode_direct_CXX" != no &&
  13554. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13555. # have to relink, otherwise we might link with an installed library
  13556. # when we should be linking with a yet-to-be-installed one
  13557. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13558. test "$hardcode_minus_L_CXX" != no; then
  13559. # Linking always hardcodes the temporary library directory.
  13560. hardcode_action_CXX=relink
  13561. else
  13562. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13563. hardcode_action_CXX=immediate
  13564. fi
  13565. else
  13566. # We cannot hardcode anything, or else we can only hardcode existing
  13567. # directories.
  13568. hardcode_action_CXX=unsupported
  13569. fi
  13570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13571. $as_echo "$hardcode_action_CXX" >&6; }
  13572. if test "$hardcode_action_CXX" = relink ||
  13573. test "$inherit_rpath_CXX" = yes; then
  13574. # Fast installation is not supported
  13575. enable_fast_install=no
  13576. elif test "$shlibpath_overrides_runpath" = yes ||
  13577. test "$enable_shared" = no; then
  13578. # Fast installation is not necessary
  13579. enable_fast_install=needless
  13580. fi
  13581. fi # test -n "$compiler"
  13582. CC=$lt_save_CC
  13583. CFLAGS=$lt_save_CFLAGS
  13584. LDCXX=$LD
  13585. LD=$lt_save_LD
  13586. GCC=$lt_save_GCC
  13587. with_gnu_ld=$lt_save_with_gnu_ld
  13588. lt_cv_path_LDCXX=$lt_cv_path_LD
  13589. lt_cv_path_LD=$lt_save_path_LD
  13590. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13591. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13592. fi # test "$_lt_caught_CXX_error" != yes
  13593. ac_ext=c
  13594. ac_cpp='$CPP $CPPFLAGS'
  13595. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13596. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13597. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13598. # Find a good install program. We prefer a C program (faster),
  13599. # so one script is as good as another. But avoid the broken or
  13600. # incompatible versions:
  13601. # SysV /etc/install, /usr/sbin/install
  13602. # SunOS /usr/etc/install
  13603. # IRIX /sbin/install
  13604. # AIX /bin/install
  13605. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13606. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13607. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13608. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13609. # OS/2's system install, which has a completely different semantic
  13610. # ./install, which can be erroneously created by make from ./install.sh.
  13611. # Reject install programs that cannot install multiple files.
  13612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13613. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13614. if test -z "$INSTALL"; then
  13615. if ${ac_cv_path_install+:} false; then :
  13616. $as_echo_n "(cached) " >&6
  13617. else
  13618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13619. for as_dir in $PATH
  13620. do
  13621. IFS=$as_save_IFS
  13622. test -z "$as_dir" && as_dir=.
  13623. # Account for people who put trailing slashes in PATH elements.
  13624. case $as_dir/ in #((
  13625. ./ | .// | /[cC]/* | \
  13626. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13627. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13628. /usr/ucb/* ) ;;
  13629. *)
  13630. # OSF1 and SCO ODT 3.0 have their own names for install.
  13631. # Don't use installbsd from OSF since it installs stuff as root
  13632. # by default.
  13633. for ac_prog in ginstall scoinst install; do
  13634. for ac_exec_ext in '' $ac_executable_extensions; do
  13635. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13636. if test $ac_prog = install &&
  13637. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13638. # AIX install. It has an incompatible calling convention.
  13639. :
  13640. elif test $ac_prog = install &&
  13641. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13642. # program-specific install script used by HP pwplus--don't use.
  13643. :
  13644. else
  13645. rm -rf conftest.one conftest.two conftest.dir
  13646. echo one > conftest.one
  13647. echo two > conftest.two
  13648. mkdir conftest.dir
  13649. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13650. test -s conftest.one && test -s conftest.two &&
  13651. test -s conftest.dir/conftest.one &&
  13652. test -s conftest.dir/conftest.two
  13653. then
  13654. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13655. break 3
  13656. fi
  13657. fi
  13658. fi
  13659. done
  13660. done
  13661. ;;
  13662. esac
  13663. done
  13664. IFS=$as_save_IFS
  13665. rm -rf conftest.one conftest.two conftest.dir
  13666. fi
  13667. if test "${ac_cv_path_install+set}" = set; then
  13668. INSTALL=$ac_cv_path_install
  13669. else
  13670. # As a last resort, use the slow shell script. Don't cache a
  13671. # value for INSTALL within a source directory, because that will
  13672. # break other packages using the cache if that directory is
  13673. # removed, or if the value is a relative name.
  13674. INSTALL=$ac_install_sh
  13675. fi
  13676. fi
  13677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13678. $as_echo "$INSTALL" >&6; }
  13679. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13680. # It thinks the first close brace ends the variable substitution.
  13681. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13682. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13683. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13685. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13686. set x ${MAKE-make}
  13687. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13688. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13689. $as_echo_n "(cached) " >&6
  13690. else
  13691. cat >conftest.make <<\_ACEOF
  13692. SHELL = /bin/sh
  13693. all:
  13694. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13695. _ACEOF
  13696. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13697. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13698. *@@@%%%=?*=@@@%%%*)
  13699. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13700. *)
  13701. eval ac_cv_prog_make_${ac_make}_set=no;;
  13702. esac
  13703. rm -f conftest.make
  13704. fi
  13705. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13707. $as_echo "yes" >&6; }
  13708. SET_MAKE=
  13709. else
  13710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13711. $as_echo "no" >&6; }
  13712. SET_MAKE="MAKE=${MAKE-make}"
  13713. fi
  13714. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13715. if test -n "$ac_tool_prefix"; then
  13716. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13717. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13719. $as_echo_n "checking for $ac_word... " >&6; }
  13720. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13721. $as_echo_n "(cached) " >&6
  13722. else
  13723. case $PKG_CONFIG in
  13724. [\\/]* | ?:[\\/]*)
  13725. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13726. ;;
  13727. *)
  13728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13729. for as_dir in $PATH
  13730. do
  13731. IFS=$as_save_IFS
  13732. test -z "$as_dir" && as_dir=.
  13733. for ac_exec_ext in '' $ac_executable_extensions; do
  13734. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13735. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13737. break 2
  13738. fi
  13739. done
  13740. done
  13741. IFS=$as_save_IFS
  13742. ;;
  13743. esac
  13744. fi
  13745. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13746. if test -n "$PKG_CONFIG"; then
  13747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13748. $as_echo "$PKG_CONFIG" >&6; }
  13749. else
  13750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13751. $as_echo "no" >&6; }
  13752. fi
  13753. fi
  13754. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13755. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13756. # Extract the first word of "pkg-config", so it can be a program name with args.
  13757. set dummy pkg-config; ac_word=$2
  13758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13759. $as_echo_n "checking for $ac_word... " >&6; }
  13760. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13761. $as_echo_n "(cached) " >&6
  13762. else
  13763. case $ac_pt_PKG_CONFIG in
  13764. [\\/]* | ?:[\\/]*)
  13765. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13766. ;;
  13767. *)
  13768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13769. for as_dir in $PATH
  13770. do
  13771. IFS=$as_save_IFS
  13772. test -z "$as_dir" && as_dir=.
  13773. for ac_exec_ext in '' $ac_executable_extensions; do
  13774. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13775. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13776. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13777. break 2
  13778. fi
  13779. done
  13780. done
  13781. IFS=$as_save_IFS
  13782. ;;
  13783. esac
  13784. fi
  13785. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13786. if test -n "$ac_pt_PKG_CONFIG"; then
  13787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13788. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13789. else
  13790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13791. $as_echo "no" >&6; }
  13792. fi
  13793. if test "x$ac_pt_PKG_CONFIG" = x; then
  13794. PKG_CONFIG=""
  13795. else
  13796. case $cross_compiling:$ac_tool_warned in
  13797. yes:)
  13798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13799. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13800. ac_tool_warned=yes ;;
  13801. esac
  13802. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13803. fi
  13804. else
  13805. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13806. fi
  13807. fi
  13808. if test -n "$PKG_CONFIG"; then
  13809. _pkg_min_version=0.9.0
  13810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13811. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13812. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13814. $as_echo "yes" >&6; }
  13815. else
  13816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13817. $as_echo "no" >&6; }
  13818. PKG_CONFIG=""
  13819. fi
  13820. fi
  13821. case "$host" in
  13822. *-*-mingw32*)
  13823. # Except on msys, where make can't handle full pathnames (bug 1972)
  13824. ;;
  13825. *)
  13826. srcdir=`cd $srcdir && pwd`
  13827. ;;
  13828. esac
  13829. INCLUDE="-I$srcdir/include"
  13830. case "$host" in
  13831. *-*-nto-qnx*)
  13832. ;;
  13833. *)
  13834. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  13835. ;;
  13836. esac
  13837. if test x$srcdir != x.; then
  13838. INCLUDE="-Iinclude $INCLUDE"
  13839. elif test -d .hg; then
  13840. as_fn_error $? "
  13841. *** When building from Mercurial you should configure and build in a
  13842. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13843. " "$LINENO" 5
  13844. fi
  13845. BASE_CFLAGS=""
  13846. BASE_LDFLAGS=""
  13847. case "$host" in
  13848. *-*-cygwin*)
  13849. # We build SDL on cygwin without the UNIX emulation layer
  13850. save_CFLAGS="$CFLAGS"
  13851. have_no_cygwin=no
  13852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13853. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13854. CFLAGS="$save_CFLAGS -mno-cygwin"
  13855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13856. /* end confdefs.h. */
  13857. int
  13858. main ()
  13859. {
  13860. ;
  13861. return 0;
  13862. }
  13863. _ACEOF
  13864. if ac_fn_c_try_compile "$LINENO"; then :
  13865. have_no_cygwin=yes
  13866. fi
  13867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13869. $as_echo "$have_no_cygwin" >&6; }
  13870. CFLAGS="$save_CFLAGS"
  13871. if test x$have_no_cygwin = xyes; then
  13872. BASE_CFLAGS="-mno-cygwin"
  13873. BASE_LDFLAGS="-mno-cygwin"
  13874. fi
  13875. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13876. ;;
  13877. esac
  13878. # Uncomment the following line if you want to force SDL and applications
  13879. # built with it to be compiled for a particular architecture.
  13880. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13881. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13882. # The default optimization for SDL is -O3 (Bug #31)
  13883. if test "x$orig_CFLAGS" = x; then
  13884. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13885. fi
  13886. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13887. BUILD_LDFLAGS="$LDFLAGS"
  13888. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13889. ## These are common directories to find software packages
  13890. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13891. # if test -d $path/include; then
  13892. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13893. # fi
  13894. # if test -d $path/lib; then
  13895. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13896. # fi
  13897. #done
  13898. SDL_CFLAGS="$BASE_CFLAGS"
  13899. SDL_LIBS="-lSDL2"
  13900. if test "x$BASE_LDFLAGS" != x; then
  13901. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13902. fi
  13903. if test "x$EXTRA_CFLAGS" != x; then
  13904. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13905. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13906. fi
  13907. if test "x$EXTRA_LDFLAGS" != x; then
  13908. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13909. fi
  13910. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13911. find_lib()
  13912. {
  13913. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13914. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13915. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13916. if test "$cross_compiling" = yes; then
  13917. host_lib_path=""
  13918. else
  13919. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13920. fi
  13921. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13922. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13923. if test x$lib != x; then
  13924. echo $lib
  13925. return
  13926. fi
  13927. done
  13928. # Try again, this time allowing more than one version digit after the .so
  13929. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13930. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13931. if test x$lib != x; then
  13932. echo $lib
  13933. return
  13934. fi
  13935. done
  13936. }
  13937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13938. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13939. if ${ac_cv_c_const+:} false; then :
  13940. $as_echo_n "(cached) " >&6
  13941. else
  13942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13943. /* end confdefs.h. */
  13944. int
  13945. main ()
  13946. {
  13947. #ifndef __cplusplus
  13948. /* Ultrix mips cc rejects this sort of thing. */
  13949. typedef int charset[2];
  13950. const charset cs = { 0, 0 };
  13951. /* SunOS 4.1.1 cc rejects this. */
  13952. char const *const *pcpcc;
  13953. char **ppc;
  13954. /* NEC SVR4.0.2 mips cc rejects this. */
  13955. struct point {int x, y;};
  13956. static struct point const zero = {0,0};
  13957. /* AIX XL C 1.02.0.0 rejects this.
  13958. It does not let you subtract one const X* pointer from another in
  13959. an arm of an if-expression whose if-part is not a constant
  13960. expression */
  13961. const char *g = "string";
  13962. pcpcc = &g + (g ? g-g : 0);
  13963. /* HPUX 7.0 cc rejects these. */
  13964. ++pcpcc;
  13965. ppc = (char**) pcpcc;
  13966. pcpcc = (char const *const *) ppc;
  13967. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13968. char tx;
  13969. char *t = &tx;
  13970. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13971. *t++ = 0;
  13972. if (s) return 0;
  13973. }
  13974. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13975. int x[] = {25, 17};
  13976. const int *foo = &x[0];
  13977. ++foo;
  13978. }
  13979. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13980. typedef const int *iptr;
  13981. iptr p = 0;
  13982. ++p;
  13983. }
  13984. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13985. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13986. struct s { int j; const int *ap[3]; } bx;
  13987. struct s *b = &bx; b->j = 5;
  13988. }
  13989. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13990. const int foo = 10;
  13991. if (!foo) return 0;
  13992. }
  13993. return !cs[0] && !zero.x;
  13994. #endif
  13995. ;
  13996. return 0;
  13997. }
  13998. _ACEOF
  13999. if ac_fn_c_try_compile "$LINENO"; then :
  14000. ac_cv_c_const=yes
  14001. else
  14002. ac_cv_c_const=no
  14003. fi
  14004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14005. fi
  14006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14007. $as_echo "$ac_cv_c_const" >&6; }
  14008. if test $ac_cv_c_const = no; then
  14009. $as_echo "#define const /**/" >>confdefs.h
  14010. fi
  14011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14012. $as_echo_n "checking for inline... " >&6; }
  14013. if ${ac_cv_c_inline+:} false; then :
  14014. $as_echo_n "(cached) " >&6
  14015. else
  14016. ac_cv_c_inline=no
  14017. for ac_kw in inline __inline__ __inline; do
  14018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14019. /* end confdefs.h. */
  14020. #ifndef __cplusplus
  14021. typedef int foo_t;
  14022. static $ac_kw foo_t static_foo () {return 0; }
  14023. $ac_kw foo_t foo () {return 0; }
  14024. #endif
  14025. _ACEOF
  14026. if ac_fn_c_try_compile "$LINENO"; then :
  14027. ac_cv_c_inline=$ac_kw
  14028. fi
  14029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14030. test "$ac_cv_c_inline" != no && break
  14031. done
  14032. fi
  14033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14034. $as_echo "$ac_cv_c_inline" >&6; }
  14035. case $ac_cv_c_inline in
  14036. inline | yes) ;;
  14037. *)
  14038. case $ac_cv_c_inline in
  14039. no) ac_val=;;
  14040. *) ac_val=$ac_cv_c_inline;;
  14041. esac
  14042. cat >>confdefs.h <<_ACEOF
  14043. #ifndef __cplusplus
  14044. #define inline $ac_val
  14045. #endif
  14046. _ACEOF
  14047. ;;
  14048. esac
  14049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14050. $as_echo_n "checking for working volatile... " >&6; }
  14051. if ${ac_cv_c_volatile+:} false; then :
  14052. $as_echo_n "(cached) " >&6
  14053. else
  14054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14055. /* end confdefs.h. */
  14056. int
  14057. main ()
  14058. {
  14059. volatile int x;
  14060. int * volatile y = (int *) 0;
  14061. return !x && !y;
  14062. ;
  14063. return 0;
  14064. }
  14065. _ACEOF
  14066. if ac_fn_c_try_compile "$LINENO"; then :
  14067. ac_cv_c_volatile=yes
  14068. else
  14069. ac_cv_c_volatile=no
  14070. fi
  14071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14072. fi
  14073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14074. $as_echo "$ac_cv_c_volatile" >&6; }
  14075. if test $ac_cv_c_volatile = no; then
  14076. $as_echo "#define volatile /**/" >>confdefs.h
  14077. fi
  14078. # Check whether --enable-assertions was given.
  14079. if test "${enable_assertions+set}" = set; then :
  14080. enableval=$enable_assertions;
  14081. else
  14082. enable_assertions=auto
  14083. fi
  14084. case "$enable_assertions" in
  14085. auto) # Use optimization settings to determine assertion level
  14086. ;;
  14087. disabled)
  14088. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14089. ;;
  14090. release)
  14091. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14092. ;;
  14093. enabled)
  14094. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14095. ;;
  14096. paranoid)
  14097. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14098. ;;
  14099. *)
  14100. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14101. ;;
  14102. esac
  14103. # Check whether --enable-dependency-tracking was given.
  14104. if test "${enable_dependency_tracking+set}" = set; then :
  14105. enableval=$enable_dependency_tracking;
  14106. else
  14107. enable_dependency_tracking=yes
  14108. fi
  14109. if test x$enable_dependency_tracking = xyes; then
  14110. have_gcc_mmd_mt=no
  14111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14112. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14114. /* end confdefs.h. */
  14115. #if !defined(__GNUC__) || __GNUC__ < 3
  14116. #error Dependency tracking requires GCC 3.0 or newer
  14117. #endif
  14118. int
  14119. main ()
  14120. {
  14121. ;
  14122. return 0;
  14123. }
  14124. _ACEOF
  14125. if ac_fn_c_try_compile "$LINENO"; then :
  14126. have_gcc_mmd_mt=yes
  14127. fi
  14128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14130. $as_echo "$have_gcc_mmd_mt" >&6; }
  14131. if test x$have_gcc_mmd_mt = xyes; then
  14132. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14133. fi
  14134. fi
  14135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14136. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14137. have_no_undefined=no
  14138. case "$host" in
  14139. *-*-openbsd*)
  14140. ;;
  14141. *)
  14142. save_LDFLAGS="$LDFLAGS"
  14143. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14145. /* end confdefs.h. */
  14146. int
  14147. main ()
  14148. {
  14149. ;
  14150. return 0;
  14151. }
  14152. _ACEOF
  14153. if ac_fn_c_try_link "$LINENO"; then :
  14154. have_no_undefined=yes
  14155. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  14156. fi
  14157. rm -f core conftest.err conftest.$ac_objext \
  14158. conftest$ac_exeext conftest.$ac_ext
  14159. LDFLAGS="$save_LDFLAGS"
  14160. ;;
  14161. esac
  14162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14163. $as_echo "$have_no_undefined" >&6; }
  14164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14165. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14166. have_dynamicbase=no
  14167. case "$host" in
  14168. *)
  14169. save_LDFLAGS="$LDFLAGS"
  14170. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14172. /* end confdefs.h. */
  14173. int
  14174. main ()
  14175. {
  14176. ;
  14177. return 0;
  14178. }
  14179. _ACEOF
  14180. if ac_fn_c_try_link "$LINENO"; then :
  14181. have_dynamicbase=yes
  14182. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14183. fi
  14184. rm -f core conftest.err conftest.$ac_objext \
  14185. conftest$ac_exeext conftest.$ac_ext
  14186. LDFLAGS="$save_LDFLAGS"
  14187. ;;
  14188. esac
  14189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14190. $as_echo "$have_dynamicbase" >&6; }
  14191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14192. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14193. have_nxcompat=no
  14194. case "$host" in
  14195. *)
  14196. save_LDFLAGS="$LDFLAGS"
  14197. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14199. /* end confdefs.h. */
  14200. int
  14201. main ()
  14202. {
  14203. ;
  14204. return 0;
  14205. }
  14206. _ACEOF
  14207. if ac_fn_c_try_link "$LINENO"; then :
  14208. have_nxcompat=yes
  14209. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14210. fi
  14211. rm -f core conftest.err conftest.$ac_objext \
  14212. conftest$ac_exeext conftest.$ac_ext
  14213. LDFLAGS="$save_LDFLAGS"
  14214. ;;
  14215. esac
  14216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14217. $as_echo "$have_nxcompat" >&6; }
  14218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14219. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14220. have_high_entropy_va=no
  14221. case "$host" in
  14222. *)
  14223. save_LDFLAGS="$LDFLAGS"
  14224. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14226. /* end confdefs.h. */
  14227. int
  14228. main ()
  14229. {
  14230. ;
  14231. return 0;
  14232. }
  14233. _ACEOF
  14234. if ac_fn_c_try_link "$LINENO"; then :
  14235. have_high_entropy_va=yes
  14236. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14237. fi
  14238. rm -f core conftest.err conftest.$ac_objext \
  14239. conftest$ac_exeext conftest.$ac_ext
  14240. LDFLAGS="$save_LDFLAGS"
  14241. ;;
  14242. esac
  14243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14244. $as_echo "$have_high_entropy_va" >&6; }
  14245. # Check whether --enable-libc was given.
  14246. if test "${enable_libc+set}" = set; then :
  14247. enableval=$enable_libc;
  14248. else
  14249. enable_libc=yes
  14250. fi
  14251. if test x$enable_libc = xyes; then
  14252. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14254. $as_echo_n "checking for ANSI C header files... " >&6; }
  14255. if ${ac_cv_header_stdc+:} false; then :
  14256. $as_echo_n "(cached) " >&6
  14257. else
  14258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14259. /* end confdefs.h. */
  14260. #include <stdlib.h>
  14261. #include <stdarg.h>
  14262. #include <string.h>
  14263. #include <float.h>
  14264. int
  14265. main ()
  14266. {
  14267. ;
  14268. return 0;
  14269. }
  14270. _ACEOF
  14271. if ac_fn_c_try_compile "$LINENO"; then :
  14272. ac_cv_header_stdc=yes
  14273. else
  14274. ac_cv_header_stdc=no
  14275. fi
  14276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14277. if test $ac_cv_header_stdc = yes; then
  14278. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14280. /* end confdefs.h. */
  14281. #include <string.h>
  14282. _ACEOF
  14283. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14284. $EGREP "memchr" >/dev/null 2>&1; then :
  14285. else
  14286. ac_cv_header_stdc=no
  14287. fi
  14288. rm -f conftest*
  14289. fi
  14290. if test $ac_cv_header_stdc = yes; then
  14291. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14293. /* end confdefs.h. */
  14294. #include <stdlib.h>
  14295. _ACEOF
  14296. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14297. $EGREP "free" >/dev/null 2>&1; then :
  14298. else
  14299. ac_cv_header_stdc=no
  14300. fi
  14301. rm -f conftest*
  14302. fi
  14303. if test $ac_cv_header_stdc = yes; then
  14304. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14305. if test "$cross_compiling" = yes; then :
  14306. :
  14307. else
  14308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14309. /* end confdefs.h. */
  14310. #include <ctype.h>
  14311. #include <stdlib.h>
  14312. #if ((' ' & 0x0FF) == 0x020)
  14313. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14314. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14315. #else
  14316. # define ISLOWER(c) \
  14317. (('a' <= (c) && (c) <= 'i') \
  14318. || ('j' <= (c) && (c) <= 'r') \
  14319. || ('s' <= (c) && (c) <= 'z'))
  14320. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14321. #endif
  14322. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14323. int
  14324. main ()
  14325. {
  14326. int i;
  14327. for (i = 0; i < 256; i++)
  14328. if (XOR (islower (i), ISLOWER (i))
  14329. || toupper (i) != TOUPPER (i))
  14330. return 2;
  14331. return 0;
  14332. }
  14333. _ACEOF
  14334. if ac_fn_c_try_run "$LINENO"; then :
  14335. else
  14336. ac_cv_header_stdc=no
  14337. fi
  14338. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14339. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14340. fi
  14341. fi
  14342. fi
  14343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14344. $as_echo "$ac_cv_header_stdc" >&6; }
  14345. if test $ac_cv_header_stdc = yes; then
  14346. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14347. fi
  14348. for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h limits.h ctype.h math.h float.h iconv.h signal.h
  14349. do :
  14350. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14351. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14352. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14353. cat >>confdefs.h <<_ACEOF
  14354. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14355. _ACEOF
  14356. fi
  14357. done
  14358. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14359. if test "x$ac_cv_type_size_t" = xyes; then :
  14360. else
  14361. cat >>confdefs.h <<_ACEOF
  14362. #define size_t unsigned int
  14363. _ACEOF
  14364. fi
  14365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14366. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14367. if ${ac_cv_define_M_PI+:} false; then :
  14368. $as_echo_n "(cached) " >&6
  14369. else
  14370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14371. /* end confdefs.h. */
  14372. #include <math.h>
  14373. #ifdef M_PI
  14374. YES_IS_DEFINED
  14375. #endif
  14376. _ACEOF
  14377. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14378. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14379. ac_cv_define_M_PI=yes
  14380. else
  14381. ac_cv_define_M_PI=no
  14382. fi
  14383. rm -f conftest*
  14384. fi
  14385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14386. $as_echo "$ac_cv_define_M_PI" >&6; }
  14387. if test "$ac_cv_define_M_PI" = "yes" ; then
  14388. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14389. fi
  14390. case "$host" in
  14391. *-*-cygwin* | *-*-mingw32*)
  14392. ;;
  14393. *)
  14394. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14395. # for constant arguments. Useless!
  14396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14397. $as_echo_n "checking for working alloca.h... " >&6; }
  14398. if ${ac_cv_working_alloca_h+:} false; then :
  14399. $as_echo_n "(cached) " >&6
  14400. else
  14401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14402. /* end confdefs.h. */
  14403. #include <alloca.h>
  14404. int
  14405. main ()
  14406. {
  14407. char *p = (char *) alloca (2 * sizeof (int));
  14408. if (p) return 0;
  14409. ;
  14410. return 0;
  14411. }
  14412. _ACEOF
  14413. if ac_fn_c_try_link "$LINENO"; then :
  14414. ac_cv_working_alloca_h=yes
  14415. else
  14416. ac_cv_working_alloca_h=no
  14417. fi
  14418. rm -f core conftest.err conftest.$ac_objext \
  14419. conftest$ac_exeext conftest.$ac_ext
  14420. fi
  14421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14422. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14423. if test $ac_cv_working_alloca_h = yes; then
  14424. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14425. fi
  14426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14427. $as_echo_n "checking for alloca... " >&6; }
  14428. if ${ac_cv_func_alloca_works+:} false; then :
  14429. $as_echo_n "(cached) " >&6
  14430. else
  14431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14432. /* end confdefs.h. */
  14433. #ifdef __GNUC__
  14434. # define alloca __builtin_alloca
  14435. #else
  14436. # ifdef _MSC_VER
  14437. # include <malloc.h>
  14438. # define alloca _alloca
  14439. # else
  14440. # ifdef HAVE_ALLOCA_H
  14441. # include <alloca.h>
  14442. # else
  14443. # ifdef _AIX
  14444. #pragma alloca
  14445. # else
  14446. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14447. void *alloca (size_t);
  14448. # endif
  14449. # endif
  14450. # endif
  14451. # endif
  14452. #endif
  14453. int
  14454. main ()
  14455. {
  14456. char *p = (char *) alloca (1);
  14457. if (p) return 0;
  14458. ;
  14459. return 0;
  14460. }
  14461. _ACEOF
  14462. if ac_fn_c_try_link "$LINENO"; then :
  14463. ac_cv_func_alloca_works=yes
  14464. else
  14465. ac_cv_func_alloca_works=no
  14466. fi
  14467. rm -f core conftest.err conftest.$ac_objext \
  14468. conftest$ac_exeext conftest.$ac_ext
  14469. fi
  14470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14471. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14472. if test $ac_cv_func_alloca_works = yes; then
  14473. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14474. else
  14475. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14476. # that cause trouble. Some versions do not even contain alloca or
  14477. # contain a buggy version. If you still want to use their alloca,
  14478. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14479. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14480. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14482. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14483. if ${ac_cv_os_cray+:} false; then :
  14484. $as_echo_n "(cached) " >&6
  14485. else
  14486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14487. /* end confdefs.h. */
  14488. #if defined CRAY && ! defined CRAY2
  14489. webecray
  14490. #else
  14491. wenotbecray
  14492. #endif
  14493. _ACEOF
  14494. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14495. $EGREP "webecray" >/dev/null 2>&1; then :
  14496. ac_cv_os_cray=yes
  14497. else
  14498. ac_cv_os_cray=no
  14499. fi
  14500. rm -f conftest*
  14501. fi
  14502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14503. $as_echo "$ac_cv_os_cray" >&6; }
  14504. if test $ac_cv_os_cray = yes; then
  14505. for ac_func in _getb67 GETB67 getb67; do
  14506. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14507. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14508. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14509. cat >>confdefs.h <<_ACEOF
  14510. #define CRAY_STACKSEG_END $ac_func
  14511. _ACEOF
  14512. break
  14513. fi
  14514. done
  14515. fi
  14516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14517. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14518. if ${ac_cv_c_stack_direction+:} false; then :
  14519. $as_echo_n "(cached) " >&6
  14520. else
  14521. if test "$cross_compiling" = yes; then :
  14522. ac_cv_c_stack_direction=0
  14523. else
  14524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14525. /* end confdefs.h. */
  14526. $ac_includes_default
  14527. int
  14528. find_stack_direction (int *addr, int depth)
  14529. {
  14530. int dir, dummy = 0;
  14531. if (! addr)
  14532. addr = &dummy;
  14533. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14534. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14535. return dir + dummy;
  14536. }
  14537. int
  14538. main (int argc, char **argv)
  14539. {
  14540. return find_stack_direction (0, argc + !argv + 20) < 0;
  14541. }
  14542. _ACEOF
  14543. if ac_fn_c_try_run "$LINENO"; then :
  14544. ac_cv_c_stack_direction=1
  14545. else
  14546. ac_cv_c_stack_direction=-1
  14547. fi
  14548. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14549. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14550. fi
  14551. fi
  14552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14553. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14554. cat >>confdefs.h <<_ACEOF
  14555. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14556. _ACEOF
  14557. fi
  14558. ;;
  14559. esac
  14560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14561. $as_echo_n "checking for working memcmp... " >&6; }
  14562. if ${ac_cv_func_memcmp_working+:} false; then :
  14563. $as_echo_n "(cached) " >&6
  14564. else
  14565. if test "$cross_compiling" = yes; then :
  14566. ac_cv_func_memcmp_working=no
  14567. else
  14568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14569. /* end confdefs.h. */
  14570. $ac_includes_default
  14571. int
  14572. main ()
  14573. {
  14574. /* Some versions of memcmp are not 8-bit clean. */
  14575. char c0 = '\100', c1 = '\200', c2 = '\201';
  14576. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14577. return 1;
  14578. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14579. or more and with at least one buffer not starting on a 4-byte boundary.
  14580. William Lewis provided this test program. */
  14581. {
  14582. char foo[21];
  14583. char bar[21];
  14584. int i;
  14585. for (i = 0; i < 4; i++)
  14586. {
  14587. char *a = foo + i;
  14588. char *b = bar + i;
  14589. strcpy (a, "--------01111111");
  14590. strcpy (b, "--------10000000");
  14591. if (memcmp (a, b, 16) >= 0)
  14592. return 1;
  14593. }
  14594. return 0;
  14595. }
  14596. ;
  14597. return 0;
  14598. }
  14599. _ACEOF
  14600. if ac_fn_c_try_run "$LINENO"; then :
  14601. ac_cv_func_memcmp_working=yes
  14602. else
  14603. ac_cv_func_memcmp_working=no
  14604. fi
  14605. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14606. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14607. fi
  14608. fi
  14609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14610. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14611. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14612. *" memcmp.$ac_objext "* ) ;;
  14613. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14614. ;;
  14615. esac
  14616. if test x$ac_cv_func_memcmp_working = xyes; then
  14617. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14618. fi
  14619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14620. $as_echo_n "checking for working strtod... " >&6; }
  14621. if ${ac_cv_func_strtod+:} false; then :
  14622. $as_echo_n "(cached) " >&6
  14623. else
  14624. if test "$cross_compiling" = yes; then :
  14625. ac_cv_func_strtod=no
  14626. else
  14627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14628. /* end confdefs.h. */
  14629. $ac_includes_default
  14630. #ifndef strtod
  14631. double strtod ();
  14632. #endif
  14633. int
  14634. main()
  14635. {
  14636. {
  14637. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14638. char *string = " +69";
  14639. char *term;
  14640. double value;
  14641. value = strtod (string, &term);
  14642. if (value != 69 || term != (string + 4))
  14643. return 1;
  14644. }
  14645. {
  14646. /* Under Solaris 2.4, strtod returns the wrong value for the
  14647. terminating character under some conditions. */
  14648. char *string = "NaN";
  14649. char *term;
  14650. strtod (string, &term);
  14651. if (term != string && *(term - 1) == 0)
  14652. return 1;
  14653. }
  14654. return 0;
  14655. }
  14656. _ACEOF
  14657. if ac_fn_c_try_run "$LINENO"; then :
  14658. ac_cv_func_strtod=yes
  14659. else
  14660. ac_cv_func_strtod=no
  14661. fi
  14662. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14663. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14664. fi
  14665. fi
  14666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14667. $as_echo "$ac_cv_func_strtod" >&6; }
  14668. if test $ac_cv_func_strtod = no; then
  14669. case " $LIBOBJS " in
  14670. *" strtod.$ac_objext "* ) ;;
  14671. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14672. ;;
  14673. esac
  14674. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14675. if test "x$ac_cv_func_pow" = xyes; then :
  14676. fi
  14677. if test $ac_cv_func_pow = no; then
  14678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14679. $as_echo_n "checking for pow in -lm... " >&6; }
  14680. if ${ac_cv_lib_m_pow+:} false; then :
  14681. $as_echo_n "(cached) " >&6
  14682. else
  14683. ac_check_lib_save_LIBS=$LIBS
  14684. LIBS="-lm $LIBS"
  14685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14686. /* end confdefs.h. */
  14687. /* Override any GCC internal prototype to avoid an error.
  14688. Use char because int might match the return type of a GCC
  14689. builtin and then its argument prototype would still apply. */
  14690. #ifdef __cplusplus
  14691. extern "C"
  14692. #endif
  14693. char pow ();
  14694. int
  14695. main ()
  14696. {
  14697. return pow ();
  14698. ;
  14699. return 0;
  14700. }
  14701. _ACEOF
  14702. if ac_fn_c_try_link "$LINENO"; then :
  14703. ac_cv_lib_m_pow=yes
  14704. else
  14705. ac_cv_lib_m_pow=no
  14706. fi
  14707. rm -f core conftest.err conftest.$ac_objext \
  14708. conftest$ac_exeext conftest.$ac_ext
  14709. LIBS=$ac_check_lib_save_LIBS
  14710. fi
  14711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14712. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14713. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14714. POW_LIB=-lm
  14715. else
  14716. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14717. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14718. fi
  14719. fi
  14720. fi
  14721. if test x$ac_cv_func_strtod = xyes; then
  14722. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14723. fi
  14724. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14725. if test "x$ac_cv_func_mprotect" = xyes; then :
  14726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14727. /* end confdefs.h. */
  14728. #include <sys/types.h>
  14729. #include <sys/mman.h>
  14730. int
  14731. main ()
  14732. {
  14733. ;
  14734. return 0;
  14735. }
  14736. _ACEOF
  14737. if ac_fn_c_try_compile "$LINENO"; then :
  14738. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14739. fi
  14740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14741. fi
  14742. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat wcsdup wcsstr wcscmp wcsncmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll _Exit
  14743. do :
  14744. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14745. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14746. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14747. cat >>confdefs.h <<_ACEOF
  14748. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14749. _ACEOF
  14750. fi
  14751. done
  14752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14753. $as_echo_n "checking for pow in -lm... " >&6; }
  14754. if ${ac_cv_lib_m_pow+:} false; then :
  14755. $as_echo_n "(cached) " >&6
  14756. else
  14757. ac_check_lib_save_LIBS=$LIBS
  14758. LIBS="-lm $LIBS"
  14759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14760. /* end confdefs.h. */
  14761. /* Override any GCC internal prototype to avoid an error.
  14762. Use char because int might match the return type of a GCC
  14763. builtin and then its argument prototype would still apply. */
  14764. #ifdef __cplusplus
  14765. extern "C"
  14766. #endif
  14767. char pow ();
  14768. int
  14769. main ()
  14770. {
  14771. return pow ();
  14772. ;
  14773. return 0;
  14774. }
  14775. _ACEOF
  14776. if ac_fn_c_try_link "$LINENO"; then :
  14777. ac_cv_lib_m_pow=yes
  14778. else
  14779. ac_cv_lib_m_pow=no
  14780. fi
  14781. rm -f core conftest.err conftest.$ac_objext \
  14782. conftest$ac_exeext conftest.$ac_ext
  14783. LIBS=$ac_check_lib_save_LIBS
  14784. fi
  14785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14786. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14787. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14788. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14789. fi
  14790. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf trunc truncf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14791. do :
  14792. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14793. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14794. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14795. cat >>confdefs.h <<_ACEOF
  14796. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14797. _ACEOF
  14798. fi
  14799. done
  14800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14801. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14802. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14803. $as_echo_n "(cached) " >&6
  14804. else
  14805. ac_check_lib_save_LIBS=$LIBS
  14806. LIBS="-liconv $LIBS"
  14807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14808. /* end confdefs.h. */
  14809. /* Override any GCC internal prototype to avoid an error.
  14810. Use char because int might match the return type of a GCC
  14811. builtin and then its argument prototype would still apply. */
  14812. #ifdef __cplusplus
  14813. extern "C"
  14814. #endif
  14815. char iconv_open ();
  14816. int
  14817. main ()
  14818. {
  14819. return iconv_open ();
  14820. ;
  14821. return 0;
  14822. }
  14823. _ACEOF
  14824. if ac_fn_c_try_link "$LINENO"; then :
  14825. ac_cv_lib_iconv_iconv_open=yes
  14826. else
  14827. ac_cv_lib_iconv_iconv_open=no
  14828. fi
  14829. rm -f core conftest.err conftest.$ac_objext \
  14830. conftest$ac_exeext conftest.$ac_ext
  14831. LIBS=$ac_check_lib_save_LIBS
  14832. fi
  14833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14834. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14835. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14836. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14837. fi
  14838. for ac_func in iconv
  14839. do :
  14840. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14841. if test "x$ac_cv_func_iconv" = xyes; then :
  14842. cat >>confdefs.h <<_ACEOF
  14843. #define HAVE_ICONV 1
  14844. _ACEOF
  14845. fi
  14846. done
  14847. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14848. "
  14849. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14850. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14851. fi
  14852. for ac_header in libunwind.h
  14853. do :
  14854. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14855. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14856. cat >>confdefs.h <<_ACEOF
  14857. #define HAVE_LIBUNWIND_H 1
  14858. _ACEOF
  14859. fi
  14860. done
  14861. fi
  14862. # Check whether --enable-gcc-atomics was given.
  14863. if test "${enable_gcc_atomics+set}" = set; then :
  14864. enableval=$enable_gcc_atomics;
  14865. else
  14866. enable_gcc_atomics=yes
  14867. fi
  14868. if test x$enable_gcc_atomics = xyes; then
  14869. have_gcc_atomics=no
  14870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14871. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14873. /* end confdefs.h. */
  14874. int
  14875. main ()
  14876. {
  14877. int a;
  14878. void *x, *y, *z;
  14879. __sync_lock_test_and_set(&a, 4);
  14880. __sync_lock_test_and_set(&x, y);
  14881. __sync_fetch_and_add(&a, 1);
  14882. __sync_bool_compare_and_swap(&a, 5, 10);
  14883. __sync_bool_compare_and_swap(&x, y, z);
  14884. ;
  14885. return 0;
  14886. }
  14887. _ACEOF
  14888. if ac_fn_c_try_link "$LINENO"; then :
  14889. have_gcc_atomics=yes
  14890. fi
  14891. rm -f core conftest.err conftest.$ac_objext \
  14892. conftest$ac_exeext conftest.$ac_ext
  14893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14894. $as_echo "$have_gcc_atomics" >&6; }
  14895. if test x$have_gcc_atomics = xyes; then
  14896. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14897. else
  14898. # See if we have the minimum operation needed for GCC atomics
  14899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14900. /* end confdefs.h. */
  14901. int
  14902. main ()
  14903. {
  14904. int a;
  14905. __sync_lock_test_and_set(&a, 1);
  14906. __sync_lock_release(&a);
  14907. ;
  14908. return 0;
  14909. }
  14910. _ACEOF
  14911. if ac_fn_c_try_link "$LINENO"; then :
  14912. have_gcc_sync_lock_test_and_set=yes
  14913. fi
  14914. rm -f core conftest.err conftest.$ac_objext \
  14915. conftest$ac_exeext conftest.$ac_ext
  14916. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14917. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14918. fi
  14919. fi
  14920. fi
  14921. # Standard C sources
  14922. SOURCES="$SOURCES $srcdir/src/*.c"
  14923. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14924. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14925. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14926. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14927. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14928. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14929. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14930. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14931. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14932. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14933. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14934. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14935. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14936. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14937. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14938. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14939. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14940. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14941. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14942. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  14943. # Check whether --enable-atomic was given.
  14944. if test "${enable_atomic+set}" = set; then :
  14945. enableval=$enable_atomic;
  14946. else
  14947. enable_atomic=yes
  14948. fi
  14949. if test x$enable_atomic != xyes; then
  14950. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14951. else
  14952. SUMMARY_modules="${SUMMARY_modules} atomic"
  14953. fi
  14954. # Check whether --enable-audio was given.
  14955. if test "${enable_audio+set}" = set; then :
  14956. enableval=$enable_audio;
  14957. else
  14958. enable_audio=yes
  14959. fi
  14960. if test x$enable_audio != xyes; then
  14961. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14962. else
  14963. SUMMARY_modules="${SUMMARY_modules} audio"
  14964. fi
  14965. # Check whether --enable-video was given.
  14966. if test "${enable_video+set}" = set; then :
  14967. enableval=$enable_video;
  14968. else
  14969. enable_video=yes
  14970. fi
  14971. if test x$enable_video != xyes; then
  14972. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14973. else
  14974. SUMMARY_modules="${SUMMARY_modules} video"
  14975. fi
  14976. # Check whether --enable-render was given.
  14977. if test "${enable_render+set}" = set; then :
  14978. enableval=$enable_render;
  14979. else
  14980. enable_render=yes
  14981. fi
  14982. if test x$enable_render != xyes; then
  14983. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14984. else
  14985. SUMMARY_modules="${SUMMARY_modules} render"
  14986. fi
  14987. # Check whether --enable-events was given.
  14988. if test "${enable_events+set}" = set; then :
  14989. enableval=$enable_events;
  14990. else
  14991. enable_events=yes
  14992. fi
  14993. if test x$enable_events != xyes; then
  14994. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14995. else
  14996. SUMMARY_modules="${SUMMARY_modules} events"
  14997. fi
  14998. # Check whether --enable-joystick was given.
  14999. if test "${enable_joystick+set}" = set; then :
  15000. enableval=$enable_joystick;
  15001. else
  15002. enable_joystick=yes
  15003. fi
  15004. if test x$enable_joystick != xyes; then
  15005. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15006. else
  15007. SUMMARY_modules="${SUMMARY_modules} joystick"
  15008. fi
  15009. # Check whether --enable-haptic was given.
  15010. if test "${enable_haptic+set}" = set; then :
  15011. enableval=$enable_haptic;
  15012. else
  15013. enable_haptic=yes
  15014. fi
  15015. if test x$enable_haptic != xyes; then
  15016. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15017. else
  15018. SUMMARY_modules="${SUMMARY_modules} haptic"
  15019. fi
  15020. # Check whether --enable-sensor was given.
  15021. if test "${enable_sensor+set}" = set; then :
  15022. enableval=$enable_sensor;
  15023. else
  15024. enable_sensor=yes
  15025. fi
  15026. if test x$enable_sensor != xyes; then
  15027. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15028. else
  15029. SUMMARY_modules="${SUMMARY_modules} sensor"
  15030. fi
  15031. # Check whether --enable-power was given.
  15032. if test "${enable_power+set}" = set; then :
  15033. enableval=$enable_power;
  15034. else
  15035. enable_power=yes
  15036. fi
  15037. if test x$enable_power != xyes; then
  15038. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15039. else
  15040. SUMMARY_modules="${SUMMARY_modules} power"
  15041. fi
  15042. # Check whether --enable-filesystem was given.
  15043. if test "${enable_filesystem+set}" = set; then :
  15044. enableval=$enable_filesystem;
  15045. else
  15046. enable_filesystem=yes
  15047. fi
  15048. if test x$enable_filesystem != xyes; then
  15049. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15050. else
  15051. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15052. fi
  15053. # Check whether --enable-threads was given.
  15054. if test "${enable_threads+set}" = set; then :
  15055. enableval=$enable_threads;
  15056. else
  15057. enable_threads=yes
  15058. fi
  15059. if test x$enable_threads != xyes; then
  15060. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15061. else
  15062. SUMMARY_modules="${SUMMARY_modules} threads"
  15063. fi
  15064. # Check whether --enable-timers was given.
  15065. if test "${enable_timers+set}" = set; then :
  15066. enableval=$enable_timers;
  15067. else
  15068. enable_timers=yes
  15069. fi
  15070. if test x$enable_timers != xyes; then
  15071. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15072. else
  15073. SUMMARY_modules="${SUMMARY_modules} timers"
  15074. fi
  15075. # Check whether --enable-file was given.
  15076. if test "${enable_file+set}" = set; then :
  15077. enableval=$enable_file;
  15078. else
  15079. enable_file=yes
  15080. fi
  15081. if test x$enable_file != xyes; then
  15082. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15083. else
  15084. SUMMARY_modules="${SUMMARY_modules} file"
  15085. fi
  15086. # Check whether --enable-loadso was given.
  15087. if test "${enable_loadso+set}" = set; then :
  15088. enableval=$enable_loadso;
  15089. else
  15090. enable_loadso=yes
  15091. fi
  15092. if test x$enable_loadso != xyes; then
  15093. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15094. else
  15095. SUMMARY_modules="${SUMMARY_modules} loadso"
  15096. fi
  15097. # Check whether --enable-cpuinfo was given.
  15098. if test "${enable_cpuinfo+set}" = set; then :
  15099. enableval=$enable_cpuinfo;
  15100. else
  15101. enable_cpuinfo=yes
  15102. fi
  15103. if test x$enable_cpuinfo != xyes; then
  15104. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15105. else
  15106. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15107. fi
  15108. # Check whether --enable-assembly was given.
  15109. if test "${enable_assembly+set}" = set; then :
  15110. enableval=$enable_assembly;
  15111. else
  15112. enable_assembly=yes
  15113. fi
  15114. if test x$enable_assembly = xyes; then
  15115. SUMMARY_modules="${SUMMARY_modules} assembly"
  15116. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15117. # Make sure that we don't generate floating point code that would
  15118. # cause illegal instruction exceptions on older processors
  15119. case "$host" in
  15120. *-*-darwin*)
  15121. # Don't need to worry about Apple hardware, it's all SSE capable
  15122. default_ssemath=yes
  15123. ;;
  15124. *64-*-*)
  15125. # x86 64-bit architectures all have SSE instructions
  15126. default_ssemath=yes
  15127. ;;
  15128. *)
  15129. default_ssemath=no
  15130. ;;
  15131. esac
  15132. # Check whether --enable-ssemath was given.
  15133. if test "${enable_ssemath+set}" = set; then :
  15134. enableval=$enable_ssemath;
  15135. else
  15136. enable_ssemath=$default_ssemath
  15137. fi
  15138. if test x$enable_ssemath = xno; then
  15139. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15140. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15141. fi
  15142. fi
  15143. # Check whether --enable-mmx was given.
  15144. if test "${enable_mmx+set}" = set; then :
  15145. enableval=$enable_mmx;
  15146. else
  15147. enable_mmx=yes
  15148. fi
  15149. if test x$enable_mmx = xyes; then
  15150. save_CFLAGS="$CFLAGS"
  15151. have_gcc_mmx=no
  15152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15153. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15154. mmx_CFLAGS="-mmmx"
  15155. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15157. /* end confdefs.h. */
  15158. #ifdef __MINGW32__
  15159. #include <_mingw.h>
  15160. #ifdef __MINGW64_VERSION_MAJOR
  15161. #include <intrin.h>
  15162. #else
  15163. #include <mmintrin.h>
  15164. #endif
  15165. #else
  15166. #include <mmintrin.h>
  15167. #endif
  15168. #ifndef __MMX__
  15169. #error Assembler CPP flag not enabled
  15170. #endif
  15171. int
  15172. main ()
  15173. {
  15174. ;
  15175. return 0;
  15176. }
  15177. _ACEOF
  15178. if ac_fn_c_try_compile "$LINENO"; then :
  15179. have_gcc_mmx=yes
  15180. fi
  15181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15183. $as_echo "$have_gcc_mmx" >&6; }
  15184. CFLAGS="$save_CFLAGS"
  15185. if test x$have_gcc_mmx = xyes; then
  15186. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15187. SUMMARY_math="${SUMMARY_math} mmx"
  15188. fi
  15189. fi
  15190. # Check whether --enable-3dnow was given.
  15191. if test "${enable_3dnow+set}" = set; then :
  15192. enableval=$enable_3dnow;
  15193. else
  15194. enable_3dnow=yes
  15195. fi
  15196. if test x$enable_3dnow = xyes; then
  15197. save_CFLAGS="$CFLAGS"
  15198. have_gcc_3dnow=no
  15199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15200. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15201. amd3dnow_CFLAGS="-m3dnow"
  15202. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15204. /* end confdefs.h. */
  15205. #include <mm3dnow.h>
  15206. #ifndef __3dNOW__
  15207. #error Assembler CPP flag not enabled
  15208. #endif
  15209. int
  15210. main ()
  15211. {
  15212. void *p = 0;
  15213. _m_prefetch(p);
  15214. ;
  15215. return 0;
  15216. }
  15217. _ACEOF
  15218. if ac_fn_c_try_link "$LINENO"; then :
  15219. have_gcc_3dnow=yes
  15220. fi
  15221. rm -f core conftest.err conftest.$ac_objext \
  15222. conftest$ac_exeext conftest.$ac_ext
  15223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15224. $as_echo "$have_gcc_3dnow" >&6; }
  15225. CFLAGS="$save_CFLAGS"
  15226. if test x$have_gcc_3dnow = xyes; then
  15227. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15228. SUMMARY_math="${SUMMARY_math} 3dnow"
  15229. fi
  15230. fi
  15231. # Check whether --enable-sse was given.
  15232. if test "${enable_sse+set}" = set; then :
  15233. enableval=$enable_sse;
  15234. else
  15235. enable_sse=yes
  15236. fi
  15237. if test x$enable_sse = xyes; then
  15238. save_CFLAGS="$CFLAGS"
  15239. have_gcc_sse=no
  15240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15241. $as_echo_n "checking for GCC -msse option... " >&6; }
  15242. sse_CFLAGS="-msse"
  15243. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15245. /* end confdefs.h. */
  15246. #ifdef __MINGW32__
  15247. #include <_mingw.h>
  15248. #ifdef __MINGW64_VERSION_MAJOR
  15249. #include <intrin.h>
  15250. #else
  15251. #include <xmmintrin.h>
  15252. #endif
  15253. #else
  15254. #include <xmmintrin.h>
  15255. #endif
  15256. #ifndef __SSE__
  15257. #error Assembler CPP flag not enabled
  15258. #endif
  15259. int
  15260. main ()
  15261. {
  15262. ;
  15263. return 0;
  15264. }
  15265. _ACEOF
  15266. if ac_fn_c_try_compile "$LINENO"; then :
  15267. have_gcc_sse=yes
  15268. fi
  15269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15271. $as_echo "$have_gcc_sse" >&6; }
  15272. CFLAGS="$save_CFLAGS"
  15273. if test x$have_gcc_sse = xyes; then
  15274. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15275. SUMMARY_math="${SUMMARY_math} sse"
  15276. fi
  15277. fi
  15278. # Check whether --enable-sse2 was given.
  15279. if test "${enable_sse2+set}" = set; then :
  15280. enableval=$enable_sse2;
  15281. else
  15282. enable_sse2=$default_ssemath
  15283. fi
  15284. if test x$enable_sse2 = xyes; then
  15285. save_CFLAGS="$CFLAGS"
  15286. have_gcc_sse2=no
  15287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15288. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15289. sse2_CFLAGS="-msse2"
  15290. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15292. /* end confdefs.h. */
  15293. #ifdef __MINGW32__
  15294. #include <_mingw.h>
  15295. #ifdef __MINGW64_VERSION_MAJOR
  15296. #include <intrin.h>
  15297. #else
  15298. #include <emmintrin.h>
  15299. #endif
  15300. #else
  15301. #include <emmintrin.h>
  15302. #endif
  15303. #ifndef __SSE2__
  15304. #error Assembler CPP flag not enabled
  15305. #endif
  15306. int
  15307. main ()
  15308. {
  15309. ;
  15310. return 0;
  15311. }
  15312. _ACEOF
  15313. if ac_fn_c_try_compile "$LINENO"; then :
  15314. have_gcc_sse2=yes
  15315. fi
  15316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15318. $as_echo "$have_gcc_sse2" >&6; }
  15319. CFLAGS="$save_CFLAGS"
  15320. if test x$have_gcc_sse2 = xyes; then
  15321. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15322. SUMMARY_math="${SUMMARY_math} sse2"
  15323. fi
  15324. fi
  15325. # Check whether --enable-sse3 was given.
  15326. if test "${enable_sse3+set}" = set; then :
  15327. enableval=$enable_sse3;
  15328. else
  15329. enable_sse3=$default_ssemath
  15330. fi
  15331. if test x$enable_sse3 = xyes; then
  15332. save_CFLAGS="$CFLAGS"
  15333. have_gcc_sse3=no
  15334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15335. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15336. sse3_CFLAGS="-msse3"
  15337. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15339. /* end confdefs.h. */
  15340. #ifdef __MINGW32__
  15341. #include <_mingw.h>
  15342. #ifdef __MINGW64_VERSION_MAJOR
  15343. #include <intrin.h>
  15344. #else
  15345. #include <pmmintrin.h>
  15346. #endif
  15347. #else
  15348. #include <pmmintrin.h>
  15349. #endif
  15350. #ifndef __SSE2__
  15351. #error Assembler CPP flag not enabled
  15352. #endif
  15353. int
  15354. main ()
  15355. {
  15356. ;
  15357. return 0;
  15358. }
  15359. _ACEOF
  15360. if ac_fn_c_try_compile "$LINENO"; then :
  15361. have_gcc_sse3=yes
  15362. fi
  15363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15365. $as_echo "$have_gcc_sse3" >&6; }
  15366. CFLAGS="$save_CFLAGS"
  15367. if test x$have_gcc_sse3 = xyes; then
  15368. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15369. SUMMARY_math="${SUMMARY_math} sse3"
  15370. fi
  15371. fi
  15372. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15373. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15374. have_immintrin_h_hdr=yes
  15375. else
  15376. have_immintrin_h_hdr=no
  15377. fi
  15378. if test x$have_immintrin_h_hdr = xyes; then
  15379. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15380. fi
  15381. # Check whether --enable-altivec was given.
  15382. if test "${enable_altivec+set}" = set; then :
  15383. enableval=$enable_altivec;
  15384. else
  15385. enable_altivec=yes
  15386. fi
  15387. if test x$enable_altivec = xyes; then
  15388. save_CFLAGS="$CFLAGS"
  15389. have_gcc_altivec=no
  15390. have_altivec_h_hdr=no
  15391. altivec_CFLAGS="-maltivec"
  15392. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15394. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15396. /* end confdefs.h. */
  15397. #include <altivec.h>
  15398. vector unsigned int vzero() {
  15399. return vec_splat_u32(0);
  15400. }
  15401. int
  15402. main ()
  15403. {
  15404. ;
  15405. return 0;
  15406. }
  15407. _ACEOF
  15408. if ac_fn_c_try_compile "$LINENO"; then :
  15409. have_gcc_altivec=yes
  15410. have_altivec_h_hdr=yes
  15411. fi
  15412. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15414. $as_echo "$have_gcc_altivec" >&6; }
  15415. if test x$have_gcc_altivec = xno; then
  15416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15417. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15419. /* end confdefs.h. */
  15420. vector unsigned int vzero() {
  15421. return vec_splat_u32(0);
  15422. }
  15423. int
  15424. main ()
  15425. {
  15426. ;
  15427. return 0;
  15428. }
  15429. _ACEOF
  15430. if ac_fn_c_try_compile "$LINENO"; then :
  15431. have_gcc_altivec=yes
  15432. fi
  15433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15435. $as_echo "$have_gcc_altivec" >&6; }
  15436. fi
  15437. if test x$have_gcc_altivec = xno; then
  15438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15439. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15440. altivec_CFLAGS="-faltivec"
  15441. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15443. /* end confdefs.h. */
  15444. #include <altivec.h>
  15445. vector unsigned int vzero() {
  15446. return vec_splat_u32(0);
  15447. }
  15448. int
  15449. main ()
  15450. {
  15451. ;
  15452. return 0;
  15453. }
  15454. _ACEOF
  15455. if ac_fn_c_try_compile "$LINENO"; then :
  15456. have_gcc_altivec=yes
  15457. have_altivec_h_hdr=yes
  15458. fi
  15459. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15461. $as_echo "$have_gcc_altivec" >&6; }
  15462. fi
  15463. if test x$have_gcc_altivec = xno; then
  15464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15465. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15467. /* end confdefs.h. */
  15468. vector unsigned int vzero() {
  15469. return vec_splat_u32(0);
  15470. }
  15471. int
  15472. main ()
  15473. {
  15474. ;
  15475. return 0;
  15476. }
  15477. _ACEOF
  15478. if ac_fn_c_try_compile "$LINENO"; then :
  15479. have_gcc_altivec=yes
  15480. fi
  15481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15483. $as_echo "$have_gcc_altivec" >&6; }
  15484. fi
  15485. CFLAGS="$save_CFLAGS"
  15486. if test x$have_gcc_altivec = xyes; then
  15487. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15488. if test x$have_altivec_h_hdr = xyes; then
  15489. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15490. fi
  15491. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15492. SUMMARY_math="${SUMMARY_math} altivec"
  15493. fi
  15494. fi
  15495. fi
  15496. CheckOSS()
  15497. {
  15498. # Check whether --enable-oss was given.
  15499. if test "${enable_oss+set}" = set; then :
  15500. enableval=$enable_oss;
  15501. else
  15502. enable_oss=maybe
  15503. fi
  15504. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15505. # use sndio instead. So on there, we default to disabled. You can force
  15506. # it on if you really want, though.
  15507. if test x$enable_oss = xmaybe; then
  15508. enable_oss=yes
  15509. case "$host" in
  15510. *-*-openbsd*)
  15511. enable_oss=no;;
  15512. esac
  15513. fi
  15514. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15516. $as_echo_n "checking for OSS audio support... " >&6; }
  15517. have_oss=no
  15518. if test x$have_oss != xyes; then
  15519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15520. /* end confdefs.h. */
  15521. #include <sys/soundcard.h>
  15522. int
  15523. main ()
  15524. {
  15525. int arg = SNDCTL_DSP_SETFRAGMENT;
  15526. ;
  15527. return 0;
  15528. }
  15529. _ACEOF
  15530. if ac_fn_c_try_compile "$LINENO"; then :
  15531. have_oss=yes
  15532. fi
  15533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15534. fi
  15535. if test x$have_oss != xyes; then
  15536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15537. /* end confdefs.h. */
  15538. #include <soundcard.h>
  15539. int
  15540. main ()
  15541. {
  15542. int arg = SNDCTL_DSP_SETFRAGMENT;
  15543. ;
  15544. return 0;
  15545. }
  15546. _ACEOF
  15547. if ac_fn_c_try_compile "$LINENO"; then :
  15548. have_oss=yes
  15549. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15550. fi
  15551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15552. fi
  15553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15554. $as_echo "$have_oss" >&6; }
  15555. if test x$have_oss = xyes; then
  15556. SUMMARY_audio="${SUMMARY_audio} oss"
  15557. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15558. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15559. have_audio=yes
  15560. # We may need to link with ossaudio emulation library
  15561. case "$host" in
  15562. *-*-openbsd*|*-*-netbsd*)
  15563. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15564. esac
  15565. fi
  15566. fi
  15567. }
  15568. CheckALSA()
  15569. {
  15570. # Check whether --enable-alsa was given.
  15571. if test "${enable_alsa+set}" = set; then :
  15572. enableval=$enable_alsa;
  15573. else
  15574. enable_alsa=yes
  15575. fi
  15576. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15577. alsa_save_CFLAGS="$CFLAGS"
  15578. alsa_save_LDFLAGS="$LDFLAGS"
  15579. alsa_save_LIBS="$LIBS"
  15580. alsa_found=yes
  15581. # Check whether --with-alsa-prefix was given.
  15582. if test "${with_alsa_prefix+set}" = set; then :
  15583. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15584. else
  15585. alsa_prefix=""
  15586. fi
  15587. # Check whether --with-alsa-inc-prefix was given.
  15588. if test "${with_alsa_inc_prefix+set}" = set; then :
  15589. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15590. else
  15591. alsa_inc_prefix=""
  15592. fi
  15593. # Check whether --enable-alsatest was given.
  15594. if test "${enable_alsatest+set}" = set; then :
  15595. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15596. else
  15597. enable_alsatest=yes
  15598. fi
  15599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15600. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15601. if test "$alsa_inc_prefix" != "" ; then
  15602. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15603. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15604. fi
  15605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15606. $as_echo "$ALSA_CFLAGS" >&6; }
  15607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15608. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15609. if test "$alsa_prefix" != "" ; then
  15610. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15611. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15612. fi
  15613. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15614. LIBS=`echo $LIBS | sed 's/-lm//'`
  15615. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15616. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15617. LIBS=`echo $LIBS | sed 's/ //'`
  15618. LIBS="$ALSA_LIBS $LIBS"
  15619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15620. $as_echo "$ALSA_LIBS" >&6; }
  15621. min_alsa_version=1.0.11
  15622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15623. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15624. no_alsa=""
  15625. alsa_min_major_version=`echo $min_alsa_version | \
  15626. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15627. alsa_min_minor_version=`echo $min_alsa_version | \
  15628. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15629. alsa_min_micro_version=`echo $min_alsa_version | \
  15630. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15631. ac_ext=c
  15632. ac_cpp='$CPP $CPPFLAGS'
  15633. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15634. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15635. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15637. /* end confdefs.h. */
  15638. #include <alsa/asoundlib.h>
  15639. int
  15640. main ()
  15641. {
  15642. /* ensure backward compatibility */
  15643. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15644. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15645. #endif
  15646. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15647. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15648. #endif
  15649. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15650. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15651. #endif
  15652. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15653. exit(0);
  15654. # else
  15655. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15656. # error not present
  15657. # endif
  15658. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15659. exit(0);
  15660. # else
  15661. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15662. # error not present
  15663. # endif
  15664. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15665. # error not present
  15666. # endif
  15667. # endif
  15668. # endif
  15669. exit(0);
  15670. ;
  15671. return 0;
  15672. }
  15673. _ACEOF
  15674. if ac_fn_c_try_compile "$LINENO"; then :
  15675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15676. $as_echo "found." >&6; }
  15677. else
  15678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15679. $as_echo "not present." >&6; }
  15680. alsa_found=no
  15681. fi
  15682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15683. ac_ext=c
  15684. ac_cpp='$CPP $CPPFLAGS'
  15685. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15686. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15687. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15688. if test "x$enable_alsatest" = "xyes"; then
  15689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15690. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15691. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15692. $as_echo_n "(cached) " >&6
  15693. else
  15694. ac_check_lib_save_LIBS=$LIBS
  15695. LIBS="-lasound $LIBS"
  15696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15697. /* end confdefs.h. */
  15698. /* Override any GCC internal prototype to avoid an error.
  15699. Use char because int might match the return type of a GCC
  15700. builtin and then its argument prototype would still apply. */
  15701. #ifdef __cplusplus
  15702. extern "C"
  15703. #endif
  15704. char snd_ctl_open ();
  15705. int
  15706. main ()
  15707. {
  15708. return snd_ctl_open ();
  15709. ;
  15710. return 0;
  15711. }
  15712. _ACEOF
  15713. if ac_fn_c_try_link "$LINENO"; then :
  15714. ac_cv_lib_asound_snd_ctl_open=yes
  15715. else
  15716. ac_cv_lib_asound_snd_ctl_open=no
  15717. fi
  15718. rm -f core conftest.err conftest.$ac_objext \
  15719. conftest$ac_exeext conftest.$ac_ext
  15720. LIBS=$ac_check_lib_save_LIBS
  15721. fi
  15722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15723. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15724. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15725. cat >>confdefs.h <<_ACEOF
  15726. #define HAVE_LIBASOUND 1
  15727. _ACEOF
  15728. LIBS="-lasound $LIBS"
  15729. else
  15730. alsa_found=no
  15731. fi
  15732. fi
  15733. if test "x$alsa_found" = "xyes" ; then
  15734. have_alsa=yes
  15735. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15736. LIBS=`echo $LIBS | sed 's/ //'`
  15737. LIBS="-lasound $LIBS"
  15738. fi
  15739. if test "x$alsa_found" = "xno" ; then
  15740. have_alsa=no
  15741. CFLAGS="$alsa_save_CFLAGS"
  15742. LDFLAGS="$alsa_save_LDFLAGS"
  15743. LIBS="$alsa_save_LIBS"
  15744. ALSA_CFLAGS=""
  15745. ALSA_LIBS=""
  15746. fi
  15747. # Restore all flags from before the ALSA detection runs
  15748. CFLAGS="$alsa_save_CFLAGS"
  15749. LDFLAGS="$alsa_save_LDFLAGS"
  15750. LIBS="$alsa_save_LIBS"
  15751. if test x$have_alsa = xyes; then
  15752. # Check whether --enable-alsa-shared was given.
  15753. if test "${enable_alsa_shared+set}" = set; then :
  15754. enableval=$enable_alsa_shared;
  15755. else
  15756. enable_alsa_shared=yes
  15757. fi
  15758. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15759. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15760. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15761. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15762. if test x$have_loadso != xyes && \
  15763. test x$enable_alsa_shared = xyes; then
  15764. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15765. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15766. fi
  15767. if test x$have_loadso = xyes && \
  15768. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15769. echo "-- dynamic libasound -> $alsa_lib"
  15770. cat >>confdefs.h <<_ACEOF
  15771. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15772. _ACEOF
  15773. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15774. else
  15775. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15776. SUMMARY_audio="${SUMMARY_audio} alsa"
  15777. fi
  15778. have_audio=yes
  15779. fi
  15780. fi
  15781. }
  15782. CheckJACK()
  15783. {
  15784. # Check whether --enable-jack was given.
  15785. if test "${enable_jack+set}" = set; then :
  15786. enableval=$enable_jack;
  15787. else
  15788. enable_jack=yes
  15789. fi
  15790. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15791. pkg_failed=no
  15792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
  15793. $as_echo_n "checking for JACK... " >&6; }
  15794. if test -n "$JACK_CFLAGS"; then
  15795. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15796. elif test -n "$PKG_CONFIG"; then
  15797. if test -n "$PKG_CONFIG" && \
  15798. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15799. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15800. ac_status=$?
  15801. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15802. test $ac_status = 0; }; then
  15803. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15804. else
  15805. pkg_failed=yes
  15806. fi
  15807. else
  15808. pkg_failed=untried
  15809. fi
  15810. if test -n "$JACK_LIBS"; then
  15811. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15812. elif test -n "$PKG_CONFIG"; then
  15813. if test -n "$PKG_CONFIG" && \
  15814. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15815. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15816. ac_status=$?
  15817. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15818. test $ac_status = 0; }; then
  15819. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15820. else
  15821. pkg_failed=yes
  15822. fi
  15823. else
  15824. pkg_failed=untried
  15825. fi
  15826. if test $pkg_failed = yes; then
  15827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15828. $as_echo "no" >&6; }
  15829. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15830. _pkg_short_errors_supported=yes
  15831. else
  15832. _pkg_short_errors_supported=no
  15833. fi
  15834. if test $_pkg_short_errors_supported = yes; then
  15835. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack >= 0.125" 2>&1`
  15836. else
  15837. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack >= 0.125" 2>&1`
  15838. fi
  15839. # Put the nasty error message in config.log where it belongs
  15840. echo "$JACK_PKG_ERRORS" >&5
  15841. audio_jack=no
  15842. elif test $pkg_failed = untried; then
  15843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15844. $as_echo "no" >&6; }
  15845. audio_jack=no
  15846. else
  15847. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15848. JACK_LIBS=$pkg_cv_JACK_LIBS
  15849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15850. $as_echo "yes" >&6; }
  15851. audio_jack=yes
  15852. fi
  15853. if test x$audio_jack = xyes; then
  15854. # Check whether --enable-jack-shared was given.
  15855. if test "${enable_jack_shared+set}" = set; then :
  15856. enableval=$enable_jack_shared;
  15857. else
  15858. enable_jack_shared=yes
  15859. fi
  15860. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15861. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15862. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15863. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15864. if test x$have_loadso != xyes && \
  15865. test x$enable_jack_shared = xyes; then
  15866. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15867. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15868. fi
  15869. if test x$have_loadso = xyes && \
  15870. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15871. echo "-- dynamic libjack -> $jack_lib"
  15872. cat >>confdefs.h <<_ACEOF
  15873. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15874. _ACEOF
  15875. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15876. case "$host" in
  15877. # On Solaris, jack must be linked deferred explicitly
  15878. # to prevent undefined symbol failures.
  15879. *-*-solaris*)
  15880. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15881. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15882. esac
  15883. else
  15884. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15885. SUMMARY_audio="${SUMMARY_audio} jack"
  15886. fi
  15887. have_audio=yes
  15888. fi
  15889. fi
  15890. }
  15891. CheckESD()
  15892. {
  15893. # Check whether --enable-esd was given.
  15894. if test "${enable_esd+set}" = set; then :
  15895. enableval=$enable_esd;
  15896. else
  15897. enable_esd=yes
  15898. fi
  15899. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15900. # Check whether --with-esd-prefix was given.
  15901. if test "${with_esd_prefix+set}" = set; then :
  15902. withval=$with_esd_prefix; esd_prefix="$withval"
  15903. else
  15904. esd_prefix=""
  15905. fi
  15906. # Check whether --with-esd-exec-prefix was given.
  15907. if test "${with_esd_exec_prefix+set}" = set; then :
  15908. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15909. else
  15910. esd_exec_prefix=""
  15911. fi
  15912. # Check whether --enable-esdtest was given.
  15913. if test "${enable_esdtest+set}" = set; then :
  15914. enableval=$enable_esdtest;
  15915. else
  15916. enable_esdtest=yes
  15917. fi
  15918. if test x$esd_exec_prefix != x ; then
  15919. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15920. if test x${ESD_CONFIG+set} != xset ; then
  15921. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15922. fi
  15923. fi
  15924. if test x$esd_prefix != x ; then
  15925. esd_args="$esd_args --prefix=$esd_prefix"
  15926. if test x${ESD_CONFIG+set} != xset ; then
  15927. ESD_CONFIG=$esd_prefix/bin/esd-config
  15928. fi
  15929. fi
  15930. # Extract the first word of "esd-config", so it can be a program name with args.
  15931. set dummy esd-config; ac_word=$2
  15932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15933. $as_echo_n "checking for $ac_word... " >&6; }
  15934. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15935. $as_echo_n "(cached) " >&6
  15936. else
  15937. case $ESD_CONFIG in
  15938. [\\/]* | ?:[\\/]*)
  15939. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15940. ;;
  15941. *)
  15942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15943. for as_dir in $PATH
  15944. do
  15945. IFS=$as_save_IFS
  15946. test -z "$as_dir" && as_dir=.
  15947. for ac_exec_ext in '' $ac_executable_extensions; do
  15948. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15949. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15950. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15951. break 2
  15952. fi
  15953. done
  15954. done
  15955. IFS=$as_save_IFS
  15956. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15957. ;;
  15958. esac
  15959. fi
  15960. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15961. if test -n "$ESD_CONFIG"; then
  15962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15963. $as_echo "$ESD_CONFIG" >&6; }
  15964. else
  15965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15966. $as_echo "no" >&6; }
  15967. fi
  15968. min_esd_version=0.2.8
  15969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15970. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15971. no_esd=""
  15972. if test "$ESD_CONFIG" = "no" ; then
  15973. no_esd=yes
  15974. else
  15975. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15976. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15977. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15978. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15979. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15980. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15981. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15982. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15983. if test "x$enable_esdtest" = "xyes" ; then
  15984. ac_save_CFLAGS="$CFLAGS"
  15985. ac_save_LIBS="$LIBS"
  15986. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15987. LIBS="$LIBS $ESD_LIBS"
  15988. rm -f conf.esdtest
  15989. if test "$cross_compiling" = yes; then :
  15990. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15991. else
  15992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15993. /* end confdefs.h. */
  15994. #include <stdio.h>
  15995. #include <stdlib.h>
  15996. #include <string.h>
  15997. #include <esd.h>
  15998. char*
  15999. my_strdup (char *str)
  16000. {
  16001. char *new_str;
  16002. if (str)
  16003. {
  16004. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  16005. strcpy (new_str, str);
  16006. }
  16007. else
  16008. new_str = NULL;
  16009. return new_str;
  16010. }
  16011. int main ()
  16012. {
  16013. int major, minor, micro;
  16014. char *tmp_version;
  16015. system ("touch conf.esdtest");
  16016. /* HP/UX 9 (%@#!) writes to sscanf strings */
  16017. tmp_version = my_strdup("$min_esd_version");
  16018. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  16019. printf("%s, bad version string\n", "$min_esd_version");
  16020. exit(1);
  16021. }
  16022. if (($esd_major_version > major) ||
  16023. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16024. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16025. {
  16026. return 0;
  16027. }
  16028. else
  16029. {
  16030. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16031. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16032. printf("*** best to upgrade to the required version.\n");
  16033. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16034. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16035. printf("*** config.cache before re-running configure\n");
  16036. return 1;
  16037. }
  16038. }
  16039. _ACEOF
  16040. if ac_fn_c_try_run "$LINENO"; then :
  16041. else
  16042. no_esd=yes
  16043. fi
  16044. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16045. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16046. fi
  16047. CFLAGS="$ac_save_CFLAGS"
  16048. LIBS="$ac_save_LIBS"
  16049. fi
  16050. fi
  16051. if test "x$no_esd" = x ; then
  16052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16053. $as_echo "yes" >&6; }
  16054. have_esd=yes
  16055. else
  16056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16057. $as_echo "no" >&6; }
  16058. if test "$ESD_CONFIG" = "no" ; then
  16059. echo "*** The esd-config script installed by ESD could not be found"
  16060. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16061. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16062. echo "*** full path to esd-config."
  16063. else
  16064. if test -f conf.esdtest ; then
  16065. :
  16066. else
  16067. echo "*** Could not run ESD test program, checking why..."
  16068. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16069. LIBS="$LIBS $ESD_LIBS"
  16070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16071. /* end confdefs.h. */
  16072. #include <stdio.h>
  16073. #include <esd.h>
  16074. int
  16075. main ()
  16076. {
  16077. return 0;
  16078. ;
  16079. return 0;
  16080. }
  16081. _ACEOF
  16082. if ac_fn_c_try_link "$LINENO"; then :
  16083. echo "*** The test program compiled, but did not run. This usually means"
  16084. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16085. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16086. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16087. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16088. echo "*** is required on your system"
  16089. echo "***"
  16090. echo "*** If you have an old version installed, it is best to remove it, although"
  16091. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16092. else
  16093. echo "*** The test program failed to compile or link. See the file config.log for the"
  16094. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16095. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16096. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16097. fi
  16098. rm -f core conftest.err conftest.$ac_objext \
  16099. conftest$ac_exeext conftest.$ac_ext
  16100. CFLAGS="$ac_save_CFLAGS"
  16101. LIBS="$ac_save_LIBS"
  16102. fi
  16103. fi
  16104. ESD_CFLAGS=""
  16105. ESD_LIBS=""
  16106. have_esd=no
  16107. fi
  16108. rm -f conf.esdtest
  16109. if test x$have_esd = xyes; then
  16110. # Check whether --enable-esd-shared was given.
  16111. if test "${enable_esd_shared+set}" = set; then :
  16112. enableval=$enable_esd_shared;
  16113. else
  16114. enable_esd_shared=yes
  16115. fi
  16116. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16117. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16118. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16119. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16120. if test x$have_loadso != xyes && \
  16121. test x$enable_esd_shared = xyes; then
  16122. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16123. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16124. fi
  16125. if test x$have_loadso = xyes && \
  16126. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16127. echo "-- dynamic libesd -> $esd_lib"
  16128. cat >>confdefs.h <<_ACEOF
  16129. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16130. _ACEOF
  16131. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16132. else
  16133. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16134. SUMMARY_audio="${SUMMARY_audio} esd"
  16135. fi
  16136. have_audio=yes
  16137. fi
  16138. fi
  16139. }
  16140. CheckPulseAudio()
  16141. {
  16142. # Check whether --enable-pulseaudio was given.
  16143. if test "${enable_pulseaudio+set}" = set; then :
  16144. enableval=$enable_pulseaudio;
  16145. else
  16146. enable_pulseaudio=yes
  16147. fi
  16148. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16149. pkg_failed=no
  16150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
  16151. $as_echo_n "checking for PULSEAUDIO... " >&6; }
  16152. if test -n "$PULSEAUDIO_CFLAGS"; then
  16153. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16154. elif test -n "$PKG_CONFIG"; then
  16155. if test -n "$PKG_CONFIG" && \
  16156. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16157. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16158. ac_status=$?
  16159. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16160. test $ac_status = 0; }; then
  16161. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16162. else
  16163. pkg_failed=yes
  16164. fi
  16165. else
  16166. pkg_failed=untried
  16167. fi
  16168. if test -n "$PULSEAUDIO_LIBS"; then
  16169. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16170. elif test -n "$PKG_CONFIG"; then
  16171. if test -n "$PKG_CONFIG" && \
  16172. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16173. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16174. ac_status=$?
  16175. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16176. test $ac_status = 0; }; then
  16177. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16178. else
  16179. pkg_failed=yes
  16180. fi
  16181. else
  16182. pkg_failed=untried
  16183. fi
  16184. if test $pkg_failed = yes; then
  16185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16186. $as_echo "no" >&6; }
  16187. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16188. _pkg_short_errors_supported=yes
  16189. else
  16190. _pkg_short_errors_supported=no
  16191. fi
  16192. if test $_pkg_short_errors_supported = yes; then
  16193. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple >= 0.9" 2>&1`
  16194. else
  16195. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple >= 0.9" 2>&1`
  16196. fi
  16197. # Put the nasty error message in config.log where it belongs
  16198. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16199. audio_pulseaudio=no
  16200. elif test $pkg_failed = untried; then
  16201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16202. $as_echo "no" >&6; }
  16203. audio_pulseaudio=no
  16204. else
  16205. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16206. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16208. $as_echo "yes" >&6; }
  16209. audio_pulseaudio=yes
  16210. fi
  16211. if test x$audio_pulseaudio = xyes; then
  16212. # Check whether --enable-pulseaudio-shared was given.
  16213. if test "${enable_pulseaudio_shared+set}" = set; then :
  16214. enableval=$enable_pulseaudio_shared;
  16215. else
  16216. enable_pulseaudio_shared=yes
  16217. fi
  16218. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16219. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16220. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16221. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16222. if test x$have_loadso != xyes && \
  16223. test x$enable_pulseaudio_shared = xyes; then
  16224. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16225. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16226. fi
  16227. if test x$have_loadso = xyes && \
  16228. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16229. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16230. cat >>confdefs.h <<_ACEOF
  16231. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16232. _ACEOF
  16233. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16234. case "$host" in
  16235. # On Solaris, pulseaudio must be linked deferred explicitly
  16236. # to prevent undefined symbol failures.
  16237. *-*-solaris*)
  16238. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16239. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16240. esac
  16241. else
  16242. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16243. SUMMARY_audio="${SUMMARY_audio} pulse"
  16244. fi
  16245. have_audio=yes
  16246. fi
  16247. fi
  16248. }
  16249. CheckARTSC()
  16250. {
  16251. # Check whether --enable-arts was given.
  16252. if test "${enable_arts+set}" = set; then :
  16253. enableval=$enable_arts;
  16254. else
  16255. enable_arts=yes
  16256. fi
  16257. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16258. # Extract the first word of "artsc-config", so it can be a program name with args.
  16259. set dummy artsc-config; ac_word=$2
  16260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16261. $as_echo_n "checking for $ac_word... " >&6; }
  16262. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16263. $as_echo_n "(cached) " >&6
  16264. else
  16265. case $ARTSCONFIG in
  16266. [\\/]* | ?:[\\/]*)
  16267. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16268. ;;
  16269. *)
  16270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16271. for as_dir in $PATH
  16272. do
  16273. IFS=$as_save_IFS
  16274. test -z "$as_dir" && as_dir=.
  16275. for ac_exec_ext in '' $ac_executable_extensions; do
  16276. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16277. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16278. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16279. break 2
  16280. fi
  16281. done
  16282. done
  16283. IFS=$as_save_IFS
  16284. ;;
  16285. esac
  16286. fi
  16287. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16288. if test -n "$ARTSCONFIG"; then
  16289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16290. $as_echo "$ARTSCONFIG" >&6; }
  16291. else
  16292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16293. $as_echo "no" >&6; }
  16294. fi
  16295. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16296. : # arts isn't installed
  16297. else
  16298. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16299. ARTS_LIBS=`$ARTSCONFIG --libs`
  16300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16301. $as_echo_n "checking for aRts development environment... " >&6; }
  16302. audio_arts=no
  16303. save_CFLAGS="$CFLAGS"
  16304. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16306. /* end confdefs.h. */
  16307. #include <artsc.h>
  16308. int
  16309. main ()
  16310. {
  16311. arts_stream_t stream;
  16312. ;
  16313. return 0;
  16314. }
  16315. _ACEOF
  16316. if ac_fn_c_try_compile "$LINENO"; then :
  16317. audio_arts=yes
  16318. fi
  16319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16320. CFLAGS="$save_CFLAGS"
  16321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16322. $as_echo "$audio_arts" >&6; }
  16323. if test x$audio_arts = xyes; then
  16324. # Check whether --enable-arts-shared was given.
  16325. if test "${enable_arts_shared+set}" = set; then :
  16326. enableval=$enable_arts_shared;
  16327. else
  16328. enable_arts_shared=yes
  16329. fi
  16330. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16331. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16332. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16333. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16334. if test x$have_loadso != xyes && \
  16335. test x$enable_arts_shared = xyes; then
  16336. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16337. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16338. fi
  16339. if test x$have_loadso = xyes && \
  16340. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16341. echo "-- dynamic libartsc -> $arts_lib"
  16342. cat >>confdefs.h <<_ACEOF
  16343. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16344. _ACEOF
  16345. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16346. else
  16347. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16348. SUMMARY_audio="${SUMMARY_audio} arts"
  16349. fi
  16350. have_audio=yes
  16351. fi
  16352. fi
  16353. fi
  16354. }
  16355. CheckNAS()
  16356. {
  16357. # Check whether --enable-nas was given.
  16358. if test "${enable_nas+set}" = set; then :
  16359. enableval=$enable_nas;
  16360. else
  16361. enable_nas=yes
  16362. fi
  16363. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16364. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16365. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16366. have_nas_hdr=yes
  16367. fi
  16368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16369. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16370. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16371. $as_echo_n "(cached) " >&6
  16372. else
  16373. ac_check_lib_save_LIBS=$LIBS
  16374. LIBS="-laudio $LIBS"
  16375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16376. /* end confdefs.h. */
  16377. /* Override any GCC internal prototype to avoid an error.
  16378. Use char because int might match the return type of a GCC
  16379. builtin and then its argument prototype would still apply. */
  16380. #ifdef __cplusplus
  16381. extern "C"
  16382. #endif
  16383. char AuOpenServer ();
  16384. int
  16385. main ()
  16386. {
  16387. return AuOpenServer ();
  16388. ;
  16389. return 0;
  16390. }
  16391. _ACEOF
  16392. if ac_fn_c_try_link "$LINENO"; then :
  16393. ac_cv_lib_audio_AuOpenServer=yes
  16394. else
  16395. ac_cv_lib_audio_AuOpenServer=no
  16396. fi
  16397. rm -f core conftest.err conftest.$ac_objext \
  16398. conftest$ac_exeext conftest.$ac_ext
  16399. LIBS=$ac_check_lib_save_LIBS
  16400. fi
  16401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16402. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16403. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16404. have_nas_lib=yes
  16405. fi
  16406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16407. $as_echo_n "checking for NAS audio support... " >&6; }
  16408. have_nas=no
  16409. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16410. have_nas=yes
  16411. NAS_LIBS="-laudio"
  16412. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16413. have_nas=yes
  16414. NAS_CFLAGS="-I/usr/X11R6/include/"
  16415. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16416. fi
  16417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16418. $as_echo "$have_nas" >&6; }
  16419. if test x$have_nas = xyes; then
  16420. # Check whether --enable-nas-shared was given.
  16421. if test "${enable_nas_shared+set}" = set; then :
  16422. enableval=$enable_nas_shared;
  16423. else
  16424. enable_nas_shared=yes
  16425. fi
  16426. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16427. if test x$have_loadso != xyes && \
  16428. test x$enable_nas_shared = xyes; then
  16429. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16430. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16431. fi
  16432. if test x$have_loadso = xyes && \
  16433. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16434. echo "-- dynamic libaudio -> $nas_lib"
  16435. cat >>confdefs.h <<_ACEOF
  16436. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16437. _ACEOF
  16438. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16439. else
  16440. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16441. SUMMARY_audio="${SUMMARY_audio} nas"
  16442. fi
  16443. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16444. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16445. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16446. have_audio=yes
  16447. fi
  16448. fi
  16449. }
  16450. CheckSNDIO()
  16451. {
  16452. # Check whether --enable-sndio was given.
  16453. if test "${enable_sndio+set}" = set; then :
  16454. enableval=$enable_sndio;
  16455. else
  16456. enable_sndio=yes
  16457. fi
  16458. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16459. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16460. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16461. have_sndio_hdr=yes
  16462. fi
  16463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16464. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16465. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16466. $as_echo_n "(cached) " >&6
  16467. else
  16468. ac_check_lib_save_LIBS=$LIBS
  16469. LIBS="-lsndio $LIBS"
  16470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16471. /* end confdefs.h. */
  16472. /* Override any GCC internal prototype to avoid an error.
  16473. Use char because int might match the return type of a GCC
  16474. builtin and then its argument prototype would still apply. */
  16475. #ifdef __cplusplus
  16476. extern "C"
  16477. #endif
  16478. char sio_open ();
  16479. int
  16480. main ()
  16481. {
  16482. return sio_open ();
  16483. ;
  16484. return 0;
  16485. }
  16486. _ACEOF
  16487. if ac_fn_c_try_link "$LINENO"; then :
  16488. ac_cv_lib_sndio_sio_open=yes
  16489. else
  16490. ac_cv_lib_sndio_sio_open=no
  16491. fi
  16492. rm -f core conftest.err conftest.$ac_objext \
  16493. conftest$ac_exeext conftest.$ac_ext
  16494. LIBS=$ac_check_lib_save_LIBS
  16495. fi
  16496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16497. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16498. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16499. have_sndio_lib=yes
  16500. fi
  16501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16502. $as_echo_n "checking for sndio audio support... " >&6; }
  16503. have_sndio=no
  16504. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16505. have_sndio=yes
  16506. SNDIO_LIBS="-lsndio"
  16507. fi
  16508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16509. $as_echo "$have_sndio" >&6; }
  16510. if test x$have_sndio = xyes; then
  16511. # Check whether --enable-sndio-shared was given.
  16512. if test "${enable_sndio_shared+set}" = set; then :
  16513. enableval=$enable_sndio_shared;
  16514. else
  16515. enable_sndio_shared=yes
  16516. fi
  16517. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16518. if test x$have_loadso != xyes && \
  16519. test x$enable_sndio_shared = xyes; then
  16520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16521. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16522. fi
  16523. if test x$have_loadso = xyes && \
  16524. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16525. echo "-- dynamic libsndio -> $sndio_lib"
  16526. cat >>confdefs.h <<_ACEOF
  16527. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16528. _ACEOF
  16529. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16530. else
  16531. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16532. SUMMARY_audio="${SUMMARY_audio} sndio"
  16533. fi
  16534. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16535. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16536. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16537. have_audio=yes
  16538. fi
  16539. fi
  16540. }
  16541. CheckFusionSound()
  16542. {
  16543. # Check whether --enable-fusionsound was given.
  16544. if test "${enable_fusionsound+set}" = set; then :
  16545. enableval=$enable_fusionsound;
  16546. else
  16547. enable_fusionsound=no
  16548. fi
  16549. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16550. pkg_failed=no
  16551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSIONSOUND" >&5
  16552. $as_echo_n "checking for FUSIONSOUND... " >&6; }
  16553. if test -n "$FUSIONSOUND_CFLAGS"; then
  16554. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16555. elif test -n "$PKG_CONFIG"; then
  16556. if test -n "$PKG_CONFIG" && \
  16557. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16558. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16559. ac_status=$?
  16560. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16561. test $ac_status = 0; }; then
  16562. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16563. else
  16564. pkg_failed=yes
  16565. fi
  16566. else
  16567. pkg_failed=untried
  16568. fi
  16569. if test -n "$FUSIONSOUND_LIBS"; then
  16570. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16571. elif test -n "$PKG_CONFIG"; then
  16572. if test -n "$PKG_CONFIG" && \
  16573. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16574. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16575. ac_status=$?
  16576. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16577. test $ac_status = 0; }; then
  16578. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16579. else
  16580. pkg_failed=yes
  16581. fi
  16582. else
  16583. pkg_failed=untried
  16584. fi
  16585. if test $pkg_failed = yes; then
  16586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16587. $as_echo "no" >&6; }
  16588. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16589. _pkg_short_errors_supported=yes
  16590. else
  16591. _pkg_short_errors_supported=no
  16592. fi
  16593. if test $_pkg_short_errors_supported = yes; then
  16594. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fusionsound >= 1.1.1" 2>&1`
  16595. else
  16596. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "fusionsound >= 1.1.1" 2>&1`
  16597. fi
  16598. # Put the nasty error message in config.log where it belongs
  16599. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16600. fusionsound=no
  16601. elif test $pkg_failed = untried; then
  16602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16603. $as_echo "no" >&6; }
  16604. fusionsound=no
  16605. else
  16606. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16607. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16609. $as_echo "yes" >&6; }
  16610. fusionsound=yes
  16611. fi
  16612. if test x$fusionsound = xyes; then
  16613. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16614. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16615. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16616. # Check whether --enable-fusionsound-shared was given.
  16617. if test "${enable_fusionsound_shared+set}" = set; then :
  16618. enableval=$enable_fusionsound_shared;
  16619. else
  16620. enable_fusionsound_shared=yes
  16621. fi
  16622. fusionsound_shared=no
  16623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16624. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16625. if test x$have_loadso != xyes && \
  16626. test x$enable_fusionsound_shared = xyes; then
  16627. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16628. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16629. fi
  16630. if test x$have_loadso = xyes && \
  16631. test x$enable_fusionsound_shared = xyes; then
  16632. cat >>confdefs.h <<_ACEOF
  16633. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16634. _ACEOF
  16635. fusionsound_shared=yes
  16636. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16637. else
  16638. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16639. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16640. fi
  16641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16642. $as_echo "$fusionsound_shared" >&6; }
  16643. have_audio=yes
  16644. fi
  16645. fi
  16646. }
  16647. CheckDiskAudio()
  16648. {
  16649. # Check whether --enable-diskaudio was given.
  16650. if test "${enable_diskaudio+set}" = set; then :
  16651. enableval=$enable_diskaudio;
  16652. else
  16653. enable_diskaudio=yes
  16654. fi
  16655. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16656. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16657. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16658. SUMMARY_audio="${SUMMARY_audio} disk"
  16659. fi
  16660. }
  16661. CheckDummyAudio()
  16662. {
  16663. # Check whether --enable-dummyaudio was given.
  16664. if test "${enable_dummyaudio+set}" = set; then :
  16665. enableval=$enable_dummyaudio;
  16666. else
  16667. enable_dummyaudio=yes
  16668. fi
  16669. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16670. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16671. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16672. SUMMARY_audio="${SUMMARY_audio} dummy"
  16673. fi
  16674. }
  16675. CheckLibSampleRate()
  16676. {
  16677. # Check whether --enable-libsamplerate was given.
  16678. if test "${enable_libsamplerate+set}" = set; then :
  16679. enableval=$enable_libsamplerate;
  16680. else
  16681. enable_libsamplerate=yes
  16682. fi
  16683. if test x$enable_libsamplerate = xyes; then
  16684. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16685. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16686. have_samplerate_h_hdr=yes
  16687. else
  16688. have_samplerate_h_hdr=no
  16689. fi
  16690. if test x$have_samplerate_h_hdr = xyes; then
  16691. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16692. # Check whether --enable-libsamplerate-shared was given.
  16693. if test "${enable_libsamplerate_shared+set}" = set; then :
  16694. enableval=$enable_libsamplerate_shared;
  16695. else
  16696. enable_libsamplerate_shared=yes
  16697. fi
  16698. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16699. if test x$have_loadso != xyes && \
  16700. test x$enable_libsamplerate_shared = xyes; then
  16701. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16702. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16703. fi
  16704. if test x$have_loadso = xyes && \
  16705. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16706. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16707. cat >>confdefs.h <<_ACEOF
  16708. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16709. _ACEOF
  16710. else
  16711. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16712. fi
  16713. fi
  16714. fi
  16715. }
  16716. CheckARM()
  16717. {
  16718. # Check whether --enable-arm-simd was given.
  16719. if test "${enable_arm_simd+set}" = set; then :
  16720. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16721. else
  16722. enable_arm_simd=no
  16723. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16724. save_CFLAGS="$CFLAGS"
  16725. have_arm_simd=no
  16726. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16728. $as_echo_n "checking for ARM SIMD... " >&6; }
  16729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16730. /* end confdefs.h. */
  16731. .text
  16732. .arch armv6
  16733. .object_arch armv4
  16734. .arm
  16735. .altmacro
  16736. #ifndef __ARM_EABI__
  16737. #error EABI is required (to be sure that calling conventions are compatible)
  16738. #endif
  16739. pld r0
  16740. uqadd8 r0, r0, r0
  16741. _ACEOF
  16742. if ac_fn_c_try_compile "$LINENO"; then :
  16743. have_arm_simd=yes
  16744. fi
  16745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16747. $as_echo "$have_arm_simd" >&6; }
  16748. CFLAGS="$save_CFLAGS"
  16749. if test x$have_arm_simd = xyes; then
  16750. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16751. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16752. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16753. fi
  16754. fi
  16755. }
  16756. CheckNEON()
  16757. {
  16758. --enable-arm-neon use NEON assembly blitters on ARM [[default=no]]
  16759. # Check whether --enable-arm-neon was given.
  16760. if test "${enable_arm_neon+set}" = set; then :
  16761. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16762. else
  16763. enable_arm_neon=no
  16764. fi
  16765. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16766. save_CFLAGS="$CFLAGS"
  16767. have_arm_neon=no
  16768. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16770. $as_echo_n "checking for ARM NEON... " >&6; }
  16771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16772. /* end confdefs.h. */
  16773. .text
  16774. .fpu neon
  16775. .arch armv7a
  16776. .object_arch armv4
  16777. .eabi_attribute 10, 0
  16778. .arm
  16779. .altmacro
  16780. #ifndef __ARM_EABI__
  16781. #error EABI is required (to be sure that calling conventions are compatible)
  16782. #endif
  16783. pld r0
  16784. vmovn.u16 d0, q0
  16785. _ACEOF
  16786. if ac_fn_c_try_compile "$LINENO"; then :
  16787. have_arm_neon=yes
  16788. fi
  16789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16791. $as_echo "$have_arm_neon" >&6; }
  16792. CFLAGS="$save_CFLAGS"
  16793. if test x$have_arm_neon = xyes; then
  16794. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16795. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16796. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16797. fi
  16798. fi
  16799. }
  16800. CheckVisibilityHidden()
  16801. {
  16802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16803. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16804. have_gcc_fvisibility=no
  16805. visibility_CFLAGS="-fvisibility=hidden"
  16806. save_CFLAGS="$CFLAGS"
  16807. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16809. /* end confdefs.h. */
  16810. #if !defined(__GNUC__) || __GNUC__ < 4
  16811. #error SDL only uses visibility attributes in GCC 4 or newer
  16812. #endif
  16813. int
  16814. main ()
  16815. {
  16816. ;
  16817. return 0;
  16818. }
  16819. _ACEOF
  16820. if ac_fn_c_try_compile "$LINENO"; then :
  16821. have_gcc_fvisibility=yes
  16822. fi
  16823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16825. $as_echo "$have_gcc_fvisibility" >&6; }
  16826. CFLAGS="$save_CFLAGS"
  16827. if test x$have_gcc_fvisibility = xyes; then
  16828. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16829. fi
  16830. }
  16831. CheckNoStrictAliasing()
  16832. {
  16833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16834. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16835. have_gcc_no_strict_aliasing=no
  16836. save_CFLAGS="$CFLAGS"
  16837. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16839. /* end confdefs.h. */
  16840. int x = 0;
  16841. int
  16842. main ()
  16843. {
  16844. ;
  16845. return 0;
  16846. }
  16847. _ACEOF
  16848. if ac_fn_c_try_compile "$LINENO"; then :
  16849. have_gcc_no_strict_aliasing=yes
  16850. fi
  16851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  16853. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  16854. CFLAGS="$save_CFLAGS"
  16855. if test x$have_gcc_no_strict_aliasing = xyes; then
  16856. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  16857. fi
  16858. }
  16859. CheckStackBoundary()
  16860. {
  16861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16862. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16863. have_gcc_preferred_stack_boundary=no
  16864. save_CFLAGS="$CFLAGS"
  16865. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16867. /* end confdefs.h. */
  16868. int x = 0;
  16869. int
  16870. main ()
  16871. {
  16872. ;
  16873. return 0;
  16874. }
  16875. _ACEOF
  16876. if ac_fn_c_try_compile "$LINENO"; then :
  16877. have_gcc_preferred_stack_boundary=yes
  16878. fi
  16879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16881. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16882. CFLAGS="$save_CFLAGS"
  16883. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16884. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16885. fi
  16886. }
  16887. CheckDeclarationAfterStatement()
  16888. {
  16889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16890. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16891. have_gcc_declaration_after_statement=no
  16892. save_CFLAGS="$CFLAGS"
  16893. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16895. /* end confdefs.h. */
  16896. int x = 0;
  16897. int
  16898. main ()
  16899. {
  16900. ;
  16901. return 0;
  16902. }
  16903. _ACEOF
  16904. if ac_fn_c_try_compile "$LINENO"; then :
  16905. have_gcc_declaration_after_statement=yes
  16906. fi
  16907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16909. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16910. CFLAGS="$save_CFLAGS"
  16911. if test x$have_gcc_declaration_after_statement = xyes; then
  16912. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16913. fi
  16914. }
  16915. CheckWarnAll()
  16916. {
  16917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16918. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16919. have_gcc_Wall=no
  16920. save_CFLAGS="$CFLAGS"
  16921. CFLAGS="$save_CFLAGS -Wall"
  16922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16923. /* end confdefs.h. */
  16924. int x = 0;
  16925. int
  16926. main ()
  16927. {
  16928. ;
  16929. return 0;
  16930. }
  16931. _ACEOF
  16932. if ac_fn_c_try_compile "$LINENO"; then :
  16933. have_gcc_Wall=yes
  16934. fi
  16935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16937. $as_echo "$have_gcc_Wall" >&6; }
  16938. CFLAGS="$save_CFLAGS"
  16939. if test x$have_gcc_Wall = xyes; then
  16940. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16942. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16943. need_gcc_Wno_multichar=no
  16944. case "$host" in
  16945. *-*-haiku*
  16946. fi
  16947. need_gcc_Wno_multichar=yes
  16948. ;;
  16949. esac
  16950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16951. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16952. if test x$need_gcc_Wno_multichar = xyes; then
  16953. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16954. fi
  16955. fi
  16956. }
  16957. CheckWayland()
  16958. {
  16959. # Check whether --enable-video-wayland was given.
  16960. if test "${enable_video_wayland+set}" = set; then :
  16961. enableval=$enable_video_wayland;
  16962. else
  16963. enable_video_wayland=yes
  16964. fi
  16965. # Check whether --enable-video-wayland-qt-touch was given.
  16966. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16967. enableval=$enable_video_wayland_qt_touch;
  16968. else
  16969. enable_video_wayland_qt_touch=yes
  16970. fi
  16971. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16973. $as_echo_n "checking for Wayland support... " >&6; }
  16974. video_wayland=no
  16975. if test x$video_opengl_egl = xyes && \
  16976. test x$video_opengles_v2 = xyes; then
  16977. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl xkbcommon ; then
  16978. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16979. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16980. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16981. video_wayland=yes
  16982. fi
  16983. fi
  16984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16985. $as_echo "$video_wayland" >&6; }
  16986. if test x$video_wayland = xyes; then
  16987. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16988. if test x$enable_video_wayland_qt_touch = xyes; then
  16989. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16990. fi
  16991. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16992. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16993. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16994. # Check whether --enable-wayland-shared was given.
  16995. if test "${enable_wayland_shared+set}" = set; then :
  16996. enableval=$enable_wayland_shared;
  16997. else
  16998. enable_wayland_shared=maybe
  16999. fi
  17000. case "$host" in
  17001. *)
  17002. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17003. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17004. if test x$wayland_egl_lib = x; then
  17005. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17006. fi
  17007. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17008. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17009. ;;
  17010. esac
  17011. if test x$enable_wayland_shared = xmaybe; then
  17012. enable_wayland_shared=yes
  17013. fi
  17014. if test x$have_loadso != xyes && \
  17015. test x$enable_wayland_shared = xyes; then
  17016. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17017. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17018. enable_wayland_shared=no
  17019. fi
  17020. if test x$have_loadso = xyes && \
  17021. test x$enable_wayland_shared = xyes && \
  17022. test x$wayland_client_lib != x && \
  17023. test x$wayland_egl_lib != x && \
  17024. test x$wayland_cursor_lib != x && \
  17025. test x$xkbcommon_lib != x; then
  17026. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17027. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17028. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17029. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17030. cat >>confdefs.h <<_ACEOF
  17031. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17032. _ACEOF
  17033. cat >>confdefs.h <<_ACEOF
  17034. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17035. _ACEOF
  17036. cat >>confdefs.h <<_ACEOF
  17037. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17038. _ACEOF
  17039. cat >>confdefs.h <<_ACEOF
  17040. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17041. _ACEOF
  17042. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17043. else
  17044. enable_wayland_shared=no
  17045. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17046. SUMMARY_video="${SUMMARY_video} wayland"
  17047. fi
  17048. have_video=yes
  17049. fi
  17050. fi
  17051. }
  17052. CheckNativeClient()
  17053. {
  17054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17055. /* end confdefs.h. */
  17056. #if !defined(__native_client__)
  17057. #error "NO NACL"
  17058. #endif
  17059. int
  17060. main ()
  17061. {
  17062. ;
  17063. return 0;
  17064. }
  17065. _ACEOF
  17066. if ac_fn_c_try_compile "$LINENO"; then :
  17067. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17068. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17069. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17070. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17071. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17072. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17073. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17074. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17075. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17076. SUMMARY_audio="${SUMMARY_audio} nacl"
  17077. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17078. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17079. fi
  17080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17081. }
  17082. CheckRPI()
  17083. {
  17084. # Check whether --enable-video-rpi was given.
  17085. if test "${enable_video_rpi+set}" = set; then :
  17086. enableval=$enable_video_rpi;
  17087. else
  17088. enable_video_rpi=yes
  17089. fi
  17090. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17091. pkg_failed=no
  17092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPI" >&5
  17093. $as_echo_n "checking for RPI... " >&6; }
  17094. if test -n "$RPI_CFLAGS"; then
  17095. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17096. elif test -n "$PKG_CONFIG"; then
  17097. if test -n "$PKG_CONFIG" && \
  17098. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17099. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17100. ac_status=$?
  17101. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17102. test $ac_status = 0; }; then
  17103. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17104. else
  17105. pkg_failed=yes
  17106. fi
  17107. else
  17108. pkg_failed=untried
  17109. fi
  17110. if test -n "$RPI_LIBS"; then
  17111. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17112. elif test -n "$PKG_CONFIG"; then
  17113. if test -n "$PKG_CONFIG" && \
  17114. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17115. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17116. ac_status=$?
  17117. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17118. test $ac_status = 0; }; then
  17119. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17120. else
  17121. pkg_failed=yes
  17122. fi
  17123. else
  17124. pkg_failed=untried
  17125. fi
  17126. if test $pkg_failed = yes; then
  17127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17128. $as_echo "no" >&6; }
  17129. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17130. _pkg_short_errors_supported=yes
  17131. else
  17132. _pkg_short_errors_supported=no
  17133. fi
  17134. if test $_pkg_short_errors_supported = yes; then
  17135. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "bcm_host brcmegl" 2>&1`
  17136. else
  17137. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors "bcm_host brcmegl" 2>&1`
  17138. fi
  17139. # Put the nasty error message in config.log where it belongs
  17140. echo "$RPI_PKG_ERRORS" >&5
  17141. video_rpi=no
  17142. elif test $pkg_failed = untried; then
  17143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17144. $as_echo "no" >&6; }
  17145. video_rpi=no
  17146. else
  17147. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17148. RPI_LIBS=$pkg_cv_RPI_LIBS
  17149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17150. $as_echo "yes" >&6; }
  17151. video_rpi=yes
  17152. fi
  17153. if test x$video_rpi = xno; then
  17154. if test x$ARCH = xnetbsd; then
  17155. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17156. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17157. else
  17158. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17159. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17160. fi
  17161. fi
  17162. # Save the original compiler flags and libraries
  17163. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17164. # Add the Raspberry Pi compiler flags and libraries
  17165. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17167. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17168. have_video_rpi=no
  17169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17170. /* end confdefs.h. */
  17171. #include <bcm_host.h>
  17172. int
  17173. main ()
  17174. {
  17175. bcm_host_init();
  17176. ;
  17177. return 0;
  17178. }
  17179. _ACEOF
  17180. if ac_fn_c_try_link "$LINENO"; then :
  17181. have_video_rpi=yes
  17182. fi
  17183. rm -f core conftest.err conftest.$ac_objext \
  17184. conftest$ac_exeext conftest.$ac_ext
  17185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17186. $as_echo "$have_video_rpi" >&6; }
  17187. # Restore the compiler flags and libraries
  17188. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17189. if test x$have_video_rpi = xyes; then
  17190. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17191. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17192. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17193. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17194. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17195. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17196. SUMMARY_video="${SUMMARY_video} rpi"
  17197. fi
  17198. fi
  17199. }
  17200. CheckX11()
  17201. {
  17202. # Check whether --enable-video-x11 was given.
  17203. if test "${enable_video_x11+set}" = set; then :
  17204. enableval=$enable_video_x11;
  17205. else
  17206. enable_video_x11=yes
  17207. fi
  17208. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17209. case "$host" in
  17210. *-*-darwin*)
  17211. # This isn't necessary for X11, but fixes GLX detection
  17212. if test "x$x_includes" = xNONE && \
  17213. test "x$x_libraries" = xNONE && \
  17214. test -d /opt/X11/include && \
  17215. test -d /opt/X11/lib; then
  17216. x_includes="/opt/X11/include"
  17217. x_libraries="/opt/X11/lib"
  17218. fi
  17219. ;;
  17220. esac
  17221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17222. $as_echo_n "checking for X... " >&6; }
  17223. # Check whether --with-x was given.
  17224. if test "${with_x+set}" = set; then :
  17225. withval=$with_x;
  17226. fi
  17227. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17228. if test "x$with_x" = xno; then
  17229. # The user explicitly disabled X.
  17230. have_x=disabled
  17231. else
  17232. case $x_includes,$x_libraries in #(
  17233. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17234. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17235. $as_echo_n "(cached) " >&6
  17236. else
  17237. # One or both of the vars are not set, and there is no cached value.
  17238. ac_x_includes=no ac_x_libraries=no
  17239. rm -f -r conftest.dir
  17240. if mkdir conftest.dir; then
  17241. cd conftest.dir
  17242. cat >Imakefile <<'_ACEOF'
  17243. incroot:
  17244. @echo incroot='${INCROOT}'
  17245. usrlibdir:
  17246. @echo usrlibdir='${USRLIBDIR}'
  17247. libdir:
  17248. @echo libdir='${LIBDIR}'
  17249. _ACEOF
  17250. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17251. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17252. for ac_var in incroot usrlibdir libdir; do
  17253. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17254. done
  17255. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17256. for ac_extension in a so sl dylib la dll; do
  17257. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17258. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17259. ac_im_usrlibdir=$ac_im_libdir; break
  17260. fi
  17261. done
  17262. # Screen out bogus values from the imake configuration. They are
  17263. # bogus both because they are the default anyway, and because
  17264. # using them would break gcc on systems where it needs fixed includes.
  17265. case $ac_im_incroot in
  17266. /usr/include) ac_x_includes= ;;
  17267. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17268. esac
  17269. case $ac_im_usrlibdir in
  17270. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17271. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17272. esac
  17273. fi
  17274. cd ..
  17275. rm -f -r conftest.dir
  17276. fi
  17277. # Standard set of common directories for X headers.
  17278. # Check X11 before X11Rn because it is often a symlink to the current release.
  17279. ac_x_header_dirs='
  17280. /usr/X11/include
  17281. /usr/X11R7/include
  17282. /usr/X11R6/include
  17283. /usr/X11R5/include
  17284. /usr/X11R4/include
  17285. /usr/include/X11
  17286. /usr/include/X11R7
  17287. /usr/include/X11R6
  17288. /usr/include/X11R5
  17289. /usr/include/X11R4
  17290. /usr/local/X11/include
  17291. /usr/local/X11R7/include
  17292. /usr/local/X11R6/include
  17293. /usr/local/X11R5/include
  17294. /usr/local/X11R4/include
  17295. /usr/local/include/X11
  17296. /usr/local/include/X11R7
  17297. /usr/local/include/X11R6
  17298. /usr/local/include/X11R5
  17299. /usr/local/include/X11R4
  17300. /usr/X386/include
  17301. /usr/x386/include
  17302. /usr/XFree86/include/X11
  17303. /usr/include
  17304. /usr/local/include
  17305. /usr/unsupported/include
  17306. /usr/athena/include
  17307. /usr/local/x11r5/include
  17308. /usr/lpp/Xamples/include
  17309. /usr/openwin/include
  17310. /usr/openwin/share/include'
  17311. if test "$ac_x_includes" = no; then
  17312. # Guess where to find include files, by looking for Xlib.h.
  17313. # First, try using that file with no special directory specified.
  17314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17315. /* end confdefs.h. */
  17316. #include <X11/Xlib.h>
  17317. _ACEOF
  17318. if ac_fn_c_try_cpp "$LINENO"; then :
  17319. # We can compile using X headers with no special include directory.
  17320. ac_x_includes=
  17321. else
  17322. for ac_dir in $ac_x_header_dirs; do
  17323. if test -r "$ac_dir/X11/Xlib.h"; then
  17324. ac_x_includes=$ac_dir
  17325. break
  17326. fi
  17327. done
  17328. fi
  17329. rm -f conftest.err conftest.i conftest.$ac_ext
  17330. fi # $ac_x_includes = no
  17331. if test "$ac_x_libraries" = no; then
  17332. # Check for the libraries.
  17333. # See if we find them without any special options.
  17334. # Don't add to $LIBS permanently.
  17335. ac_save_LIBS=$LIBS
  17336. LIBS="-lX11 $LIBS"
  17337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17338. /* end confdefs.h. */
  17339. #include <X11/Xlib.h>
  17340. int
  17341. main ()
  17342. {
  17343. XrmInitialize ()
  17344. ;
  17345. return 0;
  17346. }
  17347. _ACEOF
  17348. if ac_fn_c_try_link "$LINENO"; then :
  17349. LIBS=$ac_save_LIBS
  17350. # We can link X programs with no special library path.
  17351. ac_x_libraries=
  17352. else
  17353. LIBS=$ac_save_LIBS
  17354. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17355. do
  17356. # Don't even attempt the hair of trying to link an X program!
  17357. for ac_extension in a so sl dylib la dll; do
  17358. if test -r "$ac_dir/libX11.$ac_extension"; then
  17359. ac_x_libraries=$ac_dir
  17360. break 2
  17361. fi
  17362. done
  17363. done
  17364. fi
  17365. rm -f core conftest.err conftest.$ac_objext \
  17366. conftest$ac_exeext conftest.$ac_ext
  17367. fi # $ac_x_libraries = no
  17368. case $ac_x_includes,$ac_x_libraries in #(
  17369. no,* | *,no | *\'*)
  17370. # Didn't find X, or a directory has "'" in its name.
  17371. ac_cv_have_x="have_x=no";; #(
  17372. *)
  17373. # Record where we found X for the cache.
  17374. ac_cv_have_x="have_x=yes\
  17375. ac_x_includes='$ac_x_includes'\
  17376. ac_x_libraries='$ac_x_libraries'"
  17377. esac
  17378. fi
  17379. ;; #(
  17380. *) have_x=yes;;
  17381. esac
  17382. eval "$ac_cv_have_x"
  17383. fi # $with_x != no
  17384. if test "$have_x" != yes; then
  17385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17386. $as_echo "$have_x" >&6; }
  17387. no_x=yes
  17388. else
  17389. # If each of the values was on the command line, it overrides each guess.
  17390. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17391. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17392. # Update the cache value to reflect the command line values.
  17393. ac_cv_have_x="have_x=yes\
  17394. ac_x_includes='$x_includes'\
  17395. ac_x_libraries='$x_libraries'"
  17396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17397. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17398. fi
  17399. if test "$no_x" = yes; then
  17400. # Not all programs may use this symbol, but it does not hurt to define it.
  17401. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17402. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17403. else
  17404. if test -n "$x_includes"; then
  17405. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17406. fi
  17407. # It would also be nice to do this for all -L options, not just this one.
  17408. if test -n "$x_libraries"; then
  17409. X_LIBS="$X_LIBS -L$x_libraries"
  17410. # For Solaris; some versions of Sun CC require a space after -R and
  17411. # others require no space. Words are not sufficient . . . .
  17412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17413. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17414. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17415. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17416. ac_c_werror_flag=yes
  17417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17418. /* end confdefs.h. */
  17419. int
  17420. main ()
  17421. {
  17422. ;
  17423. return 0;
  17424. }
  17425. _ACEOF
  17426. if ac_fn_c_try_link "$LINENO"; then :
  17427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17428. $as_echo "no" >&6; }
  17429. X_LIBS="$X_LIBS -R$x_libraries"
  17430. else
  17431. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17433. /* end confdefs.h. */
  17434. int
  17435. main ()
  17436. {
  17437. ;
  17438. return 0;
  17439. }
  17440. _ACEOF
  17441. if ac_fn_c_try_link "$LINENO"; then :
  17442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17443. $as_echo "yes" >&6; }
  17444. X_LIBS="$X_LIBS -R $x_libraries"
  17445. else
  17446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17447. $as_echo "neither works" >&6; }
  17448. fi
  17449. rm -f core conftest.err conftest.$ac_objext \
  17450. conftest$ac_exeext conftest.$ac_ext
  17451. fi
  17452. rm -f core conftest.err conftest.$ac_objext \
  17453. conftest$ac_exeext conftest.$ac_ext
  17454. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17455. LIBS=$ac_xsave_LIBS
  17456. fi
  17457. # Check for system-dependent libraries X programs must link with.
  17458. # Do this before checking for the system-independent R6 libraries
  17459. # (-lICE), since we may need -lsocket or whatever for X linking.
  17460. if test "$ISC" = yes; then
  17461. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17462. else
  17463. # Martyn Johnson says this is needed for Ultrix, if the X
  17464. # libraries were built with DECnet support. And Karl Berry says
  17465. # the Alpha needs dnet_stub (dnet does not exist).
  17466. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17468. /* end confdefs.h. */
  17469. /* Override any GCC internal prototype to avoid an error.
  17470. Use char because int might match the return type of a GCC
  17471. builtin and then its argument prototype would still apply. */
  17472. #ifdef __cplusplus
  17473. extern "C"
  17474. #endif
  17475. char XOpenDisplay ();
  17476. int
  17477. main ()
  17478. {
  17479. return XOpenDisplay ();
  17480. ;
  17481. return 0;
  17482. }
  17483. _ACEOF
  17484. if ac_fn_c_try_link "$LINENO"; then :
  17485. else
  17486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17487. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17488. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17489. $as_echo_n "(cached) " >&6
  17490. else
  17491. ac_check_lib_save_LIBS=$LIBS
  17492. LIBS="-ldnet $LIBS"
  17493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17494. /* end confdefs.h. */
  17495. /* Override any GCC internal prototype to avoid an error.
  17496. Use char because int might match the return type of a GCC
  17497. builtin and then its argument prototype would still apply. */
  17498. #ifdef __cplusplus
  17499. extern "C"
  17500. #endif
  17501. char dnet_ntoa ();
  17502. int
  17503. main ()
  17504. {
  17505. return dnet_ntoa ();
  17506. ;
  17507. return 0;
  17508. }
  17509. _ACEOF
  17510. if ac_fn_c_try_link "$LINENO"; then :
  17511. ac_cv_lib_dnet_dnet_ntoa=yes
  17512. else
  17513. ac_cv_lib_dnet_dnet_ntoa=no
  17514. fi
  17515. rm -f core conftest.err conftest.$ac_objext \
  17516. conftest$ac_exeext conftest.$ac_ext
  17517. LIBS=$ac_check_lib_save_LIBS
  17518. fi
  17519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17520. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17521. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17522. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17523. fi
  17524. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17526. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17527. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17528. $as_echo_n "(cached) " >&6
  17529. else
  17530. ac_check_lib_save_LIBS=$LIBS
  17531. LIBS="-ldnet_stub $LIBS"
  17532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17533. /* end confdefs.h. */
  17534. /* Override any GCC internal prototype to avoid an error.
  17535. Use char because int might match the return type of a GCC
  17536. builtin and then its argument prototype would still apply. */
  17537. #ifdef __cplusplus
  17538. extern "C"
  17539. #endif
  17540. char dnet_ntoa ();
  17541. int
  17542. main ()
  17543. {
  17544. return dnet_ntoa ();
  17545. ;
  17546. return 0;
  17547. }
  17548. _ACEOF
  17549. if ac_fn_c_try_link "$LINENO"; then :
  17550. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17551. else
  17552. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17553. fi
  17554. rm -f core conftest.err conftest.$ac_objext \
  17555. conftest$ac_exeext conftest.$ac_ext
  17556. LIBS=$ac_check_lib_save_LIBS
  17557. fi
  17558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17559. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17560. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17561. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17562. fi
  17563. fi
  17564. fi
  17565. rm -f core conftest.err conftest.$ac_objext \
  17566. conftest$ac_exeext conftest.$ac_ext
  17567. LIBS="$ac_xsave_LIBS"
  17568. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17569. # to get the SysV transport functions.
  17570. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17571. # needs -lnsl.
  17572. # The nsl library prevents programs from opening the X display
  17573. # on Irix 5.2, according to T.E. Dickey.
  17574. # The functions gethostbyname, getservbyname, and inet_addr are
  17575. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17576. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17577. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17578. fi
  17579. if test $ac_cv_func_gethostbyname = no; then
  17580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17581. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17582. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17583. $as_echo_n "(cached) " >&6
  17584. else
  17585. ac_check_lib_save_LIBS=$LIBS
  17586. LIBS="-lnsl $LIBS"
  17587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17588. /* end confdefs.h. */
  17589. /* Override any GCC internal prototype to avoid an error.
  17590. Use char because int might match the return type of a GCC
  17591. builtin and then its argument prototype would still apply. */
  17592. #ifdef __cplusplus
  17593. extern "C"
  17594. #endif
  17595. char gethostbyname ();
  17596. int
  17597. main ()
  17598. {
  17599. return gethostbyname ();
  17600. ;
  17601. return 0;
  17602. }
  17603. _ACEOF
  17604. if ac_fn_c_try_link "$LINENO"; then :
  17605. ac_cv_lib_nsl_gethostbyname=yes
  17606. else
  17607. ac_cv_lib_nsl_gethostbyname=no
  17608. fi
  17609. rm -f core conftest.err conftest.$ac_objext \
  17610. conftest$ac_exeext conftest.$ac_ext
  17611. LIBS=$ac_check_lib_save_LIBS
  17612. fi
  17613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17614. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17615. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17616. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17617. fi
  17618. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17620. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17621. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17622. $as_echo_n "(cached) " >&6
  17623. else
  17624. ac_check_lib_save_LIBS=$LIBS
  17625. LIBS="-lbsd $LIBS"
  17626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17627. /* end confdefs.h. */
  17628. /* Override any GCC internal prototype to avoid an error.
  17629. Use char because int might match the return type of a GCC
  17630. builtin and then its argument prototype would still apply. */
  17631. #ifdef __cplusplus
  17632. extern "C"
  17633. #endif
  17634. char gethostbyname ();
  17635. int
  17636. main ()
  17637. {
  17638. return gethostbyname ();
  17639. ;
  17640. return 0;
  17641. }
  17642. _ACEOF
  17643. if ac_fn_c_try_link "$LINENO"; then :
  17644. ac_cv_lib_bsd_gethostbyname=yes
  17645. else
  17646. ac_cv_lib_bsd_gethostbyname=no
  17647. fi
  17648. rm -f core conftest.err conftest.$ac_objext \
  17649. conftest$ac_exeext conftest.$ac_ext
  17650. LIBS=$ac_check_lib_save_LIBS
  17651. fi
  17652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17653. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17654. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17655. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17656. fi
  17657. fi
  17658. fi
  17659. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17660. # socket/setsockopt and other routines are undefined under SCO ODT
  17661. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17662. # on later versions), says Simon Leinen: it contains gethostby*
  17663. # variants that don't use the name server (or something). -lsocket
  17664. # must be given before -lnsl if both are needed. We assume that
  17665. # if connect needs -lnsl, so does gethostbyname.
  17666. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17667. if test "x$ac_cv_func_connect" = xyes; then :
  17668. fi
  17669. if test $ac_cv_func_connect = no; then
  17670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17671. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17672. if ${ac_cv_lib_socket_connect+:} false; then :
  17673. $as_echo_n "(cached) " >&6
  17674. else
  17675. ac_check_lib_save_LIBS=$LIBS
  17676. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17678. /* end confdefs.h. */
  17679. /* Override any GCC internal prototype to avoid an error.
  17680. Use char because int might match the return type of a GCC
  17681. builtin and then its argument prototype would still apply. */
  17682. #ifdef __cplusplus
  17683. extern "C"
  17684. #endif
  17685. char connect ();
  17686. int
  17687. main ()
  17688. {
  17689. return connect ();
  17690. ;
  17691. return 0;
  17692. }
  17693. _ACEOF
  17694. if ac_fn_c_try_link "$LINENO"; then :
  17695. ac_cv_lib_socket_connect=yes
  17696. else
  17697. ac_cv_lib_socket_connect=no
  17698. fi
  17699. rm -f core conftest.err conftest.$ac_objext \
  17700. conftest$ac_exeext conftest.$ac_ext
  17701. LIBS=$ac_check_lib_save_LIBS
  17702. fi
  17703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17704. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17705. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17706. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17707. fi
  17708. fi
  17709. # Guillermo Gomez says -lposix is necessary on A/UX.
  17710. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17711. if test "x$ac_cv_func_remove" = xyes; then :
  17712. fi
  17713. if test $ac_cv_func_remove = no; then
  17714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17715. $as_echo_n "checking for remove in -lposix... " >&6; }
  17716. if ${ac_cv_lib_posix_remove+:} false; then :
  17717. $as_echo_n "(cached) " >&6
  17718. else
  17719. ac_check_lib_save_LIBS=$LIBS
  17720. LIBS="-lposix $LIBS"
  17721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17722. /* end confdefs.h. */
  17723. /* Override any GCC internal prototype to avoid an error.
  17724. Use char because int might match the return type of a GCC
  17725. builtin and then its argument prototype would still apply. */
  17726. #ifdef __cplusplus
  17727. extern "C"
  17728. #endif
  17729. char remove ();
  17730. int
  17731. main ()
  17732. {
  17733. return remove ();
  17734. ;
  17735. return 0;
  17736. }
  17737. _ACEOF
  17738. if ac_fn_c_try_link "$LINENO"; then :
  17739. ac_cv_lib_posix_remove=yes
  17740. else
  17741. ac_cv_lib_posix_remove=no
  17742. fi
  17743. rm -f core conftest.err conftest.$ac_objext \
  17744. conftest$ac_exeext conftest.$ac_ext
  17745. LIBS=$ac_check_lib_save_LIBS
  17746. fi
  17747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17748. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17749. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17750. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17751. fi
  17752. fi
  17753. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17754. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17755. if test "x$ac_cv_func_shmat" = xyes; then :
  17756. fi
  17757. if test $ac_cv_func_shmat = no; then
  17758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17759. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17760. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17761. $as_echo_n "(cached) " >&6
  17762. else
  17763. ac_check_lib_save_LIBS=$LIBS
  17764. LIBS="-lipc $LIBS"
  17765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17766. /* end confdefs.h. */
  17767. /* Override any GCC internal prototype to avoid an error.
  17768. Use char because int might match the return type of a GCC
  17769. builtin and then its argument prototype would still apply. */
  17770. #ifdef __cplusplus
  17771. extern "C"
  17772. #endif
  17773. char shmat ();
  17774. int
  17775. main ()
  17776. {
  17777. return shmat ();
  17778. ;
  17779. return 0;
  17780. }
  17781. _ACEOF
  17782. if ac_fn_c_try_link "$LINENO"; then :
  17783. ac_cv_lib_ipc_shmat=yes
  17784. else
  17785. ac_cv_lib_ipc_shmat=no
  17786. fi
  17787. rm -f core conftest.err conftest.$ac_objext \
  17788. conftest$ac_exeext conftest.$ac_ext
  17789. LIBS=$ac_check_lib_save_LIBS
  17790. fi
  17791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17792. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17793. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17794. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17795. fi
  17796. fi
  17797. fi
  17798. # Check for libraries that X11R6 Xt/Xaw programs need.
  17799. ac_save_LDFLAGS=$LDFLAGS
  17800. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17801. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17802. # check for ICE first), but we must link in the order -lSM -lICE or
  17803. # we get undefined symbols. So assume we have SM if we have ICE.
  17804. # These have to be linked with before -lX11, unlike the other
  17805. # libraries we check for below, so use a different variable.
  17806. # John Interrante, Karl Berry
  17807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17808. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17809. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17810. $as_echo_n "(cached) " >&6
  17811. else
  17812. ac_check_lib_save_LIBS=$LIBS
  17813. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17815. /* end confdefs.h. */
  17816. /* Override any GCC internal prototype to avoid an error.
  17817. Use char because int might match the return type of a GCC
  17818. builtin and then its argument prototype would still apply. */
  17819. #ifdef __cplusplus
  17820. extern "C"
  17821. #endif
  17822. char IceConnectionNumber ();
  17823. int
  17824. main ()
  17825. {
  17826. return IceConnectionNumber ();
  17827. ;
  17828. return 0;
  17829. }
  17830. _ACEOF
  17831. if ac_fn_c_try_link "$LINENO"; then :
  17832. ac_cv_lib_ICE_IceConnectionNumber=yes
  17833. else
  17834. ac_cv_lib_ICE_IceConnectionNumber=no
  17835. fi
  17836. rm -f core conftest.err conftest.$ac_objext \
  17837. conftest$ac_exeext conftest.$ac_ext
  17838. LIBS=$ac_check_lib_save_LIBS
  17839. fi
  17840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17841. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17842. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17843. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17844. fi
  17845. LDFLAGS=$ac_save_LDFLAGS
  17846. fi
  17847. if test x$have_x = xyes; then
  17848. # Check whether --enable-x11-shared was given.
  17849. if test "${enable_x11_shared+set}" = set; then :
  17850. enableval=$enable_x11_shared;
  17851. else
  17852. enable_x11_shared=maybe
  17853. fi
  17854. case "$host" in
  17855. *-*-darwin*)
  17856. # Apple now puts this in /opt/X11
  17857. x11_lib='/opt/X11/lib/libX11.6.dylib'
  17858. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  17859. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  17860. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  17861. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  17862. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  17863. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  17864. xss_lib='/opt/X11/lib/libXss.1.dylib'
  17865. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  17866. ;;
  17867. *-*-openbsd*)
  17868. x11_lib='libX11.so'
  17869. x11ext_lib='libXext.so'
  17870. xcursor_lib='libXcursor.so'
  17871. xinerama_lib='libXinerama.so'
  17872. xinput_lib='libXi.so'
  17873. xrandr_lib='libXrandr.so'
  17874. xrender_lib='libXrender.so'
  17875. xss_lib='libXss.so'
  17876. xvidmode_lib='libXxf86vm.so'
  17877. ;;
  17878. *)
  17879. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17880. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17881. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17882. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17883. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17884. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17885. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17886. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17887. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17888. ;;
  17889. esac
  17890. if test x$ac_cv_func_shmat != xyes; then
  17891. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17892. fi
  17893. CFLAGS="$CFLAGS $X_CFLAGS"
  17894. LDFLAGS="$LDFLAGS $X_LIBS"
  17895. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17896. #include <X11/Xproto.h>
  17897. "
  17898. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17899. have_xext_h_hdr=yes
  17900. else
  17901. have_xext_h_hdr=no
  17902. fi
  17903. if test x$have_xext_h_hdr != xyes; then
  17904. as_fn_error $? "
  17905. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17906. " "$LINENO" 5
  17907. fi
  17908. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17909. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17910. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17911. # Needed so SDL applications can include SDL_syswm.h
  17912. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17913. if test x$enable_x11_shared = xmaybe; then
  17914. enable_x11_shared=yes
  17915. fi
  17916. if test x$have_loadso != xyes && \
  17917. test x$enable_x11_shared = xyes; then
  17918. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17919. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17920. enable_x11_shared=no
  17921. fi
  17922. if test x$have_loadso = xyes && \
  17923. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17924. echo "-- dynamic libX11 -> $x11_lib"
  17925. echo "-- dynamic libX11ext -> $x11ext_lib"
  17926. cat >>confdefs.h <<_ACEOF
  17927. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17928. _ACEOF
  17929. cat >>confdefs.h <<_ACEOF
  17930. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17931. _ACEOF
  17932. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17933. else
  17934. enable_x11_shared=no
  17935. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17936. SUMMARY_video="${SUMMARY_video} x11"
  17937. fi
  17938. have_video=yes
  17939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17940. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17941. have_const_param_XextAddDisplay=no
  17942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17943. /* end confdefs.h. */
  17944. #include <X11/Xlib.h>
  17945. #include <X11/Xproto.h>
  17946. #include <X11/extensions/Xext.h>
  17947. #include <X11/extensions/extutil.h>
  17948. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17949. int
  17950. main ()
  17951. {
  17952. ;
  17953. return 0;
  17954. }
  17955. _ACEOF
  17956. if ac_fn_c_try_compile "$LINENO"; then :
  17957. have_const_param_XextAddDisplay=yes
  17958. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17959. fi
  17960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17962. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17964. $as_echo_n "checking for XGenericEvent... " >&6; }
  17965. have_XGenericEvent=no
  17966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17967. /* end confdefs.h. */
  17968. #include <X11/Xlib.h>
  17969. int
  17970. main ()
  17971. {
  17972. Display *display;
  17973. XEvent event;
  17974. XGenericEventCookie *cookie = &event.xcookie;
  17975. XNextEvent(display, &event);
  17976. XGetEventData(display, cookie);
  17977. XFreeEventData(display, cookie);
  17978. ;
  17979. return 0;
  17980. }
  17981. _ACEOF
  17982. if ac_fn_c_try_compile "$LINENO"; then :
  17983. have_XGenericEvent=yes
  17984. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17985. fi
  17986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17988. $as_echo "$have_XGenericEvent" >&6; }
  17989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17990. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17991. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17992. $as_echo_n "(cached) " >&6
  17993. else
  17994. ac_check_lib_save_LIBS=$LIBS
  17995. LIBS="-lX11 $LIBS"
  17996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17997. /* end confdefs.h. */
  17998. /* Override any GCC internal prototype to avoid an error.
  17999. Use char because int might match the return type of a GCC
  18000. builtin and then its argument prototype would still apply. */
  18001. #ifdef __cplusplus
  18002. extern "C"
  18003. #endif
  18004. char XkbKeycodeToKeysym ();
  18005. int
  18006. main ()
  18007. {
  18008. return XkbKeycodeToKeysym ();
  18009. ;
  18010. return 0;
  18011. }
  18012. _ACEOF
  18013. if ac_fn_c_try_link "$LINENO"; then :
  18014. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18015. else
  18016. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18017. fi
  18018. rm -f core conftest.err conftest.$ac_objext \
  18019. conftest$ac_exeext conftest.$ac_ext
  18020. LIBS=$ac_check_lib_save_LIBS
  18021. fi
  18022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18023. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18024. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18025. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18026. fi
  18027. # Check whether --enable-video-x11-xcursor was given.
  18028. if test "${enable_video_x11_xcursor+set}" = set; then :
  18029. enableval=$enable_video_x11_xcursor;
  18030. else
  18031. enable_video_x11_xcursor=yes
  18032. fi
  18033. if test x$enable_video_x11_xcursor = xyes; then
  18034. definitely_enable_video_x11_xcursor=no
  18035. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18036. "
  18037. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18038. have_xcursor_h_hdr=yes
  18039. else
  18040. have_xcursor_h_hdr=no
  18041. fi
  18042. if test x$have_xcursor_h_hdr = xyes; then
  18043. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18044. echo "-- dynamic libXcursor -> $xcursor_lib"
  18045. cat >>confdefs.h <<_ACEOF
  18046. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18047. _ACEOF
  18048. definitely_enable_video_x11_xcursor=yes
  18049. else
  18050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18051. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18052. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18053. $as_echo_n "(cached) " >&6
  18054. else
  18055. ac_check_lib_save_LIBS=$LIBS
  18056. LIBS="-lXcursor $LIBS"
  18057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18058. /* end confdefs.h. */
  18059. /* Override any GCC internal prototype to avoid an error.
  18060. Use char because int might match the return type of a GCC
  18061. builtin and then its argument prototype would still apply. */
  18062. #ifdef __cplusplus
  18063. extern "C"
  18064. #endif
  18065. char XcursorImageCreate ();
  18066. int
  18067. main ()
  18068. {
  18069. return XcursorImageCreate ();
  18070. ;
  18071. return 0;
  18072. }
  18073. _ACEOF
  18074. if ac_fn_c_try_link "$LINENO"; then :
  18075. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18076. else
  18077. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18078. fi
  18079. rm -f core conftest.err conftest.$ac_objext \
  18080. conftest$ac_exeext conftest.$ac_ext
  18081. LIBS=$ac_check_lib_save_LIBS
  18082. fi
  18083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18084. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18085. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18086. have_xcursor_lib=yes
  18087. fi
  18088. if test x$have_xcursor_lib = xyes ; then
  18089. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18090. definitely_enable_video_x11_xcursor=yes
  18091. fi
  18092. fi
  18093. fi
  18094. fi
  18095. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18096. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18097. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18098. fi
  18099. # Check whether --enable-video-x11-xdbe was given.
  18100. if test "${enable_video_x11_xdbe+set}" = set; then :
  18101. enableval=$enable_video_x11_xdbe;
  18102. else
  18103. enable_video_x11_xdbe=yes
  18104. fi
  18105. if test x$enable_video_x11_xdbe = xyes; then
  18106. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18107. "
  18108. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18109. have_dbe_h_hdr=yes
  18110. else
  18111. have_dbe_h_hdr=no
  18112. fi
  18113. if test x$have_dbe_h_hdr = xyes; then
  18114. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18115. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18116. fi
  18117. fi
  18118. # Check whether --enable-video-x11-xinerama was given.
  18119. if test "${enable_video_x11_xinerama+set}" = set; then :
  18120. enableval=$enable_video_x11_xinerama;
  18121. else
  18122. enable_video_x11_xinerama=yes
  18123. fi
  18124. if test x$enable_video_x11_xinerama = xyes; then
  18125. definitely_enable_video_x11_xinerama=no
  18126. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18127. "
  18128. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18129. have_xinerama_h_hdr=yes
  18130. else
  18131. have_xinerama_h_hdr=no
  18132. fi
  18133. if test x$have_xinerama_h_hdr = xyes; then
  18134. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18135. echo "-- dynamic libXinerama -> $xinerama_lib"
  18136. cat >>confdefs.h <<_ACEOF
  18137. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18138. _ACEOF
  18139. definitely_enable_video_x11_xinerama=yes
  18140. else
  18141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18142. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18143. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18144. $as_echo_n "(cached) " >&6
  18145. else
  18146. ac_check_lib_save_LIBS=$LIBS
  18147. LIBS="-lXinerama $LIBS"
  18148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18149. /* end confdefs.h. */
  18150. /* Override any GCC internal prototype to avoid an error.
  18151. Use char because int might match the return type of a GCC
  18152. builtin and then its argument prototype would still apply. */
  18153. #ifdef __cplusplus
  18154. extern "C"
  18155. #endif
  18156. char XineramaQueryExtension ();
  18157. int
  18158. main ()
  18159. {
  18160. return XineramaQueryExtension ();
  18161. ;
  18162. return 0;
  18163. }
  18164. _ACEOF
  18165. if ac_fn_c_try_link "$LINENO"; then :
  18166. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18167. else
  18168. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18169. fi
  18170. rm -f core conftest.err conftest.$ac_objext \
  18171. conftest$ac_exeext conftest.$ac_ext
  18172. LIBS=$ac_check_lib_save_LIBS
  18173. fi
  18174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18175. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18176. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18177. have_xinerama_lib=yes
  18178. fi
  18179. if test x$have_xinerama_lib = xyes ; then
  18180. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18181. definitely_enable_video_x11_xinerama=yes
  18182. fi
  18183. fi
  18184. fi
  18185. fi
  18186. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18187. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18188. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18189. fi
  18190. # Check whether --enable-video-x11-xinput was given.
  18191. if test "${enable_video_x11_xinput+set}" = set; then :
  18192. enableval=$enable_video_x11_xinput;
  18193. else
  18194. enable_video_x11_xinput=yes
  18195. fi
  18196. if test x$enable_video_x11_xinput = xyes; then
  18197. definitely_enable_video_x11_xinput=no
  18198. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18199. "
  18200. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18201. have_xinput_h_hdr=yes
  18202. else
  18203. have_xinput_h_hdr=no
  18204. fi
  18205. if test x$have_xinput_h_hdr = xyes; then
  18206. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18207. echo "-- dynamic libXi -> $xinput_lib"
  18208. cat >>confdefs.h <<_ACEOF
  18209. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18210. _ACEOF
  18211. definitely_enable_video_x11_xinput=yes
  18212. else
  18213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18214. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18215. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18216. $as_echo_n "(cached) " >&6
  18217. else
  18218. ac_check_lib_save_LIBS=$LIBS
  18219. LIBS="-lXi $LIBS"
  18220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18221. /* end confdefs.h. */
  18222. /* Override any GCC internal prototype to avoid an error.
  18223. Use char because int might match the return type of a GCC
  18224. builtin and then its argument prototype would still apply. */
  18225. #ifdef __cplusplus
  18226. extern "C"
  18227. #endif
  18228. char XOpenDevice ();
  18229. int
  18230. main ()
  18231. {
  18232. return XOpenDevice ();
  18233. ;
  18234. return 0;
  18235. }
  18236. _ACEOF
  18237. if ac_fn_c_try_link "$LINENO"; then :
  18238. ac_cv_lib_Xi_XOpenDevice=yes
  18239. else
  18240. ac_cv_lib_Xi_XOpenDevice=no
  18241. fi
  18242. rm -f core conftest.err conftest.$ac_objext \
  18243. conftest$ac_exeext conftest.$ac_ext
  18244. LIBS=$ac_check_lib_save_LIBS
  18245. fi
  18246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18247. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18248. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18249. have_xinput_lib=yes
  18250. fi
  18251. if test x$have_xinput_lib = xyes ; then
  18252. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18253. definitely_enable_video_x11_xinput=yes
  18254. fi
  18255. fi
  18256. fi
  18257. fi
  18258. if test x$definitely_enable_video_x11_xinput = xyes; then
  18259. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18260. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18262. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18263. have_xinput2_multitouch=no
  18264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18265. /* end confdefs.h. */
  18266. #include <X11/Xlib.h>
  18267. #include <X11/Xproto.h>
  18268. #include <X11/extensions/XInput2.h>
  18269. int
  18270. main ()
  18271. {
  18272. int event_type = XI_TouchBegin;
  18273. XITouchClassInfo *t;
  18274. ;
  18275. return 0;
  18276. }
  18277. _ACEOF
  18278. if ac_fn_c_try_compile "$LINENO"; then :
  18279. have_xinput2_multitouch=yes
  18280. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18281. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18282. fi
  18283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18285. $as_echo "$have_xinput2_multitouch" >&6; }
  18286. fi
  18287. # Check whether --enable-video-x11-xrandr was given.
  18288. if test "${enable_video_x11_xrandr+set}" = set; then :
  18289. enableval=$enable_video_x11_xrandr;
  18290. else
  18291. enable_video_x11_xrandr=yes
  18292. fi
  18293. if test x$enable_video_x11_xrandr = xyes; then
  18294. definitely_enable_video_x11_xrandr=no
  18295. have_xrandr_h_hdr=no
  18296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18297. /* end confdefs.h. */
  18298. #include <X11/Xlib.h>
  18299. #include <X11/extensions/Xrandr.h>
  18300. int
  18301. main ()
  18302. {
  18303. XRRScreenResources *res = NULL;
  18304. ;
  18305. return 0;
  18306. }
  18307. _ACEOF
  18308. if ac_fn_c_try_compile "$LINENO"; then :
  18309. have_xrandr_h_hdr=yes
  18310. fi
  18311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18312. if test x$have_xrandr_h_hdr = xyes; then
  18313. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18314. echo "-- dynamic libXrandr -> $xrandr_lib"
  18315. cat >>confdefs.h <<_ACEOF
  18316. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18317. _ACEOF
  18318. definitely_enable_video_x11_xrandr=yes
  18319. else
  18320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18321. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18322. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18323. $as_echo_n "(cached) " >&6
  18324. else
  18325. ac_check_lib_save_LIBS=$LIBS
  18326. LIBS="-lXrandr $LIBS"
  18327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18328. /* end confdefs.h. */
  18329. /* Override any GCC internal prototype to avoid an error.
  18330. Use char because int might match the return type of a GCC
  18331. builtin and then its argument prototype would still apply. */
  18332. #ifdef __cplusplus
  18333. extern "C"
  18334. #endif
  18335. char XRRQueryExtension ();
  18336. int
  18337. main ()
  18338. {
  18339. return XRRQueryExtension ();
  18340. ;
  18341. return 0;
  18342. }
  18343. _ACEOF
  18344. if ac_fn_c_try_link "$LINENO"; then :
  18345. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18346. else
  18347. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18348. fi
  18349. rm -f core conftest.err conftest.$ac_objext \
  18350. conftest$ac_exeext conftest.$ac_ext
  18351. LIBS=$ac_check_lib_save_LIBS
  18352. fi
  18353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18354. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18355. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18356. have_xrandr_lib=yes
  18357. fi
  18358. if test x$have_xrandr_lib = xyes ; then
  18359. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18360. definitely_enable_video_x11_xrandr=yes
  18361. fi
  18362. fi
  18363. fi
  18364. fi
  18365. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18366. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18367. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18368. fi
  18369. # Check whether --enable-video-x11-scrnsaver was given.
  18370. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18371. enableval=$enable_video_x11_scrnsaver;
  18372. else
  18373. enable_video_x11_scrnsaver=yes
  18374. fi
  18375. if test x$enable_video_x11_scrnsaver = xyes; then
  18376. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18377. "
  18378. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18379. have_scrnsaver_h_hdr=yes
  18380. else
  18381. have_scrnsaver_h_hdr=no
  18382. fi
  18383. if test x$have_scrnsaver_h_hdr = xyes; then
  18384. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18385. echo "-- dynamic libXss -> $xss_lib"
  18386. cat >>confdefs.h <<_ACEOF
  18387. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18388. _ACEOF
  18389. definitely_enable_video_x11_scrnsaver=yes
  18390. else
  18391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18392. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18393. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18394. $as_echo_n "(cached) " >&6
  18395. else
  18396. ac_check_lib_save_LIBS=$LIBS
  18397. LIBS="-lXss $LIBS"
  18398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18399. /* end confdefs.h. */
  18400. /* Override any GCC internal prototype to avoid an error.
  18401. Use char because int might match the return type of a GCC
  18402. builtin and then its argument prototype would still apply. */
  18403. #ifdef __cplusplus
  18404. extern "C"
  18405. #endif
  18406. char XScreenSaverSuspend ();
  18407. int
  18408. main ()
  18409. {
  18410. return XScreenSaverSuspend ();
  18411. ;
  18412. return 0;
  18413. }
  18414. _ACEOF
  18415. if ac_fn_c_try_link "$LINENO"; then :
  18416. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18417. else
  18418. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18419. fi
  18420. rm -f core conftest.err conftest.$ac_objext \
  18421. conftest$ac_exeext conftest.$ac_ext
  18422. LIBS=$ac_check_lib_save_LIBS
  18423. fi
  18424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18425. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18426. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18427. have_xss_lib=yes
  18428. fi
  18429. if test x$have_xss_lib = xyes ; then
  18430. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18431. definitely_enable_video_x11_scrnsaver=yes
  18432. fi
  18433. fi
  18434. fi
  18435. fi
  18436. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18437. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18438. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18439. fi
  18440. # Check whether --enable-video-x11-xshape was given.
  18441. if test "${enable_video_x11_xshape+set}" = set; then :
  18442. enableval=$enable_video_x11_xshape;
  18443. else
  18444. enable_video_x11_xshape=yes
  18445. fi
  18446. if test x$enable_video_x11_xshape = xyes; then
  18447. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18448. "
  18449. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18450. have_shape_h_hdr=yes
  18451. else
  18452. have_shape_h_hdr=no
  18453. fi
  18454. if test x$have_shape_h_hdr = xyes; then
  18455. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18456. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18457. fi
  18458. fi
  18459. # Check whether --enable-video-x11-vm was given.
  18460. if test "${enable_video_x11_vm+set}" = set; then :
  18461. enableval=$enable_video_x11_vm;
  18462. else
  18463. enable_video_x11_vm=yes
  18464. fi
  18465. if test x$enable_video_x11_vm = xyes; then
  18466. definitely_enable_video_x11_vm=no
  18467. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18468. "
  18469. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18470. have_vm_h_hdr=yes
  18471. else
  18472. have_vm_h_hdr=no
  18473. fi
  18474. if test x$have_vm_h_hdr = xyes; then
  18475. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18476. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18477. cat >>confdefs.h <<_ACEOF
  18478. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18479. _ACEOF
  18480. definitely_enable_video_x11_vm=yes
  18481. else
  18482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18483. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18484. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18485. $as_echo_n "(cached) " >&6
  18486. else
  18487. ac_check_lib_save_LIBS=$LIBS
  18488. LIBS="-lXxf86vm $LIBS"
  18489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18490. /* end confdefs.h. */
  18491. /* Override any GCC internal prototype to avoid an error.
  18492. Use char because int might match the return type of a GCC
  18493. builtin and then its argument prototype would still apply. */
  18494. #ifdef __cplusplus
  18495. extern "C"
  18496. #endif
  18497. char XF86VidModeQueryVersion ();
  18498. int
  18499. main ()
  18500. {
  18501. return XF86VidModeQueryVersion ();
  18502. ;
  18503. return 0;
  18504. }
  18505. _ACEOF
  18506. if ac_fn_c_try_link "$LINENO"; then :
  18507. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18508. else
  18509. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18510. fi
  18511. rm -f core conftest.err conftest.$ac_objext \
  18512. conftest$ac_exeext conftest.$ac_ext
  18513. LIBS=$ac_check_lib_save_LIBS
  18514. fi
  18515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18516. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18517. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18518. have_vm_lib=yes
  18519. fi
  18520. if test x$have_vm_lib = xyes ; then
  18521. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18522. definitely_enable_video_x11_vm=yes
  18523. fi
  18524. fi
  18525. fi
  18526. fi
  18527. if test x$definitely_enable_video_x11_vm = xyes; then
  18528. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18529. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18530. fi
  18531. fi
  18532. else
  18533. # Prevent Mesa from including X11 headers
  18534. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18535. fi
  18536. }
  18537. CheckVivanteVideo()
  18538. {
  18539. # Check whether --enable-video-vivante was given.
  18540. if test "${enable_video_vivante+set}" = set; then :
  18541. enableval=$enable_video_vivante;
  18542. else
  18543. enable_video_vivante=yes
  18544. fi
  18545. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18547. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18548. have_vivante_vdk=no
  18549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18550. /* end confdefs.h. */
  18551. #define LINUX
  18552. #define EGL_API_FB
  18553. #include <gc_vdk.h>
  18554. int
  18555. main ()
  18556. {
  18557. ;
  18558. return 0;
  18559. }
  18560. _ACEOF
  18561. if ac_fn_c_try_compile "$LINENO"; then :
  18562. have_vivante_vdk=yes
  18563. fi
  18564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18566. $as_echo "$have_vivante_vdk" >&6; }
  18567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18568. $as_echo_n "checking for Vivante FB API... " >&6; }
  18569. have_vivante_egl=no
  18570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18571. /* end confdefs.h. */
  18572. #define LINUX
  18573. #define EGL_API_FB
  18574. #include <EGL/eglvivante.h>
  18575. int
  18576. main ()
  18577. {
  18578. ;
  18579. return 0;
  18580. }
  18581. _ACEOF
  18582. if ac_fn_c_try_compile "$LINENO"; then :
  18583. have_vivante_egl=yes
  18584. fi
  18585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18587. $as_echo "$have_vivante_egl" >&6; }
  18588. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18589. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18590. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18591. if test x$have_vivante_vdk = xyes; then
  18592. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18593. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18594. fi
  18595. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18596. SUMMARY_video="${SUMMARY_video} vivante"
  18597. have_video=yes
  18598. fi
  18599. fi
  18600. }
  18601. CheckHaikuVideo()
  18602. {
  18603. if test x$enable_video = xyes; then
  18604. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18605. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18606. have_video=yes
  18607. SUMMARY_video="${SUMMARY_video} haiku"
  18608. fi
  18609. }
  18610. CheckCOCOA()
  18611. {
  18612. # Check whether --enable-video-cocoa was given.
  18613. if test "${enable_video_cocoa+set}" = set; then :
  18614. enableval=$enable_video_cocoa;
  18615. else
  18616. enable_video_cocoa=yes
  18617. fi
  18618. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18619. save_CFLAGS="$CFLAGS"
  18620. CFLAGS="$CFLAGS -x objective-c"
  18621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18622. $as_echo_n "checking for Cocoa framework... " >&6; }
  18623. have_cocoa=no
  18624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18625. /* end confdefs.h. */
  18626. #import <Cocoa/Cocoa.h>
  18627. int
  18628. main ()
  18629. {
  18630. ;
  18631. return 0;
  18632. }
  18633. _ACEOF
  18634. if ac_fn_c_try_compile "$LINENO"; then :
  18635. have_cocoa=yes
  18636. fi
  18637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18639. $as_echo "$have_cocoa" >&6; }
  18640. CFLAGS="$save_CFLAGS"
  18641. if test x$have_cocoa = xyes; then
  18642. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18643. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18644. SUMMARY_video="${SUMMARY_video} cocoa"
  18645. have_video=yes
  18646. fi
  18647. fi
  18648. }
  18649. CheckMETAL()
  18650. {
  18651. # Check whether --enable-video-metal was given.
  18652. if test "${enable_video_metal+set}" = set; then :
  18653. enableval=$enable_video_metal;
  18654. else
  18655. enable_video_metal=yes
  18656. fi
  18657. # Check whether --enable-render-metal was given.
  18658. if test "${enable_render_metal+set}" = set; then :
  18659. enableval=$enable_render_metal;
  18660. else
  18661. enable_render_metal=yes
  18662. fi
  18663. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18664. save_CFLAGS="$CFLAGS"
  18665. CFLAGS="$CFLAGS -x objective-c"
  18666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18667. $as_echo_n "checking for Metal framework... " >&6; }
  18668. have_metal=no
  18669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18670. /* end confdefs.h. */
  18671. #import <Cocoa/Cocoa.h>
  18672. #import <Metal/Metal.h>
  18673. #import <QuartzCore/CAMetalLayer.h>
  18674. #if !TARGET_CPU_X86_64
  18675. #error Metal doesn't work on this configuration
  18676. #endif
  18677. int
  18678. main ()
  18679. {
  18680. ;
  18681. return 0;
  18682. }
  18683. _ACEOF
  18684. if ac_fn_c_try_compile "$LINENO"; then :
  18685. have_metal=yes
  18686. fi
  18687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18688. CFLAGS="$save_CFLAGS"
  18689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18690. $as_echo "$have_metal" >&6; }
  18691. if test x$have_metal = xyes; then
  18692. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18693. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18694. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18695. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18696. fi
  18697. SUMMARY_video="${SUMMARY_video} metal"
  18698. else
  18699. enable_video_metal=no
  18700. enable_render_metal=no
  18701. fi
  18702. fi
  18703. }
  18704. CheckDirectFB()
  18705. {
  18706. # Check whether --enable-video-directfb was given.
  18707. if test "${enable_video_directfb+set}" = set; then :
  18708. enableval=$enable_video_directfb;
  18709. else
  18710. enable_video_directfb=no
  18711. fi
  18712. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18713. pkg_failed=no
  18714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5
  18715. $as_echo_n "checking for DIRECTFB... " >&6; }
  18716. if test -n "$DIRECTFB_CFLAGS"; then
  18717. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18718. elif test -n "$PKG_CONFIG"; then
  18719. if test -n "$PKG_CONFIG" && \
  18720. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18721. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18722. ac_status=$?
  18723. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18724. test $ac_status = 0; }; then
  18725. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18726. else
  18727. pkg_failed=yes
  18728. fi
  18729. else
  18730. pkg_failed=untried
  18731. fi
  18732. if test -n "$DIRECTFB_LIBS"; then
  18733. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18734. elif test -n "$PKG_CONFIG"; then
  18735. if test -n "$PKG_CONFIG" && \
  18736. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18737. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18738. ac_status=$?
  18739. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18740. test $ac_status = 0; }; then
  18741. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18742. else
  18743. pkg_failed=yes
  18744. fi
  18745. else
  18746. pkg_failed=untried
  18747. fi
  18748. if test $pkg_failed = yes; then
  18749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18750. $as_echo "no" >&6; }
  18751. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18752. _pkg_short_errors_supported=yes
  18753. else
  18754. _pkg_short_errors_supported=no
  18755. fi
  18756. if test $_pkg_short_errors_supported = yes; then
  18757. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 1.0.0" 2>&1`
  18758. else
  18759. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 1.0.0" 2>&1`
  18760. fi
  18761. # Put the nasty error message in config.log where it belongs
  18762. echo "$DIRECTFB_PKG_ERRORS" >&5
  18763. video_directfb=no
  18764. elif test $pkg_failed = untried; then
  18765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18766. $as_echo "no" >&6; }
  18767. video_directfb=no
  18768. else
  18769. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  18770. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  18771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18772. $as_echo "yes" >&6; }
  18773. video_directfb=yes
  18774. fi
  18775. if test x$video_directfb = xyes; then
  18776. # SuSE 11.1 installs directfb-config without directfb-devel
  18777. save_CPPFLAGS="$CPPFLAGS"
  18778. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18779. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18780. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18781. have_directfb_hdr=yes
  18782. else
  18783. have_directfb_hdr=no
  18784. fi
  18785. CPPFLAGS="$save_CPPFLAGS"
  18786. video_directfb=$have_directfb_hdr
  18787. fi
  18788. if test x$video_directfb = xyes; then
  18789. # Check whether --enable-directfb-shared was given.
  18790. if test "${enable_directfb_shared+set}" = set; then :
  18791. enableval=$enable_directfb_shared;
  18792. else
  18793. enable_directfb_shared=yes
  18794. fi
  18795. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18796. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18797. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18798. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18800. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18801. directfb_shared=no
  18802. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18803. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18805. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18806. if test x$have_loadso != xyes && \
  18807. test x$enable_directfb_shared = xyes; then
  18808. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18809. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18810. fi
  18811. if test x$have_loadso = xyes && \
  18812. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18813. directfb_shared=yes
  18814. echo "-- $directfb_lib_spec -> $directfb_lib"
  18815. cat >>confdefs.h <<_ACEOF
  18816. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18817. _ACEOF
  18818. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18819. else
  18820. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18821. SUMMARY_video="${SUMMARY_video} directfb"
  18822. fi
  18823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18824. $as_echo "$directfb_shared" >&6; }
  18825. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18826. have_video=yes
  18827. fi
  18828. fi
  18829. }
  18830. CheckKMSDRM()
  18831. {
  18832. # Check whether --enable-video-kmsdrm was given.
  18833. if test "${enable_video_kmsdrm+set}" = set; then :
  18834. enableval=$enable_video_kmsdrm;
  18835. else
  18836. enable_video_kmsdrm=no
  18837. fi
  18838. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18839. video_kmsdrm=no
  18840. pkg_failed=no
  18841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
  18842. $as_echo_n "checking for LIBDRM... " >&6; }
  18843. if test -n "$LIBDRM_CFLAGS"; then
  18844. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  18845. elif test -n "$PKG_CONFIG"; then
  18846. if test -n "$PKG_CONFIG" && \
  18847. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18848. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18849. ac_status=$?
  18850. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18851. test $ac_status = 0; }; then
  18852. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.46" 2>/dev/null`
  18853. else
  18854. pkg_failed=yes
  18855. fi
  18856. else
  18857. pkg_failed=untried
  18858. fi
  18859. if test -n "$LIBDRM_LIBS"; then
  18860. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  18861. elif test -n "$PKG_CONFIG"; then
  18862. if test -n "$PKG_CONFIG" && \
  18863. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18864. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18865. ac_status=$?
  18866. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18867. test $ac_status = 0; }; then
  18868. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.46" 2>/dev/null`
  18869. else
  18870. pkg_failed=yes
  18871. fi
  18872. else
  18873. pkg_failed=untried
  18874. fi
  18875. if test $pkg_failed = yes; then
  18876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18877. $as_echo "no" >&6; }
  18878. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18879. _pkg_short_errors_supported=yes
  18880. else
  18881. _pkg_short_errors_supported=no
  18882. fi
  18883. if test $_pkg_short_errors_supported = yes; then
  18884. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.4.46" 2>&1`
  18885. else
  18886. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.4.46" 2>&1`
  18887. fi
  18888. # Put the nasty error message in config.log where it belongs
  18889. echo "$LIBDRM_PKG_ERRORS" >&5
  18890. libdrm_avail=no
  18891. elif test $pkg_failed = untried; then
  18892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18893. $as_echo "no" >&6; }
  18894. libdrm_avail=no
  18895. else
  18896. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  18897. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  18898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18899. $as_echo "yes" >&6; }
  18900. libdrm_avail=yes
  18901. fi
  18902. pkg_failed=no
  18903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGBM" >&5
  18904. $as_echo_n "checking for LIBGBM... " >&6; }
  18905. if test -n "$LIBGBM_CFLAGS"; then
  18906. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  18907. elif test -n "$PKG_CONFIG"; then
  18908. if test -n "$PKG_CONFIG" && \
  18909. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18910. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18911. ac_status=$?
  18912. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18913. test $ac_status = 0; }; then
  18914. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 9.0.0" 2>/dev/null`
  18915. else
  18916. pkg_failed=yes
  18917. fi
  18918. else
  18919. pkg_failed=untried
  18920. fi
  18921. if test -n "$LIBGBM_LIBS"; then
  18922. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  18923. elif test -n "$PKG_CONFIG"; then
  18924. if test -n "$PKG_CONFIG" && \
  18925. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18926. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18927. ac_status=$?
  18928. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18929. test $ac_status = 0; }; then
  18930. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 9.0.0" 2>/dev/null`
  18931. else
  18932. pkg_failed=yes
  18933. fi
  18934. else
  18935. pkg_failed=untried
  18936. fi
  18937. if test $pkg_failed = yes; then
  18938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18939. $as_echo "no" >&6; }
  18940. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18941. _pkg_short_errors_supported=yes
  18942. else
  18943. _pkg_short_errors_supported=no
  18944. fi
  18945. if test $_pkg_short_errors_supported = yes; then
  18946. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gbm >= 9.0.0" 2>&1`
  18947. else
  18948. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors "gbm >= 9.0.0" 2>&1`
  18949. fi
  18950. # Put the nasty error message in config.log where it belongs
  18951. echo "$LIBGBM_PKG_ERRORS" >&5
  18952. libgbm_avail=no
  18953. elif test $pkg_failed = untried; then
  18954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18955. $as_echo "no" >&6; }
  18956. libgbm_avail=no
  18957. else
  18958. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  18959. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  18960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18961. $as_echo "yes" >&6; }
  18962. libgbm_avail=yes
  18963. fi
  18964. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18965. video_kmsdrm=yes
  18966. fi
  18967. if test x$video_kmsdrm = xyes; then
  18968. # Check whether --enable-kmsdrm-shared was given.
  18969. if test "${enable_kmsdrm_shared+set}" = set; then :
  18970. enableval=$enable_kmsdrm_shared;
  18971. else
  18972. enable_kmsdrm_shared=yes
  18973. fi
  18974. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18975. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18976. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18978. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18979. kmsdrm_shared=no
  18980. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18981. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18982. if test x$have_loadso != xyes && \
  18983. test x$enable_kmsdrm_shared = xyes; then
  18984. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18985. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18986. fi
  18987. if test x$have_loadso = xyes && \
  18988. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18989. kmsdrm_shared=yes
  18990. cat >>confdefs.h <<_ACEOF
  18991. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18992. _ACEOF
  18993. cat >>confdefs.h <<_ACEOF
  18994. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18995. _ACEOF
  18996. cat >>confdefs.h <<_ACEOF
  18997. #define HAVE_KMSDRM_SHARED "TRUE"
  18998. _ACEOF
  18999. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19000. else
  19001. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19002. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19003. fi
  19004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19005. $as_echo "$kmsdrm_shared" >&6; }
  19006. have_video=yes
  19007. fi
  19008. fi
  19009. }
  19010. CheckDummyVideo()
  19011. {
  19012. # Check whether --enable-video-dummy was given.
  19013. if test "${enable_video_dummy+set}" = set; then :
  19014. enableval=$enable_video_dummy;
  19015. else
  19016. enable_video_dummy=yes
  19017. fi
  19018. if test x$enable_video_dummy = xyes; then
  19019. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19020. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19021. have_video=yes
  19022. SUMMARY_video="${SUMMARY_video} dummy"
  19023. fi
  19024. }
  19025. CheckQNXVideo()
  19026. {
  19027. if test x$enable_video = xyes; then
  19028. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19029. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19030. have_video=yes
  19031. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19032. SUMMARY_video="${SUMMARY_video} qnx"
  19033. fi
  19034. }
  19035. CheckQNXAudio()
  19036. {
  19037. if test x$enable_audio = xyes; then
  19038. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19039. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19040. have_audio=yes
  19041. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19042. SUMMARY_audio="${SUMMARY_audio} qsa"
  19043. fi
  19044. }
  19045. # Check whether --enable-video-opengl was given.
  19046. if test "${enable_video_opengl+set}" = set; then :
  19047. enableval=$enable_video_opengl;
  19048. else
  19049. enable_video_opengl=yes
  19050. fi
  19051. CheckOpenGLX11()
  19052. {
  19053. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  19055. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  19056. video_opengl=no
  19057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19058. /* end confdefs.h. */
  19059. #include <GL/gl.h>
  19060. #include <GL/glx.h>
  19061. int
  19062. main ()
  19063. {
  19064. ;
  19065. return 0;
  19066. }
  19067. _ACEOF
  19068. if ac_fn_c_try_compile "$LINENO"; then :
  19069. video_opengl=yes
  19070. fi
  19071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19073. $as_echo "$video_opengl" >&6; }
  19074. if test x$video_opengl = xyes; then
  19075. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19076. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19077. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19078. SUMMARY_video="${SUMMARY_video} opengl"
  19079. fi
  19080. fi
  19081. }
  19082. # Check whether --enable-video-opengles was given.
  19083. if test "${enable_video_opengles+set}" = set; then :
  19084. enableval=$enable_video_opengles;
  19085. else
  19086. enable_video_opengles=yes
  19087. fi
  19088. # Check whether --enable-video-opengles1 was given.
  19089. if test "${enable_video_opengles1+set}" = set; then :
  19090. enableval=$enable_video_opengles1;
  19091. else
  19092. enable_video_opengles1=yes
  19093. fi
  19094. # Check whether --enable-video-opengles2 was given.
  19095. if test "${enable_video_opengles2+set}" = set; then :
  19096. enableval=$enable_video_opengles2;
  19097. else
  19098. enable_video_opengles2=yes
  19099. fi
  19100. CheckOpenGLESX11()
  19101. {
  19102. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19104. $as_echo_n "checking for EGL support... " >&6; }
  19105. video_opengl_egl=no
  19106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19107. /* end confdefs.h. */
  19108. #define LINUX
  19109. #define EGL_API_FB
  19110. #define MESA_EGL_NO_X11_HEADERS
  19111. #include <EGL/egl.h>
  19112. #include <EGL/eglext.h>
  19113. int
  19114. main ()
  19115. {
  19116. ;
  19117. return 0;
  19118. }
  19119. _ACEOF
  19120. if ac_fn_c_try_compile "$LINENO"; then :
  19121. video_opengl_egl=yes
  19122. fi
  19123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19125. $as_echo "$video_opengl_egl" >&6; }
  19126. if test x$video_opengl_egl = xyes; then
  19127. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19128. fi
  19129. if test x$enable_video_opengles1 = xyes; then
  19130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19131. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19132. video_opengles_v1=no
  19133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19134. /* end confdefs.h. */
  19135. #include <GLES/gl.h>
  19136. #include <GLES/glext.h>
  19137. int
  19138. main ()
  19139. {
  19140. ;
  19141. return 0;
  19142. }
  19143. _ACEOF
  19144. if ac_fn_c_try_compile "$LINENO"; then :
  19145. video_opengles_v1=yes
  19146. fi
  19147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19149. $as_echo "$video_opengles_v1" >&6; }
  19150. if test x$video_opengles_v1 = xyes; then
  19151. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19152. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19153. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19154. fi
  19155. fi
  19156. if test x$enable_video_opengles2 = xyes; then
  19157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19158. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19159. video_opengles_v2=no
  19160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19161. /* end confdefs.h. */
  19162. #include <GLES2/gl2.h>
  19163. #include <GLES2/gl2ext.h>
  19164. int
  19165. main ()
  19166. {
  19167. ;
  19168. return 0;
  19169. }
  19170. _ACEOF
  19171. if ac_fn_c_try_compile "$LINENO"; then :
  19172. video_opengles_v2=yes
  19173. fi
  19174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19176. $as_echo "$video_opengles_v2" >&6; }
  19177. if test x$video_opengles_v2 = xyes; then
  19178. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19179. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19180. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19181. fi
  19182. fi
  19183. fi
  19184. }
  19185. CheckWINDOWSGL()
  19186. {
  19187. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19188. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19189. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19190. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19191. SUMMARY_video="${SUMMARY_video} opengl"
  19192. fi
  19193. }
  19194. CheckWINDOWSGLES()
  19195. {
  19196. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19198. $as_echo_n "checking for EGL support... " >&6; }
  19199. video_opengl_egl=no
  19200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19201. /* end confdefs.h. */
  19202. #include <EGL/egl.h>
  19203. int
  19204. main ()
  19205. {
  19206. ;
  19207. return 0;
  19208. }
  19209. _ACEOF
  19210. if ac_fn_c_try_compile "$LINENO"; then :
  19211. video_opengl_egl=yes
  19212. fi
  19213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19215. $as_echo "$video_opengl_egl" >&6; }
  19216. if test x$video_opengl_egl = xyes; then
  19217. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19218. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19219. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19220. fi
  19221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19222. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19223. video_opengles_v2=no
  19224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19225. /* end confdefs.h. */
  19226. #include <GLES2/gl2.h>
  19227. #include <GLES2/gl2ext.h>
  19228. int
  19229. main ()
  19230. {
  19231. ;
  19232. return 0;
  19233. }
  19234. _ACEOF
  19235. if ac_fn_c_try_compile "$LINENO"; then :
  19236. video_opengles_v2=yes
  19237. fi
  19238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19240. $as_echo "$video_opengles_v2" >&6; }
  19241. if test x$video_opengles_v2 = xyes; then
  19242. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19243. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19244. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19245. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19246. fi
  19247. fi
  19248. }
  19249. CheckHaikuGL()
  19250. {
  19251. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19252. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19253. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19254. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19255. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19256. SUMMARY_video="${SUMMARY_video} opengl"
  19257. fi
  19258. }
  19259. CheckMacGL()
  19260. {
  19261. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19262. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19263. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19264. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19265. SUMMARY_video="${SUMMARY_video} opengl"
  19266. fi
  19267. }
  19268. CheckMacGLES()
  19269. {
  19270. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19271. video_opengl_egl=yes
  19272. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19273. video_opengles_v2=yes
  19274. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19275. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19276. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19277. fi
  19278. }
  19279. CheckEmscriptenGLES()
  19280. {
  19281. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19283. $as_echo_n "checking for EGL support... " >&6; }
  19284. video_opengl_egl=no
  19285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19286. /* end confdefs.h. */
  19287. #include <EGL/egl.h>
  19288. int
  19289. main ()
  19290. {
  19291. ;
  19292. return 0;
  19293. }
  19294. _ACEOF
  19295. if ac_fn_c_try_compile "$LINENO"; then :
  19296. video_opengl_egl=yes
  19297. fi
  19298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19300. $as_echo "$video_opengl_egl" >&6; }
  19301. if test x$video_opengl_egl = xyes; then
  19302. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19303. fi
  19304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19305. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19306. video_opengles_v2=no
  19307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19308. /* end confdefs.h. */
  19309. #include <GLES2/gl2.h>
  19310. #include <GLES2/gl2ext.h>
  19311. int
  19312. main ()
  19313. {
  19314. ;
  19315. return 0;
  19316. }
  19317. _ACEOF
  19318. if ac_fn_c_try_compile "$LINENO"; then :
  19319. video_opengles_v2=yes
  19320. fi
  19321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19323. $as_echo "$video_opengles_v2" >&6; }
  19324. if test x$video_opengles_v2 = xyes; then
  19325. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19326. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19327. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19328. fi
  19329. fi
  19330. }
  19331. # Check whether --enable-video-vulkan was given.
  19332. if test "${enable_video_vulkan+set}" = set; then :
  19333. enableval=$enable_video_vulkan;
  19334. else
  19335. enable_video_vulkan=yes
  19336. fi
  19337. CheckVulkan()
  19338. {
  19339. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19340. case "$host" in
  19341. *-*-android*)
  19342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19343. /* end confdefs.h. */
  19344. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19345. #error Vulkan doesn't work on this configuration
  19346. #endif
  19347. int
  19348. main ()
  19349. {
  19350. ;
  19351. return 0;
  19352. }
  19353. _ACEOF
  19354. if ac_fn_c_try_compile "$LINENO"; then :
  19355. else
  19356. enable_video_vulkan=no
  19357. fi
  19358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19359. ;;
  19360. *-*-darwin*)
  19361. save_CFLAGS="$CFLAGS"
  19362. CFLAGS="$CFLAGS -x objective-c"
  19363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19364. /* end confdefs.h. */
  19365. #include <Cocoa/Cocoa.h>
  19366. #include <Metal/Metal.h>
  19367. #include <QuartzCore/CAMetalLayer.h>
  19368. #if !TARGET_CPU_X86_64
  19369. #error Vulkan doesn't work on this configuration
  19370. #endif
  19371. int
  19372. main ()
  19373. {
  19374. ;
  19375. return 0;
  19376. }
  19377. _ACEOF
  19378. if ac_fn_c_try_compile "$LINENO"; then :
  19379. else
  19380. enable_video_vulkan=no
  19381. fi
  19382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19383. CFLAGS="$save_CFLAGS"
  19384. ;;
  19385. *)
  19386. ;;
  19387. esac
  19388. if test x$enable_video_vulkan = xno; then
  19389. # For reasons I am totally unable to see, I get an undefined macro error if
  19390. # I put this in the AC_TRY_COMPILE.
  19391. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19392. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19393. fi
  19394. fi
  19395. if test x$enable_video_vulkan = xyes; then
  19396. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19397. SUMMARY_video="${SUMMARY_video} vulkan"
  19398. fi
  19399. }
  19400. CheckInputEvents()
  19401. {
  19402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19403. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19404. use_input_events=no
  19405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19406. /* end confdefs.h. */
  19407. #include <linux/input.h>
  19408. int
  19409. main ()
  19410. {
  19411. #ifndef EVIOCGNAME
  19412. #error EVIOCGNAME() ioctl not available
  19413. #endif
  19414. ;
  19415. return 0;
  19416. }
  19417. _ACEOF
  19418. if ac_fn_c_try_compile "$LINENO"; then :
  19419. use_input_events=yes
  19420. fi
  19421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19423. $as_echo "$use_input_events" >&6; }
  19424. if test x$use_input_events = xyes; then
  19425. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19426. SUMMARY_input="${SUMMARY_input} linuxev"
  19427. fi
  19428. }
  19429. CheckInputKD()
  19430. {
  19431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19432. $as_echo_n "checking for Linux kd.h... " >&6; }
  19433. use_input_kd=no
  19434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19435. /* end confdefs.h. */
  19436. #include <linux/kd.h>
  19437. #include <linux/keyboard.h>
  19438. int
  19439. main ()
  19440. {
  19441. struct kbentry kbe;
  19442. kbe.kb_table = KG_CTRL;
  19443. ioctl(0, KDGKBENT, &kbe);
  19444. ;
  19445. return 0;
  19446. }
  19447. _ACEOF
  19448. if ac_fn_c_try_compile "$LINENO"; then :
  19449. use_input_kd=yes
  19450. fi
  19451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19453. $as_echo "$use_input_kd" >&6; }
  19454. if test x$use_input_kd = xyes; then
  19455. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19456. SUMMARY_input="${SUMMARY_input} linuxkd"
  19457. fi
  19458. }
  19459. CheckLibUDev()
  19460. {
  19461. # Check whether --enable-libudev was given.
  19462. if test "${enable_libudev+set}" = set; then :
  19463. enableval=$enable_libudev;
  19464. else
  19465. enable_libudev=yes
  19466. fi
  19467. if test x$enable_libudev = xyes; then
  19468. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19469. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19470. have_libudev_h_hdr=yes
  19471. else
  19472. have_libudev_h_hdr=no
  19473. fi
  19474. if test x$have_libudev_h_hdr = xyes; then
  19475. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19476. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19477. if test x$udev_lib != x; then
  19478. echo "-- dynamic udev -> $udev_lib"
  19479. cat >>confdefs.h <<_ACEOF
  19480. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19481. _ACEOF
  19482. fi
  19483. fi
  19484. fi
  19485. }
  19486. CheckDBus()
  19487. {
  19488. # Check whether --enable-dbus was given.
  19489. if test "${enable_dbus+set}" = set; then :
  19490. enableval=$enable_dbus;
  19491. else
  19492. enable_dbus=yes
  19493. fi
  19494. if test x$enable_dbus = xyes; then
  19495. pkg_failed=no
  19496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
  19497. $as_echo_n "checking for DBUS... " >&6; }
  19498. if test -n "$DBUS_CFLAGS"; then
  19499. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19500. elif test -n "$PKG_CONFIG"; then
  19501. if test -n "$PKG_CONFIG" && \
  19502. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19503. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19504. ac_status=$?
  19505. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19506. test $ac_status = 0; }; then
  19507. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19508. else
  19509. pkg_failed=yes
  19510. fi
  19511. else
  19512. pkg_failed=untried
  19513. fi
  19514. if test -n "$DBUS_LIBS"; then
  19515. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19516. elif test -n "$PKG_CONFIG"; then
  19517. if test -n "$PKG_CONFIG" && \
  19518. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19519. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19520. ac_status=$?
  19521. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19522. test $ac_status = 0; }; then
  19523. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19524. else
  19525. pkg_failed=yes
  19526. fi
  19527. else
  19528. pkg_failed=untried
  19529. fi
  19530. if test $pkg_failed = yes; then
  19531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19532. $as_echo "no" >&6; }
  19533. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19534. _pkg_short_errors_supported=yes
  19535. else
  19536. _pkg_short_errors_supported=no
  19537. fi
  19538. if test $_pkg_short_errors_supported = yes; then
  19539. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1" 2>&1`
  19540. else
  19541. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1" 2>&1`
  19542. fi
  19543. # Put the nasty error message in config.log where it belongs
  19544. echo "$DBUS_PKG_ERRORS" >&5
  19545. have_dbus=no
  19546. elif test $pkg_failed = untried; then
  19547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19548. $as_echo "no" >&6; }
  19549. have_dbus=no
  19550. else
  19551. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19552. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19554. $as_echo "yes" >&6; }
  19555. have_dbus=yes
  19556. fi
  19557. save_CFLAGS="$CFLAGS"
  19558. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19559. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19560. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19561. have_dbus_dbus_h_hdr=yes
  19562. else
  19563. have_dbus_dbus_h_hdr=no
  19564. fi
  19565. CFLAGS="$save_CFLAGS"
  19566. if test x$have_dbus_dbus_h_hdr = xyes; then
  19567. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19568. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19569. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19570. fi
  19571. fi
  19572. }
  19573. CheckIME()
  19574. {
  19575. # Check whether --enable-ime was given.
  19576. if test "${enable_ime+set}" = set; then :
  19577. enableval=$enable_ime;
  19578. else
  19579. enable_ime=yes
  19580. fi
  19581. if test x$enable_ime = xyes; then
  19582. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19583. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19584. fi
  19585. }
  19586. CheckIBus()
  19587. {
  19588. # Check whether --enable-ibus was given.
  19589. if test "${enable_ibus+set}" = set; then :
  19590. enableval=$enable_ibus;
  19591. else
  19592. enable_ibus=yes
  19593. fi
  19594. if test x$enable_ibus = xyes; then
  19595. pkg_failed=no
  19596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
  19597. $as_echo_n "checking for IBUS... " >&6; }
  19598. if test -n "$IBUS_CFLAGS"; then
  19599. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19600. elif test -n "$PKG_CONFIG"; then
  19601. if test -n "$PKG_CONFIG" && \
  19602. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19603. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19604. ac_status=$?
  19605. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19606. test $ac_status = 0; }; then
  19607. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19608. else
  19609. pkg_failed=yes
  19610. fi
  19611. else
  19612. pkg_failed=untried
  19613. fi
  19614. if test -n "$IBUS_LIBS"; then
  19615. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19616. elif test -n "$PKG_CONFIG"; then
  19617. if test -n "$PKG_CONFIG" && \
  19618. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19619. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19620. ac_status=$?
  19621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19622. test $ac_status = 0; }; then
  19623. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  19624. else
  19625. pkg_failed=yes
  19626. fi
  19627. else
  19628. pkg_failed=untried
  19629. fi
  19630. if test $pkg_failed = yes; then
  19631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19632. $as_echo "no" >&6; }
  19633. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19634. _pkg_short_errors_supported=yes
  19635. else
  19636. _pkg_short_errors_supported=no
  19637. fi
  19638. if test $_pkg_short_errors_supported = yes; then
  19639. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ibus-1.0" 2>&1`
  19640. else
  19641. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ibus-1.0" 2>&1`
  19642. fi
  19643. # Put the nasty error message in config.log where it belongs
  19644. echo "$IBUS_PKG_ERRORS" >&5
  19645. have_ibus=no
  19646. elif test $pkg_failed = untried; then
  19647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19648. $as_echo "no" >&6; }
  19649. have_ibus=no
  19650. else
  19651. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  19652. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  19653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19654. $as_echo "yes" >&6; }
  19655. have_ibus=yes
  19656. fi
  19657. save_CFLAGS="$CFLAGS"
  19658. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19659. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19660. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19661. have_ibus_ibus_h_hdr=yes
  19662. else
  19663. have_ibus_ibus_h_hdr=no
  19664. fi
  19665. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19666. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19667. have_inotify_inotify_h_hdr=yes
  19668. else
  19669. have_inotify_inotify_h_hdr=no
  19670. fi
  19671. CFLAGS="$save_CFLAGS"
  19672. if test x$have_ibus_ibus_h_hdr = xyes; then
  19673. if test x$enable_ime != xyes; then
  19674. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19675. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19676. have_ibus_ibus_h_hdr=no
  19677. elif test x$enable_dbus != xyes; then
  19678. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19679. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19680. have_ibus_ibus_h_hdr=no
  19681. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19682. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19683. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19684. have_ibus_ibus_h_hdr=no
  19685. else
  19686. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19687. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19688. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19689. fi
  19690. fi
  19691. fi
  19692. }
  19693. CheckFcitx()
  19694. {
  19695. # Check whether --enable-fcitx was given.
  19696. if test "${enable_fcitx+set}" = set; then :
  19697. enableval=$enable_fcitx;
  19698. else
  19699. enable_fcitx=yes
  19700. fi
  19701. if test x$enable_fcitx = xyes; then
  19702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  19703. $as_echo_n "checking for fcitx support... " >&6; }
  19704. have_fcitx=no
  19705. if test x$enable_ime != xyes; then
  19706. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19707. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19708. elif test x$have_dbus_dbus_h_hdr != xyes; then
  19709. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19710. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19711. else
  19712. have_fcitx=yes
  19713. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  19714. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19715. fi
  19716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  19717. $as_echo "$have_fcitx" >&6; }
  19718. fi
  19719. }
  19720. CheckTslib()
  19721. {
  19722. # Check whether --enable-input-tslib was given.
  19723. if test "${enable_input_tslib+set}" = set; then :
  19724. enableval=$enable_input_tslib;
  19725. else
  19726. enable_input_tslib=yes
  19727. fi
  19728. if test x$enable_input_tslib = xyes; then
  19729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19730. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19731. enable_input_tslib=no
  19732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19733. /* end confdefs.h. */
  19734. #include "tslib.h"
  19735. int
  19736. main ()
  19737. {
  19738. ;
  19739. return 0;
  19740. }
  19741. _ACEOF
  19742. if ac_fn_c_try_compile "$LINENO"; then :
  19743. enable_input_tslib=yes
  19744. fi
  19745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19747. $as_echo "$enable_input_tslib" >&6; }
  19748. if test x$enable_input_tslib = xyes; then
  19749. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19750. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19751. SUMMARY_input="${SUMMARY_input} ts"
  19752. fi
  19753. fi
  19754. }
  19755. CheckPTHREAD()
  19756. {
  19757. # Check whether --enable-pthreads was given.
  19758. if test "${enable_pthreads+set}" = set; then :
  19759. enableval=$enable_pthreads;
  19760. else
  19761. enable_pthreads=yes
  19762. fi
  19763. # Check whether --enable-pthread-sem was given.
  19764. if test "${enable_pthread_sem+set}" = set; then :
  19765. enableval=$enable_pthread_sem;
  19766. else
  19767. enable_pthread_sem=yes
  19768. fi
  19769. case "$host" in
  19770. *-*-android*)
  19771. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19772. pthread_lib=""
  19773. ;;
  19774. *-*-linux*|*-*-uclinux*)
  19775. pthread_cflags="-D_REENTRANT"
  19776. pthread_lib="-lpthread"
  19777. ;;
  19778. *-*-bsdi*)
  19779. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19780. pthread_lib=""
  19781. ;;
  19782. *-*-darwin*)
  19783. pthread_cflags="-D_THREAD_SAFE"
  19784. # causes Carbon.p complaints?
  19785. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19786. ;;
  19787. *-*-freebsd*|*-*-dragonfly*)
  19788. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19789. pthread_lib="-pthread"
  19790. ;;
  19791. *-*-netbsd*)
  19792. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19793. pthread_lib="-lpthread"
  19794. ;;
  19795. *-*-openbsd*)
  19796. pthread_cflags="-D_REENTRANT"
  19797. pthread_lib="-pthread"
  19798. ;;
  19799. *-*-solaris2.9)
  19800. # From Solaris 9+, posix4's preferred name is rt.
  19801. pthread_cflags="-D_REENTRANT"
  19802. pthread_lib="-lpthread -lrt"
  19803. ;;
  19804. *-*-solaris2.10)
  19805. # Solaris 10+ merged pthread into libc.
  19806. pthread_cflags="-D_REENTRANT"
  19807. pthread_lib="-lrt"
  19808. ;;
  19809. *-*-solaris*)
  19810. # Solaris 11+ merged rt into libc.
  19811. pthread_cflags="-D_REENTRANT"
  19812. pthread_lib=""
  19813. ;;
  19814. *-*-sysv5*)
  19815. pthread_cflags="-D_REENTRANT -Kthread"
  19816. pthread_lib=""
  19817. ;;
  19818. *-*-aix*)
  19819. pthread_cflags="-D_REENTRANT -mthreads"
  19820. pthread_lib="-lpthread"
  19821. ;;
  19822. *-*-hpux11*)
  19823. pthread_cflags="-D_REENTRANT"
  19824. pthread_lib="-L/usr/lib -lpthread"
  19825. ;;
  19826. *-*-haiku*)
  19827. pthread_cflags="-D_REENTRANT"
  19828. pthread_lib=""
  19829. ;;
  19830. *-*-nto*)
  19831. pthread_cflags="-D_REENTRANT"
  19832. pthread_lib=""
  19833. ;;
  19834. *)
  19835. pthread_cflags="-D_REENTRANT"
  19836. pthread_lib="-lpthread"
  19837. ;;
  19838. esac
  19839. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19840. # Save the original compiler flags and libraries
  19841. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19842. # Add the pthread compiler flags and libraries
  19843. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19844. # Check to see if we have pthread support on this system
  19845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19846. $as_echo_n "checking for pthreads... " >&6; }
  19847. use_pthreads=no
  19848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19849. /* end confdefs.h. */
  19850. #include <pthread.h>
  19851. int
  19852. main ()
  19853. {
  19854. pthread_attr_t type;
  19855. pthread_attr_init(&type);
  19856. ;
  19857. return 0;
  19858. }
  19859. _ACEOF
  19860. if ac_fn_c_try_link "$LINENO"; then :
  19861. use_pthreads=yes
  19862. fi
  19863. rm -f core conftest.err conftest.$ac_objext \
  19864. conftest$ac_exeext conftest.$ac_ext
  19865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19866. $as_echo "$use_pthreads" >&6; }
  19867. # Restore the compiler flags and libraries
  19868. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19869. # Do futher testing if we have pthread support...
  19870. if test x$use_pthreads = xyes; then
  19871. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19872. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19873. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19874. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19875. # Save the original compiler flags and libraries
  19876. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19877. # Add the pthread compiler flags and libraries
  19878. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19879. # Check to see if recursive mutexes are available
  19880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19881. $as_echo_n "checking for recursive mutexes... " >&6; }
  19882. has_recursive_mutexes=no
  19883. if test x$has_recursive_mutexes = xno; then
  19884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19885. /* end confdefs.h. */
  19886. #define _GNU_SOURCE 1
  19887. #include <pthread.h>
  19888. int
  19889. main ()
  19890. {
  19891. pthread_mutexattr_t attr;
  19892. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19893. ;
  19894. return 0;
  19895. }
  19896. _ACEOF
  19897. if ac_fn_c_try_link "$LINENO"; then :
  19898. has_recursive_mutexes=yes
  19899. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19900. fi
  19901. rm -f core conftest.err conftest.$ac_objext \
  19902. conftest$ac_exeext conftest.$ac_ext
  19903. fi
  19904. if test x$has_recursive_mutexes = xno; then
  19905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19906. /* end confdefs.h. */
  19907. #define _GNU_SOURCE 1
  19908. #include <pthread.h>
  19909. int
  19910. main ()
  19911. {
  19912. pthread_mutexattr_t attr;
  19913. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19914. ;
  19915. return 0;
  19916. }
  19917. _ACEOF
  19918. if ac_fn_c_try_link "$LINENO"; then :
  19919. has_recursive_mutexes=yes
  19920. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19921. fi
  19922. rm -f core conftest.err conftest.$ac_objext \
  19923. conftest$ac_exeext conftest.$ac_ext
  19924. fi
  19925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19926. $as_echo "$has_recursive_mutexes" >&6; }
  19927. # Check to see if pthread semaphore support is missing
  19928. if test x$enable_pthread_sem = xyes; then
  19929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19930. $as_echo_n "checking for pthread semaphores... " >&6; }
  19931. have_pthread_sem=no
  19932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19933. /* end confdefs.h. */
  19934. #include <pthread.h>
  19935. #include <semaphore.h>
  19936. int
  19937. main ()
  19938. {
  19939. ;
  19940. return 0;
  19941. }
  19942. _ACEOF
  19943. if ac_fn_c_try_compile "$LINENO"; then :
  19944. have_pthread_sem=yes
  19945. fi
  19946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19948. $as_echo "$have_pthread_sem" >&6; }
  19949. fi
  19950. if test x$have_pthread_sem = xyes; then
  19951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19952. $as_echo_n "checking for sem_timedwait... " >&6; }
  19953. have_sem_timedwait=no
  19954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19955. /* end confdefs.h. */
  19956. #include <pthread.h>
  19957. #include <semaphore.h>
  19958. int
  19959. main ()
  19960. {
  19961. sem_timedwait(NULL, NULL);
  19962. ;
  19963. return 0;
  19964. }
  19965. _ACEOF
  19966. if ac_fn_c_try_link "$LINENO"; then :
  19967. have_sem_timedwait=yes
  19968. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19969. fi
  19970. rm -f core conftest.err conftest.$ac_objext \
  19971. conftest$ac_exeext conftest.$ac_ext
  19972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19973. $as_echo "$have_sem_timedwait" >&6; }
  19974. fi
  19975. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19976. "
  19977. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19978. have_pthread_np_h=yes
  19979. else
  19980. have_pthread_np_h=no
  19981. fi
  19982. if test x$have_pthread_np_h = xyes; then
  19983. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19984. fi
  19985. # Check to see if pthread naming is available
  19986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19987. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19989. /* end confdefs.h. */
  19990. /* Override any GCC internal prototype to avoid an error.
  19991. Use char because int might match the return type of a GCC
  19992. builtin and then its argument prototype would still apply. */
  19993. #ifdef __cplusplus
  19994. extern "C"
  19995. #endif
  19996. char pthread_setname_np ();
  19997. int
  19998. main ()
  19999. {
  20000. return pthread_setname_np ();
  20001. ;
  20002. return 0;
  20003. }
  20004. _ACEOF
  20005. if ac_fn_c_try_link "$LINENO"; then :
  20006. has_pthread_setname_np=yes
  20007. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20008. else
  20009. has_pthread_setname_np=no
  20010. fi
  20011. rm -f core conftest.err conftest.$ac_objext \
  20012. conftest$ac_exeext conftest.$ac_ext
  20013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20014. $as_echo "$has_pthread_setname_np" >&6; }
  20015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20016. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20018. /* end confdefs.h. */
  20019. /* Override any GCC internal prototype to avoid an error.
  20020. Use char because int might match the return type of a GCC
  20021. builtin and then its argument prototype would still apply. */
  20022. #ifdef __cplusplus
  20023. extern "C"
  20024. #endif
  20025. char pthread_set_name_np ();
  20026. int
  20027. main ()
  20028. {
  20029. return pthread_set_name_np ();
  20030. ;
  20031. return 0;
  20032. }
  20033. _ACEOF
  20034. if ac_fn_c_try_link "$LINENO"; then :
  20035. has_pthread_set_name_np=yes
  20036. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20037. else
  20038. has_pthread_set_name_np=no
  20039. fi
  20040. rm -f core conftest.err conftest.$ac_objext \
  20041. conftest$ac_exeext conftest.$ac_ext
  20042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20043. $as_echo "$has_pthread_set_name_np" >&6; }
  20044. # Restore the compiler flags and libraries
  20045. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20046. # Basic thread creation functions
  20047. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20048. # Semaphores
  20049. # We can fake these with mutexes and condition variables if necessary
  20050. if test x$have_pthread_sem = xyes; then
  20051. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20052. else
  20053. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20054. fi
  20055. # Mutexes
  20056. # We can fake these with semaphores if necessary
  20057. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20058. # Condition variables
  20059. # We can fake these with semaphores and mutexes if necessary
  20060. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20061. # Thread local storage
  20062. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20063. have_threads=yes
  20064. fi
  20065. fi
  20066. }
  20067. CheckWINDOWS()
  20068. {
  20069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20070. $as_echo_n "checking Windows compiler... " >&6; }
  20071. have_win32_gcc=no
  20072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20073. /* end confdefs.h. */
  20074. #include <windows.h>
  20075. int
  20076. main ()
  20077. {
  20078. ;
  20079. return 0;
  20080. }
  20081. _ACEOF
  20082. if ac_fn_c_try_compile "$LINENO"; then :
  20083. have_win32_gcc=yes
  20084. fi
  20085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20087. $as_echo "$have_win32_gcc" >&6; }
  20088. if test x$have_win32_gcc != xyes; then
  20089. as_fn_error $? "
  20090. *** Your compiler ($CC) does not produce Windows executables!
  20091. " "$LINENO" 5
  20092. fi
  20093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20094. $as_echo_n "checking Windows CE... " >&6; }
  20095. have_wince=no
  20096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20097. /* end confdefs.h. */
  20098. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20099. #error This is not Windows CE
  20100. #endif
  20101. int
  20102. main ()
  20103. {
  20104. ;
  20105. return 0;
  20106. }
  20107. _ACEOF
  20108. if ac_fn_c_try_compile "$LINENO"; then :
  20109. have_wince=yes
  20110. as_fn_error $? "
  20111. *** Sorry, Windows CE is no longer supported.
  20112. " "$LINENO" 5
  20113. fi
  20114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20116. $as_echo "$have_wince" >&6; }
  20117. # This fixes Windows stack alignment with newer GCC
  20118. CheckStackBoundary
  20119. }
  20120. CheckDIRECTX()
  20121. {
  20122. # Check whether --enable-directx was given.
  20123. if test "${enable_directx+set}" = set; then :
  20124. enableval=$enable_directx;
  20125. else
  20126. enable_directx=yes
  20127. fi
  20128. if test x$enable_directx = xyes; then
  20129. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20130. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20131. have_d3d=yes
  20132. fi
  20133. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20134. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20135. have_d3d11=yes
  20136. fi
  20137. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20138. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20139. have_ddraw=yes
  20140. fi
  20141. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20142. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20143. have_dsound=yes
  20144. fi
  20145. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20146. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20147. have_dinput=yes
  20148. fi
  20149. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20150. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20151. have_dxgi=yes
  20152. fi
  20153. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20154. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20155. have_xinput=yes
  20156. fi
  20157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20158. /* end confdefs.h. */
  20159. #include <windows.h>
  20160. #include <xinput.h>
  20161. XINPUT_GAMEPAD_EX x1;
  20162. int
  20163. main ()
  20164. {
  20165. ;
  20166. return 0;
  20167. }
  20168. _ACEOF
  20169. if ac_fn_c_try_compile "$LINENO"; then :
  20170. have_xinput_gamepadex=yes
  20171. fi
  20172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20174. /* end confdefs.h. */
  20175. #include <windows.h>
  20176. #include <xinput.h>
  20177. XINPUT_STATE_EX s1;
  20178. int
  20179. main ()
  20180. {
  20181. ;
  20182. return 0;
  20183. }
  20184. _ACEOF
  20185. if ac_fn_c_try_compile "$LINENO"; then :
  20186. have_xinput_stateex=yes
  20187. fi
  20188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20189. if test x$have_ddraw = xyes; then
  20190. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20191. fi
  20192. if test x$have_dinput = xyes; then
  20193. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20194. fi
  20195. if test x$have_dsound = xyes; then
  20196. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20197. fi
  20198. if test x$have_dxgi = xyes; then
  20199. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20200. fi
  20201. if test x$have_xinput = xyes; then
  20202. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20203. fi
  20204. if test x$have_xinput_gamepadex = xyes; then
  20205. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20206. fi
  20207. if test x$have_xinput_stateex = xyes; then
  20208. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20209. fi
  20210. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20211. # FIXME: ...so force it off for now.
  20212. case "$host" in
  20213. *-*-cygwin*)
  20214. have_dinput=false
  20215. ;;
  20216. esac
  20217. fi
  20218. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20219. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20220. have_wasapi=yes
  20221. fi
  20222. if test x$have_wasapi = xyes; then
  20223. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20224. fi
  20225. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20226. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20227. else
  20228. have_wasapi=no
  20229. fi
  20230. if test x$have_wasapi = xyes; then
  20231. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20232. fi
  20233. # Check whether --enable-wasapi was given.
  20234. if test "${enable_wasapi+set}" = set; then :
  20235. enableval=$enable_wasapi;
  20236. else
  20237. enable_wasapi=yes
  20238. fi
  20239. }
  20240. CheckDLOPEN()
  20241. {
  20242. # Check whether --enable-sdl-dlopen was given.
  20243. if test "${enable_sdl_dlopen+set}" = set; then :
  20244. enableval=$enable_sdl_dlopen;
  20245. else
  20246. enable_sdl_dlopen=yes
  20247. fi
  20248. if test x$enable_sdl_dlopen = xyes; then
  20249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20250. $as_echo_n "checking for dlopen... " >&6; }
  20251. have_dlopen=no
  20252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20253. /* end confdefs.h. */
  20254. #include <dlfcn.h>
  20255. int
  20256. main ()
  20257. {
  20258. void *handle = dlopen("", RTLD_NOW);
  20259. const char *loaderror = (char *) dlerror();
  20260. ;
  20261. return 0;
  20262. }
  20263. _ACEOF
  20264. if ac_fn_c_try_compile "$LINENO"; then :
  20265. have_dlopen=yes
  20266. fi
  20267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20269. $as_echo "$have_dlopen" >&6; }
  20270. if test x$have_dlopen = xyes; then
  20271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20272. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20273. if ${ac_cv_lib_c_dlopen+:} false; then :
  20274. $as_echo_n "(cached) " >&6
  20275. else
  20276. ac_check_lib_save_LIBS=$LIBS
  20277. LIBS="-lc $LIBS"
  20278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20279. /* end confdefs.h. */
  20280. /* Override any GCC internal prototype to avoid an error.
  20281. Use char because int might match the return type of a GCC
  20282. builtin and then its argument prototype would still apply. */
  20283. #ifdef __cplusplus
  20284. extern "C"
  20285. #endif
  20286. char dlopen ();
  20287. int
  20288. main ()
  20289. {
  20290. return dlopen ();
  20291. ;
  20292. return 0;
  20293. }
  20294. _ACEOF
  20295. if ac_fn_c_try_link "$LINENO"; then :
  20296. ac_cv_lib_c_dlopen=yes
  20297. else
  20298. ac_cv_lib_c_dlopen=no
  20299. fi
  20300. rm -f core conftest.err conftest.$ac_objext \
  20301. conftest$ac_exeext conftest.$ac_ext
  20302. LIBS=$ac_check_lib_save_LIBS
  20303. fi
  20304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20305. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20306. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20307. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20308. else
  20309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20310. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20311. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20312. $as_echo_n "(cached) " >&6
  20313. else
  20314. ac_check_lib_save_LIBS=$LIBS
  20315. LIBS="-ldl $LIBS"
  20316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20317. /* end confdefs.h. */
  20318. /* Override any GCC internal prototype to avoid an error.
  20319. Use char because int might match the return type of a GCC
  20320. builtin and then its argument prototype would still apply. */
  20321. #ifdef __cplusplus
  20322. extern "C"
  20323. #endif
  20324. char dlopen ();
  20325. int
  20326. main ()
  20327. {
  20328. return dlopen ();
  20329. ;
  20330. return 0;
  20331. }
  20332. _ACEOF
  20333. if ac_fn_c_try_link "$LINENO"; then :
  20334. ac_cv_lib_dl_dlopen=yes
  20335. else
  20336. ac_cv_lib_dl_dlopen=no
  20337. fi
  20338. rm -f core conftest.err conftest.$ac_objext \
  20339. conftest$ac_exeext conftest.$ac_ext
  20340. LIBS=$ac_check_lib_save_LIBS
  20341. fi
  20342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20343. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20344. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20345. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20346. else
  20347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20348. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20349. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20350. $as_echo_n "(cached) " >&6
  20351. else
  20352. ac_check_lib_save_LIBS=$LIBS
  20353. LIBS="-lltdl $LIBS"
  20354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20355. /* end confdefs.h. */
  20356. /* Override any GCC internal prototype to avoid an error.
  20357. Use char because int might match the return type of a GCC
  20358. builtin and then its argument prototype would still apply. */
  20359. #ifdef __cplusplus
  20360. extern "C"
  20361. #endif
  20362. char dlopen ();
  20363. int
  20364. main ()
  20365. {
  20366. return dlopen ();
  20367. ;
  20368. return 0;
  20369. }
  20370. _ACEOF
  20371. if ac_fn_c_try_link "$LINENO"; then :
  20372. ac_cv_lib_ltdl_dlopen=yes
  20373. else
  20374. ac_cv_lib_ltdl_dlopen=no
  20375. fi
  20376. rm -f core conftest.err conftest.$ac_objext \
  20377. conftest$ac_exeext conftest.$ac_ext
  20378. LIBS=$ac_check_lib_save_LIBS
  20379. fi
  20380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20381. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20382. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20383. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20384. fi
  20385. fi
  20386. fi
  20387. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20388. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20389. have_loadso=yes
  20390. fi
  20391. fi
  20392. }
  20393. CheckUSBHID()
  20394. {
  20395. case "$host" in
  20396. *-*-*bsd*)
  20397. if test x$enable_joystick = xyes; then
  20398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20399. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20400. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20401. $as_echo_n "(cached) " >&6
  20402. else
  20403. ac_check_lib_save_LIBS=$LIBS
  20404. LIBS="-lusbhid $LIBS"
  20405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20406. /* end confdefs.h. */
  20407. /* Override any GCC internal prototype to avoid an error.
  20408. Use char because int might match the return type of a GCC
  20409. builtin and then its argument prototype would still apply. */
  20410. #ifdef __cplusplus
  20411. extern "C"
  20412. #endif
  20413. char hid_init ();
  20414. int
  20415. main ()
  20416. {
  20417. return hid_init ();
  20418. ;
  20419. return 0;
  20420. }
  20421. _ACEOF
  20422. if ac_fn_c_try_link "$LINENO"; then :
  20423. ac_cv_lib_usbhid_hid_init=yes
  20424. else
  20425. ac_cv_lib_usbhid_hid_init=no
  20426. fi
  20427. rm -f core conftest.err conftest.$ac_objext \
  20428. conftest$ac_exeext conftest.$ac_ext
  20429. LIBS=$ac_check_lib_save_LIBS
  20430. fi
  20431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20432. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20433. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20434. have_libusbhid=yes
  20435. fi
  20436. if test x$have_libusbhid = xyes; then
  20437. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20438. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20439. USB_CFLAGS="-DHAVE_USBHID_H"
  20440. fi
  20441. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20442. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20443. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20444. fi
  20445. USB_LIBS="$USB_LIBS -lusbhid"
  20446. else
  20447. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20448. if test "x$ac_cv_header_usb_h" = xyes; then :
  20449. USB_CFLAGS="-DHAVE_USB_H"
  20450. fi
  20451. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20452. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20453. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20454. fi
  20455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20456. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20457. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20458. $as_echo_n "(cached) " >&6
  20459. else
  20460. ac_check_lib_save_LIBS=$LIBS
  20461. LIBS="-lusb $LIBS"
  20462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20463. /* end confdefs.h. */
  20464. /* Override any GCC internal prototype to avoid an error.
  20465. Use char because int might match the return type of a GCC
  20466. builtin and then its argument prototype would still apply. */
  20467. #ifdef __cplusplus
  20468. extern "C"
  20469. #endif
  20470. char hid_init ();
  20471. int
  20472. main ()
  20473. {
  20474. return hid_init ();
  20475. ;
  20476. return 0;
  20477. }
  20478. _ACEOF
  20479. if ac_fn_c_try_link "$LINENO"; then :
  20480. ac_cv_lib_usb_hid_init=yes
  20481. else
  20482. ac_cv_lib_usb_hid_init=no
  20483. fi
  20484. rm -f core conftest.err conftest.$ac_objext \
  20485. conftest$ac_exeext conftest.$ac_ext
  20486. LIBS=$ac_check_lib_save_LIBS
  20487. fi
  20488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20489. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20490. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20491. USB_LIBS="$USB_LIBS -lusb"
  20492. fi
  20493. fi
  20494. save_CFLAGS="$CFLAGS"
  20495. CFLAGS="$CFLAGS $USB_CFLAGS"
  20496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20497. $as_echo_n "checking for usbhid... " >&6; }
  20498. have_usbhid=no
  20499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20500. /* end confdefs.h. */
  20501. #include <sys/types.h>
  20502. #if defined(HAVE_USB_H)
  20503. #include <usb.h>
  20504. #endif
  20505. #ifdef __DragonFly__
  20506. # include <bus/usb/usb.h>
  20507. # include <bus/usb/usbhid.h>
  20508. #else
  20509. # include <dev/usb/usb.h>
  20510. # include <dev/usb/usbhid.h>
  20511. #endif
  20512. #if defined(HAVE_USBHID_H)
  20513. #include <usbhid.h>
  20514. #elif defined(HAVE_LIBUSB_H)
  20515. #include <libusb.h>
  20516. #elif defined(HAVE_LIBUSBHID_H)
  20517. #include <libusbhid.h>
  20518. #endif
  20519. int
  20520. main ()
  20521. {
  20522. struct report_desc *repdesc;
  20523. struct usb_ctl_report *repbuf;
  20524. hid_kind_t hidkind;
  20525. ;
  20526. return 0;
  20527. }
  20528. _ACEOF
  20529. if ac_fn_c_try_compile "$LINENO"; then :
  20530. have_usbhid=yes
  20531. fi
  20532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20534. $as_echo "$have_usbhid" >&6; }
  20535. if test x$have_usbhid = xyes; then
  20536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20537. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20538. have_usbhid_ucr_data=no
  20539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20540. /* end confdefs.h. */
  20541. #include <sys/types.h>
  20542. #if defined(HAVE_USB_H)
  20543. #include <usb.h>
  20544. #endif
  20545. #ifdef __DragonFly__
  20546. # include <bus/usb/usb.h>
  20547. # include <bus/usb/usbhid.h>
  20548. #else
  20549. # include <dev/usb/usb.h>
  20550. # include <dev/usb/usbhid.h>
  20551. #endif
  20552. #if defined(HAVE_USBHID_H)
  20553. #include <usbhid.h>
  20554. #elif defined(HAVE_LIBUSB_H)
  20555. #include <libusb.h>
  20556. #elif defined(HAVE_LIBUSBHID_H)
  20557. #include <libusbhid.h>
  20558. #endif
  20559. int
  20560. main ()
  20561. {
  20562. struct usb_ctl_report buf;
  20563. if (buf.ucr_data) { }
  20564. ;
  20565. return 0;
  20566. }
  20567. _ACEOF
  20568. if ac_fn_c_try_compile "$LINENO"; then :
  20569. have_usbhid_ucr_data=yes
  20570. fi
  20571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20572. if test x$have_usbhid_ucr_data = xyes; then
  20573. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20574. fi
  20575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20576. $as_echo "$have_usbhid_ucr_data" >&6; }
  20577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20578. $as_echo_n "checking for new usbhid API... " >&6; }
  20579. have_usbhid_new=no
  20580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20581. /* end confdefs.h. */
  20582. #include <sys/types.h>
  20583. #if defined(HAVE_USB_H)
  20584. #include <usb.h>
  20585. #endif
  20586. #ifdef __DragonFly__
  20587. #include <bus/usb/usb.h>
  20588. #include <bus/usb/usbhid.h>
  20589. #else
  20590. #include <dev/usb/usb.h>
  20591. #include <dev/usb/usbhid.h>
  20592. #endif
  20593. #if defined(HAVE_USBHID_H)
  20594. #include <usbhid.h>
  20595. #elif defined(HAVE_LIBUSB_H)
  20596. #include <libusb.h>
  20597. #elif defined(HAVE_LIBUSBHID_H)
  20598. #include <libusbhid.h>
  20599. #endif
  20600. int
  20601. main ()
  20602. {
  20603. report_desc_t d;
  20604. hid_start_parse(d, 1, 1);
  20605. ;
  20606. return 0;
  20607. }
  20608. _ACEOF
  20609. if ac_fn_c_try_compile "$LINENO"; then :
  20610. have_usbhid_new=yes
  20611. fi
  20612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20613. if test x$have_usbhid_new = xyes; then
  20614. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20615. fi
  20616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20617. $as_echo "$have_usbhid_new" >&6; }
  20618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20619. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20620. have_machine_joystick=no
  20621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20622. /* end confdefs.h. */
  20623. #include <machine/joystick.h>
  20624. int
  20625. main ()
  20626. {
  20627. struct joystick t;
  20628. ;
  20629. return 0;
  20630. }
  20631. _ACEOF
  20632. if ac_fn_c_try_compile "$LINENO"; then :
  20633. have_machine_joystick=yes
  20634. fi
  20635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20636. if test x$have_machine_joystick = xyes; then
  20637. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20638. fi
  20639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20640. $as_echo "$have_machine_joystick" >&6; }
  20641. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20642. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20643. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20644. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20645. have_joystick=yes
  20646. fi
  20647. CFLAGS="$save_CFLAGS"
  20648. fi
  20649. ;;
  20650. esac
  20651. }
  20652. CheckHIDAPI()
  20653. {
  20654. # The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
  20655. # so we'll just use libusb when it's available.
  20656. case "$host" in
  20657. # libusb does not support iOS
  20658. arm*-apple-darwin* | *-ios-* )
  20659. skiplibusb=yes
  20660. ;;
  20661. # On the other hand, *BSD specifically uses libusb only
  20662. *-*-*bsd* )
  20663. onlylibusb=yes
  20664. ;;
  20665. # RAWINPUT is only available on Win32, but can be enabled if HIDAPI is
  20666. *-*-cygwin* | *-*-mingw32*)
  20667. userawinput=yes
  20668. ;;
  20669. esac
  20670. # Check whether --enable-hidapi was given.
  20671. if test "${enable_hidapi+set}" = set; then :
  20672. enableval=$enable_hidapi;
  20673. else
  20674. enable_hidapi=no
  20675. fi
  20676. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20677. if test x$skiplibusb = xyes; then
  20678. hidapi_support=yes
  20679. else
  20680. pkg_failed=no
  20681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
  20682. $as_echo_n "checking for LIBUSB... " >&6; }
  20683. if test -n "$LIBUSB_CFLAGS"; then
  20684. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  20685. elif test -n "$PKG_CONFIG"; then
  20686. if test -n "$PKG_CONFIG" && \
  20687. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20688. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20689. ac_status=$?
  20690. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20691. test $ac_status = 0; }; then
  20692. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  20693. else
  20694. pkg_failed=yes
  20695. fi
  20696. else
  20697. pkg_failed=untried
  20698. fi
  20699. if test -n "$LIBUSB_LIBS"; then
  20700. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  20701. elif test -n "$PKG_CONFIG"; then
  20702. if test -n "$PKG_CONFIG" && \
  20703. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20704. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20705. ac_status=$?
  20706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20707. test $ac_status = 0; }; then
  20708. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  20709. else
  20710. pkg_failed=yes
  20711. fi
  20712. else
  20713. pkg_failed=untried
  20714. fi
  20715. if test $pkg_failed = yes; then
  20716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20717. $as_echo "no" >&6; }
  20718. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20719. _pkg_short_errors_supported=yes
  20720. else
  20721. _pkg_short_errors_supported=no
  20722. fi
  20723. if test $_pkg_short_errors_supported = yes; then
  20724. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1`
  20725. else
  20726. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1`
  20727. fi
  20728. # Put the nasty error message in config.log where it belongs
  20729. echo "$LIBUSB_PKG_ERRORS" >&5
  20730. have_libusb=no
  20731. elif test $pkg_failed = untried; then
  20732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20733. $as_echo "no" >&6; }
  20734. have_libusb=no
  20735. else
  20736. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  20737. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  20738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20739. $as_echo "yes" >&6; }
  20740. have_libusb=yes
  20741. fi
  20742. save_CFLAGS="$CFLAGS"
  20743. CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
  20744. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20745. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20746. have_libusb_h=yes
  20747. fi
  20748. CFLAGS="$save_CFLAGS"
  20749. if test x$have_libusb_h = xyes; then
  20750. hidapi_support=yes
  20751. elif test x$onlylibusb = xyes; then
  20752. hidapi_support=no
  20753. else
  20754. hidapi_support=yes
  20755. fi
  20756. fi
  20757. if test x$hidapi_support = xyes; then
  20758. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20759. if test x$userawinput = xyes; then
  20760. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  20761. fi
  20762. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20763. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20764. SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
  20765. if test x$have_libusb_h = xyes; then
  20766. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20767. if test x$onlylibusb = xyes; then
  20768. SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
  20769. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  20770. else
  20771. if test x$have_loadso != xyes; then
  20772. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  20773. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  20774. fi
  20775. # libusb is loaded dynamically, so don't add it to LDFLAGS
  20776. libusb_lib=""
  20777. case "$host" in
  20778. *-*-darwin* )
  20779. libusb_lib="libusb-1.0.0.dylib"
  20780. ;;
  20781. *-*-cygwin* | *-*-mingw32* )
  20782. libusb_lib="libusb-1.0.dll"
  20783. ;;
  20784. esac
  20785. if test x$libusb_lib = x; then
  20786. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20787. fi
  20788. cat >>confdefs.h <<_ACEOF
  20789. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  20790. _ACEOF
  20791. fi
  20792. fi
  20793. fi
  20794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  20795. $as_echo_n "checking for hidapi support... " >&6; }
  20796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  20797. $as_echo "$hidapi_support" >&6; }
  20798. fi
  20799. }
  20800. CheckClockGettime()
  20801. {
  20802. # Check whether --enable-clock_gettime was given.
  20803. if test "${enable_clock_gettime+set}" = set; then :
  20804. enableval=$enable_clock_gettime;
  20805. else
  20806. enable_clock_gettime=yes
  20807. fi
  20808. if test x$enable_clock_gettime = xyes; then
  20809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20810. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20811. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20812. $as_echo_n "(cached) " >&6
  20813. else
  20814. ac_check_lib_save_LIBS=$LIBS
  20815. LIBS="-lrt $LIBS"
  20816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20817. /* end confdefs.h. */
  20818. /* Override any GCC internal prototype to avoid an error.
  20819. Use char because int might match the return type of a GCC
  20820. builtin and then its argument prototype would still apply. */
  20821. #ifdef __cplusplus
  20822. extern "C"
  20823. #endif
  20824. char clock_gettime ();
  20825. int
  20826. main ()
  20827. {
  20828. return clock_gettime ();
  20829. ;
  20830. return 0;
  20831. }
  20832. _ACEOF
  20833. if ac_fn_c_try_link "$LINENO"; then :
  20834. ac_cv_lib_rt_clock_gettime=yes
  20835. else
  20836. ac_cv_lib_rt_clock_gettime=no
  20837. fi
  20838. rm -f core conftest.err conftest.$ac_objext \
  20839. conftest$ac_exeext conftest.$ac_ext
  20840. LIBS=$ac_check_lib_save_LIBS
  20841. fi
  20842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20843. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20844. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20845. have_clock_gettime=yes
  20846. fi
  20847. if test x$have_clock_gettime = xyes; then
  20848. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20849. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20850. else
  20851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20852. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20853. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20854. $as_echo_n "(cached) " >&6
  20855. else
  20856. ac_check_lib_save_LIBS=$LIBS
  20857. LIBS="-lc $LIBS"
  20858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20859. /* end confdefs.h. */
  20860. /* Override any GCC internal prototype to avoid an error.
  20861. Use char because int might match the return type of a GCC
  20862. builtin and then its argument prototype would still apply. */
  20863. #ifdef __cplusplus
  20864. extern "C"
  20865. #endif
  20866. char clock_gettime ();
  20867. int
  20868. main ()
  20869. {
  20870. return clock_gettime ();
  20871. ;
  20872. return 0;
  20873. }
  20874. _ACEOF
  20875. if ac_fn_c_try_link "$LINENO"; then :
  20876. ac_cv_lib_c_clock_gettime=yes
  20877. else
  20878. ac_cv_lib_c_clock_gettime=no
  20879. fi
  20880. rm -f core conftest.err conftest.$ac_objext \
  20881. conftest$ac_exeext conftest.$ac_ext
  20882. LIBS=$ac_check_lib_save_LIBS
  20883. fi
  20884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20885. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20886. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20887. have_clock_gettime=yes
  20888. fi
  20889. if test x$have_clock_gettime = xyes; then
  20890. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20891. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20892. fi
  20893. fi
  20894. fi
  20895. }
  20896. CheckLinuxVersion()
  20897. {
  20898. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20899. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20900. have_linux_version_h=yes
  20901. fi
  20902. if test x$have_linux_version_h = xyes; then
  20903. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20904. fi
  20905. }
  20906. CheckRPATH()
  20907. {
  20908. # Check whether --enable-rpath was given.
  20909. if test "${enable_rpath+set}" = set; then :
  20910. enableval=$enable_rpath;
  20911. else
  20912. enable_rpath=yes
  20913. fi
  20914. }
  20915. CheckEventSignals()
  20916. {
  20917. # Check whether --enable-backgrounding-signal was given.
  20918. if test "${enable_backgrounding_signal+set}" = set; then :
  20919. enableval=$enable_backgrounding_signal;
  20920. else
  20921. enable_backgrounding_signal=no
  20922. fi
  20923. if test x$enable_backgrounding_signal != xno; then
  20924. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  20925. fi
  20926. # Check whether --enable-foregrounding-signal was given.
  20927. if test "${enable_foregrounding_signal+set}" = set; then :
  20928. enableval=$enable_foregrounding_signal;
  20929. else
  20930. enable_foregrounding_signal=no
  20931. fi
  20932. if test x$enable_foregrounding_signal != xno; then
  20933. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  20934. fi
  20935. }
  20936. CheckVirtualJoystick()
  20937. {
  20938. # Check whether --enable-joystick-virtual was given.
  20939. if test "${enable_joystick_virtual+set}" = set; then :
  20940. enableval=$enable_joystick_virtual;
  20941. else
  20942. enable_joystick_virtual=yes
  20943. fi
  20944. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  20945. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  20946. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  20947. have_joystick_virtual=yes
  20948. fi
  20949. }
  20950. CheckWarnAll
  20951. CheckNoStrictAliasing
  20952. CheckEventSignals
  20953. have_locale=no
  20954. case "$host" in
  20955. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20956. case "$host" in
  20957. *-*-android*)
  20958. # Android
  20959. ARCH=android
  20960. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20961. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20962. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20963. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20964. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20965. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20966. if test x$enable_video = xyes; then
  20967. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20968. # FIXME: confdefs? Not AC_DEFINE?
  20969. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20970. SUMMARY_video="${SUMMARY_video} android"
  20971. fi
  20972. ;;
  20973. *-*-linux*) ARCH=linux ;;
  20974. *-*-uclinux*) ARCH=linux ;;
  20975. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20976. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20977. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20978. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20979. *-*-bsdi*) ARCH=bsdi ;;
  20980. *-*-freebsd*) ARCH=freebsd ;;
  20981. *-*-dragonfly*) ARCH=freebsd ;;
  20982. *-*-netbsd*) ARCH=netbsd ;;
  20983. *-*-openbsd*) ARCH=openbsd ;;
  20984. *-*-sysv5*) ARCH=sysv5 ;;
  20985. *-*-solaris*) ARCH=solaris ;;
  20986. *-*-hpux*) ARCH=hpux ;;
  20987. *-*-aix*) ARCH=aix ;;
  20988. *-*-minix*) ARCH=minix ;;
  20989. *-*-nto*) ARCH=nto
  20990. CheckQNXVideo
  20991. ;;
  20992. esac
  20993. CheckVisibilityHidden
  20994. CheckDeclarationAfterStatement
  20995. CheckDummyVideo
  20996. CheckDiskAudio
  20997. CheckDummyAudio
  20998. CheckDLOPEN
  20999. CheckARM
  21000. CheckNEON
  21001. CheckOSS
  21002. CheckALSA
  21003. CheckPulseAudio
  21004. CheckJACK
  21005. CheckARTSC
  21006. CheckESD
  21007. CheckNAS
  21008. CheckSNDIO
  21009. CheckFusionSound
  21010. CheckLibSampleRate
  21011. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  21012. CheckRPI
  21013. CheckX11
  21014. CheckDirectFB
  21015. CheckKMSDRM
  21016. CheckOpenGLX11
  21017. CheckOpenGLESX11
  21018. CheckVulkan
  21019. CheckWayland
  21020. CheckInputEvents
  21021. CheckLibUDev
  21022. CheckDBus
  21023. CheckIME
  21024. CheckIBus
  21025. CheckFcitx
  21026. case $ARCH in
  21027. linux)
  21028. CheckInputKD
  21029. ;;
  21030. esac
  21031. CheckTslib
  21032. CheckUSBHID
  21033. CheckHIDAPI
  21034. CheckPTHREAD
  21035. CheckClockGettime
  21036. CheckLinuxVersion
  21037. CheckRPATH
  21038. CheckVivanteVideo
  21039. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  21040. have_locale=yes
  21041. # Set up files for the audio library
  21042. if test x$enable_audio = xyes; then
  21043. case $ARCH in
  21044. sysv5|solaris|hpux)
  21045. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21046. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21047. SUMMARY_audio="${SUMMARY_audio} sun"
  21048. have_audio=yes
  21049. ;;
  21050. netbsd) # Don't use this on OpenBSD, it's busted.
  21051. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21052. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21053. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21054. have_audio=yes
  21055. ;;
  21056. aix)
  21057. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21058. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21059. SUMMARY_audio="${SUMMARY_audio} paudio"
  21060. have_audio=yes
  21061. ;;
  21062. android)
  21063. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21064. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21065. SUMMARY_audio="${SUMMARY_audio} android"
  21066. have_audio=yes
  21067. ;;
  21068. nto)
  21069. CheckQNXAudio
  21070. ;;
  21071. esac
  21072. fi
  21073. # Set up files for the joystick library
  21074. if test x$enable_joystick = xyes; then
  21075. case $ARCH in
  21076. linux)
  21077. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21078. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21079. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21080. have_joystick=yes
  21081. ;;
  21082. android)
  21083. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21084. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21085. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21086. have_joystick=yes
  21087. ;;
  21088. esac
  21089. fi
  21090. # Set up files for the haptic library
  21091. if test x$enable_haptic = xyes; then
  21092. case $ARCH in
  21093. linux)
  21094. if test x$use_input_events = xyes; then
  21095. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21096. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21097. have_haptic=yes
  21098. fi
  21099. ;;
  21100. android)
  21101. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21102. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21103. have_haptic=yes
  21104. ;;
  21105. esac
  21106. fi
  21107. # Set up files for the sensor library
  21108. if test x$enable_sensor = xyes; then
  21109. case $ARCH in
  21110. android)
  21111. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21112. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21113. have_sensor=yes
  21114. ;;
  21115. esac
  21116. fi
  21117. # Set up files for the power library
  21118. if test x$enable_power = xyes; then
  21119. case $ARCH in
  21120. linux)
  21121. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21122. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21123. have_power=yes
  21124. ;;
  21125. android)
  21126. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21127. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21128. have_power=yes
  21129. ;;
  21130. esac
  21131. fi
  21132. # Set up files for the filesystem library
  21133. if test x$enable_filesystem = xyes; then
  21134. case $ARCH in
  21135. android)
  21136. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21137. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21138. have_filesystem=yes
  21139. ;;
  21140. *)
  21141. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21142. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21143. have_filesystem=yes
  21144. ;;
  21145. esac
  21146. fi
  21147. # Set up files for the timer library
  21148. if test x$enable_timers = xyes; then
  21149. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21150. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21151. have_timers=yes
  21152. fi
  21153. # Set up files for udev hotplugging support
  21154. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21155. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21156. fi
  21157. # Set up files for evdev input
  21158. if test x$use_input_events = xyes; then
  21159. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  21160. fi
  21161. # Set up other core UNIX files
  21162. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21163. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21164. ;;
  21165. *-*-cygwin* | *-*-mingw32*)
  21166. ARCH=win32
  21167. if test "$build" != "$host"; then # cross-compiling
  21168. # Default cross-compile location
  21169. ac_default_prefix=/usr/local/cross-tools/$host
  21170. else
  21171. # Look for the location of the tools and install there
  21172. if test "$BUILD_PREFIX" != ""; then
  21173. ac_default_prefix=$BUILD_PREFIX
  21174. fi
  21175. fi
  21176. CheckDeclarationAfterStatement
  21177. CheckDummyVideo
  21178. CheckDiskAudio
  21179. CheckDummyAudio
  21180. CheckWINDOWS
  21181. CheckWINDOWSGL
  21182. CheckWINDOWSGLES
  21183. CheckVulkan
  21184. CheckDIRECTX
  21185. CheckHIDAPI
  21186. # Set up the core platform files
  21187. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21188. # Use the Windows locale APIs.
  21189. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  21190. have_locale=yes
  21191. # Set up files for the video library
  21192. if test x$enable_video = xyes; then
  21193. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21194. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21195. have_video=yes
  21196. # Check whether --enable-render-d3d was given.
  21197. if test "${enable_render_d3d+set}" = set; then :
  21198. enableval=$enable_render_d3d;
  21199. else
  21200. enable_render_d3d=yes
  21201. fi
  21202. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21203. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21204. SUMMARY_video="${SUMMARY_video} d3d9"
  21205. fi
  21206. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21207. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21208. SUMMARY_video="${SUMMARY_video} d3d11"
  21209. fi
  21210. fi
  21211. # Set up files for the audio library
  21212. if test x$enable_audio = xyes; then
  21213. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21214. SUMMARY_audio="${SUMMARY_audio} winmm"
  21215. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21216. if test x$have_dsound = xyes; then
  21217. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21218. SUMMARY_audio="${SUMMARY_audio} directsound"
  21219. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21220. fi
  21221. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21222. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21223. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21224. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21225. fi
  21226. have_audio=yes
  21227. fi
  21228. # Set up files for the joystick library
  21229. if test x$enable_joystick = xyes; then
  21230. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21231. if test x$have_xinput = xyes; then
  21232. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21233. fi
  21234. if test x$have_dinput = xyes; then
  21235. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21236. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21237. fi
  21238. else
  21239. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21240. fi
  21241. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21242. have_joystick=yes
  21243. fi
  21244. if test x$enable_haptic = xyes; then
  21245. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21246. if test x$have_xinput = xyes; then
  21247. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21248. fi
  21249. if test x$have_dinput = xyes; then
  21250. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21251. fi
  21252. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21253. have_haptic=yes
  21254. fi
  21255. fi
  21256. # Set up files for the sensor library
  21257. if test x$enable_sensor = xyes; then
  21258. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  21259. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  21260. have_sensor=yes
  21261. fi
  21262. # Set up files for the power library
  21263. if test x$enable_power = xyes; then
  21264. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21265. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21266. have_power=yes
  21267. fi
  21268. # Set up files for the filesystem library
  21269. if test x$enable_filesystem = xyes; then
  21270. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21271. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21272. have_filesystem=yes
  21273. fi
  21274. # Set up files for the thread library
  21275. if test x$enable_threads = xyes; then
  21276. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21277. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21278. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21279. have_threads=yes
  21280. fi
  21281. # Set up files for the timer library
  21282. if test x$enable_timers = xyes; then
  21283. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21284. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21285. have_timers=yes
  21286. fi
  21287. # Set up files for the shared object loading library
  21288. if test x$enable_loadso = xyes; then
  21289. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21290. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21291. have_loadso=yes
  21292. fi
  21293. # Set up the system libraries we need
  21294. if test -f /lib/w32api/libuuid.a; then
  21295. LIBUUID=/lib/w32api/libuuid.a
  21296. else
  21297. LIBUUID=-luuid
  21298. fi
  21299. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  21300. # The Windows platform requires special setup
  21301. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21302. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21303. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21304. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21305. # Check to see if this is a mingw or cygwin build
  21306. have_mingw32=
  21307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21308. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21309. if ${ac_cv_lib_mingw32_main+:} false; then :
  21310. $as_echo_n "(cached) " >&6
  21311. else
  21312. ac_check_lib_save_LIBS=$LIBS
  21313. LIBS="-lmingw32 $LIBS"
  21314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21315. /* end confdefs.h. */
  21316. int
  21317. main ()
  21318. {
  21319. return main ();
  21320. ;
  21321. return 0;
  21322. }
  21323. _ACEOF
  21324. if ac_fn_c_try_link "$LINENO"; then :
  21325. ac_cv_lib_mingw32_main=yes
  21326. else
  21327. ac_cv_lib_mingw32_main=no
  21328. fi
  21329. rm -f core conftest.err conftest.$ac_objext \
  21330. conftest$ac_exeext conftest.$ac_ext
  21331. LIBS=$ac_check_lib_save_LIBS
  21332. fi
  21333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21334. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21335. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21336. have_mingw32=yes
  21337. fi
  21338. if test x$have_mingw32 = xyes; then
  21339. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21340. else
  21341. SDL_LIBS="-lcygwin $SDL_LIBS"
  21342. fi
  21343. ;;
  21344. *-*-beos*)
  21345. as_fn_error $? "
  21346. *** BeOS support has been removed as of SDL 2.0.2.
  21347. " "$LINENO" 5
  21348. ;;
  21349. *-*-haiku*)
  21350. ARCH=haiku
  21351. ac_default_prefix=/boot/system
  21352. CheckDummyVideo
  21353. CheckDiskAudio
  21354. CheckDummyAudio
  21355. CheckDLOPEN
  21356. CheckHaikuVideo
  21357. CheckHaikuGL
  21358. CheckPTHREAD
  21359. # Set up files for the audio library
  21360. if test x$enable_audio = xyes; then
  21361. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21362. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21363. SUMMARY_audio="${SUMMARY_audio} haiku"
  21364. have_audio=yes
  21365. fi
  21366. # Set up files for the joystick library
  21367. if test x$enable_joystick = xyes; then
  21368. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21369. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21370. have_joystick=yes
  21371. fi
  21372. # Set up files for the timer library
  21373. if test x$enable_timers = xyes; then
  21374. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21375. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21376. have_timers=yes
  21377. fi
  21378. # Set up files for the system power library
  21379. if test x$enable_power = xyes; then
  21380. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21381. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21382. have_power=yes
  21383. fi
  21384. # Set up files for the system filesystem library
  21385. if test x$enable_filesystem = xyes; then
  21386. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21387. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21388. have_filesystem=yes
  21389. fi
  21390. # Set up files for the locale library
  21391. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  21392. have_locale=yes
  21393. # The Haiku platform requires special setup.
  21394. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21395. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21396. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  21397. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  21398. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  21399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  21400. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  21401. if eval \${$as_ac_File+:} false; then :
  21402. $as_echo_n "(cached) " >&6
  21403. else
  21404. test "$cross_compiling" = yes &&
  21405. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  21406. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  21407. eval "$as_ac_File=yes"
  21408. else
  21409. eval "$as_ac_File=no"
  21410. fi
  21411. fi
  21412. eval ac_res=\$$as_ac_File
  21413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21414. $as_echo "$ac_res" >&6; }
  21415. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  21416. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  21417. else
  21418. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  21419. fi
  21420. ;;
  21421. arm*-apple-darwin*|*-ios-*)
  21422. ARCH=ios
  21423. CheckVisibilityHidden
  21424. CheckDeclarationAfterStatement
  21425. CheckDummyVideo
  21426. CheckDiskAudio
  21427. CheckDummyAudio
  21428. CheckDLOPEN
  21429. CheckMETAL
  21430. CheckVulkan
  21431. CheckPTHREAD
  21432. # Set up files for the locale library
  21433. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21434. have_locale=yes
  21435. # Set up files for the audio library
  21436. if test x$enable_audio = xyes; then
  21437. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21438. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21439. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21440. have_audio=yes
  21441. fi
  21442. # Set up files for the joystick library
  21443. if test x$enable_joystick = xyes; then
  21444. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21445. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21446. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21447. have_joystick=yes
  21448. else
  21449. # Need this code for accelerometer as joystick support
  21450. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21451. fi
  21452. # Set up files for the haptic library
  21453. #if test x$enable_haptic = xyes; then
  21454. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21455. # have_haptic=yes
  21456. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21457. #fi
  21458. # Set up files for the sensor library
  21459. if test x$enable_sensor = xyes; then
  21460. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21461. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21462. have_sensor=yes
  21463. fi
  21464. # Set up files for the power library
  21465. if test x$enable_power = xyes; then
  21466. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21467. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21468. have_power=yes
  21469. fi
  21470. # Set up files for the filesystem library
  21471. if test x$enable_filesystem = xyes; then
  21472. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21473. have_filesystem=yes
  21474. fi
  21475. # Set up additional files for the file library
  21476. if test x$enable_file = xyes; then
  21477. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21478. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21479. fi
  21480. # Set up files for the timer library
  21481. if test x$enable_timers = xyes; then
  21482. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21483. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21484. have_timers=yes
  21485. fi
  21486. # Set up other core UNIX files
  21487. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21488. # The iOS platform requires special setup.
  21489. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21490. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21491. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21492. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21493. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21494. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21495. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21496. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21497. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21498. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21499. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21500. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21501. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21502. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21503. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21504. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21505. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21506. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21507. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21508. fi
  21509. ;;
  21510. *-*-darwin* )
  21511. # This could be either full "Mac OS X", or plain "Darwin" which is
  21512. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21513. # Next line is broken, and a few files below require Mac OS X (full)
  21514. ARCH=macosx
  21515. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21516. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21517. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21518. CheckVisibilityHidden
  21519. CheckDeclarationAfterStatement
  21520. CheckDummyVideo
  21521. CheckDiskAudio
  21522. CheckDummyAudio
  21523. CheckDLOPEN
  21524. CheckCOCOA
  21525. CheckMETAL
  21526. CheckX11
  21527. CheckMacGL
  21528. CheckMacGLES
  21529. CheckOpenGLX11
  21530. CheckVulkan
  21531. CheckPTHREAD
  21532. CheckHIDAPI
  21533. # Set up files for the locale library
  21534. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21535. have_locale=yes
  21536. # Set up files for the audio library
  21537. if test x$enable_audio = xyes; then
  21538. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21539. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21540. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21541. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21542. have_audio=yes
  21543. fi
  21544. # Set up files for the joystick library
  21545. if test x$enable_joystick = xyes; then
  21546. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21547. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21548. have_joystick=yes
  21549. fi
  21550. # Set up files for the haptic library
  21551. if test x$enable_haptic = xyes; then
  21552. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21553. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21554. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21555. have_haptic=yes
  21556. fi
  21557. # Set up files for the power library
  21558. if test x$enable_power = xyes; then
  21559. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21560. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21561. have_power=yes
  21562. fi
  21563. # Set up files for the filesystem library
  21564. if test x$enable_filesystem = xyes; then
  21565. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21566. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21567. have_filesystem=yes
  21568. fi
  21569. # Set up files for the timer library
  21570. if test x$enable_timers = xyes; then
  21571. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21572. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21573. have_timers=yes
  21574. fi
  21575. # Set up additional files for the file library
  21576. if test x$enable_file = xyes; then
  21577. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21578. fi
  21579. # Set up other core UNIX files
  21580. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21581. # The Mac OS X platform requires special setup.
  21582. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21583. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21584. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21585. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21586. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21587. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21588. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21589. fi
  21590. ;;
  21591. *-nacl|*-pnacl)
  21592. ARCH=nacl
  21593. CheckNativeClient
  21594. CheckDummyAudio
  21595. CheckDummyVideo
  21596. CheckInputEvents
  21597. CheckPTHREAD
  21598. # Set up files for the timer library
  21599. if test x$enable_timers = xyes; then
  21600. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21601. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21602. have_timers=yes
  21603. fi
  21604. if test x$enable_filesystem = xyes; then
  21605. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21606. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21607. have_filesystem=yes
  21608. fi
  21609. ;;
  21610. *-*-emscripten* )
  21611. if test x$enable_video = xyes; then
  21612. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21613. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21614. have_video=yes
  21615. SUMMARY_video="${SUMMARY_video} emscripten"
  21616. fi
  21617. if test x$enable_audio = xyes; then
  21618. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21619. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21620. have_audio=yes
  21621. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21622. fi
  21623. CheckVisibilityHidden
  21624. CheckDeclarationAfterStatement
  21625. CheckDummyVideo
  21626. CheckDiskAudio
  21627. CheckDummyAudio
  21628. CheckDLOPEN
  21629. CheckClockGettime
  21630. CheckEmscriptenGLES
  21631. # Set up files for the power library
  21632. if test x$enable_power = xyes; then
  21633. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21634. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21635. have_power=yes
  21636. fi
  21637. # Set up files for the power library
  21638. if test x$enable_joystick = xyes; then
  21639. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21640. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21641. have_joystick=yes
  21642. fi
  21643. # Set up files for the filesystem library
  21644. if test x$enable_filesystem = xyes; then
  21645. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21646. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21647. have_filesystem=yes
  21648. fi
  21649. # Set up files for the timer library
  21650. if test x$enable_timers = xyes; then
  21651. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21652. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21653. have_timers=yes
  21654. fi
  21655. # Set up files for the locale library
  21656. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  21657. have_locale=yes
  21658. ;;
  21659. *-*-riscos*)
  21660. ARCH=riscos
  21661. CheckVisibilityHidden
  21662. CheckDeclarationAfterStatement
  21663. CheckDummyVideo
  21664. CheckDiskAudio
  21665. CheckDummyAudio
  21666. CheckDLOPEN
  21667. CheckOSS
  21668. CheckPTHREAD
  21669. CheckClockGettime
  21670. # Set up files for the timer library
  21671. if test x$enable_timers = xyes; then
  21672. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21673. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21674. have_timers=yes
  21675. fi
  21676. ;;
  21677. *)
  21678. as_fn_error $? "
  21679. *** Unsupported host: Please add to configure.ac
  21680. " "$LINENO" 5
  21681. ;;
  21682. esac
  21683. CheckVirtualJoystick
  21684. # Check whether to install sdl2-config
  21685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  21686. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  21687. # Check whether --enable-sdl2-config was given.
  21688. if test "${enable_sdl2_config+set}" = set; then :
  21689. enableval=$enable_sdl2_config; case "${enableval}" in
  21690. yes) enable_sdl2_config="TRUE" ;;
  21691. no) enable_sdl2_config="FALSE" ;;
  21692. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  21693. esac
  21694. else
  21695. enable_sdl2_config="TRUE"
  21696. fi
  21697. if test "$enable_sdl2_config" = "TRUE"; then
  21698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21699. $as_echo "yes" >&6; }
  21700. else
  21701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21702. $as_echo "no" >&6; }
  21703. fi
  21704. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  21705. # Verify that we have all the platform specific files we need
  21706. if test x$have_locale != xyes; then
  21707. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  21708. fi
  21709. if test x$have_joystick != xyes; then
  21710. if test x$enable_joystick = xyes; then
  21711. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  21712. fi
  21713. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21714. fi
  21715. if test x$have_haptic != xyes; then
  21716. if test x$enable_haptic = xyes; then
  21717. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  21718. fi
  21719. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21720. fi
  21721. if test x$have_sensor != xyes; then
  21722. if test x$enable_sensor = xyes; then
  21723. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  21724. fi
  21725. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  21726. fi
  21727. if test x$have_threads != xyes; then
  21728. if test x$enable_threads = xyes; then
  21729. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21730. fi
  21731. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21732. fi
  21733. if test x$have_timers != xyes; then
  21734. if test x$enable_timers = xyes; then
  21735. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21736. fi
  21737. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21738. fi
  21739. if test x$have_filesystem != xyes; then
  21740. if test x$enable_filesystem = xyes; then
  21741. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21742. fi
  21743. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21744. fi
  21745. if test x$have_loadso != xyes; then
  21746. if test x$enable_loadso = xyes; then
  21747. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21748. fi
  21749. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21750. fi
  21751. if test x$SDLMAIN_SOURCES = x; then
  21752. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21753. fi
  21754. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21755. if test x$video_wayland = xyes; then
  21756. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
  21757. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
  21758. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
  21759. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  21760. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  21761. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  21762. echo ;\
  21763. echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21764. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21765. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  21766. echo ;\
  21767. echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21768. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21769. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
  21770. echo ;\
  21771. echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  21772. echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  21773. done ;\
  21774. echo ;\
  21775. for s in $WAYLAND_SOURCES ; do echo -n "\$s:" ; for p in $WAYLAND_PROTOCOLS ; do echo -n " \\$(gen)/\$p-client-protocol.h" ; done ; echo ; done ; echo`
  21776. fi
  21777. OBJECTS=`echo $SOURCES`
  21778. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21779. for EXT in asm cc m c S; do
  21780. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21781. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21782. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  21783. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21784. done
  21785. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21786. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21787. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21788. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  21789. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21790. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  21791. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  21792. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21793. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21794. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21795. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21796. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21797. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21798. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21799. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21800. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21801. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21802. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21803. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21804. # Set runtime shared library paths as needed
  21805. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  21806. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21807. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21809. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21810. have_enable_new_dtags=no
  21811. save_LDFLAGS="$LDFLAGS"
  21812. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21814. /* end confdefs.h. */
  21815. int
  21816. main ()
  21817. {
  21818. ;
  21819. return 0;
  21820. }
  21821. _ACEOF
  21822. if ac_fn_c_try_link "$LINENO"; then :
  21823. have_enable_new_dtags=yes
  21824. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21825. fi
  21826. rm -f core conftest.err conftest.$ac_objext \
  21827. conftest$ac_exeext conftest.$ac_ext
  21828. LDFLAGS="$save_LDFLAGS"
  21829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21830. $as_echo "$have_enable_new_dtags" >&6; }
  21831. fi
  21832. if test $ARCH = solaris; then
  21833. SDL_RLD_FLAGS="-R\${libdir}"
  21834. fi
  21835. else
  21836. SDL_RLD_FLAGS=""
  21837. fi
  21838. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  21839. if test x$enable_shared = xyes; then
  21840. PKG_CONFIG_LIBS_PRIV="
  21841. Libs.private:"
  21842. ENABLE_SHARED_TRUE=
  21843. ENABLE_SHARED_FALSE="#"
  21844. else
  21845. PKG_CONFIG_LIBS_PRIV=
  21846. ENABLE_SHARED_TRUE="#"
  21847. ENABLE_SHARED_FALSE=
  21848. fi
  21849. if test x$enable_static = xyes; then
  21850. ENABLE_STATIC_TRUE=
  21851. ENABLE_STATIC_FALSE="#"
  21852. else
  21853. ENABLE_STATIC_TRUE="#"
  21854. ENABLE_STATIC_FALSE=
  21855. fi
  21856. cat >Makefile.rules <<__EOF__
  21857. # Build rules for objects
  21858. -include \$(OBJECTS:.lo=.d)
  21859. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21860. $srcdir/src/SDL.c: update-revision
  21861. $DEPENDS
  21862. $VERSION_DEPENDS
  21863. $SDLMAIN_DEPENDS
  21864. $SDLTEST_DEPENDS
  21865. $WAYLAND_PROTOCOLS_DEPENDS
  21866. __EOF__
  21867. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  21868. ac_config_commands="$ac_config_commands sdl2_config"
  21869. SUMMARY="SDL2 Configure Summary:\n"
  21870. if test x$enable_shared = xyes; then
  21871. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21872. fi
  21873. if test x$enable_static = xyes; then
  21874. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21875. fi
  21876. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21877. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21878. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21879. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21880. if test x$have_x = xyes; then
  21881. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21882. fi
  21883. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21884. if test x$have_joystick_virtual = xyes; then
  21885. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  21886. else
  21887. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  21888. fi
  21889. if test x$have_samplerate_h_hdr = xyes; then
  21890. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21891. else
  21892. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21893. fi
  21894. if test x$have_libudev_h_hdr = xyes; then
  21895. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21896. else
  21897. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21898. fi
  21899. if test x$have_dbus_dbus_h_hdr = xyes; then
  21900. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21901. else
  21902. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21903. fi
  21904. if test x$enable_ime = xyes; then
  21905. SUMMARY="${SUMMARY}Using ime : YES\n"
  21906. else
  21907. SUMMARY="${SUMMARY}Using ime : NO\n"
  21908. fi
  21909. if test x$have_ibus_ibus_h_hdr = xyes; then
  21910. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21911. else
  21912. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21913. fi
  21914. if test x$have_fcitx = xyes; then
  21915. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21916. else
  21917. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21918. fi
  21919. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  21920. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  21921. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  21922. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  21923. SUMMARY="${SUMMARY}configure script with:\n"
  21924. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  21925. fi
  21926. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  21927. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  21928. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  21929. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  21930. SUMMARY="${SUMMARY}configure script with:\n"
  21931. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  21932. fi
  21933. ac_config_commands="$ac_config_commands summary"
  21934. cat >confcache <<\_ACEOF
  21935. # This file is a shell script that caches the results of configure
  21936. # tests run on this system so they can be shared between configure
  21937. # scripts and configure runs, see configure's option --config-cache.
  21938. # It is not useful on other systems. If it contains results you don't
  21939. # want to keep, you may remove or edit it.
  21940. #
  21941. # config.status only pays attention to the cache file if you give it
  21942. # the --recheck option to rerun configure.
  21943. #
  21944. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21945. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21946. # following values.
  21947. _ACEOF
  21948. # The following way of writing the cache mishandles newlines in values,
  21949. # but we know of no workaround that is simple, portable, and efficient.
  21950. # So, we kill variables containing newlines.
  21951. # Ultrix sh set writes to stderr and can't be redirected directly,
  21952. # and sets the high bit in the cache file unless we assign to the vars.
  21953. (
  21954. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21955. eval ac_val=\$$ac_var
  21956. case $ac_val in #(
  21957. *${as_nl}*)
  21958. case $ac_var in #(
  21959. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21960. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21961. esac
  21962. case $ac_var in #(
  21963. _ | IFS | as_nl) ;; #(
  21964. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21965. *) { eval $ac_var=; unset $ac_var;} ;;
  21966. esac ;;
  21967. esac
  21968. done
  21969. (set) 2>&1 |
  21970. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21971. *${as_nl}ac_space=\ *)
  21972. # `set' does not quote correctly, so add quotes: double-quote
  21973. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21974. sed -n \
  21975. "s/'/'\\\\''/g;
  21976. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21977. ;; #(
  21978. *)
  21979. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21980. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21981. ;;
  21982. esac |
  21983. sort
  21984. ) |
  21985. sed '
  21986. /^ac_cv_env_/b end
  21987. t clear
  21988. :clear
  21989. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21990. t end
  21991. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21992. :end' >>confcache
  21993. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21994. if test -w "$cache_file"; then
  21995. if test "x$cache_file" != "x/dev/null"; then
  21996. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21997. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21998. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21999. cat confcache >"$cache_file"
  22000. else
  22001. case $cache_file in #(
  22002. */* | ?:*)
  22003. mv -f confcache "$cache_file"$$ &&
  22004. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22005. *)
  22006. mv -f confcache "$cache_file" ;;
  22007. esac
  22008. fi
  22009. fi
  22010. else
  22011. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22012. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22013. fi
  22014. fi
  22015. rm -f confcache
  22016. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22017. # Let make expand exec_prefix.
  22018. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22019. DEFS=-DHAVE_CONFIG_H
  22020. ac_libobjs=
  22021. ac_ltlibobjs=
  22022. U=
  22023. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22024. # 1. Remove the extension, and $U if already installed.
  22025. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22026. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22027. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22028. # will be set to the directory where LIBOBJS objects are built.
  22029. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22030. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22031. done
  22032. LIBOBJS=$ac_libobjs
  22033. LTLIBOBJS=$ac_ltlibobjs
  22034. : "${CONFIG_STATUS=./config.status}"
  22035. ac_write_fail=0
  22036. ac_clean_files_save=$ac_clean_files
  22037. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22038. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22039. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22040. as_write_fail=0
  22041. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22042. #! $SHELL
  22043. # Generated by $as_me.
  22044. # Run this file to recreate the current configuration.
  22045. # Compiler output produced by configure, useful for debugging
  22046. # configure, is in config.log if it exists.
  22047. debug=false
  22048. ac_cs_recheck=false
  22049. ac_cs_silent=false
  22050. SHELL=\${CONFIG_SHELL-$SHELL}
  22051. export SHELL
  22052. _ASEOF
  22053. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22054. ## -------------------- ##
  22055. ## M4sh Initialization. ##
  22056. ## -------------------- ##
  22057. # Be more Bourne compatible
  22058. DUALCASE=1; export DUALCASE # for MKS sh
  22059. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22060. emulate sh
  22061. NULLCMD=:
  22062. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22063. # is contrary to our usage. Disable this feature.
  22064. alias -g '${1+"$@"}'='"$@"'
  22065. setopt NO_GLOB_SUBST
  22066. else
  22067. case `(set -o) 2>/dev/null` in #(
  22068. *posix*) :
  22069. set -o posix ;; #(
  22070. *) :
  22071. ;;
  22072. esac
  22073. fi
  22074. as_nl='
  22075. '
  22076. export as_nl
  22077. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22078. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22079. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22080. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22081. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22082. # but without wasting forks for bash or zsh.
  22083. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22084. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22085. as_echo='print -r --'
  22086. as_echo_n='print -rn --'
  22087. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22088. as_echo='printf %s\n'
  22089. as_echo_n='printf %s'
  22090. else
  22091. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22092. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22093. as_echo_n='/usr/ucb/echo -n'
  22094. else
  22095. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22096. as_echo_n_body='eval
  22097. arg=$1;
  22098. case $arg in #(
  22099. *"$as_nl"*)
  22100. expr "X$arg" : "X\\(.*\\)$as_nl";
  22101. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22102. esac;
  22103. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22104. '
  22105. export as_echo_n_body
  22106. as_echo_n='sh -c $as_echo_n_body as_echo'
  22107. fi
  22108. export as_echo_body
  22109. as_echo='sh -c $as_echo_body as_echo'
  22110. fi
  22111. # The user is always right.
  22112. if test "${PATH_SEPARATOR+set}" != set; then
  22113. PATH_SEPARATOR=:
  22114. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22115. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22116. PATH_SEPARATOR=';'
  22117. }
  22118. fi
  22119. # IFS
  22120. # We need space, tab and new line, in precisely that order. Quoting is
  22121. # there to prevent editors from complaining about space-tab.
  22122. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22123. # splitting by setting IFS to empty value.)
  22124. IFS=" "" $as_nl"
  22125. # Find who we are. Look in the path if we contain no directory separator.
  22126. as_myself=
  22127. case $0 in #((
  22128. *[\\/]* ) as_myself=$0 ;;
  22129. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22130. for as_dir in $PATH
  22131. do
  22132. IFS=$as_save_IFS
  22133. test -z "$as_dir" && as_dir=.
  22134. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22135. done
  22136. IFS=$as_save_IFS
  22137. ;;
  22138. esac
  22139. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22140. # in which case we are not to be found in the path.
  22141. if test "x$as_myself" = x; then
  22142. as_myself=$0
  22143. fi
  22144. if test ! -f "$as_myself"; then
  22145. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22146. exit 1
  22147. fi
  22148. # Unset variables that we do not need and which cause bugs (e.g. in
  22149. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22150. # suppresses any "Segmentation fault" message there. '((' could
  22151. # trigger a bug in pdksh 5.2.14.
  22152. for as_var in BASH_ENV ENV MAIL MAILPATH
  22153. do eval test x\${$as_var+set} = xset \
  22154. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22155. done
  22156. PS1='$ '
  22157. PS2='> '
  22158. PS4='+ '
  22159. # NLS nuisances.
  22160. LC_ALL=C
  22161. export LC_ALL
  22162. LANGUAGE=C
  22163. export LANGUAGE
  22164. # CDPATH.
  22165. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22166. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22167. # ----------------------------------------
  22168. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22169. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22170. # script with STATUS, using 1 if that was 0.
  22171. as_fn_error ()
  22172. {
  22173. as_status=$1; test $as_status -eq 0 && as_status=1
  22174. if test "$4"; then
  22175. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22176. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22177. fi
  22178. $as_echo "$as_me: error: $2" >&2
  22179. as_fn_exit $as_status
  22180. } # as_fn_error
  22181. # as_fn_set_status STATUS
  22182. # -----------------------
  22183. # Set $? to STATUS, without forking.
  22184. as_fn_set_status ()
  22185. {
  22186. return $1
  22187. } # as_fn_set_status
  22188. # as_fn_exit STATUS
  22189. # -----------------
  22190. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22191. as_fn_exit ()
  22192. {
  22193. set +e
  22194. as_fn_set_status $1
  22195. exit $1
  22196. } # as_fn_exit
  22197. # as_fn_unset VAR
  22198. # ---------------
  22199. # Portably unset VAR.
  22200. as_fn_unset ()
  22201. {
  22202. { eval $1=; unset $1;}
  22203. }
  22204. as_unset=as_fn_unset
  22205. # as_fn_append VAR VALUE
  22206. # ----------------------
  22207. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22208. # advantage of any shell optimizations that allow amortized linear growth over
  22209. # repeated appends, instead of the typical quadratic growth present in naive
  22210. # implementations.
  22211. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22212. eval 'as_fn_append ()
  22213. {
  22214. eval $1+=\$2
  22215. }'
  22216. else
  22217. as_fn_append ()
  22218. {
  22219. eval $1=\$$1\$2
  22220. }
  22221. fi # as_fn_append
  22222. # as_fn_arith ARG...
  22223. # ------------------
  22224. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22225. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22226. # must be portable across $(()) and expr.
  22227. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22228. eval 'as_fn_arith ()
  22229. {
  22230. as_val=$(( $* ))
  22231. }'
  22232. else
  22233. as_fn_arith ()
  22234. {
  22235. as_val=`expr "$@" || test $? -eq 1`
  22236. }
  22237. fi # as_fn_arith
  22238. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22239. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22240. as_expr=expr
  22241. else
  22242. as_expr=false
  22243. fi
  22244. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22245. as_basename=basename
  22246. else
  22247. as_basename=false
  22248. fi
  22249. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22250. as_dirname=dirname
  22251. else
  22252. as_dirname=false
  22253. fi
  22254. as_me=`$as_basename -- "$0" ||
  22255. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22256. X"$0" : 'X\(//\)$' \| \
  22257. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22258. $as_echo X/"$0" |
  22259. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22260. s//\1/
  22261. q
  22262. }
  22263. /^X\/\(\/\/\)$/{
  22264. s//\1/
  22265. q
  22266. }
  22267. /^X\/\(\/\).*/{
  22268. s//\1/
  22269. q
  22270. }
  22271. s/.*/./; q'`
  22272. # Avoid depending upon Character Ranges.
  22273. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22274. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22275. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22276. as_cr_digits='0123456789'
  22277. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22278. ECHO_C= ECHO_N= ECHO_T=
  22279. case `echo -n x` in #(((((
  22280. -n*)
  22281. case `echo 'xy\c'` in
  22282. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22283. xy) ECHO_C='\c';;
  22284. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22285. ECHO_T=' ';;
  22286. esac;;
  22287. *)
  22288. ECHO_N='-n';;
  22289. esac
  22290. rm -f conf$$ conf$$.exe conf$$.file
  22291. if test -d conf$$.dir; then
  22292. rm -f conf$$.dir/conf$$.file
  22293. else
  22294. rm -f conf$$.dir
  22295. mkdir conf$$.dir 2>/dev/null
  22296. fi
  22297. if (echo >conf$$.file) 2>/dev/null; then
  22298. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22299. as_ln_s='ln -s'
  22300. # ... but there are two gotchas:
  22301. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22302. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22303. # In both cases, we have to default to `cp -pR'.
  22304. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22305. as_ln_s='cp -pR'
  22306. elif ln conf$$.file conf$$ 2>/dev/null; then
  22307. as_ln_s=ln
  22308. else
  22309. as_ln_s='cp -pR'
  22310. fi
  22311. else
  22312. as_ln_s='cp -pR'
  22313. fi
  22314. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22315. rmdir conf$$.dir 2>/dev/null
  22316. # as_fn_mkdir_p
  22317. # -------------
  22318. # Create "$as_dir" as a directory, including parents if necessary.
  22319. as_fn_mkdir_p ()
  22320. {
  22321. case $as_dir in #(
  22322. -*) as_dir=./$as_dir;;
  22323. esac
  22324. test -d "$as_dir" || eval $as_mkdir_p || {
  22325. as_dirs=
  22326. while :; do
  22327. case $as_dir in #(
  22328. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22329. *) as_qdir=$as_dir;;
  22330. esac
  22331. as_dirs="'$as_qdir' $as_dirs"
  22332. as_dir=`$as_dirname -- "$as_dir" ||
  22333. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22334. X"$as_dir" : 'X\(//\)[^/]' \| \
  22335. X"$as_dir" : 'X\(//\)$' \| \
  22336. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22337. $as_echo X"$as_dir" |
  22338. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22339. s//\1/
  22340. q
  22341. }
  22342. /^X\(\/\/\)[^/].*/{
  22343. s//\1/
  22344. q
  22345. }
  22346. /^X\(\/\/\)$/{
  22347. s//\1/
  22348. q
  22349. }
  22350. /^X\(\/\).*/{
  22351. s//\1/
  22352. q
  22353. }
  22354. s/.*/./; q'`
  22355. test -d "$as_dir" && break
  22356. done
  22357. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22358. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22359. } # as_fn_mkdir_p
  22360. if mkdir -p . 2>/dev/null; then
  22361. as_mkdir_p='mkdir -p "$as_dir"'
  22362. else
  22363. test -d ./-p && rmdir ./-p
  22364. as_mkdir_p=false
  22365. fi
  22366. # as_fn_executable_p FILE
  22367. # -----------------------
  22368. # Test if FILE is an executable regular file.
  22369. as_fn_executable_p ()
  22370. {
  22371. test -f "$1" && test -x "$1"
  22372. } # as_fn_executable_p
  22373. as_test_x='test -x'
  22374. as_executable_p=as_fn_executable_p
  22375. # Sed expression to map a string onto a valid CPP name.
  22376. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22377. # Sed expression to map a string onto a valid variable name.
  22378. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22379. exec 6>&1
  22380. ## ----------------------------------- ##
  22381. ## Main body of $CONFIG_STATUS script. ##
  22382. ## ----------------------------------- ##
  22383. _ASEOF
  22384. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22385. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22386. # Save the log message, to keep $0 and so on meaningful, and to
  22387. # report actual input values of CONFIG_FILES etc. instead of their
  22388. # values after options handling.
  22389. ac_log="
  22390. This file was extended by $as_me, which was
  22391. generated by GNU Autoconf 2.69. Invocation command line was
  22392. CONFIG_FILES = $CONFIG_FILES
  22393. CONFIG_HEADERS = $CONFIG_HEADERS
  22394. CONFIG_LINKS = $CONFIG_LINKS
  22395. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22396. $ $0 $@
  22397. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22398. "
  22399. _ACEOF
  22400. case $ac_config_files in *"
  22401. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22402. esac
  22403. case $ac_config_headers in *"
  22404. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22405. esac
  22406. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22407. # Files that config.status was made for.
  22408. config_files="$ac_config_files"
  22409. config_headers="$ac_config_headers"
  22410. config_commands="$ac_config_commands"
  22411. _ACEOF
  22412. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22413. ac_cs_usage="\
  22414. \`$as_me' instantiates files and other configuration actions
  22415. from templates according to the current configuration. Unless the files
  22416. and actions are specified as TAGs, all are instantiated by default.
  22417. Usage: $0 [OPTION]... [TAG]...
  22418. -h, --help print this help, then exit
  22419. -V, --version print version number and configuration settings, then exit
  22420. --config print configuration, then exit
  22421. -q, --quiet, --silent
  22422. do not print progress messages
  22423. -d, --debug don't remove temporary files
  22424. --recheck update $as_me by reconfiguring in the same conditions
  22425. --file=FILE[:TEMPLATE]
  22426. instantiate the configuration file FILE
  22427. --header=FILE[:TEMPLATE]
  22428. instantiate the configuration header FILE
  22429. Configuration files:
  22430. $config_files
  22431. Configuration headers:
  22432. $config_headers
  22433. Configuration commands:
  22434. $config_commands
  22435. Report bugs to the package provider."
  22436. _ACEOF
  22437. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22438. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22439. ac_cs_version="\\
  22440. config.status
  22441. configured by $0, generated by GNU Autoconf 2.69,
  22442. with options \\"\$ac_cs_config\\"
  22443. Copyright (C) 2012 Free Software Foundation, Inc.
  22444. This config.status script is free software; the Free Software Foundation
  22445. gives unlimited permission to copy, distribute and modify it."
  22446. ac_pwd='$ac_pwd'
  22447. srcdir='$srcdir'
  22448. INSTALL='$INSTALL'
  22449. AWK='$AWK'
  22450. test -n "\$AWK" || AWK=awk
  22451. _ACEOF
  22452. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22453. # The default lists apply if the user does not specify any file.
  22454. ac_need_defaults=:
  22455. while test $# != 0
  22456. do
  22457. case $1 in
  22458. --*=?*)
  22459. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22460. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22461. ac_shift=:
  22462. ;;
  22463. --*=)
  22464. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22465. ac_optarg=
  22466. ac_shift=:
  22467. ;;
  22468. *)
  22469. ac_option=$1
  22470. ac_optarg=$2
  22471. ac_shift=shift
  22472. ;;
  22473. esac
  22474. case $ac_option in
  22475. # Handling of the options.
  22476. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22477. ac_cs_recheck=: ;;
  22478. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22479. $as_echo "$ac_cs_version"; exit ;;
  22480. --config | --confi | --conf | --con | --co | --c )
  22481. $as_echo "$ac_cs_config"; exit ;;
  22482. --debug | --debu | --deb | --de | --d | -d )
  22483. debug=: ;;
  22484. --file | --fil | --fi | --f )
  22485. $ac_shift
  22486. case $ac_optarg in
  22487. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22488. '') as_fn_error $? "missing file argument" ;;
  22489. esac
  22490. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22491. ac_need_defaults=false;;
  22492. --header | --heade | --head | --hea )
  22493. $ac_shift
  22494. case $ac_optarg in
  22495. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22496. esac
  22497. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22498. ac_need_defaults=false;;
  22499. --he | --h)
  22500. # Conflict between --help and --header
  22501. as_fn_error $? "ambiguous option: \`$1'
  22502. Try \`$0 --help' for more information.";;
  22503. --help | --hel | -h )
  22504. $as_echo "$ac_cs_usage"; exit ;;
  22505. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22506. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22507. ac_cs_silent=: ;;
  22508. # This is an error.
  22509. -*) as_fn_error $? "unrecognized option: \`$1'
  22510. Try \`$0 --help' for more information." ;;
  22511. *) as_fn_append ac_config_targets " $1"
  22512. ac_need_defaults=false ;;
  22513. esac
  22514. shift
  22515. done
  22516. ac_configure_extra_args=
  22517. if $ac_cs_silent; then
  22518. exec 6>/dev/null
  22519. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22520. fi
  22521. _ACEOF
  22522. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22523. if \$ac_cs_recheck; then
  22524. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22525. shift
  22526. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22527. CONFIG_SHELL='$SHELL'
  22528. export CONFIG_SHELL
  22529. exec "\$@"
  22530. fi
  22531. _ACEOF
  22532. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22533. exec 5>>config.log
  22534. {
  22535. echo
  22536. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22537. ## Running $as_me. ##
  22538. _ASBOX
  22539. $as_echo "$ac_log"
  22540. } >&5
  22541. _ACEOF
  22542. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22543. #
  22544. # INIT-COMMANDS
  22545. #
  22546. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22547. # if CDPATH is set.
  22548. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22549. sed_quote_subst='$sed_quote_subst'
  22550. double_quote_subst='$double_quote_subst'
  22551. delay_variable_subst='$delay_variable_subst'
  22552. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22553. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22554. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22555. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22556. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22557. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22558. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22559. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22560. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22561. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22562. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22563. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22564. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22565. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22566. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22567. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22568. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22569. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22570. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22571. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22572. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22573. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22574. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22575. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22576. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22577. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22578. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22579. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22580. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22581. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22582. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22583. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22584. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22585. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22586. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22587. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22588. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22589. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22590. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22591. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22592. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22593. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22594. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22595. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22596. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22597. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22598. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22599. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22600. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22601. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22602. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22603. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22604. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22605. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22606. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22607. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22608. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22609. 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"`'
  22610. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22611. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22612. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22613. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22614. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22615. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22616. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22617. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22618. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22619. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22620. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22621. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22622. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22623. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22624. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22625. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22626. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22627. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22628. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22629. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22630. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22631. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22632. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22633. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22634. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22635. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22636. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22637. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22638. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22639. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22640. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22641. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22642. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22643. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22644. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22645. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22646. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22647. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22648. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22649. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22650. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22651. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22652. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22653. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22654. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22655. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22656. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22657. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22658. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22659. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22660. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22661. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22662. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22663. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22664. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22665. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22666. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22667. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22668. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22669. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22670. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22671. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22672. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22673. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22674. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22675. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22676. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22677. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22678. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22679. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22680. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22681. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22682. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22683. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22684. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22685. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22686. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22687. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22688. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22689. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  22690. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22691. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  22692. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22693. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22694. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22695. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22696. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22697. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  22698. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22699. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  22700. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22701. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  22702. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22703. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  22704. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22705. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  22706. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22707. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  22708. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22709. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  22710. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22711. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  22712. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22713. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  22714. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22715. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22716. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22717. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22718. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22719. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  22720. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22721. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22722. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22723. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22724. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22725. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22726. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22727. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22728. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22729. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22730. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22731. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22732. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22733. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  22734. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22735. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  22736. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22737. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  22738. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22739. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22740. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22741. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  22742. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22743. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  22744. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22745. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  22746. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22747. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  22748. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22749. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  22750. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22751. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  22752. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22753. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  22754. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22755. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  22756. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22757. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  22758. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22759. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22760. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22761. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  22762. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22763. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  22764. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22765. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22766. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22767. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22768. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22769. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  22770. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22771. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  22772. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22773. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  22774. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22775. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  22776. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22777. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  22778. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22779. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  22780. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22781. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  22782. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22783. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  22784. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22785. LTCC='$LTCC'
  22786. LTCFLAGS='$LTCFLAGS'
  22787. compiler='$compiler_DEFAULT'
  22788. # A function that is used when there is no print builtin or printf.
  22789. func_fallback_echo ()
  22790. {
  22791. eval 'cat <<_LTECHO_EOF
  22792. \$1
  22793. _LTECHO_EOF'
  22794. }
  22795. # Quote evaled strings.
  22796. for var in AS \
  22797. DLLTOOL \
  22798. OBJDUMP \
  22799. SHELL \
  22800. ECHO \
  22801. PATH_SEPARATOR \
  22802. SED \
  22803. GREP \
  22804. EGREP \
  22805. FGREP \
  22806. LD \
  22807. NM \
  22808. LN_S \
  22809. lt_SP2NL \
  22810. lt_NL2SP \
  22811. reload_flag \
  22812. deplibs_check_method \
  22813. file_magic_cmd \
  22814. file_magic_glob \
  22815. want_nocaseglob \
  22816. sharedlib_from_linklib_cmd \
  22817. AR \
  22818. AR_FLAGS \
  22819. archiver_list_spec \
  22820. STRIP \
  22821. RANLIB \
  22822. CC \
  22823. CFLAGS \
  22824. compiler \
  22825. lt_cv_sys_global_symbol_pipe \
  22826. lt_cv_sys_global_symbol_to_cdecl \
  22827. lt_cv_sys_global_symbol_to_c_name_address \
  22828. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22829. nm_file_list_spec \
  22830. lt_prog_compiler_no_builtin_flag \
  22831. lt_prog_compiler_pic \
  22832. lt_prog_compiler_wl \
  22833. lt_prog_compiler_static \
  22834. lt_cv_prog_compiler_c_o \
  22835. need_locks \
  22836. MANIFEST_TOOL \
  22837. DSYMUTIL \
  22838. NMEDIT \
  22839. LIPO \
  22840. OTOOL \
  22841. OTOOL64 \
  22842. shrext_cmds \
  22843. export_dynamic_flag_spec \
  22844. whole_archive_flag_spec \
  22845. compiler_needs_object \
  22846. with_gnu_ld \
  22847. allow_undefined_flag \
  22848. no_undefined_flag \
  22849. hardcode_libdir_flag_spec \
  22850. hardcode_libdir_separator \
  22851. exclude_expsyms \
  22852. include_expsyms \
  22853. file_list_spec \
  22854. variables_saved_for_relink \
  22855. libname_spec \
  22856. library_names_spec \
  22857. soname_spec \
  22858. install_override_mode \
  22859. finish_eval \
  22860. old_striplib \
  22861. striplib \
  22862. compiler_lib_search_dirs \
  22863. predep_objects \
  22864. postdep_objects \
  22865. predeps \
  22866. postdeps \
  22867. compiler_lib_search_path \
  22868. LD_RC \
  22869. LD_CXX \
  22870. reload_flag_RC \
  22871. reload_flag_CXX \
  22872. compiler_RC \
  22873. compiler_CXX \
  22874. lt_prog_compiler_no_builtin_flag_RC \
  22875. lt_prog_compiler_no_builtin_flag_CXX \
  22876. lt_prog_compiler_pic_RC \
  22877. lt_prog_compiler_pic_CXX \
  22878. lt_prog_compiler_wl_RC \
  22879. lt_prog_compiler_wl_CXX \
  22880. lt_prog_compiler_static_RC \
  22881. lt_prog_compiler_static_CXX \
  22882. lt_cv_prog_compiler_c_o_RC \
  22883. lt_cv_prog_compiler_c_o_CXX \
  22884. export_dynamic_flag_spec_RC \
  22885. export_dynamic_flag_spec_CXX \
  22886. whole_archive_flag_spec_RC \
  22887. whole_archive_flag_spec_CXX \
  22888. compiler_needs_object_RC \
  22889. compiler_needs_object_CXX \
  22890. with_gnu_ld_RC \
  22891. with_gnu_ld_CXX \
  22892. allow_undefined_flag_RC \
  22893. allow_undefined_flag_CXX \
  22894. no_undefined_flag_RC \
  22895. no_undefined_flag_CXX \
  22896. hardcode_libdir_flag_spec_RC \
  22897. hardcode_libdir_flag_spec_CXX \
  22898. hardcode_libdir_separator_RC \
  22899. hardcode_libdir_separator_CXX \
  22900. exclude_expsyms_RC \
  22901. exclude_expsyms_CXX \
  22902. include_expsyms_RC \
  22903. include_expsyms_CXX \
  22904. file_list_spec_RC \
  22905. file_list_spec_CXX \
  22906. compiler_lib_search_dirs_RC \
  22907. compiler_lib_search_dirs_CXX \
  22908. predep_objects_RC \
  22909. predep_objects_CXX \
  22910. postdep_objects_RC \
  22911. postdep_objects_CXX \
  22912. predeps_RC \
  22913. predeps_CXX \
  22914. postdeps_RC \
  22915. postdeps_CXX \
  22916. compiler_lib_search_path_RC \
  22917. compiler_lib_search_path_CXX; do
  22918. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22919. *[\\\\\\\`\\"\\\$]*)
  22920. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22921. ;;
  22922. *)
  22923. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22924. ;;
  22925. esac
  22926. done
  22927. # Double-quote double-evaled strings.
  22928. for var in reload_cmds \
  22929. old_postinstall_cmds \
  22930. old_postuninstall_cmds \
  22931. old_archive_cmds \
  22932. extract_expsyms_cmds \
  22933. old_archive_from_new_cmds \
  22934. old_archive_from_expsyms_cmds \
  22935. archive_cmds \
  22936. archive_expsym_cmds \
  22937. module_cmds \
  22938. module_expsym_cmds \
  22939. export_symbols_cmds \
  22940. prelink_cmds \
  22941. postlink_cmds \
  22942. postinstall_cmds \
  22943. postuninstall_cmds \
  22944. finish_cmds \
  22945. sys_lib_search_path_spec \
  22946. sys_lib_dlsearch_path_spec \
  22947. reload_cmds_RC \
  22948. reload_cmds_CXX \
  22949. old_archive_cmds_RC \
  22950. old_archive_cmds_CXX \
  22951. old_archive_from_new_cmds_RC \
  22952. old_archive_from_new_cmds_CXX \
  22953. old_archive_from_expsyms_cmds_RC \
  22954. old_archive_from_expsyms_cmds_CXX \
  22955. archive_cmds_RC \
  22956. archive_cmds_CXX \
  22957. archive_expsym_cmds_RC \
  22958. archive_expsym_cmds_CXX \
  22959. module_cmds_RC \
  22960. module_cmds_CXX \
  22961. module_expsym_cmds_RC \
  22962. module_expsym_cmds_CXX \
  22963. export_symbols_cmds_RC \
  22964. export_symbols_cmds_CXX \
  22965. prelink_cmds_RC \
  22966. prelink_cmds_CXX \
  22967. postlink_cmds_RC \
  22968. postlink_cmds_CXX; do
  22969. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22970. *[\\\\\\\`\\"\\\$]*)
  22971. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22972. ;;
  22973. *)
  22974. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22975. ;;
  22976. esac
  22977. done
  22978. ac_aux_dir='$ac_aux_dir'
  22979. xsi_shell='$xsi_shell'
  22980. lt_shell_append='$lt_shell_append'
  22981. # See if we are running on zsh, and set the options which allow our
  22982. # commands through without removal of \ escapes INIT.
  22983. if test -n "\${ZSH_VERSION+set}" ; then
  22984. setopt NO_GLOB_SUBST
  22985. fi
  22986. PACKAGE='$PACKAGE'
  22987. VERSION='$VERSION'
  22988. TIMESTAMP='$TIMESTAMP'
  22989. RM='$RM'
  22990. ofile='$ofile'
  22991. SUMMARY="$SUMMARY"
  22992. _ACEOF
  22993. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22994. # Handling of arguments.
  22995. for ac_config_target in $ac_config_targets
  22996. do
  22997. case $ac_config_target in
  22998. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22999. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23000. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  23001. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  23002. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  23003. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  23004. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  23005. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  23006. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  23007. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  23008. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23009. esac
  23010. done
  23011. # If the user did not use the arguments to specify the items to instantiate,
  23012. # then the envvar interface is used. Set only those that are not.
  23013. # We use the long form for the default assignment because of an extremely
  23014. # bizarre bug on SunOS 4.1.3.
  23015. if $ac_need_defaults; then
  23016. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23017. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23018. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23019. fi
  23020. # Have a temporary directory for convenience. Make it in the build tree
  23021. # simply because there is no reason against having it here, and in addition,
  23022. # creating and moving files from /tmp can sometimes cause problems.
  23023. # Hook for its removal unless debugging.
  23024. # Note that there is a small window in which the directory will not be cleaned:
  23025. # after its creation but before its name has been assigned to `$tmp'.
  23026. $debug ||
  23027. {
  23028. tmp= ac_tmp=
  23029. trap 'exit_status=$?
  23030. : "${ac_tmp:=$tmp}"
  23031. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23032. ' 0
  23033. trap 'as_fn_exit 1' 1 2 13 15
  23034. }
  23035. # Create a (secure) tmp directory for tmp files.
  23036. {
  23037. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23038. test -d "$tmp"
  23039. } ||
  23040. {
  23041. tmp=./conf$$-$RANDOM
  23042. (umask 077 && mkdir "$tmp")
  23043. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23044. ac_tmp=$tmp
  23045. # Set up the scripts for CONFIG_FILES section.
  23046. # No need to generate them if there are no CONFIG_FILES.
  23047. # This happens for instance with `./config.status config.h'.
  23048. if test -n "$CONFIG_FILES"; then
  23049. ac_cr=`echo X | tr X '\015'`
  23050. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23051. # But we know of no other shell where ac_cr would be empty at this
  23052. # point, so we can use a bashism as a fallback.
  23053. if test "x$ac_cr" = x; then
  23054. eval ac_cr=\$\'\\r\'
  23055. fi
  23056. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23057. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23058. ac_cs_awk_cr='\\r'
  23059. else
  23060. ac_cs_awk_cr=$ac_cr
  23061. fi
  23062. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23063. _ACEOF
  23064. {
  23065. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23066. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23067. echo "_ACEOF"
  23068. } >conf$$subs.sh ||
  23069. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23070. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23071. ac_delim='%!_!# '
  23072. for ac_last_try in false false false false false :; do
  23073. . ./conf$$subs.sh ||
  23074. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23075. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23076. if test $ac_delim_n = $ac_delim_num; then
  23077. break
  23078. elif $ac_last_try; then
  23079. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23080. else
  23081. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23082. fi
  23083. done
  23084. rm -f conf$$subs.sh
  23085. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23086. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23087. _ACEOF
  23088. sed -n '
  23089. h
  23090. s/^/S["/; s/!.*/"]=/
  23091. p
  23092. g
  23093. s/^[^!]*!//
  23094. :repl
  23095. t repl
  23096. s/'"$ac_delim"'$//
  23097. t delim
  23098. :nl
  23099. h
  23100. s/\(.\{148\}\)..*/\1/
  23101. t more1
  23102. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23103. p
  23104. n
  23105. b repl
  23106. :more1
  23107. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23108. p
  23109. g
  23110. s/.\{148\}//
  23111. t nl
  23112. :delim
  23113. h
  23114. s/\(.\{148\}\)..*/\1/
  23115. t more2
  23116. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23117. p
  23118. b
  23119. :more2
  23120. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23121. p
  23122. g
  23123. s/.\{148\}//
  23124. t delim
  23125. ' <conf$$subs.awk | sed '
  23126. /^[^""]/{
  23127. N
  23128. s/\n//
  23129. }
  23130. ' >>$CONFIG_STATUS || ac_write_fail=1
  23131. rm -f conf$$subs.awk
  23132. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23133. _ACAWK
  23134. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23135. for (key in S) S_is_set[key] = 1
  23136. FS = ""
  23137. }
  23138. {
  23139. line = $ 0
  23140. nfields = split(line, field, "@")
  23141. substed = 0
  23142. len = length(field[1])
  23143. for (i = 2; i < nfields; i++) {
  23144. key = field[i]
  23145. keylen = length(key)
  23146. if (S_is_set[key]) {
  23147. value = S[key]
  23148. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23149. len += length(value) + length(field[++i])
  23150. substed = 1
  23151. } else
  23152. len += 1 + keylen
  23153. }
  23154. print line
  23155. }
  23156. _ACAWK
  23157. _ACEOF
  23158. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23159. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23160. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23161. else
  23162. cat
  23163. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23164. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23165. _ACEOF
  23166. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23167. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23168. # trailing colons and then remove the whole line if VPATH becomes empty
  23169. # (actually we leave an empty line to preserve line numbers).
  23170. if test "x$srcdir" = x.; then
  23171. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23172. h
  23173. s///
  23174. s/^/:/
  23175. s/[ ]*$/:/
  23176. s/:\$(srcdir):/:/g
  23177. s/:\${srcdir}:/:/g
  23178. s/:@srcdir@:/:/g
  23179. s/^:*//
  23180. s/:*$//
  23181. x
  23182. s/\(=[ ]*\).*/\1/
  23183. G
  23184. s/\n//
  23185. s/^[^=]*=[ ]*$//
  23186. }'
  23187. fi
  23188. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23189. fi # test -n "$CONFIG_FILES"
  23190. # Set up the scripts for CONFIG_HEADERS section.
  23191. # No need to generate them if there are no CONFIG_HEADERS.
  23192. # This happens for instance with `./config.status Makefile'.
  23193. if test -n "$CONFIG_HEADERS"; then
  23194. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23195. BEGIN {
  23196. _ACEOF
  23197. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23198. # here-document in config.status, that substitutes the proper values into
  23199. # config.h.in to produce config.h.
  23200. # Create a delimiter string that does not exist in confdefs.h, to ease
  23201. # handling of long lines.
  23202. ac_delim='%!_!# '
  23203. for ac_last_try in false false :; do
  23204. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23205. if test -z "$ac_tt"; then
  23206. break
  23207. elif $ac_last_try; then
  23208. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23209. else
  23210. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23211. fi
  23212. done
  23213. # For the awk script, D is an array of macro values keyed by name,
  23214. # likewise P contains macro parameters if any. Preserve backslash
  23215. # newline sequences.
  23216. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23217. sed -n '
  23218. s/.\{148\}/&'"$ac_delim"'/g
  23219. t rset
  23220. :rset
  23221. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23222. t def
  23223. d
  23224. :def
  23225. s/\\$//
  23226. t bsnl
  23227. s/["\\]/\\&/g
  23228. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23229. D["\1"]=" \3"/p
  23230. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23231. d
  23232. :bsnl
  23233. s/["\\]/\\&/g
  23234. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23235. D["\1"]=" \3\\\\\\n"\\/p
  23236. t cont
  23237. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23238. t cont
  23239. d
  23240. :cont
  23241. n
  23242. s/.\{148\}/&'"$ac_delim"'/g
  23243. t clear
  23244. :clear
  23245. s/\\$//
  23246. t bsnlc
  23247. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23248. d
  23249. :bsnlc
  23250. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23251. b cont
  23252. ' <confdefs.h | sed '
  23253. s/'"$ac_delim"'/"\\\
  23254. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23255. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23256. for (key in D) D_is_set[key] = 1
  23257. FS = ""
  23258. }
  23259. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23260. line = \$ 0
  23261. split(line, arg, " ")
  23262. if (arg[1] == "#") {
  23263. defundef = arg[2]
  23264. mac1 = arg[3]
  23265. } else {
  23266. defundef = substr(arg[1], 2)
  23267. mac1 = arg[2]
  23268. }
  23269. split(mac1, mac2, "(") #)
  23270. macro = mac2[1]
  23271. prefix = substr(line, 1, index(line, defundef) - 1)
  23272. if (D_is_set[macro]) {
  23273. # Preserve the white space surrounding the "#".
  23274. print prefix "define", macro P[macro] D[macro]
  23275. next
  23276. } else {
  23277. # Replace #undef with comments. This is necessary, for example,
  23278. # in the case of _POSIX_SOURCE, which is predefined and required
  23279. # on some systems where configure will not decide to define it.
  23280. if (defundef == "undef") {
  23281. print "/*", prefix defundef, macro, "*/"
  23282. next
  23283. }
  23284. }
  23285. }
  23286. { print }
  23287. _ACAWK
  23288. _ACEOF
  23289. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23290. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23291. fi # test -n "$CONFIG_HEADERS"
  23292. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23293. shift
  23294. for ac_tag
  23295. do
  23296. case $ac_tag in
  23297. :[FHLC]) ac_mode=$ac_tag; continue;;
  23298. esac
  23299. case $ac_mode$ac_tag in
  23300. :[FHL]*:*);;
  23301. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23302. :[FH]-) ac_tag=-:-;;
  23303. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23304. esac
  23305. ac_save_IFS=$IFS
  23306. IFS=:
  23307. set x $ac_tag
  23308. IFS=$ac_save_IFS
  23309. shift
  23310. ac_file=$1
  23311. shift
  23312. case $ac_mode in
  23313. :L) ac_source=$1;;
  23314. :[FH])
  23315. ac_file_inputs=
  23316. for ac_f
  23317. do
  23318. case $ac_f in
  23319. -) ac_f="$ac_tmp/stdin";;
  23320. *) # Look for the file first in the build tree, then in the source tree
  23321. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23322. # because $ac_f cannot contain `:'.
  23323. test -f "$ac_f" ||
  23324. case $ac_f in
  23325. [\\/$]*) false;;
  23326. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23327. esac ||
  23328. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23329. esac
  23330. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23331. as_fn_append ac_file_inputs " '$ac_f'"
  23332. done
  23333. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23334. # use $as_me), people would be surprised to read:
  23335. # /* config.h. Generated by config.status. */
  23336. configure_input='Generated from '`
  23337. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23338. `' by configure.'
  23339. if test x"$ac_file" != x-; then
  23340. configure_input="$ac_file. $configure_input"
  23341. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23342. $as_echo "$as_me: creating $ac_file" >&6;}
  23343. fi
  23344. # Neutralize special characters interpreted by sed in replacement strings.
  23345. case $configure_input in #(
  23346. *\&* | *\|* | *\\* )
  23347. ac_sed_conf_input=`$as_echo "$configure_input" |
  23348. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23349. *) ac_sed_conf_input=$configure_input;;
  23350. esac
  23351. case $ac_tag in
  23352. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23353. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23354. esac
  23355. ;;
  23356. esac
  23357. ac_dir=`$as_dirname -- "$ac_file" ||
  23358. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23359. X"$ac_file" : 'X\(//\)[^/]' \| \
  23360. X"$ac_file" : 'X\(//\)$' \| \
  23361. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23362. $as_echo X"$ac_file" |
  23363. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23364. s//\1/
  23365. q
  23366. }
  23367. /^X\(\/\/\)[^/].*/{
  23368. s//\1/
  23369. q
  23370. }
  23371. /^X\(\/\/\)$/{
  23372. s//\1/
  23373. q
  23374. }
  23375. /^X\(\/\).*/{
  23376. s//\1/
  23377. q
  23378. }
  23379. s/.*/./; q'`
  23380. as_dir="$ac_dir"; as_fn_mkdir_p
  23381. ac_builddir=.
  23382. case "$ac_dir" in
  23383. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23384. *)
  23385. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23386. # A ".." for each directory in $ac_dir_suffix.
  23387. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23388. case $ac_top_builddir_sub in
  23389. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23390. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23391. esac ;;
  23392. esac
  23393. ac_abs_top_builddir=$ac_pwd
  23394. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23395. # for backward compatibility:
  23396. ac_top_builddir=$ac_top_build_prefix
  23397. case $srcdir in
  23398. .) # We are building in place.
  23399. ac_srcdir=.
  23400. ac_top_srcdir=$ac_top_builddir_sub
  23401. ac_abs_top_srcdir=$ac_pwd ;;
  23402. [\\/]* | ?:[\\/]* ) # Absolute name.
  23403. ac_srcdir=$srcdir$ac_dir_suffix;
  23404. ac_top_srcdir=$srcdir
  23405. ac_abs_top_srcdir=$srcdir ;;
  23406. *) # Relative name.
  23407. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23408. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23409. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23410. esac
  23411. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23412. case $ac_mode in
  23413. :F)
  23414. #
  23415. # CONFIG_FILE
  23416. #
  23417. case $INSTALL in
  23418. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23419. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23420. esac
  23421. _ACEOF
  23422. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23423. # If the template does not know about datarootdir, expand it.
  23424. # FIXME: This hack should be removed a few years after 2.60.
  23425. ac_datarootdir_hack=; ac_datarootdir_seen=
  23426. ac_sed_dataroot='
  23427. /datarootdir/ {
  23428. p
  23429. q
  23430. }
  23431. /@datadir@/p
  23432. /@docdir@/p
  23433. /@infodir@/p
  23434. /@localedir@/p
  23435. /@mandir@/p'
  23436. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23437. *datarootdir*) ac_datarootdir_seen=yes;;
  23438. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23439. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23440. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23441. _ACEOF
  23442. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23443. ac_datarootdir_hack='
  23444. s&@datadir@&$datadir&g
  23445. s&@docdir@&$docdir&g
  23446. s&@infodir@&$infodir&g
  23447. s&@localedir@&$localedir&g
  23448. s&@mandir@&$mandir&g
  23449. s&\\\${datarootdir}&$datarootdir&g' ;;
  23450. esac
  23451. _ACEOF
  23452. # Neutralize VPATH when `$srcdir' = `.'.
  23453. # Shell code in configure.ac might set extrasub.
  23454. # FIXME: do we really want to maintain this feature?
  23455. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23456. ac_sed_extra="$ac_vpsub
  23457. $extrasub
  23458. _ACEOF
  23459. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23460. :t
  23461. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23462. s|@configure_input@|$ac_sed_conf_input|;t t
  23463. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23464. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23465. s&@srcdir@&$ac_srcdir&;t t
  23466. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23467. s&@top_srcdir@&$ac_top_srcdir&;t t
  23468. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23469. s&@builddir@&$ac_builddir&;t t
  23470. s&@abs_builddir@&$ac_abs_builddir&;t t
  23471. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23472. s&@INSTALL@&$ac_INSTALL&;t t
  23473. $ac_datarootdir_hack
  23474. "
  23475. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23476. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23477. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23478. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23479. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23480. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23482. which seems to be undefined. Please make sure it is defined" >&5
  23483. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23484. which seems to be undefined. Please make sure it is defined" >&2;}
  23485. rm -f "$ac_tmp/stdin"
  23486. case $ac_file in
  23487. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23488. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23489. esac \
  23490. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23491. ;;
  23492. :H)
  23493. #
  23494. # CONFIG_HEADER
  23495. #
  23496. if test x"$ac_file" != x-; then
  23497. {
  23498. $as_echo "/* $configure_input */" \
  23499. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23500. } >"$ac_tmp/config.h" \
  23501. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23502. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23503. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23504. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23505. else
  23506. rm -f "$ac_file"
  23507. mv "$ac_tmp/config.h" "$ac_file" \
  23508. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23509. fi
  23510. else
  23511. $as_echo "/* $configure_input */" \
  23512. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23513. || as_fn_error $? "could not create -" "$LINENO" 5
  23514. fi
  23515. ;;
  23516. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23517. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23518. ;;
  23519. esac
  23520. case $ac_file$ac_mode in
  23521. "libtool":C)
  23522. # See if we are running on zsh, and set the options which allow our
  23523. # commands through without removal of \ escapes.
  23524. if test -n "${ZSH_VERSION+set}" ; then
  23525. setopt NO_GLOB_SUBST
  23526. fi
  23527. cfgfile="${ofile}T"
  23528. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23529. $RM "$cfgfile"
  23530. cat <<_LT_EOF >> "$cfgfile"
  23531. #! $SHELL
  23532. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23533. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23534. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23535. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23536. #
  23537. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23538. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23539. # Foundation, Inc.
  23540. # Written by Gordon Matzigkeit, 1996
  23541. #
  23542. # This file is part of GNU Libtool.
  23543. #
  23544. # GNU Libtool is free software; you can redistribute it and/or
  23545. # modify it under the terms of the GNU General Public License as
  23546. # published by the Free Software Foundation; either version 2 of
  23547. # the License, or (at your option) any later version.
  23548. #
  23549. # As a special exception to the GNU General Public License,
  23550. # if you distribute this file as part of a program or library that
  23551. # is built using GNU Libtool, you may include this file under the
  23552. # same distribution terms that you use for the rest of that program.
  23553. #
  23554. # GNU Libtool is distributed in the hope that it will be useful,
  23555. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23556. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23557. # GNU General Public License for more details.
  23558. #
  23559. # You should have received a copy of the GNU General Public License
  23560. # along with GNU Libtool; see the file COPYING. If not, a copy
  23561. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23562. # obtained by writing to the Free Software Foundation, Inc.,
  23563. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23564. # The names of the tagged configurations supported by this script.
  23565. available_tags="RC CXX "
  23566. # ### BEGIN LIBTOOL CONFIG
  23567. # Which release of libtool.m4 was used?
  23568. macro_version=$macro_version
  23569. macro_revision=$macro_revision
  23570. # Assembler program.
  23571. AS=$lt_AS
  23572. # DLL creation program.
  23573. DLLTOOL=$lt_DLLTOOL
  23574. # Object dumper program.
  23575. OBJDUMP=$lt_OBJDUMP
  23576. # Whether or not to build shared libraries.
  23577. build_libtool_libs=$enable_shared
  23578. # Whether or not to build static libraries.
  23579. build_old_libs=$enable_static
  23580. # What type of objects to build.
  23581. pic_mode=$pic_mode
  23582. # Whether or not to optimize for fast installation.
  23583. fast_install=$enable_fast_install
  23584. # Shell to use when invoking shell scripts.
  23585. SHELL=$lt_SHELL
  23586. # An echo program that protects backslashes.
  23587. ECHO=$lt_ECHO
  23588. # The PATH separator for the build system.
  23589. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23590. # The host system.
  23591. host_alias=$host_alias
  23592. host=$host
  23593. host_os=$host_os
  23594. # The build system.
  23595. build_alias=$build_alias
  23596. build=$build
  23597. build_os=$build_os
  23598. # A sed program that does not truncate output.
  23599. SED=$lt_SED
  23600. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23601. Xsed="\$SED -e 1s/^X//"
  23602. # A grep program that handles long lines.
  23603. GREP=$lt_GREP
  23604. # An ERE matcher.
  23605. EGREP=$lt_EGREP
  23606. # A literal string matcher.
  23607. FGREP=$lt_FGREP
  23608. # A BSD- or MS-compatible name lister.
  23609. NM=$lt_NM
  23610. # Whether we need soft or hard links.
  23611. LN_S=$lt_LN_S
  23612. # What is the maximum length of a command?
  23613. max_cmd_len=$max_cmd_len
  23614. # Object file suffix (normally "o").
  23615. objext=$ac_objext
  23616. # Executable file suffix (normally "").
  23617. exeext=$exeext
  23618. # whether the shell understands "unset".
  23619. lt_unset=$lt_unset
  23620. # turn spaces into newlines.
  23621. SP2NL=$lt_lt_SP2NL
  23622. # turn newlines into spaces.
  23623. NL2SP=$lt_lt_NL2SP
  23624. # convert \$build file names to \$host format.
  23625. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23626. # convert \$build files to toolchain format.
  23627. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23628. # Method to check whether dependent libraries are shared objects.
  23629. deplibs_check_method=$lt_deplibs_check_method
  23630. # Command to use when deplibs_check_method = "file_magic".
  23631. file_magic_cmd=$lt_file_magic_cmd
  23632. # How to find potential files when deplibs_check_method = "file_magic".
  23633. file_magic_glob=$lt_file_magic_glob
  23634. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23635. want_nocaseglob=$lt_want_nocaseglob
  23636. # Command to associate shared and link libraries.
  23637. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23638. # The archiver.
  23639. AR=$lt_AR
  23640. # Flags to create an archive.
  23641. AR_FLAGS=$lt_AR_FLAGS
  23642. # How to feed a file listing to the archiver.
  23643. archiver_list_spec=$lt_archiver_list_spec
  23644. # A symbol stripping program.
  23645. STRIP=$lt_STRIP
  23646. # Commands used to install an old-style archive.
  23647. RANLIB=$lt_RANLIB
  23648. old_postinstall_cmds=$lt_old_postinstall_cmds
  23649. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23650. # Whether to use a lock for old archive extraction.
  23651. lock_old_archive_extraction=$lock_old_archive_extraction
  23652. # A C compiler.
  23653. LTCC=$lt_CC
  23654. # LTCC compiler flags.
  23655. LTCFLAGS=$lt_CFLAGS
  23656. # Take the output of nm and produce a listing of raw symbols and C names.
  23657. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23658. # Transform the output of nm in a proper C declaration.
  23659. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23660. # Transform the output of nm in a C name address pair.
  23661. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23662. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23663. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23664. # Specify filename containing input files for \$NM.
  23665. nm_file_list_spec=$lt_nm_file_list_spec
  23666. # The root where to search for dependent libraries,and in which our libraries should be installed.
  23667. lt_sysroot=$lt_sysroot
  23668. # The name of the directory that contains temporary libtool files.
  23669. objdir=$objdir
  23670. # Used to examine libraries when file_magic_cmd begins with "file".
  23671. MAGIC_CMD=$MAGIC_CMD
  23672. # Must we lock files when doing compilation?
  23673. need_locks=$lt_need_locks
  23674. # Manifest tool.
  23675. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23676. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23677. DSYMUTIL=$lt_DSYMUTIL
  23678. # Tool to change global to local symbols on Mac OS X.
  23679. NMEDIT=$lt_NMEDIT
  23680. # Tool to manipulate fat objects and archives on Mac OS X.
  23681. LIPO=$lt_LIPO
  23682. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23683. OTOOL=$lt_OTOOL
  23684. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23685. OTOOL64=$lt_OTOOL64
  23686. # Old archive suffix (normally "a").
  23687. libext=$libext
  23688. # Shared library suffix (normally ".so").
  23689. shrext_cmds=$lt_shrext_cmds
  23690. # The commands to extract the exported symbol list from a shared archive.
  23691. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23692. # Variables whose values should be saved in libtool wrapper scripts and
  23693. # restored at link time.
  23694. variables_saved_for_relink=$lt_variables_saved_for_relink
  23695. # Do we need the "lib" prefix for modules?
  23696. need_lib_prefix=$need_lib_prefix
  23697. # Do we need a version for libraries?
  23698. need_version=$need_version
  23699. # Library versioning type.
  23700. version_type=$version_type
  23701. # Shared library runtime path variable.
  23702. runpath_var=$runpath_var
  23703. # Shared library path variable.
  23704. shlibpath_var=$shlibpath_var
  23705. # Is shlibpath searched before the hard-coded library search path?
  23706. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23707. # Format of library name prefix.
  23708. libname_spec=$lt_libname_spec
  23709. # List of archive names. First name is the real one, the rest are links.
  23710. # The last name is the one that the linker finds with -lNAME
  23711. library_names_spec=$lt_library_names_spec
  23712. # The coded name of the library, if different from the real name.
  23713. soname_spec=$lt_soname_spec
  23714. # Permission mode override for installation of shared libraries.
  23715. install_override_mode=$lt_install_override_mode
  23716. # Command to use after installation of a shared archive.
  23717. postinstall_cmds=$lt_postinstall_cmds
  23718. # Command to use after uninstallation of a shared archive.
  23719. postuninstall_cmds=$lt_postuninstall_cmds
  23720. # Commands used to finish a libtool library installation in a directory.
  23721. finish_cmds=$lt_finish_cmds
  23722. # As "finish_cmds", except a single script fragment to be evaled but
  23723. # not shown.
  23724. finish_eval=$lt_finish_eval
  23725. # Whether we should hardcode library paths into libraries.
  23726. hardcode_into_libs=$hardcode_into_libs
  23727. # Compile-time system search path for libraries.
  23728. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23729. # Run-time system search path for libraries.
  23730. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23731. # Whether dlopen is supported.
  23732. dlopen_support=$enable_dlopen
  23733. # Whether dlopen of programs is supported.
  23734. dlopen_self=$enable_dlopen_self
  23735. # Whether dlopen of statically linked programs is supported.
  23736. dlopen_self_static=$enable_dlopen_self_static
  23737. # Commands to strip libraries.
  23738. old_striplib=$lt_old_striplib
  23739. striplib=$lt_striplib
  23740. # The linker used to build libraries.
  23741. LD=$lt_LD
  23742. # How to create reloadable object files.
  23743. reload_flag=$lt_reload_flag
  23744. reload_cmds=$lt_reload_cmds
  23745. # Commands used to build an old-style archive.
  23746. old_archive_cmds=$lt_old_archive_cmds
  23747. # A language specific compiler.
  23748. CC=$lt_compiler
  23749. # Is the compiler the GNU compiler?
  23750. with_gcc=$GCC
  23751. # Compiler flag to turn off builtin functions.
  23752. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23753. # Additional compiler flags for building library objects.
  23754. pic_flag=$lt_lt_prog_compiler_pic
  23755. # How to pass a linker flag through the compiler.
  23756. wl=$lt_lt_prog_compiler_wl
  23757. # Compiler flag to prevent dynamic linking.
  23758. link_static_flag=$lt_lt_prog_compiler_static
  23759. # Does compiler simultaneously support -c and -o options?
  23760. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23761. # Whether or not to add -lc for building shared libraries.
  23762. build_libtool_need_lc=$archive_cmds_need_lc
  23763. # Whether or not to disallow shared libs when runtime libs are static.
  23764. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23765. # Compiler flag to allow reflexive dlopens.
  23766. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23767. # Compiler flag to generate shared objects directly from archives.
  23768. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23769. # Whether the compiler copes with passing no objects directly.
  23770. compiler_needs_object=$lt_compiler_needs_object
  23771. # Create an old-style archive from a shared archive.
  23772. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23773. # Create a temporary old-style archive to link instead of a shared archive.
  23774. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23775. # Commands used to build a shared archive.
  23776. archive_cmds=$lt_archive_cmds
  23777. archive_expsym_cmds=$lt_archive_expsym_cmds
  23778. # Commands used to build a loadable module if different from building
  23779. # a shared archive.
  23780. module_cmds=$lt_module_cmds
  23781. module_expsym_cmds=$lt_module_expsym_cmds
  23782. # Whether we are building with GNU ld or not.
  23783. with_gnu_ld=$lt_with_gnu_ld
  23784. # Flag that allows shared libraries with undefined symbols to be built.
  23785. allow_undefined_flag=$lt_allow_undefined_flag
  23786. # Flag that enforces no undefined symbols.
  23787. no_undefined_flag=$lt_no_undefined_flag
  23788. # Flag to hardcode \$libdir into a binary during linking.
  23789. # This must work even if \$libdir does not exist
  23790. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23791. # Whether we need a single "-rpath" flag with a separated argument.
  23792. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23793. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23794. # DIR into the resulting binary.
  23795. hardcode_direct=$hardcode_direct
  23796. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23797. # DIR into the resulting binary and the resulting library dependency is
  23798. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23799. # library is relocated.
  23800. hardcode_direct_absolute=$hardcode_direct_absolute
  23801. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23802. # into the resulting binary.
  23803. hardcode_minus_L=$hardcode_minus_L
  23804. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23805. # into the resulting binary.
  23806. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23807. # Set to "yes" if building a shared library automatically hardcodes DIR
  23808. # into the library and all subsequent libraries and executables linked
  23809. # against it.
  23810. hardcode_automatic=$hardcode_automatic
  23811. # Set to yes if linker adds runtime paths of dependent libraries
  23812. # to runtime path list.
  23813. inherit_rpath=$inherit_rpath
  23814. # Whether libtool must link a program against all its dependency libraries.
  23815. link_all_deplibs=$link_all_deplibs
  23816. # Set to "yes" if exported symbols are required.
  23817. always_export_symbols=$always_export_symbols
  23818. # The commands to list exported symbols.
  23819. export_symbols_cmds=$lt_export_symbols_cmds
  23820. # Symbols that should not be listed in the preloaded symbols.
  23821. exclude_expsyms=$lt_exclude_expsyms
  23822. # Symbols that must always be exported.
  23823. include_expsyms=$lt_include_expsyms
  23824. # Commands necessary for linking programs (against libraries) with templates.
  23825. prelink_cmds=$lt_prelink_cmds
  23826. # Commands necessary for finishing linking programs.
  23827. postlink_cmds=$lt_postlink_cmds
  23828. # Specify filename containing input files.
  23829. file_list_spec=$lt_file_list_spec
  23830. # How to hardcode a shared library path into an executable.
  23831. hardcode_action=$hardcode_action
  23832. # The directories searched by this compiler when creating a shared library.
  23833. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23834. # Dependencies to place before and after the objects being linked to
  23835. # create a shared library.
  23836. predep_objects=$lt_predep_objects
  23837. postdep_objects=$lt_postdep_objects
  23838. predeps=$lt_predeps
  23839. postdeps=$lt_postdeps
  23840. # The library search path used internally by the compiler when linking
  23841. # a shared library.
  23842. compiler_lib_search_path=$lt_compiler_lib_search_path
  23843. # ### END LIBTOOL CONFIG
  23844. _LT_EOF
  23845. case $host_os in
  23846. aix3*)
  23847. cat <<\_LT_EOF >> "$cfgfile"
  23848. # AIX sometimes has problems with the GCC collect2 program. For some
  23849. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23850. # vanish in a puff of smoke.
  23851. if test "X${COLLECT_NAMES+set}" != Xset; then
  23852. COLLECT_NAMES=
  23853. export COLLECT_NAMES
  23854. fi
  23855. _LT_EOF
  23856. ;;
  23857. esac
  23858. ltmain="$ac_aux_dir/ltmain.sh"
  23859. # We use sed instead of cat because bash on DJGPP gets confused if
  23860. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23861. # text mode, it properly converts lines to CR/LF. This bash problem
  23862. # is reportedly fixed, but why not run on old versions too?
  23863. sed '$q' "$ltmain" >> "$cfgfile" \
  23864. || (rm -f "$cfgfile"; exit 1)
  23865. if test x"$xsi_shell" = xyes; then
  23866. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23867. func_dirname ()\
  23868. {\
  23869. \ case ${1} in\
  23870. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23871. \ * ) func_dirname_result="${3}" ;;\
  23872. \ esac\
  23873. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  23874. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23875. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23876. test 0 -eq $? || _lt_function_replace_fail=:
  23877. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  23878. func_basename ()\
  23879. {\
  23880. \ func_basename_result="${1##*/}"\
  23881. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23882. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23883. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23884. test 0 -eq $? || _lt_function_replace_fail=:
  23885. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  23886. func_dirname_and_basename ()\
  23887. {\
  23888. \ case ${1} in\
  23889. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23890. \ * ) func_dirname_result="${3}" ;;\
  23891. \ esac\
  23892. \ func_basename_result="${1##*/}"\
  23893. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23894. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23895. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23896. test 0 -eq $? || _lt_function_replace_fail=:
  23897. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  23898. func_stripname ()\
  23899. {\
  23900. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  23901. \ # positional parameters, so assign one to ordinary parameter first.\
  23902. \ func_stripname_result=${3}\
  23903. \ func_stripname_result=${func_stripname_result#"${1}"}\
  23904. \ func_stripname_result=${func_stripname_result%"${2}"}\
  23905. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  23906. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23907. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23908. test 0 -eq $? || _lt_function_replace_fail=:
  23909. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  23910. func_split_long_opt ()\
  23911. {\
  23912. \ func_split_long_opt_name=${1%%=*}\
  23913. \ func_split_long_opt_arg=${1#*=}\
  23914. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23915. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23916. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23917. test 0 -eq $? || _lt_function_replace_fail=:
  23918. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23919. func_split_short_opt ()\
  23920. {\
  23921. \ func_split_short_opt_arg=${1#??}\
  23922. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23923. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23924. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23925. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23926. test 0 -eq $? || _lt_function_replace_fail=:
  23927. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23928. func_lo2o ()\
  23929. {\
  23930. \ case ${1} in\
  23931. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23932. \ *) func_lo2o_result=${1} ;;\
  23933. \ esac\
  23934. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23935. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23936. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23937. test 0 -eq $? || _lt_function_replace_fail=:
  23938. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23939. func_xform ()\
  23940. {\
  23941. func_xform_result=${1%.*}.lo\
  23942. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23943. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23944. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23945. test 0 -eq $? || _lt_function_replace_fail=:
  23946. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23947. func_arith ()\
  23948. {\
  23949. func_arith_result=$(( $* ))\
  23950. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23951. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23952. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23953. test 0 -eq $? || _lt_function_replace_fail=:
  23954. sed -e '/^func_len ()$/,/^} # func_len /c\
  23955. func_len ()\
  23956. {\
  23957. func_len_result=${#1}\
  23958. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23959. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23960. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23961. test 0 -eq $? || _lt_function_replace_fail=:
  23962. fi
  23963. if test x"$lt_shell_append" = xyes; then
  23964. sed -e '/^func_append ()$/,/^} # func_append /c\
  23965. func_append ()\
  23966. {\
  23967. eval "${1}+=\\${2}"\
  23968. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23969. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23970. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23971. test 0 -eq $? || _lt_function_replace_fail=:
  23972. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23973. func_append_quoted ()\
  23974. {\
  23975. \ func_quote_for_eval "${2}"\
  23976. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23977. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23978. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23979. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23980. test 0 -eq $? || _lt_function_replace_fail=:
  23981. # Save a `func_append' function call where possible by direct use of '+='
  23982. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  23983. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23984. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23985. test 0 -eq $? || _lt_function_replace_fail=:
  23986. else
  23987. # Save a `func_append' function call even when '+=' is not available
  23988. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23989. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23990. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23991. test 0 -eq $? || _lt_function_replace_fail=:
  23992. fi
  23993. if test x"$_lt_function_replace_fail" = x":"; then
  23994. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23995. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23996. fi
  23997. mv -f "$cfgfile" "$ofile" ||
  23998. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23999. chmod +x "$ofile"
  24000. cat <<_LT_EOF >> "$ofile"
  24001. # ### BEGIN LIBTOOL TAG CONFIG: RC
  24002. # The linker used to build libraries.
  24003. LD=$lt_LD_RC
  24004. # How to create reloadable object files.
  24005. reload_flag=$lt_reload_flag_RC
  24006. reload_cmds=$lt_reload_cmds_RC
  24007. # Commands used to build an old-style archive.
  24008. old_archive_cmds=$lt_old_archive_cmds_RC
  24009. # A language specific compiler.
  24010. CC=$lt_compiler_RC
  24011. # Is the compiler the GNU compiler?
  24012. with_gcc=$GCC_RC
  24013. # Compiler flag to turn off builtin functions.
  24014. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24015. # Additional compiler flags for building library objects.
  24016. pic_flag=$lt_lt_prog_compiler_pic_RC
  24017. # How to pass a linker flag through the compiler.
  24018. wl=$lt_lt_prog_compiler_wl_RC
  24019. # Compiler flag to prevent dynamic linking.
  24020. link_static_flag=$lt_lt_prog_compiler_static_RC
  24021. # Does compiler simultaneously support -c and -o options?
  24022. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24023. # Whether or not to add -lc for building shared libraries.
  24024. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24025. # Whether or not to disallow shared libs when runtime libs are static.
  24026. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24027. # Compiler flag to allow reflexive dlopens.
  24028. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24029. # Compiler flag to generate shared objects directly from archives.
  24030. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24031. # Whether the compiler copes with passing no objects directly.
  24032. compiler_needs_object=$lt_compiler_needs_object_RC
  24033. # Create an old-style archive from a shared archive.
  24034. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24035. # Create a temporary old-style archive to link instead of a shared archive.
  24036. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24037. # Commands used to build a shared archive.
  24038. archive_cmds=$lt_archive_cmds_RC
  24039. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24040. # Commands used to build a loadable module if different from building
  24041. # a shared archive.
  24042. module_cmds=$lt_module_cmds_RC
  24043. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24044. # Whether we are building with GNU ld or not.
  24045. with_gnu_ld=$lt_with_gnu_ld_RC
  24046. # Flag that allows shared libraries with undefined symbols to be built.
  24047. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24048. # Flag that enforces no undefined symbols.
  24049. no_undefined_flag=$lt_no_undefined_flag_RC
  24050. # Flag to hardcode \$libdir into a binary during linking.
  24051. # This must work even if \$libdir does not exist
  24052. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24053. # Whether we need a single "-rpath" flag with a separated argument.
  24054. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24055. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24056. # DIR into the resulting binary.
  24057. hardcode_direct=$hardcode_direct_RC
  24058. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24059. # DIR into the resulting binary and the resulting library dependency is
  24060. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24061. # library is relocated.
  24062. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  24063. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24064. # into the resulting binary.
  24065. hardcode_minus_L=$hardcode_minus_L_RC
  24066. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24067. # into the resulting binary.
  24068. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24069. # Set to "yes" if building a shared library automatically hardcodes DIR
  24070. # into the library and all subsequent libraries and executables linked
  24071. # against it.
  24072. hardcode_automatic=$hardcode_automatic_RC
  24073. # Set to yes if linker adds runtime paths of dependent libraries
  24074. # to runtime path list.
  24075. inherit_rpath=$inherit_rpath_RC
  24076. # Whether libtool must link a program against all its dependency libraries.
  24077. link_all_deplibs=$link_all_deplibs_RC
  24078. # Set to "yes" if exported symbols are required.
  24079. always_export_symbols=$always_export_symbols_RC
  24080. # The commands to list exported symbols.
  24081. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24082. # Symbols that should not be listed in the preloaded symbols.
  24083. exclude_expsyms=$lt_exclude_expsyms_RC
  24084. # Symbols that must always be exported.
  24085. include_expsyms=$lt_include_expsyms_RC
  24086. # Commands necessary for linking programs (against libraries) with templates.
  24087. prelink_cmds=$lt_prelink_cmds_RC
  24088. # Commands necessary for finishing linking programs.
  24089. postlink_cmds=$lt_postlink_cmds_RC
  24090. # Specify filename containing input files.
  24091. file_list_spec=$lt_file_list_spec_RC
  24092. # How to hardcode a shared library path into an executable.
  24093. hardcode_action=$hardcode_action_RC
  24094. # The directories searched by this compiler when creating a shared library.
  24095. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  24096. # Dependencies to place before and after the objects being linked to
  24097. # create a shared library.
  24098. predep_objects=$lt_predep_objects_RC
  24099. postdep_objects=$lt_postdep_objects_RC
  24100. predeps=$lt_predeps_RC
  24101. postdeps=$lt_postdeps_RC
  24102. # The library search path used internally by the compiler when linking
  24103. # a shared library.
  24104. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  24105. # ### END LIBTOOL TAG CONFIG: RC
  24106. _LT_EOF
  24107. cat <<_LT_EOF >> "$ofile"
  24108. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24109. # The linker used to build libraries.
  24110. LD=$lt_LD_CXX
  24111. # How to create reloadable object files.
  24112. reload_flag=$lt_reload_flag_CXX
  24113. reload_cmds=$lt_reload_cmds_CXX
  24114. # Commands used to build an old-style archive.
  24115. old_archive_cmds=$lt_old_archive_cmds_CXX
  24116. # A language specific compiler.
  24117. CC=$lt_compiler_CXX
  24118. # Is the compiler the GNU compiler?
  24119. with_gcc=$GCC_CXX
  24120. # Compiler flag to turn off builtin functions.
  24121. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24122. # Additional compiler flags for building library objects.
  24123. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24124. # How to pass a linker flag through the compiler.
  24125. wl=$lt_lt_prog_compiler_wl_CXX
  24126. # Compiler flag to prevent dynamic linking.
  24127. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24128. # Does compiler simultaneously support -c and -o options?
  24129. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24130. # Whether or not to add -lc for building shared libraries.
  24131. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24132. # Whether or not to disallow shared libs when runtime libs are static.
  24133. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24134. # Compiler flag to allow reflexive dlopens.
  24135. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24136. # Compiler flag to generate shared objects directly from archives.
  24137. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24138. # Whether the compiler copes with passing no objects directly.
  24139. compiler_needs_object=$lt_compiler_needs_object_CXX
  24140. # Create an old-style archive from a shared archive.
  24141. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24142. # Create a temporary old-style archive to link instead of a shared archive.
  24143. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24144. # Commands used to build a shared archive.
  24145. archive_cmds=$lt_archive_cmds_CXX
  24146. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24147. # Commands used to build a loadable module if different from building
  24148. # a shared archive.
  24149. module_cmds=$lt_module_cmds_CXX
  24150. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24151. # Whether we are building with GNU ld or not.
  24152. with_gnu_ld=$lt_with_gnu_ld_CXX
  24153. # Flag that allows shared libraries with undefined symbols to be built.
  24154. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24155. # Flag that enforces no undefined symbols.
  24156. no_undefined_flag=$lt_no_undefined_flag_CXX
  24157. # Flag to hardcode \$libdir into a binary during linking.
  24158. # This must work even if \$libdir does not exist
  24159. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24160. # Whether we need a single "-rpath" flag with a separated argument.
  24161. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24162. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24163. # DIR into the resulting binary.
  24164. hardcode_direct=$hardcode_direct_CXX
  24165. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24166. # DIR into the resulting binary and the resulting library dependency is
  24167. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24168. # library is relocated.
  24169. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24170. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24171. # into the resulting binary.
  24172. hardcode_minus_L=$hardcode_minus_L_CXX
  24173. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24174. # into the resulting binary.
  24175. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24176. # Set to "yes" if building a shared library automatically hardcodes DIR
  24177. # into the library and all subsequent libraries and executables linked
  24178. # against it.
  24179. hardcode_automatic=$hardcode_automatic_CXX
  24180. # Set to yes if linker adds runtime paths of dependent libraries
  24181. # to runtime path list.
  24182. inherit_rpath=$inherit_rpath_CXX
  24183. # Whether libtool must link a program against all its dependency libraries.
  24184. link_all_deplibs=$link_all_deplibs_CXX
  24185. # Set to "yes" if exported symbols are required.
  24186. always_export_symbols=$always_export_symbols_CXX
  24187. # The commands to list exported symbols.
  24188. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24189. # Symbols that should not be listed in the preloaded symbols.
  24190. exclude_expsyms=$lt_exclude_expsyms_CXX
  24191. # Symbols that must always be exported.
  24192. include_expsyms=$lt_include_expsyms_CXX
  24193. # Commands necessary for linking programs (against libraries) with templates.
  24194. prelink_cmds=$lt_prelink_cmds_CXX
  24195. # Commands necessary for finishing linking programs.
  24196. postlink_cmds=$lt_postlink_cmds_CXX
  24197. # Specify filename containing input files.
  24198. file_list_spec=$lt_file_list_spec_CXX
  24199. # How to hardcode a shared library path into an executable.
  24200. hardcode_action=$hardcode_action_CXX
  24201. # The directories searched by this compiler when creating a shared library.
  24202. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24203. # Dependencies to place before and after the objects being linked to
  24204. # create a shared library.
  24205. predep_objects=$lt_predep_objects_CXX
  24206. postdep_objects=$lt_postdep_objects_CXX
  24207. predeps=$lt_predeps_CXX
  24208. postdeps=$lt_postdeps_CXX
  24209. # The library search path used internally by the compiler when linking
  24210. # a shared library.
  24211. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24212. # ### END LIBTOOL TAG CONFIG: CXX
  24213. _LT_EOF
  24214. ;;
  24215. "sdl2_config":C) chmod a+x sdl2-config ;;
  24216. "summary":C) echo -en "$SUMMARY" ;;
  24217. esac
  24218. done # for ac_tag
  24219. as_fn_exit 0
  24220. _ACEOF
  24221. ac_clean_files=$ac_clean_files_save
  24222. test $ac_write_fail = 0 ||
  24223. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24224. # configure is writing to config.log, and then calls config.status.
  24225. # config.status does its own redirection, appending to config.log.
  24226. # Unfortunately, on DOS this fails, as config.log is still kept open
  24227. # by configure, so config.status won't be able to write to it; its
  24228. # output is simply discarded. So we exec the FD to /dev/null,
  24229. # effectively closing config.log, so it can be properly (re)opened and
  24230. # appended to by config.status. When coming back to configure, we
  24231. # need to make the FD available again.
  24232. if test "$no_create" != yes; then
  24233. ac_cs_success=:
  24234. ac_config_status_args=
  24235. test "$silent" = yes &&
  24236. ac_config_status_args="$ac_config_status_args --quiet"
  24237. exec 5>/dev/null
  24238. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24239. exec 5>>config.log
  24240. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24241. # would make configure fail if this is the last instruction.
  24242. $ac_cs_success || as_fn_exit 1
  24243. fi
  24244. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24245. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24246. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24247. fi