configure 799 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="README.txt"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. SDL_RLD_FLAGS
  599. SDL_STATIC_LIBS
  600. SDL_LIBS
  601. SDL_CFLAGS
  602. DIRECTFBCONFIG
  603. X_EXTRA_LIBS
  604. X_LIBS
  605. X_PRE_LIBS
  606. X_CFLAGS
  607. XMKMF
  608. ARTSCONFIG
  609. ESD_LIBS
  610. ESD_CFLAGS
  611. ESD_CONFIG
  612. PKG_CONFIG
  613. ALSA_LIBS
  614. ALSA_CFLAGS
  615. POW_LIB
  616. LIBOBJS
  617. ALLOCA
  618. WINDRES
  619. SET_MAKE
  620. INSTALL_DATA
  621. INSTALL_SCRIPT
  622. INSTALL_PROGRAM
  623. CXXCPP
  624. ac_ct_CXX
  625. CXXFLAGS
  626. CXX
  627. LT_AGE
  628. LT_REVISION
  629. LT_CURRENT
  630. LT_RELEASE
  631. CPP
  632. OTOOL64
  633. OTOOL
  634. LIPO
  635. NMEDIT
  636. DSYMUTIL
  637. MANIFEST_TOOL
  638. AWK
  639. RANLIB
  640. STRIP
  641. ac_ct_AR
  642. AR
  643. LN_S
  644. NM
  645. ac_ct_DUMPBIN
  646. DUMPBIN
  647. LD
  648. FGREP
  649. EGREP
  650. GREP
  651. SED
  652. OBJEXT
  653. EXEEXT
  654. ac_ct_CC
  655. CPPFLAGS
  656. LDFLAGS
  657. CFLAGS
  658. CC
  659. host_os
  660. host_vendor
  661. host_cpu
  662. host
  663. build_os
  664. build_vendor
  665. build_cpu
  666. build
  667. LIBTOOL
  668. OBJDUMP
  669. DLLTOOL
  670. AS
  671. SDL_VERSION
  672. SDL_BINARY_AGE
  673. SDL_INTERFACE_AGE
  674. SDL_MICRO_VERSION
  675. SDL_MINOR_VERSION
  676. SDL_MAJOR_VERSION
  677. target_alias
  678. host_alias
  679. build_alias
  680. LIBS
  681. ECHO_T
  682. ECHO_N
  683. ECHO_C
  684. DEFS
  685. mandir
  686. localedir
  687. libdir
  688. psdir
  689. pdfdir
  690. dvidir
  691. htmldir
  692. infodir
  693. docdir
  694. oldincludedir
  695. includedir
  696. localstatedir
  697. sharedstatedir
  698. sysconfdir
  699. datadir
  700. datarootdir
  701. libexecdir
  702. sbindir
  703. bindir
  704. program_transform_name
  705. prefix
  706. exec_prefix
  707. PACKAGE_URL
  708. PACKAGE_BUGREPORT
  709. PACKAGE_STRING
  710. PACKAGE_VERSION
  711. PACKAGE_TARNAME
  712. PACKAGE_NAME
  713. PATH_SEPARATOR
  714. SHELL'
  715. ac_subst_files=''
  716. ac_user_opts='
  717. enable_option_checking
  718. enable_shared
  719. enable_static
  720. with_pic
  721. enable_fast_install
  722. with_gnu_ld
  723. with_sysroot
  724. enable_libtool_lock
  725. enable_assertions
  726. enable_dependency_tracking
  727. enable_libc
  728. enable_gcc_atomics
  729. enable_atomic
  730. enable_audio
  731. enable_video
  732. enable_render
  733. enable_events
  734. enable_joystick
  735. enable_haptic
  736. enable_power
  737. enable_filesystem
  738. enable_threads
  739. enable_timers
  740. enable_file
  741. enable_loadso
  742. enable_cpuinfo
  743. enable_assembly
  744. enable_ssemath
  745. enable_mmx
  746. enable_3dnow
  747. enable_sse
  748. enable_sse2
  749. enable_sse3
  750. enable_altivec
  751. enable_oss
  752. enable_alsa
  753. with_alsa_prefix
  754. with_alsa_inc_prefix
  755. enable_alsatest
  756. enable_alsa_shared
  757. enable_jack
  758. enable_jack_shared
  759. enable_esd
  760. with_esd_prefix
  761. with_esd_exec_prefix
  762. enable_esdtest
  763. enable_esd_shared
  764. enable_pulseaudio
  765. enable_pulseaudio_shared
  766. enable_arts
  767. enable_arts_shared
  768. enable_nas
  769. enable_nas_shared
  770. enable_sndio
  771. enable_sndio_shared
  772. enable_fusionsound
  773. enable_fusionsound_shared
  774. enable_diskaudio
  775. enable_dummyaudio
  776. enable_libsamplerate
  777. enable_libsamplerate_shared
  778. enable_video_wayland
  779. enable_video_wayland_qt_touch
  780. enable_wayland_shared
  781. enable_video_mir
  782. enable_mir_shared
  783. enable_video_rpi
  784. enable_video_x11
  785. with_x
  786. enable_x11_shared
  787. enable_video_x11_xcursor
  788. enable_video_x11_xdbe
  789. enable_video_x11_xinerama
  790. enable_video_x11_xinput
  791. enable_video_x11_xrandr
  792. enable_video_x11_scrnsaver
  793. enable_video_x11_xshape
  794. enable_video_x11_vm
  795. enable_video_vivante
  796. enable_video_cocoa
  797. enable_video_directfb
  798. enable_directfb_shared
  799. enable_video_kmsdrm
  800. enable_kmsdrm_shared
  801. enable_video_dummy
  802. enable_video_opengl
  803. enable_video_opengles
  804. enable_video_opengles1
  805. enable_video_opengles2
  806. enable_video_vulkan
  807. enable_libudev
  808. enable_dbus
  809. enable_ime
  810. enable_ibus
  811. enable_fcitx
  812. enable_input_tslib
  813. enable_pthreads
  814. enable_pthread_sem
  815. enable_directx
  816. enable_sdl_dlopen
  817. enable_clock_gettime
  818. enable_rpath
  819. enable_render_d3d
  820. '
  821. ac_precious_vars='build_alias
  822. host_alias
  823. target_alias
  824. CC
  825. CFLAGS
  826. LDFLAGS
  827. LIBS
  828. CPPFLAGS
  829. CPP
  830. CXX
  831. CXXFLAGS
  832. CCC
  833. CXXCPP
  834. XMKMF'
  835. # Initialize some variables set by options.
  836. ac_init_help=
  837. ac_init_version=false
  838. ac_unrecognized_opts=
  839. ac_unrecognized_sep=
  840. # The variables have the same names as the options, with
  841. # dashes changed to underlines.
  842. cache_file=/dev/null
  843. exec_prefix=NONE
  844. no_create=
  845. no_recursion=
  846. prefix=NONE
  847. program_prefix=NONE
  848. program_suffix=NONE
  849. program_transform_name=s,x,x,
  850. silent=
  851. site=
  852. srcdir=
  853. verbose=
  854. x_includes=NONE
  855. x_libraries=NONE
  856. # Installation directory options.
  857. # These are left unexpanded so users can "make install exec_prefix=/foo"
  858. # and all the variables that are supposed to be based on exec_prefix
  859. # by default will actually change.
  860. # Use braces instead of parens because sh, perl, etc. also accept them.
  861. # (The list follows the same order as the GNU Coding Standards.)
  862. bindir='${exec_prefix}/bin'
  863. sbindir='${exec_prefix}/sbin'
  864. libexecdir='${exec_prefix}/libexec'
  865. datarootdir='${prefix}/share'
  866. datadir='${datarootdir}'
  867. sysconfdir='${prefix}/etc'
  868. sharedstatedir='${prefix}/com'
  869. localstatedir='${prefix}/var'
  870. includedir='${prefix}/include'
  871. oldincludedir='/usr/include'
  872. docdir='${datarootdir}/doc/${PACKAGE}'
  873. infodir='${datarootdir}/info'
  874. htmldir='${docdir}'
  875. dvidir='${docdir}'
  876. pdfdir='${docdir}'
  877. psdir='${docdir}'
  878. libdir='${exec_prefix}/lib'
  879. localedir='${datarootdir}/locale'
  880. mandir='${datarootdir}/man'
  881. ac_prev=
  882. ac_dashdash=
  883. for ac_option
  884. do
  885. # If the previous option needs an argument, assign it.
  886. if test -n "$ac_prev"; then
  887. eval $ac_prev=\$ac_option
  888. ac_prev=
  889. continue
  890. fi
  891. case $ac_option in
  892. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  893. *=) ac_optarg= ;;
  894. *) ac_optarg=yes ;;
  895. esac
  896. # Accept the important Cygnus configure options, so we can diagnose typos.
  897. case $ac_dashdash$ac_option in
  898. --)
  899. ac_dashdash=yes ;;
  900. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  901. ac_prev=bindir ;;
  902. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  903. bindir=$ac_optarg ;;
  904. -build | --build | --buil | --bui | --bu)
  905. ac_prev=build_alias ;;
  906. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  907. build_alias=$ac_optarg ;;
  908. -cache-file | --cache-file | --cache-fil | --cache-fi \
  909. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  910. ac_prev=cache_file ;;
  911. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  912. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  913. cache_file=$ac_optarg ;;
  914. --config-cache | -C)
  915. cache_file=config.cache ;;
  916. -datadir | --datadir | --datadi | --datad)
  917. ac_prev=datadir ;;
  918. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  919. datadir=$ac_optarg ;;
  920. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  921. | --dataroo | --dataro | --datar)
  922. ac_prev=datarootdir ;;
  923. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  924. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  925. datarootdir=$ac_optarg ;;
  926. -disable-* | --disable-*)
  927. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  928. # Reject names that are not valid shell variable names.
  929. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  930. as_fn_error $? "invalid feature name: $ac_useropt"
  931. ac_useropt_orig=$ac_useropt
  932. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  933. case $ac_user_opts in
  934. *"
  935. "enable_$ac_useropt"
  936. "*) ;;
  937. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  938. ac_unrecognized_sep=', ';;
  939. esac
  940. eval enable_$ac_useropt=no ;;
  941. -docdir | --docdir | --docdi | --doc | --do)
  942. ac_prev=docdir ;;
  943. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  944. docdir=$ac_optarg ;;
  945. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  946. ac_prev=dvidir ;;
  947. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  948. dvidir=$ac_optarg ;;
  949. -enable-* | --enable-*)
  950. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  951. # Reject names that are not valid shell variable names.
  952. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  953. as_fn_error $? "invalid feature name: $ac_useropt"
  954. ac_useropt_orig=$ac_useropt
  955. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  956. case $ac_user_opts in
  957. *"
  958. "enable_$ac_useropt"
  959. "*) ;;
  960. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  961. ac_unrecognized_sep=', ';;
  962. esac
  963. eval enable_$ac_useropt=\$ac_optarg ;;
  964. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  965. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  966. | --exec | --exe | --ex)
  967. ac_prev=exec_prefix ;;
  968. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  969. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  970. | --exec=* | --exe=* | --ex=*)
  971. exec_prefix=$ac_optarg ;;
  972. -gas | --gas | --ga | --g)
  973. # Obsolete; use --with-gas.
  974. with_gas=yes ;;
  975. -help | --help | --hel | --he | -h)
  976. ac_init_help=long ;;
  977. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  978. ac_init_help=recursive ;;
  979. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  980. ac_init_help=short ;;
  981. -host | --host | --hos | --ho)
  982. ac_prev=host_alias ;;
  983. -host=* | --host=* | --hos=* | --ho=*)
  984. host_alias=$ac_optarg ;;
  985. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  986. ac_prev=htmldir ;;
  987. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  988. | --ht=*)
  989. htmldir=$ac_optarg ;;
  990. -includedir | --includedir | --includedi | --included | --include \
  991. | --includ | --inclu | --incl | --inc)
  992. ac_prev=includedir ;;
  993. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  994. | --includ=* | --inclu=* | --incl=* | --inc=*)
  995. includedir=$ac_optarg ;;
  996. -infodir | --infodir | --infodi | --infod | --info | --inf)
  997. ac_prev=infodir ;;
  998. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  999. infodir=$ac_optarg ;;
  1000. -libdir | --libdir | --libdi | --libd)
  1001. ac_prev=libdir ;;
  1002. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1003. libdir=$ac_optarg ;;
  1004. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1005. | --libexe | --libex | --libe)
  1006. ac_prev=libexecdir ;;
  1007. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1008. | --libexe=* | --libex=* | --libe=*)
  1009. libexecdir=$ac_optarg ;;
  1010. -localedir | --localedir | --localedi | --localed | --locale)
  1011. ac_prev=localedir ;;
  1012. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1013. localedir=$ac_optarg ;;
  1014. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1015. | --localstate | --localstat | --localsta | --localst | --locals)
  1016. ac_prev=localstatedir ;;
  1017. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1018. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1019. localstatedir=$ac_optarg ;;
  1020. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1021. ac_prev=mandir ;;
  1022. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1023. mandir=$ac_optarg ;;
  1024. -nfp | --nfp | --nf)
  1025. # Obsolete; use --without-fp.
  1026. with_fp=no ;;
  1027. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1028. | --no-cr | --no-c | -n)
  1029. no_create=yes ;;
  1030. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1031. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1032. no_recursion=yes ;;
  1033. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1034. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1035. | --oldin | --oldi | --old | --ol | --o)
  1036. ac_prev=oldincludedir ;;
  1037. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1038. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1039. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1040. oldincludedir=$ac_optarg ;;
  1041. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1042. ac_prev=prefix ;;
  1043. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1044. prefix=$ac_optarg ;;
  1045. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1046. | --program-pre | --program-pr | --program-p)
  1047. ac_prev=program_prefix ;;
  1048. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1049. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1050. program_prefix=$ac_optarg ;;
  1051. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1052. | --program-suf | --program-su | --program-s)
  1053. ac_prev=program_suffix ;;
  1054. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1055. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1056. program_suffix=$ac_optarg ;;
  1057. -program-transform-name | --program-transform-name \
  1058. | --program-transform-nam | --program-transform-na \
  1059. | --program-transform-n | --program-transform- \
  1060. | --program-transform | --program-transfor \
  1061. | --program-transfo | --program-transf \
  1062. | --program-trans | --program-tran \
  1063. | --progr-tra | --program-tr | --program-t)
  1064. ac_prev=program_transform_name ;;
  1065. -program-transform-name=* | --program-transform-name=* \
  1066. | --program-transform-nam=* | --program-transform-na=* \
  1067. | --program-transform-n=* | --program-transform-=* \
  1068. | --program-transform=* | --program-transfor=* \
  1069. | --program-transfo=* | --program-transf=* \
  1070. | --program-trans=* | --program-tran=* \
  1071. | --progr-tra=* | --program-tr=* | --program-t=*)
  1072. program_transform_name=$ac_optarg ;;
  1073. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1074. ac_prev=pdfdir ;;
  1075. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1076. pdfdir=$ac_optarg ;;
  1077. -psdir | --psdir | --psdi | --psd | --ps)
  1078. ac_prev=psdir ;;
  1079. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1080. psdir=$ac_optarg ;;
  1081. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1082. | -silent | --silent | --silen | --sile | --sil)
  1083. silent=yes ;;
  1084. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1085. ac_prev=sbindir ;;
  1086. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1087. | --sbi=* | --sb=*)
  1088. sbindir=$ac_optarg ;;
  1089. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1090. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1091. | --sharedst | --shareds | --shared | --share | --shar \
  1092. | --sha | --sh)
  1093. ac_prev=sharedstatedir ;;
  1094. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1095. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1096. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1097. | --sha=* | --sh=*)
  1098. sharedstatedir=$ac_optarg ;;
  1099. -site | --site | --sit)
  1100. ac_prev=site ;;
  1101. -site=* | --site=* | --sit=*)
  1102. site=$ac_optarg ;;
  1103. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1104. ac_prev=srcdir ;;
  1105. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1106. srcdir=$ac_optarg ;;
  1107. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1108. | --syscon | --sysco | --sysc | --sys | --sy)
  1109. ac_prev=sysconfdir ;;
  1110. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1111. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1112. sysconfdir=$ac_optarg ;;
  1113. -target | --target | --targe | --targ | --tar | --ta | --t)
  1114. ac_prev=target_alias ;;
  1115. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1116. target_alias=$ac_optarg ;;
  1117. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1118. verbose=yes ;;
  1119. -version | --version | --versio | --versi | --vers | -V)
  1120. ac_init_version=: ;;
  1121. -with-* | --with-*)
  1122. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1123. # Reject names that are not valid shell variable names.
  1124. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1125. as_fn_error $? "invalid package name: $ac_useropt"
  1126. ac_useropt_orig=$ac_useropt
  1127. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1128. case $ac_user_opts in
  1129. *"
  1130. "with_$ac_useropt"
  1131. "*) ;;
  1132. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1133. ac_unrecognized_sep=', ';;
  1134. esac
  1135. eval with_$ac_useropt=\$ac_optarg ;;
  1136. -without-* | --without-*)
  1137. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1138. # Reject names that are not valid shell variable names.
  1139. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1140. as_fn_error $? "invalid package name: $ac_useropt"
  1141. ac_useropt_orig=$ac_useropt
  1142. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1143. case $ac_user_opts in
  1144. *"
  1145. "with_$ac_useropt"
  1146. "*) ;;
  1147. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1148. ac_unrecognized_sep=', ';;
  1149. esac
  1150. eval with_$ac_useropt=no ;;
  1151. --x)
  1152. # Obsolete; use --with-x.
  1153. with_x=yes ;;
  1154. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1155. | --x-incl | --x-inc | --x-in | --x-i)
  1156. ac_prev=x_includes ;;
  1157. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1158. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1159. x_includes=$ac_optarg ;;
  1160. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1161. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1162. ac_prev=x_libraries ;;
  1163. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1164. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1165. x_libraries=$ac_optarg ;;
  1166. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1167. Try \`$0 --help' for more information"
  1168. ;;
  1169. *=*)
  1170. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1171. # Reject names that are not valid shell variable names.
  1172. case $ac_envvar in #(
  1173. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1174. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1175. esac
  1176. eval $ac_envvar=\$ac_optarg
  1177. export $ac_envvar ;;
  1178. *)
  1179. # FIXME: should be removed in autoconf 3.0.
  1180. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1181. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1182. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1183. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1184. ;;
  1185. esac
  1186. done
  1187. if test -n "$ac_prev"; then
  1188. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1189. as_fn_error $? "missing argument to $ac_option"
  1190. fi
  1191. if test -n "$ac_unrecognized_opts"; then
  1192. case $enable_option_checking in
  1193. no) ;;
  1194. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1195. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1196. esac
  1197. fi
  1198. # Check all directory arguments for consistency.
  1199. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1200. datadir sysconfdir sharedstatedir localstatedir includedir \
  1201. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1202. libdir localedir mandir
  1203. do
  1204. eval ac_val=\$$ac_var
  1205. # Remove trailing slashes.
  1206. case $ac_val in
  1207. */ )
  1208. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1209. eval $ac_var=\$ac_val;;
  1210. esac
  1211. # Be sure to have absolute directory names.
  1212. case $ac_val in
  1213. [\\/$]* | ?:[\\/]* ) continue;;
  1214. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1215. esac
  1216. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1217. done
  1218. # There might be people who depend on the old broken behavior: `$host'
  1219. # used to hold the argument of --host etc.
  1220. # FIXME: To remove some day.
  1221. build=$build_alias
  1222. host=$host_alias
  1223. target=$target_alias
  1224. # FIXME: To remove some day.
  1225. if test "x$host_alias" != x; then
  1226. if test "x$build_alias" = x; then
  1227. cross_compiling=maybe
  1228. elif test "x$build_alias" != "x$host_alias"; then
  1229. cross_compiling=yes
  1230. fi
  1231. fi
  1232. ac_tool_prefix=
  1233. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1234. test "$silent" = yes && exec 6>/dev/null
  1235. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1236. ac_ls_di=`ls -di .` &&
  1237. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1238. as_fn_error $? "working directory cannot be determined"
  1239. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1240. as_fn_error $? "pwd does not report name of working directory"
  1241. # Find the source files, if location was not specified.
  1242. if test -z "$srcdir"; then
  1243. ac_srcdir_defaulted=yes
  1244. # Try the directory containing this script, then the parent directory.
  1245. ac_confdir=`$as_dirname -- "$as_myself" ||
  1246. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1247. X"$as_myself" : 'X\(//\)[^/]' \| \
  1248. X"$as_myself" : 'X\(//\)$' \| \
  1249. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1250. $as_echo X"$as_myself" |
  1251. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1252. s//\1/
  1253. q
  1254. }
  1255. /^X\(\/\/\)[^/].*/{
  1256. s//\1/
  1257. q
  1258. }
  1259. /^X\(\/\/\)$/{
  1260. s//\1/
  1261. q
  1262. }
  1263. /^X\(\/\).*/{
  1264. s//\1/
  1265. q
  1266. }
  1267. s/.*/./; q'`
  1268. srcdir=$ac_confdir
  1269. if test ! -r "$srcdir/$ac_unique_file"; then
  1270. srcdir=..
  1271. fi
  1272. else
  1273. ac_srcdir_defaulted=no
  1274. fi
  1275. if test ! -r "$srcdir/$ac_unique_file"; then
  1276. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1277. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1278. fi
  1279. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1280. ac_abs_confdir=`(
  1281. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1282. pwd)`
  1283. # When building in place, set srcdir=.
  1284. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1285. srcdir=.
  1286. fi
  1287. # Remove unnecessary trailing slashes from srcdir.
  1288. # Double slashes in file names in object file debugging info
  1289. # mess up M-x gdb in Emacs.
  1290. case $srcdir in
  1291. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1292. esac
  1293. for ac_var in $ac_precious_vars; do
  1294. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1295. eval ac_env_${ac_var}_value=\$${ac_var}
  1296. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1297. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1298. done
  1299. #
  1300. # Report the --help message.
  1301. #
  1302. if test "$ac_init_help" = "long"; then
  1303. # Omit some internal or obsolete options to make the list less imposing.
  1304. # This message is too long to be a string in the A/UX 3.1 sh.
  1305. cat <<_ACEOF
  1306. \`configure' configures this package to adapt to many kinds of systems.
  1307. Usage: $0 [OPTION]... [VAR=VALUE]...
  1308. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1309. VAR=VALUE. See below for descriptions of some of the useful variables.
  1310. Defaults for the options are specified in brackets.
  1311. Configuration:
  1312. -h, --help display this help and exit
  1313. --help=short display options specific to this package
  1314. --help=recursive display the short help of all the included packages
  1315. -V, --version display version information and exit
  1316. -q, --quiet, --silent do not print \`checking ...' messages
  1317. --cache-file=FILE cache test results in FILE [disabled]
  1318. -C, --config-cache alias for \`--cache-file=config.cache'
  1319. -n, --no-create do not create output files
  1320. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1321. Installation directories:
  1322. --prefix=PREFIX install architecture-independent files in PREFIX
  1323. [$ac_default_prefix]
  1324. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1325. [PREFIX]
  1326. By default, \`make install' will install all the files in
  1327. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1328. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1329. for instance \`--prefix=\$HOME'.
  1330. For better control, use the options below.
  1331. Fine tuning of the installation directories:
  1332. --bindir=DIR user executables [EPREFIX/bin]
  1333. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1334. --libexecdir=DIR program executables [EPREFIX/libexec]
  1335. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1336. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1337. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1338. --libdir=DIR object code libraries [EPREFIX/lib]
  1339. --includedir=DIR C header files [PREFIX/include]
  1340. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1341. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1342. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1343. --infodir=DIR info documentation [DATAROOTDIR/info]
  1344. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1345. --mandir=DIR man documentation [DATAROOTDIR/man]
  1346. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1347. --htmldir=DIR html documentation [DOCDIR]
  1348. --dvidir=DIR dvi documentation [DOCDIR]
  1349. --pdfdir=DIR pdf documentation [DOCDIR]
  1350. --psdir=DIR ps documentation [DOCDIR]
  1351. _ACEOF
  1352. cat <<\_ACEOF
  1353. X features:
  1354. --x-includes=DIR X include files are in DIR
  1355. --x-libraries=DIR X library files are in DIR
  1356. System types:
  1357. --build=BUILD configure for building on BUILD [guessed]
  1358. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1359. _ACEOF
  1360. fi
  1361. if test -n "$ac_init_help"; then
  1362. cat <<\_ACEOF
  1363. Optional Features:
  1364. --disable-option-checking ignore unrecognized --enable/--with options
  1365. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1366. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1367. --enable-shared[=PKGS] build shared libraries [default=yes]
  1368. --enable-static[=PKGS] build static libraries [default=yes]
  1369. --enable-fast-install[=PKGS]
  1370. optimize for fast installation [default=yes]
  1371. --disable-libtool-lock avoid locking (might break parallel builds)
  1372. --enable-assertions Enable internal sanity checks
  1373. (auto/disabled/release/enabled/paranoid)
  1374. [[default=auto]]
  1375. --enable-dependency-tracking
  1376. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1377. --enable-libc Use the system C library [[default=yes]]
  1378. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1379. --enable-atomic Enable the atomic operations subsystem
  1380. [[default=yes]]
  1381. --enable-audio Enable the audio subsystem [[default=yes]]
  1382. --enable-video Enable the video subsystem [[default=yes]]
  1383. --enable-render Enable the render subsystem [[default=yes]]
  1384. --enable-events Enable the events subsystem [[default=yes]]
  1385. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1386. --enable-haptic Enable the haptic (force feedback) subsystem
  1387. [[default=yes]]
  1388. --enable-power Enable the power subsystem [[default=yes]]
  1389. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1390. --enable-threads Enable the threading subsystem [[default=yes]]
  1391. --enable-timers Enable the timer subsystem [[default=yes]]
  1392. --enable-file Enable the file subsystem [[default=yes]]
  1393. --enable-loadso Enable the shared object loading subsystem
  1394. [[default=yes]]
  1395. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1396. --enable-assembly Enable assembly routines [[default=yes]]
  1397. --enable-ssemath Allow GCC to use SSE floating point math
  1398. [[default=maybe]]
  1399. --enable-mmx use MMX assembly routines [[default=yes]]
  1400. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1401. --enable-sse use SSE assembly routines [[default=yes]]
  1402. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1403. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1404. --enable-altivec use Altivec assembly routines [[default=yes]]
  1405. --enable-oss support the OSS audio API [[default=maybe]]
  1406. --enable-alsa support the ALSA audio API [[default=yes]]
  1407. --disable-alsatest Do not try to compile and run a test Alsa program
  1408. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1409. --enable-jack use JACK audio [[default=yes]]
  1410. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1411. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1412. --disable-esdtest Do not try to compile and run a test ESD program
  1413. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1414. --enable-pulseaudio use PulseAudio [[default=yes]]
  1415. --enable-pulseaudio-shared
  1416. dynamically load PulseAudio support [[default=yes]]
  1417. --enable-arts support the Analog Real Time Synthesizer
  1418. [[default=yes]]
  1419. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1420. --enable-nas support the NAS audio API [[default=yes]]
  1421. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1422. --enable-sndio support the sndio audio API [[default=yes]]
  1423. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1424. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1425. --enable-fusionsound-shared
  1426. dynamically load fusionsound audio support
  1427. [[default=yes]]
  1428. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1429. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1430. --enable-libsamplerate use libsamplerate for audio rate conversion
  1431. [[default=yes]]
  1432. --enable-libsamplerate-shared
  1433. dynamically load libsamplerate [[default=yes]]
  1434. --enable-video-wayland use Wayland video driver [[default=yes]]
  1435. --enable-video-wayland-qt-touch
  1436. QtWayland server support for Wayland video driver
  1437. [[default=yes]]
  1438. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1439. --enable-video-mir use Mir video driver [[default=yes]]
  1440. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1441. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1442. --enable-video-x11 use X11 video driver [[default=yes]]
  1443. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1444. --enable-video-x11-xcursor
  1445. enable X11 Xcursor support [[default=yes]]
  1446. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1447. --enable-video-x11-xinerama
  1448. enable X11 Xinerama support [[default=yes]]
  1449. --enable-video-x11-xinput
  1450. enable X11 XInput extension for manymouse, tablets,
  1451. etc [[default=yes]]
  1452. --enable-video-x11-xrandr
  1453. enable X11 Xrandr extension for fullscreen
  1454. [[default=yes]]
  1455. --enable-video-x11-scrnsaver
  1456. enable X11 screensaver extension [[default=yes]]
  1457. --enable-video-x11-xshape
  1458. enable X11 XShape support [[default=yes]]
  1459. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1460. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1461. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1462. --enable-video-directfb use DirectFB video driver [[default=no]]
  1463. --enable-directfb-shared
  1464. dynamically load directfb support [[default=yes]]
  1465. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1466. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1467. --enable-video-dummy use dummy video driver [[default=yes]]
  1468. --enable-video-opengl include OpenGL support [[default=yes]]
  1469. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1470. --enable-video-opengles1
  1471. include OpenGL ES 1.1 support [[default=yes]]
  1472. --enable-video-opengles2
  1473. include OpenGL ES 2.0 support [[default=yes]]
  1474. --enable-video-vulkan include Vulkan support [[default=yes]]
  1475. --enable-libudev enable libudev support [[default=yes]]
  1476. --enable-dbus enable D-Bus support [[default=yes]]
  1477. --enable-ime enable IME support [[default=yes]]
  1478. --enable-ibus enable IBus support [[default=yes]]
  1479. --enable-fcitx enable fcitx support [[default=yes]]
  1480. --enable-input-tslib use the Touchscreen library for input
  1481. [[default=yes]]
  1482. --enable-pthreads use POSIX threads for multi-threading
  1483. [[default=yes]]
  1484. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1485. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1486. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1487. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1488. UNIX [[default=yes]]
  1489. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1490. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1491. Optional Packages:
  1492. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1493. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1494. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1495. both]
  1496. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1497. --with-sysroot=DIR Search for dependent libraries within DIR
  1498. (or the compiler's sysroot if not specified).
  1499. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1500. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1501. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1502. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1503. --with-x use the X Window System
  1504. Some influential environment variables:
  1505. CC C compiler command
  1506. CFLAGS C compiler flags
  1507. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1508. nonstandard directory <lib dir>
  1509. LIBS libraries to pass to the linker, e.g. -l<library>
  1510. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1511. you have headers in a nonstandard directory <include dir>
  1512. CPP C preprocessor
  1513. CXX C++ compiler command
  1514. CXXFLAGS C++ compiler flags
  1515. CXXCPP C++ preprocessor
  1516. XMKMF Path to xmkmf, Makefile generator for X Window System
  1517. Use these variables to override the choices made by `configure' or to help
  1518. it to find libraries and programs with nonstandard names/locations.
  1519. Report bugs to the package provider.
  1520. _ACEOF
  1521. ac_status=$?
  1522. fi
  1523. if test "$ac_init_help" = "recursive"; then
  1524. # If there are subdirs, report their specific --help.
  1525. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1526. test -d "$ac_dir" ||
  1527. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1528. continue
  1529. ac_builddir=.
  1530. case "$ac_dir" in
  1531. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1532. *)
  1533. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1534. # A ".." for each directory in $ac_dir_suffix.
  1535. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1536. case $ac_top_builddir_sub in
  1537. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1538. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1539. esac ;;
  1540. esac
  1541. ac_abs_top_builddir=$ac_pwd
  1542. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1543. # for backward compatibility:
  1544. ac_top_builddir=$ac_top_build_prefix
  1545. case $srcdir in
  1546. .) # We are building in place.
  1547. ac_srcdir=.
  1548. ac_top_srcdir=$ac_top_builddir_sub
  1549. ac_abs_top_srcdir=$ac_pwd ;;
  1550. [\\/]* | ?:[\\/]* ) # Absolute name.
  1551. ac_srcdir=$srcdir$ac_dir_suffix;
  1552. ac_top_srcdir=$srcdir
  1553. ac_abs_top_srcdir=$srcdir ;;
  1554. *) # Relative name.
  1555. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1556. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1557. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1558. esac
  1559. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1560. cd "$ac_dir" || { ac_status=$?; continue; }
  1561. # Check for guested configure.
  1562. if test -f "$ac_srcdir/configure.gnu"; then
  1563. echo &&
  1564. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1565. elif test -f "$ac_srcdir/configure"; then
  1566. echo &&
  1567. $SHELL "$ac_srcdir/configure" --help=recursive
  1568. else
  1569. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1570. fi || ac_status=$?
  1571. cd "$ac_pwd" || { ac_status=$?; break; }
  1572. done
  1573. fi
  1574. test -n "$ac_init_help" && exit $ac_status
  1575. if $ac_init_version; then
  1576. cat <<\_ACEOF
  1577. configure
  1578. generated by GNU Autoconf 2.69
  1579. Copyright (C) 2012 Free Software Foundation, Inc.
  1580. This configure script is free software; the Free Software Foundation
  1581. gives unlimited permission to copy, distribute and modify it.
  1582. _ACEOF
  1583. exit
  1584. fi
  1585. ## ------------------------ ##
  1586. ## Autoconf initialization. ##
  1587. ## ------------------------ ##
  1588. # ac_fn_c_try_compile LINENO
  1589. # --------------------------
  1590. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1591. ac_fn_c_try_compile ()
  1592. {
  1593. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1594. rm -f conftest.$ac_objext
  1595. if { { ac_try="$ac_compile"
  1596. case "(($ac_try" in
  1597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1598. *) ac_try_echo=$ac_try;;
  1599. esac
  1600. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1601. $as_echo "$ac_try_echo"; } >&5
  1602. (eval "$ac_compile") 2>conftest.err
  1603. ac_status=$?
  1604. if test -s conftest.err; then
  1605. grep -v '^ *+' conftest.err >conftest.er1
  1606. cat conftest.er1 >&5
  1607. mv -f conftest.er1 conftest.err
  1608. fi
  1609. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1610. test $ac_status = 0; } && {
  1611. test -z "$ac_c_werror_flag" ||
  1612. test ! -s conftest.err
  1613. } && test -s conftest.$ac_objext; then :
  1614. ac_retval=0
  1615. else
  1616. $as_echo "$as_me: failed program was:" >&5
  1617. sed 's/^/| /' conftest.$ac_ext >&5
  1618. ac_retval=1
  1619. fi
  1620. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1621. as_fn_set_status $ac_retval
  1622. } # ac_fn_c_try_compile
  1623. # ac_fn_c_try_link LINENO
  1624. # -----------------------
  1625. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1626. ac_fn_c_try_link ()
  1627. {
  1628. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1629. rm -f conftest.$ac_objext conftest$ac_exeext
  1630. if { { ac_try="$ac_link"
  1631. case "(($ac_try" in
  1632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1633. *) ac_try_echo=$ac_try;;
  1634. esac
  1635. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1636. $as_echo "$ac_try_echo"; } >&5
  1637. (eval "$ac_link") 2>conftest.err
  1638. ac_status=$?
  1639. if test -s conftest.err; then
  1640. grep -v '^ *+' conftest.err >conftest.er1
  1641. cat conftest.er1 >&5
  1642. mv -f conftest.er1 conftest.err
  1643. fi
  1644. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1645. test $ac_status = 0; } && {
  1646. test -z "$ac_c_werror_flag" ||
  1647. test ! -s conftest.err
  1648. } && test -s conftest$ac_exeext && {
  1649. test "$cross_compiling" = yes ||
  1650. test -x conftest$ac_exeext
  1651. }; then :
  1652. ac_retval=0
  1653. else
  1654. $as_echo "$as_me: failed program was:" >&5
  1655. sed 's/^/| /' conftest.$ac_ext >&5
  1656. ac_retval=1
  1657. fi
  1658. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1659. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1660. # interfere with the next link command; also delete a directory that is
  1661. # left behind by Apple's compiler. We do this before executing the actions.
  1662. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1663. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1664. as_fn_set_status $ac_retval
  1665. } # ac_fn_c_try_link
  1666. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1667. # -------------------------------------------------------
  1668. # Tests whether HEADER exists and can be compiled using the include files in
  1669. # INCLUDES, setting the cache variable VAR accordingly.
  1670. ac_fn_c_check_header_compile ()
  1671. {
  1672. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1674. $as_echo_n "checking for $2... " >&6; }
  1675. if eval \${$3+:} false; then :
  1676. $as_echo_n "(cached) " >&6
  1677. else
  1678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1679. /* end confdefs.h. */
  1680. $4
  1681. #include <$2>
  1682. _ACEOF
  1683. if ac_fn_c_try_compile "$LINENO"; then :
  1684. eval "$3=yes"
  1685. else
  1686. eval "$3=no"
  1687. fi
  1688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1689. fi
  1690. eval ac_res=\$$3
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1692. $as_echo "$ac_res" >&6; }
  1693. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1694. } # ac_fn_c_check_header_compile
  1695. # ac_fn_c_try_cpp LINENO
  1696. # ----------------------
  1697. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1698. ac_fn_c_try_cpp ()
  1699. {
  1700. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1701. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1702. case "(($ac_try" in
  1703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1704. *) ac_try_echo=$ac_try;;
  1705. esac
  1706. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1707. $as_echo "$ac_try_echo"; } >&5
  1708. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1709. ac_status=$?
  1710. if test -s conftest.err; then
  1711. grep -v '^ *+' conftest.err >conftest.er1
  1712. cat conftest.er1 >&5
  1713. mv -f conftest.er1 conftest.err
  1714. fi
  1715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1716. test $ac_status = 0; } > conftest.i && {
  1717. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1718. test ! -s conftest.err
  1719. }; then :
  1720. ac_retval=0
  1721. else
  1722. $as_echo "$as_me: failed program was:" >&5
  1723. sed 's/^/| /' conftest.$ac_ext >&5
  1724. ac_retval=1
  1725. fi
  1726. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1727. as_fn_set_status $ac_retval
  1728. } # ac_fn_c_try_cpp
  1729. # ac_fn_c_try_run LINENO
  1730. # ----------------------
  1731. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1732. # that executables *can* be run.
  1733. ac_fn_c_try_run ()
  1734. {
  1735. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1736. if { { ac_try="$ac_link"
  1737. case "(($ac_try" in
  1738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1739. *) ac_try_echo=$ac_try;;
  1740. esac
  1741. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1742. $as_echo "$ac_try_echo"; } >&5
  1743. (eval "$ac_link") 2>&5
  1744. ac_status=$?
  1745. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1746. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1747. { { case "(($ac_try" in
  1748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1749. *) ac_try_echo=$ac_try;;
  1750. esac
  1751. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1752. $as_echo "$ac_try_echo"; } >&5
  1753. (eval "$ac_try") 2>&5
  1754. ac_status=$?
  1755. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1756. test $ac_status = 0; }; }; then :
  1757. ac_retval=0
  1758. else
  1759. $as_echo "$as_me: program exited with status $ac_status" >&5
  1760. $as_echo "$as_me: failed program was:" >&5
  1761. sed 's/^/| /' conftest.$ac_ext >&5
  1762. ac_retval=$ac_status
  1763. fi
  1764. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1765. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1766. as_fn_set_status $ac_retval
  1767. } # ac_fn_c_try_run
  1768. # ac_fn_c_check_func LINENO FUNC VAR
  1769. # ----------------------------------
  1770. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1771. ac_fn_c_check_func ()
  1772. {
  1773. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1775. $as_echo_n "checking for $2... " >&6; }
  1776. if eval \${$3+:} false; then :
  1777. $as_echo_n "(cached) " >&6
  1778. else
  1779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1780. /* end confdefs.h. */
  1781. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1782. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1783. #define $2 innocuous_$2
  1784. /* System header to define __stub macros and hopefully few prototypes,
  1785. which can conflict with char $2 (); below.
  1786. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1787. <limits.h> exists even on freestanding compilers. */
  1788. #ifdef __STDC__
  1789. # include <limits.h>
  1790. #else
  1791. # include <assert.h>
  1792. #endif
  1793. #undef $2
  1794. /* Override any GCC internal prototype to avoid an error.
  1795. Use char because int might match the return type of a GCC
  1796. builtin and then its argument prototype would still apply. */
  1797. #ifdef __cplusplus
  1798. extern "C"
  1799. #endif
  1800. char $2 ();
  1801. /* The GNU C library defines this for functions which it implements
  1802. to always fail with ENOSYS. Some functions are actually named
  1803. something starting with __ and the normal name is an alias. */
  1804. #if defined __stub_$2 || defined __stub___$2
  1805. choke me
  1806. #endif
  1807. int
  1808. main ()
  1809. {
  1810. return $2 ();
  1811. ;
  1812. return 0;
  1813. }
  1814. _ACEOF
  1815. if ac_fn_c_try_link "$LINENO"; then :
  1816. eval "$3=yes"
  1817. else
  1818. eval "$3=no"
  1819. fi
  1820. rm -f core conftest.err conftest.$ac_objext \
  1821. conftest$ac_exeext conftest.$ac_ext
  1822. fi
  1823. eval ac_res=\$$3
  1824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1825. $as_echo "$ac_res" >&6; }
  1826. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1827. } # ac_fn_c_check_func
  1828. # ac_fn_cxx_try_compile LINENO
  1829. # ----------------------------
  1830. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1831. ac_fn_cxx_try_compile ()
  1832. {
  1833. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1834. rm -f conftest.$ac_objext
  1835. if { { ac_try="$ac_compile"
  1836. case "(($ac_try" in
  1837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1838. *) ac_try_echo=$ac_try;;
  1839. esac
  1840. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1841. $as_echo "$ac_try_echo"; } >&5
  1842. (eval "$ac_compile") 2>conftest.err
  1843. ac_status=$?
  1844. if test -s conftest.err; then
  1845. grep -v '^ *+' conftest.err >conftest.er1
  1846. cat conftest.er1 >&5
  1847. mv -f conftest.er1 conftest.err
  1848. fi
  1849. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1850. test $ac_status = 0; } && {
  1851. test -z "$ac_cxx_werror_flag" ||
  1852. test ! -s conftest.err
  1853. } && test -s conftest.$ac_objext; then :
  1854. ac_retval=0
  1855. else
  1856. $as_echo "$as_me: failed program was:" >&5
  1857. sed 's/^/| /' conftest.$ac_ext >&5
  1858. ac_retval=1
  1859. fi
  1860. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1861. as_fn_set_status $ac_retval
  1862. } # ac_fn_cxx_try_compile
  1863. # ac_fn_cxx_try_cpp LINENO
  1864. # ------------------------
  1865. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1866. ac_fn_cxx_try_cpp ()
  1867. {
  1868. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1869. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1870. case "(($ac_try" in
  1871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1872. *) ac_try_echo=$ac_try;;
  1873. esac
  1874. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1875. $as_echo "$ac_try_echo"; } >&5
  1876. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1877. ac_status=$?
  1878. if test -s conftest.err; then
  1879. grep -v '^ *+' conftest.err >conftest.er1
  1880. cat conftest.er1 >&5
  1881. mv -f conftest.er1 conftest.err
  1882. fi
  1883. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1884. test $ac_status = 0; } > conftest.i && {
  1885. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1886. test ! -s conftest.err
  1887. }; then :
  1888. ac_retval=0
  1889. else
  1890. $as_echo "$as_me: failed program was:" >&5
  1891. sed 's/^/| /' conftest.$ac_ext >&5
  1892. ac_retval=1
  1893. fi
  1894. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1895. as_fn_set_status $ac_retval
  1896. } # ac_fn_cxx_try_cpp
  1897. # ac_fn_cxx_try_link LINENO
  1898. # -------------------------
  1899. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1900. ac_fn_cxx_try_link ()
  1901. {
  1902. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1903. rm -f conftest.$ac_objext conftest$ac_exeext
  1904. if { { ac_try="$ac_link"
  1905. case "(($ac_try" in
  1906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1907. *) ac_try_echo=$ac_try;;
  1908. esac
  1909. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1910. $as_echo "$ac_try_echo"; } >&5
  1911. (eval "$ac_link") 2>conftest.err
  1912. ac_status=$?
  1913. if test -s conftest.err; then
  1914. grep -v '^ *+' conftest.err >conftest.er1
  1915. cat conftest.er1 >&5
  1916. mv -f conftest.er1 conftest.err
  1917. fi
  1918. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1919. test $ac_status = 0; } && {
  1920. test -z "$ac_cxx_werror_flag" ||
  1921. test ! -s conftest.err
  1922. } && test -s conftest$ac_exeext && {
  1923. test "$cross_compiling" = yes ||
  1924. test -x conftest$ac_exeext
  1925. }; then :
  1926. ac_retval=0
  1927. else
  1928. $as_echo "$as_me: failed program was:" >&5
  1929. sed 's/^/| /' conftest.$ac_ext >&5
  1930. ac_retval=1
  1931. fi
  1932. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1933. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1934. # interfere with the next link command; also delete a directory that is
  1935. # left behind by Apple's compiler. We do this before executing the actions.
  1936. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1937. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1938. as_fn_set_status $ac_retval
  1939. } # ac_fn_cxx_try_link
  1940. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1941. # -------------------------------------------------------
  1942. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1943. # the include files in INCLUDES and setting the cache variable VAR
  1944. # accordingly.
  1945. ac_fn_c_check_header_mongrel ()
  1946. {
  1947. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1948. if eval \${$3+:} false; then :
  1949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1950. $as_echo_n "checking for $2... " >&6; }
  1951. if eval \${$3+:} false; then :
  1952. $as_echo_n "(cached) " >&6
  1953. fi
  1954. eval ac_res=\$$3
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1956. $as_echo "$ac_res" >&6; }
  1957. else
  1958. # Is the header compilable?
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1960. $as_echo_n "checking $2 usability... " >&6; }
  1961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1962. /* end confdefs.h. */
  1963. $4
  1964. #include <$2>
  1965. _ACEOF
  1966. if ac_fn_c_try_compile "$LINENO"; then :
  1967. ac_header_compiler=yes
  1968. else
  1969. ac_header_compiler=no
  1970. fi
  1971. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1973. $as_echo "$ac_header_compiler" >&6; }
  1974. # Is the header present?
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1976. $as_echo_n "checking $2 presence... " >&6; }
  1977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1978. /* end confdefs.h. */
  1979. #include <$2>
  1980. _ACEOF
  1981. if ac_fn_c_try_cpp "$LINENO"; then :
  1982. ac_header_preproc=yes
  1983. else
  1984. ac_header_preproc=no
  1985. fi
  1986. rm -f conftest.err conftest.i conftest.$ac_ext
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1988. $as_echo "$ac_header_preproc" >&6; }
  1989. # So? What about this header?
  1990. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1991. yes:no: )
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1993. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1994. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1995. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1996. ;;
  1997. no:yes:* )
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1999. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2000. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2001. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2002. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2003. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2005. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2007. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2008. ;;
  2009. esac
  2010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2011. $as_echo_n "checking for $2... " >&6; }
  2012. if eval \${$3+:} false; then :
  2013. $as_echo_n "(cached) " >&6
  2014. else
  2015. eval "$3=\$ac_header_compiler"
  2016. fi
  2017. eval ac_res=\$$3
  2018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2019. $as_echo "$ac_res" >&6; }
  2020. fi
  2021. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2022. } # ac_fn_c_check_header_mongrel
  2023. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2024. # -------------------------------------------
  2025. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2026. # variable VAR accordingly.
  2027. ac_fn_c_check_type ()
  2028. {
  2029. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2031. $as_echo_n "checking for $2... " >&6; }
  2032. if eval \${$3+:} false; then :
  2033. $as_echo_n "(cached) " >&6
  2034. else
  2035. eval "$3=no"
  2036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2037. /* end confdefs.h. */
  2038. $4
  2039. int
  2040. main ()
  2041. {
  2042. if (sizeof ($2))
  2043. return 0;
  2044. ;
  2045. return 0;
  2046. }
  2047. _ACEOF
  2048. if ac_fn_c_try_compile "$LINENO"; then :
  2049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2050. /* end confdefs.h. */
  2051. $4
  2052. int
  2053. main ()
  2054. {
  2055. if (sizeof (($2)))
  2056. return 0;
  2057. ;
  2058. return 0;
  2059. }
  2060. _ACEOF
  2061. if ac_fn_c_try_compile "$LINENO"; then :
  2062. else
  2063. eval "$3=yes"
  2064. fi
  2065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2066. fi
  2067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2068. fi
  2069. eval ac_res=\$$3
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2071. $as_echo "$ac_res" >&6; }
  2072. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2073. } # ac_fn_c_check_type
  2074. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2075. # ----------------------------------------------------
  2076. # Tries to find if the field MEMBER exists in type AGGR, after including
  2077. # INCLUDES, setting cache variable VAR accordingly.
  2078. ac_fn_c_check_member ()
  2079. {
  2080. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2082. $as_echo_n "checking for $2.$3... " >&6; }
  2083. if eval \${$4+:} false; then :
  2084. $as_echo_n "(cached) " >&6
  2085. else
  2086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2087. /* end confdefs.h. */
  2088. $5
  2089. int
  2090. main ()
  2091. {
  2092. static $2 ac_aggr;
  2093. if (ac_aggr.$3)
  2094. return 0;
  2095. ;
  2096. return 0;
  2097. }
  2098. _ACEOF
  2099. if ac_fn_c_try_compile "$LINENO"; then :
  2100. eval "$4=yes"
  2101. else
  2102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2103. /* end confdefs.h. */
  2104. $5
  2105. int
  2106. main ()
  2107. {
  2108. static $2 ac_aggr;
  2109. if (sizeof ac_aggr.$3)
  2110. return 0;
  2111. ;
  2112. return 0;
  2113. }
  2114. _ACEOF
  2115. if ac_fn_c_try_compile "$LINENO"; then :
  2116. eval "$4=yes"
  2117. else
  2118. eval "$4=no"
  2119. fi
  2120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2121. fi
  2122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2123. fi
  2124. eval ac_res=\$$4
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2126. $as_echo "$ac_res" >&6; }
  2127. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2128. } # ac_fn_c_check_member
  2129. cat >config.log <<_ACEOF
  2130. This file contains any messages produced by compilers while
  2131. running configure, to aid debugging if configure makes a mistake.
  2132. It was created by $as_me, which was
  2133. generated by GNU Autoconf 2.69. Invocation command line was
  2134. $ $0 $@
  2135. _ACEOF
  2136. exec 5>>config.log
  2137. {
  2138. cat <<_ASUNAME
  2139. ## --------- ##
  2140. ## Platform. ##
  2141. ## --------- ##
  2142. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2143. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2144. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2145. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2146. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2147. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2148. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2149. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2150. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2151. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2152. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2153. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2154. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2155. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2156. _ASUNAME
  2157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2158. for as_dir in $PATH
  2159. do
  2160. IFS=$as_save_IFS
  2161. test -z "$as_dir" && as_dir=.
  2162. $as_echo "PATH: $as_dir"
  2163. done
  2164. IFS=$as_save_IFS
  2165. } >&5
  2166. cat >&5 <<_ACEOF
  2167. ## ----------- ##
  2168. ## Core tests. ##
  2169. ## ----------- ##
  2170. _ACEOF
  2171. # Keep a trace of the command line.
  2172. # Strip out --no-create and --no-recursion so they do not pile up.
  2173. # Strip out --silent because we don't want to record it for future runs.
  2174. # Also quote any args containing shell meta-characters.
  2175. # Make two passes to allow for proper duplicate-argument suppression.
  2176. ac_configure_args=
  2177. ac_configure_args0=
  2178. ac_configure_args1=
  2179. ac_must_keep_next=false
  2180. for ac_pass in 1 2
  2181. do
  2182. for ac_arg
  2183. do
  2184. case $ac_arg in
  2185. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2186. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2187. | -silent | --silent | --silen | --sile | --sil)
  2188. continue ;;
  2189. *\'*)
  2190. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2191. esac
  2192. case $ac_pass in
  2193. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2194. 2)
  2195. as_fn_append ac_configure_args1 " '$ac_arg'"
  2196. if test $ac_must_keep_next = true; then
  2197. ac_must_keep_next=false # Got value, back to normal.
  2198. else
  2199. case $ac_arg in
  2200. *=* | --config-cache | -C | -disable-* | --disable-* \
  2201. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2202. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2203. | -with-* | --with-* | -without-* | --without-* | --x)
  2204. case "$ac_configure_args0 " in
  2205. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2206. esac
  2207. ;;
  2208. -* ) ac_must_keep_next=true ;;
  2209. esac
  2210. fi
  2211. as_fn_append ac_configure_args " '$ac_arg'"
  2212. ;;
  2213. esac
  2214. done
  2215. done
  2216. { ac_configure_args0=; unset ac_configure_args0;}
  2217. { ac_configure_args1=; unset ac_configure_args1;}
  2218. # When interrupted or exit'd, cleanup temporary files, and complete
  2219. # config.log. We remove comments because anyway the quotes in there
  2220. # would cause problems or look ugly.
  2221. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2222. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2223. trap 'exit_status=$?
  2224. # Save into config.log some information that might help in debugging.
  2225. {
  2226. echo
  2227. $as_echo "## ---------------- ##
  2228. ## Cache variables. ##
  2229. ## ---------------- ##"
  2230. echo
  2231. # The following way of writing the cache mishandles newlines in values,
  2232. (
  2233. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2234. eval ac_val=\$$ac_var
  2235. case $ac_val in #(
  2236. *${as_nl}*)
  2237. case $ac_var in #(
  2238. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2239. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2240. esac
  2241. case $ac_var in #(
  2242. _ | IFS | as_nl) ;; #(
  2243. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2244. *) { eval $ac_var=; unset $ac_var;} ;;
  2245. esac ;;
  2246. esac
  2247. done
  2248. (set) 2>&1 |
  2249. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2250. *${as_nl}ac_space=\ *)
  2251. sed -n \
  2252. "s/'\''/'\''\\\\'\'''\''/g;
  2253. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2254. ;; #(
  2255. *)
  2256. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2257. ;;
  2258. esac |
  2259. sort
  2260. )
  2261. echo
  2262. $as_echo "## ----------------- ##
  2263. ## Output variables. ##
  2264. ## ----------------- ##"
  2265. echo
  2266. for ac_var in $ac_subst_vars
  2267. do
  2268. eval ac_val=\$$ac_var
  2269. case $ac_val in
  2270. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2271. esac
  2272. $as_echo "$ac_var='\''$ac_val'\''"
  2273. done | sort
  2274. echo
  2275. if test -n "$ac_subst_files"; then
  2276. $as_echo "## ------------------- ##
  2277. ## File substitutions. ##
  2278. ## ------------------- ##"
  2279. echo
  2280. for ac_var in $ac_subst_files
  2281. do
  2282. eval ac_val=\$$ac_var
  2283. case $ac_val in
  2284. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2285. esac
  2286. $as_echo "$ac_var='\''$ac_val'\''"
  2287. done | sort
  2288. echo
  2289. fi
  2290. if test -s confdefs.h; then
  2291. $as_echo "## ----------- ##
  2292. ## confdefs.h. ##
  2293. ## ----------- ##"
  2294. echo
  2295. cat confdefs.h
  2296. echo
  2297. fi
  2298. test "$ac_signal" != 0 &&
  2299. $as_echo "$as_me: caught signal $ac_signal"
  2300. $as_echo "$as_me: exit $exit_status"
  2301. } >&5
  2302. rm -f core *.core core.conftest.* &&
  2303. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2304. exit $exit_status
  2305. ' 0
  2306. for ac_signal in 1 2 13 15; do
  2307. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2308. done
  2309. ac_signal=0
  2310. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2311. rm -f -r conftest* confdefs.h
  2312. $as_echo "/* confdefs.h */" > confdefs.h
  2313. # Predefined preprocessor variables.
  2314. cat >>confdefs.h <<_ACEOF
  2315. #define PACKAGE_NAME "$PACKAGE_NAME"
  2316. _ACEOF
  2317. cat >>confdefs.h <<_ACEOF
  2318. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2319. _ACEOF
  2320. cat >>confdefs.h <<_ACEOF
  2321. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2322. _ACEOF
  2323. cat >>confdefs.h <<_ACEOF
  2324. #define PACKAGE_STRING "$PACKAGE_STRING"
  2325. _ACEOF
  2326. cat >>confdefs.h <<_ACEOF
  2327. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2328. _ACEOF
  2329. cat >>confdefs.h <<_ACEOF
  2330. #define PACKAGE_URL "$PACKAGE_URL"
  2331. _ACEOF
  2332. # Let the site file select an alternate cache file if it wants to.
  2333. # Prefer an explicitly selected file to automatically selected ones.
  2334. ac_site_file1=NONE
  2335. ac_site_file2=NONE
  2336. if test -n "$CONFIG_SITE"; then
  2337. # We do not want a PATH search for config.site.
  2338. case $CONFIG_SITE in #((
  2339. -*) ac_site_file1=./$CONFIG_SITE;;
  2340. */*) ac_site_file1=$CONFIG_SITE;;
  2341. *) ac_site_file1=./$CONFIG_SITE;;
  2342. esac
  2343. elif test "x$prefix" != xNONE; then
  2344. ac_site_file1=$prefix/share/config.site
  2345. ac_site_file2=$prefix/etc/config.site
  2346. else
  2347. ac_site_file1=$ac_default_prefix/share/config.site
  2348. ac_site_file2=$ac_default_prefix/etc/config.site
  2349. fi
  2350. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2351. do
  2352. test "x$ac_site_file" = xNONE && continue
  2353. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2355. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2356. sed 's/^/| /' "$ac_site_file" >&5
  2357. . "$ac_site_file" \
  2358. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2359. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2360. as_fn_error $? "failed to load site script $ac_site_file
  2361. See \`config.log' for more details" "$LINENO" 5; }
  2362. fi
  2363. done
  2364. if test -r "$cache_file"; then
  2365. # Some versions of bash will fail to source /dev/null (special files
  2366. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2367. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2368. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2369. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2370. case $cache_file in
  2371. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2372. *) . "./$cache_file";;
  2373. esac
  2374. fi
  2375. else
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2377. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2378. >$cache_file
  2379. fi
  2380. # Check that the precious variables saved in the cache have kept the same
  2381. # value.
  2382. ac_cache_corrupted=false
  2383. for ac_var in $ac_precious_vars; do
  2384. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2385. eval ac_new_set=\$ac_env_${ac_var}_set
  2386. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2387. eval ac_new_val=\$ac_env_${ac_var}_value
  2388. case $ac_old_set,$ac_new_set in
  2389. set,)
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2391. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2392. ac_cache_corrupted=: ;;
  2393. ,set)
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2395. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2396. ac_cache_corrupted=: ;;
  2397. ,);;
  2398. *)
  2399. if test "x$ac_old_val" != "x$ac_new_val"; then
  2400. # differences in whitespace do not lead to failure.
  2401. ac_old_val_w=`echo x $ac_old_val`
  2402. ac_new_val_w=`echo x $ac_new_val`
  2403. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2405. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2406. ac_cache_corrupted=:
  2407. else
  2408. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2409. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2410. eval $ac_var=\$ac_old_val
  2411. fi
  2412. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2413. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2415. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2416. fi;;
  2417. esac
  2418. # Pass precious variables to config.status.
  2419. if test "$ac_new_set" = set; then
  2420. case $ac_new_val in
  2421. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2422. *) ac_arg=$ac_var=$ac_new_val ;;
  2423. esac
  2424. case " $ac_configure_args " in
  2425. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2426. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2427. esac
  2428. fi
  2429. done
  2430. if $ac_cache_corrupted; then
  2431. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2432. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2433. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2434. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2435. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2436. fi
  2437. ## -------------------- ##
  2438. ## Main body of script. ##
  2439. ## -------------------- ##
  2440. ac_ext=c
  2441. ac_cpp='$CPP $CPPFLAGS'
  2442. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2443. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2444. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2445. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2446. ac_aux_dir=
  2447. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2448. if test -f "$ac_dir/install-sh"; then
  2449. ac_aux_dir=$ac_dir
  2450. ac_install_sh="$ac_aux_dir/install-sh -c"
  2451. break
  2452. elif test -f "$ac_dir/install.sh"; then
  2453. ac_aux_dir=$ac_dir
  2454. ac_install_sh="$ac_aux_dir/install.sh -c"
  2455. break
  2456. elif test -f "$ac_dir/shtool"; then
  2457. ac_aux_dir=$ac_dir
  2458. ac_install_sh="$ac_aux_dir/shtool install -c"
  2459. break
  2460. fi
  2461. done
  2462. if test -z "$ac_aux_dir"; then
  2463. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2464. fi
  2465. # These three variables are undocumented and unsupported,
  2466. # and are intended to be withdrawn in a future Autoconf release.
  2467. # They can cause serious problems if a builder's source tree is in a directory
  2468. # whose full name contains unusual characters.
  2469. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2470. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2471. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2472. orig_CFLAGS="$CFLAGS"
  2473. #
  2474. # Making releases:
  2475. # Edit include/SDL_version.h and change the version, then:
  2476. # SDL_MICRO_VERSION += 1;
  2477. # SDL_INTERFACE_AGE += 1;
  2478. # SDL_BINARY_AGE += 1;
  2479. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2480. # if backwards compatibility has been broken,
  2481. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2482. #
  2483. SDL_MAJOR_VERSION=2
  2484. SDL_MINOR_VERSION=0
  2485. SDL_MICRO_VERSION=8
  2486. SDL_INTERFACE_AGE=0
  2487. SDL_BINARY_AGE=8
  2488. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2489. # libtool versioning
  2490. case `pwd` in
  2491. *\ * | *\ *)
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2493. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2494. esac
  2495. macro_version='2.4.2'
  2496. macro_revision='1.3337'
  2497. ltmain="$ac_aux_dir/ltmain.sh"
  2498. # Make sure we can run config.sub.
  2499. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2500. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2502. $as_echo_n "checking build system type... " >&6; }
  2503. if ${ac_cv_build+:} false; then :
  2504. $as_echo_n "(cached) " >&6
  2505. else
  2506. ac_build_alias=$build_alias
  2507. test "x$ac_build_alias" = x &&
  2508. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2509. test "x$ac_build_alias" = x &&
  2510. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2511. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2512. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2513. fi
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2515. $as_echo "$ac_cv_build" >&6; }
  2516. case $ac_cv_build in
  2517. *-*-*) ;;
  2518. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2519. esac
  2520. build=$ac_cv_build
  2521. ac_save_IFS=$IFS; IFS='-'
  2522. set x $ac_cv_build
  2523. shift
  2524. build_cpu=$1
  2525. build_vendor=$2
  2526. shift; shift
  2527. # Remember, the first character of IFS is used to create $*,
  2528. # except with old shells:
  2529. build_os=$*
  2530. IFS=$ac_save_IFS
  2531. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2533. $as_echo_n "checking host system type... " >&6; }
  2534. if ${ac_cv_host+:} false; then :
  2535. $as_echo_n "(cached) " >&6
  2536. else
  2537. if test "x$host_alias" = x; then
  2538. ac_cv_host=$ac_cv_build
  2539. else
  2540. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2541. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2542. fi
  2543. fi
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2545. $as_echo "$ac_cv_host" >&6; }
  2546. case $ac_cv_host in
  2547. *-*-*) ;;
  2548. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2549. esac
  2550. host=$ac_cv_host
  2551. ac_save_IFS=$IFS; IFS='-'
  2552. set x $ac_cv_host
  2553. shift
  2554. host_cpu=$1
  2555. host_vendor=$2
  2556. shift; shift
  2557. # Remember, the first character of IFS is used to create $*,
  2558. # except with old shells:
  2559. host_os=$*
  2560. IFS=$ac_save_IFS
  2561. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2562. # Backslashify metacharacters that are still active within
  2563. # double-quoted strings.
  2564. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2565. # Same as above, but do not quote variable references.
  2566. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2567. # Sed substitution to delay expansion of an escaped shell variable in a
  2568. # double_quote_subst'ed string.
  2569. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2570. # Sed substitution to delay expansion of an escaped single quote.
  2571. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2572. # Sed substitution to avoid accidental globbing in evaled expressions
  2573. no_glob_subst='s/\*/\\\*/g'
  2574. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2575. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2576. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2578. $as_echo_n "checking how to print strings... " >&6; }
  2579. # Test print first, because it will be a builtin if present.
  2580. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2581. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2582. ECHO='print -r --'
  2583. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2584. ECHO='printf %s\n'
  2585. else
  2586. # Use this function as a fallback that always works.
  2587. func_fallback_echo ()
  2588. {
  2589. eval 'cat <<_LTECHO_EOF
  2590. $1
  2591. _LTECHO_EOF'
  2592. }
  2593. ECHO='func_fallback_echo'
  2594. fi
  2595. # func_echo_all arg...
  2596. # Invoke $ECHO with all args, space-separated.
  2597. func_echo_all ()
  2598. {
  2599. $ECHO ""
  2600. }
  2601. case "$ECHO" in
  2602. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2603. $as_echo "printf" >&6; } ;;
  2604. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2605. $as_echo "print -r" >&6; } ;;
  2606. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2607. $as_echo "cat" >&6; } ;;
  2608. esac
  2609. ac_ext=c
  2610. ac_cpp='$CPP $CPPFLAGS'
  2611. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2612. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2613. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2614. if test -n "$ac_tool_prefix"; then
  2615. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2616. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2618. $as_echo_n "checking for $ac_word... " >&6; }
  2619. if ${ac_cv_prog_CC+:} false; then :
  2620. $as_echo_n "(cached) " >&6
  2621. else
  2622. if test -n "$CC"; then
  2623. ac_cv_prog_CC="$CC" # Let the user override the test.
  2624. else
  2625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2626. for as_dir in $PATH
  2627. do
  2628. IFS=$as_save_IFS
  2629. test -z "$as_dir" && as_dir=.
  2630. for ac_exec_ext in '' $ac_executable_extensions; do
  2631. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2632. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2634. break 2
  2635. fi
  2636. done
  2637. done
  2638. IFS=$as_save_IFS
  2639. fi
  2640. fi
  2641. CC=$ac_cv_prog_CC
  2642. if test -n "$CC"; then
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2644. $as_echo "$CC" >&6; }
  2645. else
  2646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2647. $as_echo "no" >&6; }
  2648. fi
  2649. fi
  2650. if test -z "$ac_cv_prog_CC"; then
  2651. ac_ct_CC=$CC
  2652. # Extract the first word of "gcc", so it can be a program name with args.
  2653. set dummy gcc; ac_word=$2
  2654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2655. $as_echo_n "checking for $ac_word... " >&6; }
  2656. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2657. $as_echo_n "(cached) " >&6
  2658. else
  2659. if test -n "$ac_ct_CC"; then
  2660. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2661. else
  2662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2663. for as_dir in $PATH
  2664. do
  2665. IFS=$as_save_IFS
  2666. test -z "$as_dir" && as_dir=.
  2667. for ac_exec_ext in '' $ac_executable_extensions; do
  2668. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2669. ac_cv_prog_ac_ct_CC="gcc"
  2670. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2671. break 2
  2672. fi
  2673. done
  2674. done
  2675. IFS=$as_save_IFS
  2676. fi
  2677. fi
  2678. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2679. if test -n "$ac_ct_CC"; then
  2680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2681. $as_echo "$ac_ct_CC" >&6; }
  2682. else
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2684. $as_echo "no" >&6; }
  2685. fi
  2686. if test "x$ac_ct_CC" = x; then
  2687. CC=""
  2688. else
  2689. case $cross_compiling:$ac_tool_warned in
  2690. yes:)
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2692. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2693. ac_tool_warned=yes ;;
  2694. esac
  2695. CC=$ac_ct_CC
  2696. fi
  2697. else
  2698. CC="$ac_cv_prog_CC"
  2699. fi
  2700. if test -z "$CC"; then
  2701. if test -n "$ac_tool_prefix"; then
  2702. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2703. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2705. $as_echo_n "checking for $ac_word... " >&6; }
  2706. if ${ac_cv_prog_CC+:} false; then :
  2707. $as_echo_n "(cached) " >&6
  2708. else
  2709. if test -n "$CC"; then
  2710. ac_cv_prog_CC="$CC" # Let the user override the test.
  2711. else
  2712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2713. for as_dir in $PATH
  2714. do
  2715. IFS=$as_save_IFS
  2716. test -z "$as_dir" && as_dir=.
  2717. for ac_exec_ext in '' $ac_executable_extensions; do
  2718. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2719. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2720. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2721. break 2
  2722. fi
  2723. done
  2724. done
  2725. IFS=$as_save_IFS
  2726. fi
  2727. fi
  2728. CC=$ac_cv_prog_CC
  2729. if test -n "$CC"; then
  2730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2731. $as_echo "$CC" >&6; }
  2732. else
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2734. $as_echo "no" >&6; }
  2735. fi
  2736. fi
  2737. fi
  2738. if test -z "$CC"; then
  2739. # Extract the first word of "cc", so it can be a program name with args.
  2740. set dummy cc; ac_word=$2
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2742. $as_echo_n "checking for $ac_word... " >&6; }
  2743. if ${ac_cv_prog_CC+:} false; then :
  2744. $as_echo_n "(cached) " >&6
  2745. else
  2746. if test -n "$CC"; then
  2747. ac_cv_prog_CC="$CC" # Let the user override the test.
  2748. else
  2749. ac_prog_rejected=no
  2750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2751. for as_dir in $PATH
  2752. do
  2753. IFS=$as_save_IFS
  2754. test -z "$as_dir" && as_dir=.
  2755. for ac_exec_ext in '' $ac_executable_extensions; do
  2756. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2757. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2758. ac_prog_rejected=yes
  2759. continue
  2760. fi
  2761. ac_cv_prog_CC="cc"
  2762. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2763. break 2
  2764. fi
  2765. done
  2766. done
  2767. IFS=$as_save_IFS
  2768. if test $ac_prog_rejected = yes; then
  2769. # We found a bogon in the path, so make sure we never use it.
  2770. set dummy $ac_cv_prog_CC
  2771. shift
  2772. if test $# != 0; then
  2773. # We chose a different compiler from the bogus one.
  2774. # However, it has the same basename, so the bogon will be chosen
  2775. # first if we set CC to just the basename; use the full file name.
  2776. shift
  2777. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2778. fi
  2779. fi
  2780. fi
  2781. fi
  2782. CC=$ac_cv_prog_CC
  2783. if test -n "$CC"; then
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2785. $as_echo "$CC" >&6; }
  2786. else
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2788. $as_echo "no" >&6; }
  2789. fi
  2790. fi
  2791. if test -z "$CC"; then
  2792. if test -n "$ac_tool_prefix"; then
  2793. for ac_prog in cl.exe
  2794. do
  2795. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2796. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2798. $as_echo_n "checking for $ac_word... " >&6; }
  2799. if ${ac_cv_prog_CC+:} false; then :
  2800. $as_echo_n "(cached) " >&6
  2801. else
  2802. if test -n "$CC"; then
  2803. ac_cv_prog_CC="$CC" # Let the user override the test.
  2804. else
  2805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2806. for as_dir in $PATH
  2807. do
  2808. IFS=$as_save_IFS
  2809. test -z "$as_dir" && as_dir=.
  2810. for ac_exec_ext in '' $ac_executable_extensions; do
  2811. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2812. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2813. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2814. break 2
  2815. fi
  2816. done
  2817. done
  2818. IFS=$as_save_IFS
  2819. fi
  2820. fi
  2821. CC=$ac_cv_prog_CC
  2822. if test -n "$CC"; then
  2823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2824. $as_echo "$CC" >&6; }
  2825. else
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2827. $as_echo "no" >&6; }
  2828. fi
  2829. test -n "$CC" && break
  2830. done
  2831. fi
  2832. if test -z "$CC"; then
  2833. ac_ct_CC=$CC
  2834. for ac_prog in cl.exe
  2835. do
  2836. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2837. set dummy $ac_prog; ac_word=$2
  2838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2839. $as_echo_n "checking for $ac_word... " >&6; }
  2840. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2841. $as_echo_n "(cached) " >&6
  2842. else
  2843. if test -n "$ac_ct_CC"; then
  2844. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2845. else
  2846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2847. for as_dir in $PATH
  2848. do
  2849. IFS=$as_save_IFS
  2850. test -z "$as_dir" && as_dir=.
  2851. for ac_exec_ext in '' $ac_executable_extensions; do
  2852. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2853. ac_cv_prog_ac_ct_CC="$ac_prog"
  2854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2855. break 2
  2856. fi
  2857. done
  2858. done
  2859. IFS=$as_save_IFS
  2860. fi
  2861. fi
  2862. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2863. if test -n "$ac_ct_CC"; then
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2865. $as_echo "$ac_ct_CC" >&6; }
  2866. else
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2868. $as_echo "no" >&6; }
  2869. fi
  2870. test -n "$ac_ct_CC" && break
  2871. done
  2872. if test "x$ac_ct_CC" = x; then
  2873. CC=""
  2874. else
  2875. case $cross_compiling:$ac_tool_warned in
  2876. yes:)
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2878. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2879. ac_tool_warned=yes ;;
  2880. esac
  2881. CC=$ac_ct_CC
  2882. fi
  2883. fi
  2884. fi
  2885. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2886. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2887. as_fn_error $? "no acceptable C compiler found in \$PATH
  2888. See \`config.log' for more details" "$LINENO" 5; }
  2889. # Provide some information about the compiler.
  2890. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2891. set X $ac_compile
  2892. ac_compiler=$2
  2893. for ac_option in --version -v -V -qversion; do
  2894. { { ac_try="$ac_compiler $ac_option >&5"
  2895. case "(($ac_try" in
  2896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2897. *) ac_try_echo=$ac_try;;
  2898. esac
  2899. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2900. $as_echo "$ac_try_echo"; } >&5
  2901. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2902. ac_status=$?
  2903. if test -s conftest.err; then
  2904. sed '10a\
  2905. ... rest of stderr output deleted ...
  2906. 10q' conftest.err >conftest.er1
  2907. cat conftest.er1 >&5
  2908. fi
  2909. rm -f conftest.er1 conftest.err
  2910. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2911. test $ac_status = 0; }
  2912. done
  2913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2914. /* end confdefs.h. */
  2915. int
  2916. main ()
  2917. {
  2918. ;
  2919. return 0;
  2920. }
  2921. _ACEOF
  2922. ac_clean_files_save=$ac_clean_files
  2923. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2924. # Try to create an executable without -o first, disregard a.out.
  2925. # It will help us diagnose broken compilers, and finding out an intuition
  2926. # of exeext.
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2928. $as_echo_n "checking whether the C compiler works... " >&6; }
  2929. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2930. # The possible output files:
  2931. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2932. ac_rmfiles=
  2933. for ac_file in $ac_files
  2934. do
  2935. case $ac_file in
  2936. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2937. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2938. esac
  2939. done
  2940. rm -f $ac_rmfiles
  2941. if { { ac_try="$ac_link_default"
  2942. case "(($ac_try" in
  2943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2944. *) ac_try_echo=$ac_try;;
  2945. esac
  2946. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2947. $as_echo "$ac_try_echo"; } >&5
  2948. (eval "$ac_link_default") 2>&5
  2949. ac_status=$?
  2950. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2951. test $ac_status = 0; }; then :
  2952. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2953. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2954. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2955. # so that the user can short-circuit this test for compilers unknown to
  2956. # Autoconf.
  2957. for ac_file in $ac_files ''
  2958. do
  2959. test -f "$ac_file" || continue
  2960. case $ac_file in
  2961. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2962. ;;
  2963. [ab].out )
  2964. # We found the default executable, but exeext='' is most
  2965. # certainly right.
  2966. break;;
  2967. *.* )
  2968. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2969. then :; else
  2970. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2971. fi
  2972. # We set ac_cv_exeext here because the later test for it is not
  2973. # safe: cross compilers may not add the suffix if given an `-o'
  2974. # argument, so we may need to know it at that point already.
  2975. # Even if this section looks crufty: it has the advantage of
  2976. # actually working.
  2977. break;;
  2978. * )
  2979. break;;
  2980. esac
  2981. done
  2982. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2983. else
  2984. ac_file=''
  2985. fi
  2986. if test -z "$ac_file"; then :
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2988. $as_echo "no" >&6; }
  2989. $as_echo "$as_me: failed program was:" >&5
  2990. sed 's/^/| /' conftest.$ac_ext >&5
  2991. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2992. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2993. as_fn_error 77 "C compiler cannot create executables
  2994. See \`config.log' for more details" "$LINENO" 5; }
  2995. else
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2997. $as_echo "yes" >&6; }
  2998. fi
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3000. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3002. $as_echo "$ac_file" >&6; }
  3003. ac_exeext=$ac_cv_exeext
  3004. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3005. ac_clean_files=$ac_clean_files_save
  3006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3007. $as_echo_n "checking for suffix of executables... " >&6; }
  3008. if { { ac_try="$ac_link"
  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_link") 2>&5
  3016. ac_status=$?
  3017. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3018. test $ac_status = 0; }; then :
  3019. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3020. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3021. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3022. # `rm'.
  3023. for ac_file in conftest.exe conftest conftest.*; do
  3024. test -f "$ac_file" || continue
  3025. case $ac_file in
  3026. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3027. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3028. break;;
  3029. * ) break;;
  3030. esac
  3031. done
  3032. else
  3033. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3034. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3035. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3036. See \`config.log' for more details" "$LINENO" 5; }
  3037. fi
  3038. rm -f conftest conftest$ac_cv_exeext
  3039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3040. $as_echo "$ac_cv_exeext" >&6; }
  3041. rm -f conftest.$ac_ext
  3042. EXEEXT=$ac_cv_exeext
  3043. ac_exeext=$EXEEXT
  3044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3045. /* end confdefs.h. */
  3046. #include <stdio.h>
  3047. int
  3048. main ()
  3049. {
  3050. FILE *f = fopen ("conftest.out", "w");
  3051. return ferror (f) || fclose (f) != 0;
  3052. ;
  3053. return 0;
  3054. }
  3055. _ACEOF
  3056. ac_clean_files="$ac_clean_files conftest.out"
  3057. # Check that the compiler produces executables we can run. If not, either
  3058. # the compiler is broken, or we cross compile.
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3060. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3061. if test "$cross_compiling" != yes; then
  3062. { { ac_try="$ac_link"
  3063. case "(($ac_try" in
  3064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3065. *) ac_try_echo=$ac_try;;
  3066. esac
  3067. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3068. $as_echo "$ac_try_echo"; } >&5
  3069. (eval "$ac_link") 2>&5
  3070. ac_status=$?
  3071. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3072. test $ac_status = 0; }
  3073. if { ac_try='./conftest$ac_cv_exeext'
  3074. { { case "(($ac_try" in
  3075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3076. *) ac_try_echo=$ac_try;;
  3077. esac
  3078. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3079. $as_echo "$ac_try_echo"; } >&5
  3080. (eval "$ac_try") 2>&5
  3081. ac_status=$?
  3082. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3083. test $ac_status = 0; }; }; then
  3084. cross_compiling=no
  3085. else
  3086. if test "$cross_compiling" = maybe; then
  3087. cross_compiling=yes
  3088. else
  3089. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3090. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3091. as_fn_error $? "cannot run C compiled programs.
  3092. If you meant to cross compile, use \`--host'.
  3093. See \`config.log' for more details" "$LINENO" 5; }
  3094. fi
  3095. fi
  3096. fi
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3098. $as_echo "$cross_compiling" >&6; }
  3099. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3100. ac_clean_files=$ac_clean_files_save
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3102. $as_echo_n "checking for suffix of object files... " >&6; }
  3103. if ${ac_cv_objext+:} false; then :
  3104. $as_echo_n "(cached) " >&6
  3105. else
  3106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3107. /* end confdefs.h. */
  3108. int
  3109. main ()
  3110. {
  3111. ;
  3112. return 0;
  3113. }
  3114. _ACEOF
  3115. rm -f conftest.o conftest.obj
  3116. if { { ac_try="$ac_compile"
  3117. case "(($ac_try" in
  3118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3119. *) ac_try_echo=$ac_try;;
  3120. esac
  3121. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3122. $as_echo "$ac_try_echo"; } >&5
  3123. (eval "$ac_compile") 2>&5
  3124. ac_status=$?
  3125. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3126. test $ac_status = 0; }; then :
  3127. for ac_file in conftest.o conftest.obj conftest.*; do
  3128. test -f "$ac_file" || continue;
  3129. case $ac_file in
  3130. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3131. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3132. break;;
  3133. esac
  3134. done
  3135. else
  3136. $as_echo "$as_me: failed program was:" >&5
  3137. sed 's/^/| /' conftest.$ac_ext >&5
  3138. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3139. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3140. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3141. See \`config.log' for more details" "$LINENO" 5; }
  3142. fi
  3143. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3144. fi
  3145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3146. $as_echo "$ac_cv_objext" >&6; }
  3147. OBJEXT=$ac_cv_objext
  3148. ac_objext=$OBJEXT
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3150. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3151. if ${ac_cv_c_compiler_gnu+:} false; then :
  3152. $as_echo_n "(cached) " >&6
  3153. else
  3154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3155. /* end confdefs.h. */
  3156. int
  3157. main ()
  3158. {
  3159. #ifndef __GNUC__
  3160. choke me
  3161. #endif
  3162. ;
  3163. return 0;
  3164. }
  3165. _ACEOF
  3166. if ac_fn_c_try_compile "$LINENO"; then :
  3167. ac_compiler_gnu=yes
  3168. else
  3169. ac_compiler_gnu=no
  3170. fi
  3171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3172. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3173. fi
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3175. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3176. if test $ac_compiler_gnu = yes; then
  3177. GCC=yes
  3178. else
  3179. GCC=
  3180. fi
  3181. ac_test_CFLAGS=${CFLAGS+set}
  3182. ac_save_CFLAGS=$CFLAGS
  3183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3184. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3185. if ${ac_cv_prog_cc_g+:} false; then :
  3186. $as_echo_n "(cached) " >&6
  3187. else
  3188. ac_save_c_werror_flag=$ac_c_werror_flag
  3189. ac_c_werror_flag=yes
  3190. ac_cv_prog_cc_g=no
  3191. CFLAGS="-g"
  3192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3193. /* end confdefs.h. */
  3194. int
  3195. main ()
  3196. {
  3197. ;
  3198. return 0;
  3199. }
  3200. _ACEOF
  3201. if ac_fn_c_try_compile "$LINENO"; then :
  3202. ac_cv_prog_cc_g=yes
  3203. else
  3204. CFLAGS=""
  3205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3206. /* end confdefs.h. */
  3207. int
  3208. main ()
  3209. {
  3210. ;
  3211. return 0;
  3212. }
  3213. _ACEOF
  3214. if ac_fn_c_try_compile "$LINENO"; then :
  3215. else
  3216. ac_c_werror_flag=$ac_save_c_werror_flag
  3217. CFLAGS="-g"
  3218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3219. /* end confdefs.h. */
  3220. int
  3221. main ()
  3222. {
  3223. ;
  3224. return 0;
  3225. }
  3226. _ACEOF
  3227. if ac_fn_c_try_compile "$LINENO"; then :
  3228. ac_cv_prog_cc_g=yes
  3229. fi
  3230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3231. fi
  3232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3233. fi
  3234. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3235. ac_c_werror_flag=$ac_save_c_werror_flag
  3236. fi
  3237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3238. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3239. if test "$ac_test_CFLAGS" = set; then
  3240. CFLAGS=$ac_save_CFLAGS
  3241. elif test $ac_cv_prog_cc_g = yes; then
  3242. if test "$GCC" = yes; then
  3243. CFLAGS="-g -O2"
  3244. else
  3245. CFLAGS="-g"
  3246. fi
  3247. else
  3248. if test "$GCC" = yes; then
  3249. CFLAGS="-O2"
  3250. else
  3251. CFLAGS=
  3252. fi
  3253. fi
  3254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3255. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3256. if ${ac_cv_prog_cc_c89+:} false; then :
  3257. $as_echo_n "(cached) " >&6
  3258. else
  3259. ac_cv_prog_cc_c89=no
  3260. ac_save_CC=$CC
  3261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3262. /* end confdefs.h. */
  3263. #include <stdarg.h>
  3264. #include <stdio.h>
  3265. struct stat;
  3266. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3267. struct buf { int x; };
  3268. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3269. static char *e (p, i)
  3270. char **p;
  3271. int i;
  3272. {
  3273. return p[i];
  3274. }
  3275. static char *f (char * (*g) (char **, int), char **p, ...)
  3276. {
  3277. char *s;
  3278. va_list v;
  3279. va_start (v,p);
  3280. s = g (p, va_arg (v,int));
  3281. va_end (v);
  3282. return s;
  3283. }
  3284. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3285. function prototypes and stuff, but not '\xHH' hex character constants.
  3286. These don't provoke an error unfortunately, instead are silently treated
  3287. as 'x'. The following induces an error, until -std is added to get
  3288. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3289. array size at least. It's necessary to write '\x00'==0 to get something
  3290. that's true only with -std. */
  3291. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3292. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3293. inside strings and character constants. */
  3294. #define FOO(x) 'x'
  3295. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3296. int test (int i, double x);
  3297. struct s1 {int (*f) (int a);};
  3298. struct s2 {int (*f) (double a);};
  3299. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3300. int argc;
  3301. char **argv;
  3302. int
  3303. main ()
  3304. {
  3305. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3306. ;
  3307. return 0;
  3308. }
  3309. _ACEOF
  3310. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3311. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3312. do
  3313. CC="$ac_save_CC $ac_arg"
  3314. if ac_fn_c_try_compile "$LINENO"; then :
  3315. ac_cv_prog_cc_c89=$ac_arg
  3316. fi
  3317. rm -f core conftest.err conftest.$ac_objext
  3318. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3319. done
  3320. rm -f conftest.$ac_ext
  3321. CC=$ac_save_CC
  3322. fi
  3323. # AC_CACHE_VAL
  3324. case "x$ac_cv_prog_cc_c89" in
  3325. x)
  3326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3327. $as_echo "none needed" >&6; } ;;
  3328. xno)
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3330. $as_echo "unsupported" >&6; } ;;
  3331. *)
  3332. CC="$CC $ac_cv_prog_cc_c89"
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3334. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3335. esac
  3336. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3337. fi
  3338. ac_ext=c
  3339. ac_cpp='$CPP $CPPFLAGS'
  3340. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3341. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3342. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3344. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3345. if ${ac_cv_path_SED+:} false; then :
  3346. $as_echo_n "(cached) " >&6
  3347. else
  3348. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3349. for ac_i in 1 2 3 4 5 6 7; do
  3350. ac_script="$ac_script$as_nl$ac_script"
  3351. done
  3352. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3353. { ac_script=; unset ac_script;}
  3354. if test -z "$SED"; then
  3355. ac_path_SED_found=false
  3356. # Loop through the user's path and test for each of PROGNAME-LIST
  3357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3358. for as_dir in $PATH
  3359. do
  3360. IFS=$as_save_IFS
  3361. test -z "$as_dir" && as_dir=.
  3362. for ac_prog in sed gsed; do
  3363. for ac_exec_ext in '' $ac_executable_extensions; do
  3364. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3365. as_fn_executable_p "$ac_path_SED" || continue
  3366. # Check for GNU ac_path_SED and select it if it is found.
  3367. # Check for GNU $ac_path_SED
  3368. case `"$ac_path_SED" --version 2>&1` in
  3369. *GNU*)
  3370. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3371. *)
  3372. ac_count=0
  3373. $as_echo_n 0123456789 >"conftest.in"
  3374. while :
  3375. do
  3376. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3377. mv "conftest.tmp" "conftest.in"
  3378. cp "conftest.in" "conftest.nl"
  3379. $as_echo '' >> "conftest.nl"
  3380. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3381. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3382. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3383. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3384. # Best one so far, save it but keep looking for a better one
  3385. ac_cv_path_SED="$ac_path_SED"
  3386. ac_path_SED_max=$ac_count
  3387. fi
  3388. # 10*(2^10) chars as input seems more than enough
  3389. test $ac_count -gt 10 && break
  3390. done
  3391. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3392. esac
  3393. $ac_path_SED_found && break 3
  3394. done
  3395. done
  3396. done
  3397. IFS=$as_save_IFS
  3398. if test -z "$ac_cv_path_SED"; then
  3399. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3400. fi
  3401. else
  3402. ac_cv_path_SED=$SED
  3403. fi
  3404. fi
  3405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3406. $as_echo "$ac_cv_path_SED" >&6; }
  3407. SED="$ac_cv_path_SED"
  3408. rm -f conftest.sed
  3409. test -z "$SED" && SED=sed
  3410. Xsed="$SED -e 1s/^X//"
  3411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3412. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3413. if ${ac_cv_path_GREP+:} false; then :
  3414. $as_echo_n "(cached) " >&6
  3415. else
  3416. if test -z "$GREP"; then
  3417. ac_path_GREP_found=false
  3418. # Loop through the user's path and test for each of PROGNAME-LIST
  3419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3420. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3421. do
  3422. IFS=$as_save_IFS
  3423. test -z "$as_dir" && as_dir=.
  3424. for ac_prog in grep ggrep; do
  3425. for ac_exec_ext in '' $ac_executable_extensions; do
  3426. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3427. as_fn_executable_p "$ac_path_GREP" || continue
  3428. # Check for GNU ac_path_GREP and select it if it is found.
  3429. # Check for GNU $ac_path_GREP
  3430. case `"$ac_path_GREP" --version 2>&1` in
  3431. *GNU*)
  3432. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3433. *)
  3434. ac_count=0
  3435. $as_echo_n 0123456789 >"conftest.in"
  3436. while :
  3437. do
  3438. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3439. mv "conftest.tmp" "conftest.in"
  3440. cp "conftest.in" "conftest.nl"
  3441. $as_echo 'GREP' >> "conftest.nl"
  3442. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3443. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3444. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3445. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3446. # Best one so far, save it but keep looking for a better one
  3447. ac_cv_path_GREP="$ac_path_GREP"
  3448. ac_path_GREP_max=$ac_count
  3449. fi
  3450. # 10*(2^10) chars as input seems more than enough
  3451. test $ac_count -gt 10 && break
  3452. done
  3453. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3454. esac
  3455. $ac_path_GREP_found && break 3
  3456. done
  3457. done
  3458. done
  3459. IFS=$as_save_IFS
  3460. if test -z "$ac_cv_path_GREP"; then
  3461. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3462. fi
  3463. else
  3464. ac_cv_path_GREP=$GREP
  3465. fi
  3466. fi
  3467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3468. $as_echo "$ac_cv_path_GREP" >&6; }
  3469. GREP="$ac_cv_path_GREP"
  3470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3471. $as_echo_n "checking for egrep... " >&6; }
  3472. if ${ac_cv_path_EGREP+:} false; then :
  3473. $as_echo_n "(cached) " >&6
  3474. else
  3475. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3476. then ac_cv_path_EGREP="$GREP -E"
  3477. else
  3478. if test -z "$EGREP"; then
  3479. ac_path_EGREP_found=false
  3480. # Loop through the user's path and test for each of PROGNAME-LIST
  3481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3482. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3483. do
  3484. IFS=$as_save_IFS
  3485. test -z "$as_dir" && as_dir=.
  3486. for ac_prog in egrep; do
  3487. for ac_exec_ext in '' $ac_executable_extensions; do
  3488. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3489. as_fn_executable_p "$ac_path_EGREP" || continue
  3490. # Check for GNU ac_path_EGREP and select it if it is found.
  3491. # Check for GNU $ac_path_EGREP
  3492. case `"$ac_path_EGREP" --version 2>&1` in
  3493. *GNU*)
  3494. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3495. *)
  3496. ac_count=0
  3497. $as_echo_n 0123456789 >"conftest.in"
  3498. while :
  3499. do
  3500. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3501. mv "conftest.tmp" "conftest.in"
  3502. cp "conftest.in" "conftest.nl"
  3503. $as_echo 'EGREP' >> "conftest.nl"
  3504. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3505. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3506. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3507. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3508. # Best one so far, save it but keep looking for a better one
  3509. ac_cv_path_EGREP="$ac_path_EGREP"
  3510. ac_path_EGREP_max=$ac_count
  3511. fi
  3512. # 10*(2^10) chars as input seems more than enough
  3513. test $ac_count -gt 10 && break
  3514. done
  3515. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3516. esac
  3517. $ac_path_EGREP_found && break 3
  3518. done
  3519. done
  3520. done
  3521. IFS=$as_save_IFS
  3522. if test -z "$ac_cv_path_EGREP"; then
  3523. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3524. fi
  3525. else
  3526. ac_cv_path_EGREP=$EGREP
  3527. fi
  3528. fi
  3529. fi
  3530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3531. $as_echo "$ac_cv_path_EGREP" >&6; }
  3532. EGREP="$ac_cv_path_EGREP"
  3533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3534. $as_echo_n "checking for fgrep... " >&6; }
  3535. if ${ac_cv_path_FGREP+:} false; then :
  3536. $as_echo_n "(cached) " >&6
  3537. else
  3538. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3539. then ac_cv_path_FGREP="$GREP -F"
  3540. else
  3541. if test -z "$FGREP"; then
  3542. ac_path_FGREP_found=false
  3543. # Loop through the user's path and test for each of PROGNAME-LIST
  3544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3545. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3546. do
  3547. IFS=$as_save_IFS
  3548. test -z "$as_dir" && as_dir=.
  3549. for ac_prog in fgrep; do
  3550. for ac_exec_ext in '' $ac_executable_extensions; do
  3551. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3552. as_fn_executable_p "$ac_path_FGREP" || continue
  3553. # Check for GNU ac_path_FGREP and select it if it is found.
  3554. # Check for GNU $ac_path_FGREP
  3555. case `"$ac_path_FGREP" --version 2>&1` in
  3556. *GNU*)
  3557. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3558. *)
  3559. ac_count=0
  3560. $as_echo_n 0123456789 >"conftest.in"
  3561. while :
  3562. do
  3563. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3564. mv "conftest.tmp" "conftest.in"
  3565. cp "conftest.in" "conftest.nl"
  3566. $as_echo 'FGREP' >> "conftest.nl"
  3567. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3568. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3569. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3570. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3571. # Best one so far, save it but keep looking for a better one
  3572. ac_cv_path_FGREP="$ac_path_FGREP"
  3573. ac_path_FGREP_max=$ac_count
  3574. fi
  3575. # 10*(2^10) chars as input seems more than enough
  3576. test $ac_count -gt 10 && break
  3577. done
  3578. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3579. esac
  3580. $ac_path_FGREP_found && break 3
  3581. done
  3582. done
  3583. done
  3584. IFS=$as_save_IFS
  3585. if test -z "$ac_cv_path_FGREP"; then
  3586. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3587. fi
  3588. else
  3589. ac_cv_path_FGREP=$FGREP
  3590. fi
  3591. fi
  3592. fi
  3593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3594. $as_echo "$ac_cv_path_FGREP" >&6; }
  3595. FGREP="$ac_cv_path_FGREP"
  3596. test -z "$GREP" && GREP=grep
  3597. # Check whether --with-gnu-ld was given.
  3598. if test "${with_gnu_ld+set}" = set; then :
  3599. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3600. else
  3601. with_gnu_ld=no
  3602. fi
  3603. ac_prog=ld
  3604. if test "$GCC" = yes; then
  3605. # Check if gcc -print-prog-name=ld gives a path.
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3607. $as_echo_n "checking for ld used by $CC... " >&6; }
  3608. case $host in
  3609. *-*-mingw*)
  3610. # gcc leaves a trailing carriage return which upsets mingw
  3611. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3612. *)
  3613. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3614. esac
  3615. case $ac_prog in
  3616. # Accept absolute paths.
  3617. [\\/]* | ?:[\\/]*)
  3618. re_direlt='/[^/][^/]*/\.\./'
  3619. # Canonicalize the pathname of ld
  3620. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3621. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3622. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3623. done
  3624. test -z "$LD" && LD="$ac_prog"
  3625. ;;
  3626. "")
  3627. # If it fails, then pretend we aren't using GCC.
  3628. ac_prog=ld
  3629. ;;
  3630. *)
  3631. # If it is relative, then search for the first ld in PATH.
  3632. with_gnu_ld=unknown
  3633. ;;
  3634. esac
  3635. elif test "$with_gnu_ld" = yes; then
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3637. $as_echo_n "checking for GNU ld... " >&6; }
  3638. else
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3640. $as_echo_n "checking for non-GNU ld... " >&6; }
  3641. fi
  3642. if ${lt_cv_path_LD+:} false; then :
  3643. $as_echo_n "(cached) " >&6
  3644. else
  3645. if test -z "$LD"; then
  3646. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3647. for ac_dir in $PATH; do
  3648. IFS="$lt_save_ifs"
  3649. test -z "$ac_dir" && ac_dir=.
  3650. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3651. lt_cv_path_LD="$ac_dir/$ac_prog"
  3652. # Check to see if the program is GNU ld. I'd rather use --version,
  3653. # but apparently some variants of GNU ld only accept -v.
  3654. # Break only if it was the GNU/non-GNU ld that we prefer.
  3655. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3656. *GNU* | *'with BFD'*)
  3657. test "$with_gnu_ld" != no && break
  3658. ;;
  3659. *)
  3660. test "$with_gnu_ld" != yes && break
  3661. ;;
  3662. esac
  3663. fi
  3664. done
  3665. IFS="$lt_save_ifs"
  3666. else
  3667. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3668. fi
  3669. fi
  3670. LD="$lt_cv_path_LD"
  3671. if test -n "$LD"; then
  3672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3673. $as_echo "$LD" >&6; }
  3674. else
  3675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3676. $as_echo "no" >&6; }
  3677. fi
  3678. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3680. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3681. if ${lt_cv_prog_gnu_ld+:} false; then :
  3682. $as_echo_n "(cached) " >&6
  3683. else
  3684. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3685. case `$LD -v 2>&1 </dev/null` in
  3686. *GNU* | *'with BFD'*)
  3687. lt_cv_prog_gnu_ld=yes
  3688. ;;
  3689. *)
  3690. lt_cv_prog_gnu_ld=no
  3691. ;;
  3692. esac
  3693. fi
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3695. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3696. with_gnu_ld=$lt_cv_prog_gnu_ld
  3697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3698. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3699. if ${lt_cv_path_NM+:} false; then :
  3700. $as_echo_n "(cached) " >&6
  3701. else
  3702. if test -n "$NM"; then
  3703. # Let the user override the test.
  3704. lt_cv_path_NM="$NM"
  3705. else
  3706. lt_nm_to_check="${ac_tool_prefix}nm"
  3707. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3708. lt_nm_to_check="$lt_nm_to_check nm"
  3709. fi
  3710. for lt_tmp_nm in $lt_nm_to_check; do
  3711. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3712. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3713. IFS="$lt_save_ifs"
  3714. test -z "$ac_dir" && ac_dir=.
  3715. tmp_nm="$ac_dir/$lt_tmp_nm"
  3716. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3717. # Check to see if the nm accepts a BSD-compat flag.
  3718. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3719. # nm: unknown option "B" ignored
  3720. # Tru64's nm complains that /dev/null is an invalid object file
  3721. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3722. */dev/null* | *'Invalid file or object type'*)
  3723. lt_cv_path_NM="$tmp_nm -B"
  3724. break
  3725. ;;
  3726. *)
  3727. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3728. */dev/null*)
  3729. lt_cv_path_NM="$tmp_nm -p"
  3730. break
  3731. ;;
  3732. *)
  3733. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3734. continue # so that we can try to find one that supports BSD flags
  3735. ;;
  3736. esac
  3737. ;;
  3738. esac
  3739. fi
  3740. done
  3741. IFS="$lt_save_ifs"
  3742. done
  3743. : ${lt_cv_path_NM=no}
  3744. fi
  3745. fi
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3747. $as_echo "$lt_cv_path_NM" >&6; }
  3748. if test "$lt_cv_path_NM" != "no"; then
  3749. NM="$lt_cv_path_NM"
  3750. else
  3751. # Didn't find any BSD compatible name lister, look for dumpbin.
  3752. if test -n "$DUMPBIN"; then :
  3753. # Let the user override the test.
  3754. else
  3755. if test -n "$ac_tool_prefix"; then
  3756. for ac_prog in dumpbin "link -dump"
  3757. do
  3758. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3759. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3761. $as_echo_n "checking for $ac_word... " >&6; }
  3762. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3763. $as_echo_n "(cached) " >&6
  3764. else
  3765. if test -n "$DUMPBIN"; then
  3766. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3767. else
  3768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3769. for as_dir in $PATH
  3770. do
  3771. IFS=$as_save_IFS
  3772. test -z "$as_dir" && as_dir=.
  3773. for ac_exec_ext in '' $ac_executable_extensions; do
  3774. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3775. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3776. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3777. break 2
  3778. fi
  3779. done
  3780. done
  3781. IFS=$as_save_IFS
  3782. fi
  3783. fi
  3784. DUMPBIN=$ac_cv_prog_DUMPBIN
  3785. if test -n "$DUMPBIN"; then
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3787. $as_echo "$DUMPBIN" >&6; }
  3788. else
  3789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3790. $as_echo "no" >&6; }
  3791. fi
  3792. test -n "$DUMPBIN" && break
  3793. done
  3794. fi
  3795. if test -z "$DUMPBIN"; then
  3796. ac_ct_DUMPBIN=$DUMPBIN
  3797. for ac_prog in dumpbin "link -dump"
  3798. do
  3799. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3800. set dummy $ac_prog; ac_word=$2
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3802. $as_echo_n "checking for $ac_word... " >&6; }
  3803. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3804. $as_echo_n "(cached) " >&6
  3805. else
  3806. if test -n "$ac_ct_DUMPBIN"; then
  3807. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3808. else
  3809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3810. for as_dir in $PATH
  3811. do
  3812. IFS=$as_save_IFS
  3813. test -z "$as_dir" && as_dir=.
  3814. for ac_exec_ext in '' $ac_executable_extensions; do
  3815. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3816. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3817. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3818. break 2
  3819. fi
  3820. done
  3821. done
  3822. IFS=$as_save_IFS
  3823. fi
  3824. fi
  3825. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3826. if test -n "$ac_ct_DUMPBIN"; then
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3828. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3829. else
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3831. $as_echo "no" >&6; }
  3832. fi
  3833. test -n "$ac_ct_DUMPBIN" && break
  3834. done
  3835. if test "x$ac_ct_DUMPBIN" = x; then
  3836. DUMPBIN=":"
  3837. else
  3838. case $cross_compiling:$ac_tool_warned in
  3839. yes:)
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3841. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3842. ac_tool_warned=yes ;;
  3843. esac
  3844. DUMPBIN=$ac_ct_DUMPBIN
  3845. fi
  3846. fi
  3847. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3848. *COFF*)
  3849. DUMPBIN="$DUMPBIN -symbols"
  3850. ;;
  3851. *)
  3852. DUMPBIN=:
  3853. ;;
  3854. esac
  3855. fi
  3856. if test "$DUMPBIN" != ":"; then
  3857. NM="$DUMPBIN"
  3858. fi
  3859. fi
  3860. test -z "$NM" && NM=nm
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3862. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3863. if ${lt_cv_nm_interface+:} false; then :
  3864. $as_echo_n "(cached) " >&6
  3865. else
  3866. lt_cv_nm_interface="BSD nm"
  3867. echo "int some_variable = 0;" > conftest.$ac_ext
  3868. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3869. (eval "$ac_compile" 2>conftest.err)
  3870. cat conftest.err >&5
  3871. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3872. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3873. cat conftest.err >&5
  3874. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3875. cat conftest.out >&5
  3876. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3877. lt_cv_nm_interface="MS dumpbin"
  3878. fi
  3879. rm -f conftest*
  3880. fi
  3881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3882. $as_echo "$lt_cv_nm_interface" >&6; }
  3883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3884. $as_echo_n "checking whether ln -s works... " >&6; }
  3885. LN_S=$as_ln_s
  3886. if test "$LN_S" = "ln -s"; then
  3887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3888. $as_echo "yes" >&6; }
  3889. else
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3891. $as_echo "no, using $LN_S" >&6; }
  3892. fi
  3893. # find the maximum length of command line arguments
  3894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3895. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3896. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3897. $as_echo_n "(cached) " >&6
  3898. else
  3899. i=0
  3900. teststring="ABCD"
  3901. case $build_os in
  3902. msdosdjgpp*)
  3903. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3904. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3905. # during glob expansion). Even if it were fixed, the result of this
  3906. # check would be larger than it should be.
  3907. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3908. ;;
  3909. gnu*)
  3910. # Under GNU Hurd, this test is not required because there is
  3911. # no limit to the length of command line arguments.
  3912. # Libtool will interpret -1 as no limit whatsoever
  3913. lt_cv_sys_max_cmd_len=-1;
  3914. ;;
  3915. cygwin* | mingw* | cegcc*)
  3916. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3917. # about 5 minutes as the teststring grows exponentially.
  3918. # Worse, since 9x/ME are not pre-emptively multitasking,
  3919. # you end up with a "frozen" computer, even though with patience
  3920. # the test eventually succeeds (with a max line length of 256k).
  3921. # Instead, let's just punt: use the minimum linelength reported by
  3922. # all of the supported platforms: 8192 (on NT/2K/XP).
  3923. lt_cv_sys_max_cmd_len=8192;
  3924. ;;
  3925. mint*)
  3926. # On MiNT this can take a long time and run out of memory.
  3927. lt_cv_sys_max_cmd_len=8192;
  3928. ;;
  3929. amigaos*)
  3930. # On AmigaOS with pdksh, this test takes hours, literally.
  3931. # So we just punt and use a minimum line length of 8192.
  3932. lt_cv_sys_max_cmd_len=8192;
  3933. ;;
  3934. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3935. # This has been around since 386BSD, at least. Likely further.
  3936. if test -x /sbin/sysctl; then
  3937. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3938. elif test -x /usr/sbin/sysctl; then
  3939. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3940. else
  3941. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3942. fi
  3943. # And add a safety zone
  3944. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3945. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3946. ;;
  3947. interix*)
  3948. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3949. lt_cv_sys_max_cmd_len=196608
  3950. ;;
  3951. os2*)
  3952. # The test takes a long time on OS/2.
  3953. lt_cv_sys_max_cmd_len=8192
  3954. ;;
  3955. osf*)
  3956. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3957. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3958. # nice to cause kernel panics so lets avoid the loop below.
  3959. # First set a reasonable default.
  3960. lt_cv_sys_max_cmd_len=16384
  3961. #
  3962. if test -x /sbin/sysconfig; then
  3963. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3964. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3965. esac
  3966. fi
  3967. ;;
  3968. sco3.2v5*)
  3969. lt_cv_sys_max_cmd_len=102400
  3970. ;;
  3971. sysv5* | sco5v6* | sysv4.2uw2*)
  3972. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3973. if test -n "$kargmax"; then
  3974. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3975. else
  3976. lt_cv_sys_max_cmd_len=32768
  3977. fi
  3978. ;;
  3979. *)
  3980. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3981. if test -n "$lt_cv_sys_max_cmd_len"; then
  3982. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3983. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3984. else
  3985. # Make teststring a little bigger before we do anything with it.
  3986. # a 1K string should be a reasonable start.
  3987. for i in 1 2 3 4 5 6 7 8 ; do
  3988. teststring=$teststring$teststring
  3989. done
  3990. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3991. # If test is not a shell built-in, we'll probably end up computing a
  3992. # maximum length that is only half of the actual maximum length, but
  3993. # we can't tell.
  3994. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3995. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3996. test $i != 17 # 1/2 MB should be enough
  3997. do
  3998. i=`expr $i + 1`
  3999. teststring=$teststring$teststring
  4000. done
  4001. # Only check the string length outside the loop.
  4002. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4003. teststring=
  4004. # Add a significant safety factor because C++ compilers can tack on
  4005. # massive amounts of additional arguments before passing them to the
  4006. # linker. It appears as though 1/2 is a usable value.
  4007. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4008. fi
  4009. ;;
  4010. esac
  4011. fi
  4012. if test -n $lt_cv_sys_max_cmd_len ; then
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4014. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4015. else
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4017. $as_echo "none" >&6; }
  4018. fi
  4019. max_cmd_len=$lt_cv_sys_max_cmd_len
  4020. : ${CP="cp -f"}
  4021. : ${MV="mv -f"}
  4022. : ${RM="rm -f"}
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4024. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4025. # Try some XSI features
  4026. xsi_shell=no
  4027. ( _lt_dummy="a/b/c"
  4028. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4029. = c,a/b,b/c, \
  4030. && eval 'test $(( 1 + 1 )) -eq 2 \
  4031. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4032. && xsi_shell=yes
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4034. $as_echo "$xsi_shell" >&6; }
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4036. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4037. lt_shell_append=no
  4038. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4039. >/dev/null 2>&1 \
  4040. && lt_shell_append=yes
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4042. $as_echo "$lt_shell_append" >&6; }
  4043. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4044. lt_unset=unset
  4045. else
  4046. lt_unset=false
  4047. fi
  4048. # test EBCDIC or ASCII
  4049. case `echo X|tr X '\101'` in
  4050. A) # ASCII based system
  4051. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4052. lt_SP2NL='tr \040 \012'
  4053. lt_NL2SP='tr \015\012 \040\040'
  4054. ;;
  4055. *) # EBCDIC based system
  4056. lt_SP2NL='tr \100 \n'
  4057. lt_NL2SP='tr \r\n \100\100'
  4058. ;;
  4059. esac
  4060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4061. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4062. if ${lt_cv_to_host_file_cmd+:} false; then :
  4063. $as_echo_n "(cached) " >&6
  4064. else
  4065. case $host in
  4066. *-*-mingw* )
  4067. case $build in
  4068. *-*-mingw* ) # actually msys
  4069. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4070. ;;
  4071. *-*-cygwin* )
  4072. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4073. ;;
  4074. * ) # otherwise, assume *nix
  4075. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4076. ;;
  4077. esac
  4078. ;;
  4079. *-*-cygwin* )
  4080. case $build in
  4081. *-*-mingw* ) # actually msys
  4082. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4083. ;;
  4084. *-*-cygwin* )
  4085. lt_cv_to_host_file_cmd=func_convert_file_noop
  4086. ;;
  4087. * ) # otherwise, assume *nix
  4088. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4089. ;;
  4090. esac
  4091. ;;
  4092. * ) # unhandled hosts (and "normal" native builds)
  4093. lt_cv_to_host_file_cmd=func_convert_file_noop
  4094. ;;
  4095. esac
  4096. fi
  4097. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4099. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4101. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4102. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4103. $as_echo_n "(cached) " >&6
  4104. else
  4105. #assume ordinary cross tools, or native build.
  4106. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4107. case $host in
  4108. *-*-mingw* )
  4109. case $build in
  4110. *-*-mingw* ) # actually msys
  4111. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4112. ;;
  4113. esac
  4114. ;;
  4115. esac
  4116. fi
  4117. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4119. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4121. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4122. if ${lt_cv_ld_reload_flag+:} false; then :
  4123. $as_echo_n "(cached) " >&6
  4124. else
  4125. lt_cv_ld_reload_flag='-r'
  4126. fi
  4127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4128. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4129. reload_flag=$lt_cv_ld_reload_flag
  4130. case $reload_flag in
  4131. "" | " "*) ;;
  4132. *) reload_flag=" $reload_flag" ;;
  4133. esac
  4134. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4135. case $host_os in
  4136. cygwin* | mingw* | pw32* | cegcc*)
  4137. if test "$GCC" != yes; then
  4138. reload_cmds=false
  4139. fi
  4140. ;;
  4141. darwin*)
  4142. if test "$GCC" = yes; then
  4143. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4144. else
  4145. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4146. fi
  4147. ;;
  4148. esac
  4149. if test -n "$ac_tool_prefix"; then
  4150. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4151. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4153. $as_echo_n "checking for $ac_word... " >&6; }
  4154. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4155. $as_echo_n "(cached) " >&6
  4156. else
  4157. if test -n "$OBJDUMP"; then
  4158. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4159. else
  4160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4161. for as_dir in $PATH
  4162. do
  4163. IFS=$as_save_IFS
  4164. test -z "$as_dir" && as_dir=.
  4165. for ac_exec_ext in '' $ac_executable_extensions; do
  4166. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4167. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4168. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4169. break 2
  4170. fi
  4171. done
  4172. done
  4173. IFS=$as_save_IFS
  4174. fi
  4175. fi
  4176. OBJDUMP=$ac_cv_prog_OBJDUMP
  4177. if test -n "$OBJDUMP"; then
  4178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4179. $as_echo "$OBJDUMP" >&6; }
  4180. else
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4182. $as_echo "no" >&6; }
  4183. fi
  4184. fi
  4185. if test -z "$ac_cv_prog_OBJDUMP"; then
  4186. ac_ct_OBJDUMP=$OBJDUMP
  4187. # Extract the first word of "objdump", so it can be a program name with args.
  4188. set dummy objdump; ac_word=$2
  4189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4190. $as_echo_n "checking for $ac_word... " >&6; }
  4191. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4192. $as_echo_n "(cached) " >&6
  4193. else
  4194. if test -n "$ac_ct_OBJDUMP"; then
  4195. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4196. else
  4197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4198. for as_dir in $PATH
  4199. do
  4200. IFS=$as_save_IFS
  4201. test -z "$as_dir" && as_dir=.
  4202. for ac_exec_ext in '' $ac_executable_extensions; do
  4203. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4204. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4205. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4206. break 2
  4207. fi
  4208. done
  4209. done
  4210. IFS=$as_save_IFS
  4211. fi
  4212. fi
  4213. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4214. if test -n "$ac_ct_OBJDUMP"; then
  4215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4216. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4217. else
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4219. $as_echo "no" >&6; }
  4220. fi
  4221. if test "x$ac_ct_OBJDUMP" = x; then
  4222. OBJDUMP="false"
  4223. else
  4224. case $cross_compiling:$ac_tool_warned in
  4225. yes:)
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4227. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4228. ac_tool_warned=yes ;;
  4229. esac
  4230. OBJDUMP=$ac_ct_OBJDUMP
  4231. fi
  4232. else
  4233. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4234. fi
  4235. test -z "$OBJDUMP" && OBJDUMP=objdump
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4237. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4238. if ${lt_cv_deplibs_check_method+:} false; then :
  4239. $as_echo_n "(cached) " >&6
  4240. else
  4241. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4242. lt_cv_file_magic_test_file=
  4243. lt_cv_deplibs_check_method='unknown'
  4244. # Need to set the preceding variable on all platforms that support
  4245. # interlibrary dependencies.
  4246. # 'none' -- dependencies not supported.
  4247. # `unknown' -- same as none, but documents that we really don't know.
  4248. # 'pass_all' -- all dependencies passed with no checks.
  4249. # 'test_compile' -- check by making test program.
  4250. # 'file_magic [[regex]]' -- check by looking for files in library path
  4251. # which responds to the $file_magic_cmd with a given extended regex.
  4252. # If you have `file' or equivalent on your system and you're not sure
  4253. # whether `pass_all' will *always* work, you probably want this one.
  4254. case $host_os in
  4255. aix[4-9]*)
  4256. lt_cv_deplibs_check_method=pass_all
  4257. ;;
  4258. beos*)
  4259. lt_cv_deplibs_check_method=pass_all
  4260. ;;
  4261. bsdi[45]*)
  4262. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4263. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4264. lt_cv_file_magic_test_file=/shlib/libc.so
  4265. ;;
  4266. cygwin*)
  4267. # func_win32_libid is a shell function defined in ltmain.sh
  4268. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4269. lt_cv_file_magic_cmd='func_win32_libid'
  4270. lt_cv_deplibs_check_method=pass_all
  4271. ;;
  4272. mingw* | pw32*)
  4273. # Base MSYS/MinGW do not provide the 'file' command needed by
  4274. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4275. # unless we find 'file', for example because we are cross-compiling.
  4276. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4277. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4278. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4279. lt_cv_file_magic_cmd='func_win32_libid'
  4280. else
  4281. # Keep this pattern in sync with the one in func_win32_libid.
  4282. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4283. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4284. fi
  4285. lt_cv_deplibs_check_method=pass_all
  4286. ;;
  4287. cegcc*)
  4288. # use the weaker test based on 'objdump'. See mingw*.
  4289. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4290. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4291. ;;
  4292. darwin* | rhapsody*)
  4293. lt_cv_deplibs_check_method=pass_all
  4294. ;;
  4295. freebsd* | dragonfly*)
  4296. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4297. case $host_cpu in
  4298. i*86 )
  4299. # Not sure whether the presence of OpenBSD here was a mistake.
  4300. # Let's accept both of them until this is cleared up.
  4301. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4302. lt_cv_file_magic_cmd=/usr/bin/file
  4303. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4304. ;;
  4305. esac
  4306. else
  4307. lt_cv_deplibs_check_method=pass_all
  4308. fi
  4309. ;;
  4310. gnu*)
  4311. lt_cv_deplibs_check_method=pass_all
  4312. ;;
  4313. haiku*)
  4314. lt_cv_deplibs_check_method=pass_all
  4315. ;;
  4316. hpux10.20* | hpux11*)
  4317. lt_cv_file_magic_cmd=/usr/bin/file
  4318. case $host_cpu in
  4319. ia64*)
  4320. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4321. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4322. ;;
  4323. hppa*64*)
  4324. 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]'
  4325. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4326. ;;
  4327. *)
  4328. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4329. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4330. ;;
  4331. esac
  4332. ;;
  4333. interix[3-9]*)
  4334. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4335. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4336. ;;
  4337. irix5* | irix6* | nonstopux*)
  4338. case $LD in
  4339. *-32|*"-32 ") libmagic=32-bit;;
  4340. *-n32|*"-n32 ") libmagic=N32;;
  4341. *-64|*"-64 ") libmagic=64-bit;;
  4342. *) libmagic=never-match;;
  4343. esac
  4344. lt_cv_deplibs_check_method=pass_all
  4345. ;;
  4346. # This must be glibc/ELF.
  4347. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4348. lt_cv_deplibs_check_method=pass_all
  4349. ;;
  4350. netbsd*)
  4351. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4352. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4353. else
  4354. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4355. fi
  4356. ;;
  4357. newos6*)
  4358. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4359. lt_cv_file_magic_cmd=/usr/bin/file
  4360. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4361. ;;
  4362. *nto* | *qnx*)
  4363. lt_cv_deplibs_check_method=pass_all
  4364. ;;
  4365. openbsd*)
  4366. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4367. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4368. else
  4369. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4370. fi
  4371. ;;
  4372. osf3* | osf4* | osf5*)
  4373. lt_cv_deplibs_check_method=pass_all
  4374. ;;
  4375. rdos*)
  4376. lt_cv_deplibs_check_method=pass_all
  4377. ;;
  4378. solaris*)
  4379. lt_cv_deplibs_check_method=pass_all
  4380. ;;
  4381. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4382. lt_cv_deplibs_check_method=pass_all
  4383. ;;
  4384. sysv4 | sysv4.3*)
  4385. case $host_vendor in
  4386. motorola)
  4387. 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]'
  4388. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4389. ;;
  4390. ncr)
  4391. lt_cv_deplibs_check_method=pass_all
  4392. ;;
  4393. sequent)
  4394. lt_cv_file_magic_cmd='/bin/file'
  4395. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4396. ;;
  4397. sni)
  4398. lt_cv_file_magic_cmd='/bin/file'
  4399. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4400. lt_cv_file_magic_test_file=/lib/libc.so
  4401. ;;
  4402. siemens)
  4403. lt_cv_deplibs_check_method=pass_all
  4404. ;;
  4405. pc)
  4406. lt_cv_deplibs_check_method=pass_all
  4407. ;;
  4408. esac
  4409. ;;
  4410. tpf*)
  4411. lt_cv_deplibs_check_method=pass_all
  4412. ;;
  4413. esac
  4414. fi
  4415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4416. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4417. file_magic_glob=
  4418. want_nocaseglob=no
  4419. if test "$build" = "$host"; then
  4420. case $host_os in
  4421. mingw* | pw32*)
  4422. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4423. want_nocaseglob=yes
  4424. else
  4425. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4426. fi
  4427. ;;
  4428. esac
  4429. fi
  4430. file_magic_cmd=$lt_cv_file_magic_cmd
  4431. deplibs_check_method=$lt_cv_deplibs_check_method
  4432. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4433. if test -n "$ac_tool_prefix"; then
  4434. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4435. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4437. $as_echo_n "checking for $ac_word... " >&6; }
  4438. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4439. $as_echo_n "(cached) " >&6
  4440. else
  4441. if test -n "$DLLTOOL"; then
  4442. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4443. else
  4444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4445. for as_dir in $PATH
  4446. do
  4447. IFS=$as_save_IFS
  4448. test -z "$as_dir" && as_dir=.
  4449. for ac_exec_ext in '' $ac_executable_extensions; do
  4450. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4451. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4452. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4453. break 2
  4454. fi
  4455. done
  4456. done
  4457. IFS=$as_save_IFS
  4458. fi
  4459. fi
  4460. DLLTOOL=$ac_cv_prog_DLLTOOL
  4461. if test -n "$DLLTOOL"; then
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4463. $as_echo "$DLLTOOL" >&6; }
  4464. else
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4466. $as_echo "no" >&6; }
  4467. fi
  4468. fi
  4469. if test -z "$ac_cv_prog_DLLTOOL"; then
  4470. ac_ct_DLLTOOL=$DLLTOOL
  4471. # Extract the first word of "dlltool", so it can be a program name with args.
  4472. set dummy dlltool; ac_word=$2
  4473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4474. $as_echo_n "checking for $ac_word... " >&6; }
  4475. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4476. $as_echo_n "(cached) " >&6
  4477. else
  4478. if test -n "$ac_ct_DLLTOOL"; then
  4479. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4480. else
  4481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4482. for as_dir in $PATH
  4483. do
  4484. IFS=$as_save_IFS
  4485. test -z "$as_dir" && as_dir=.
  4486. for ac_exec_ext in '' $ac_executable_extensions; do
  4487. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4488. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4489. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4490. break 2
  4491. fi
  4492. done
  4493. done
  4494. IFS=$as_save_IFS
  4495. fi
  4496. fi
  4497. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4498. if test -n "$ac_ct_DLLTOOL"; then
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4500. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4501. else
  4502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4503. $as_echo "no" >&6; }
  4504. fi
  4505. if test "x$ac_ct_DLLTOOL" = x; then
  4506. DLLTOOL="false"
  4507. else
  4508. case $cross_compiling:$ac_tool_warned in
  4509. yes:)
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4511. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4512. ac_tool_warned=yes ;;
  4513. esac
  4514. DLLTOOL=$ac_ct_DLLTOOL
  4515. fi
  4516. else
  4517. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4518. fi
  4519. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4521. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4522. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4523. $as_echo_n "(cached) " >&6
  4524. else
  4525. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4526. case $host_os in
  4527. cygwin* | mingw* | pw32* | cegcc*)
  4528. # two different shell functions defined in ltmain.sh
  4529. # decide which to use based on capabilities of $DLLTOOL
  4530. case `$DLLTOOL --help 2>&1` in
  4531. *--identify-strict*)
  4532. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4533. ;;
  4534. *)
  4535. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4536. ;;
  4537. esac
  4538. ;;
  4539. *)
  4540. # fallback: assume linklib IS sharedlib
  4541. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4542. ;;
  4543. esac
  4544. fi
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4546. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4547. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4548. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4549. if test -n "$ac_tool_prefix"; then
  4550. for ac_prog in ar
  4551. do
  4552. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4553. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4555. $as_echo_n "checking for $ac_word... " >&6; }
  4556. if ${ac_cv_prog_AR+:} false; then :
  4557. $as_echo_n "(cached) " >&6
  4558. else
  4559. if test -n "$AR"; then
  4560. ac_cv_prog_AR="$AR" # Let the user override the test.
  4561. else
  4562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4563. for as_dir in $PATH
  4564. do
  4565. IFS=$as_save_IFS
  4566. test -z "$as_dir" && as_dir=.
  4567. for ac_exec_ext in '' $ac_executable_extensions; do
  4568. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4569. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4571. break 2
  4572. fi
  4573. done
  4574. done
  4575. IFS=$as_save_IFS
  4576. fi
  4577. fi
  4578. AR=$ac_cv_prog_AR
  4579. if test -n "$AR"; then
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4581. $as_echo "$AR" >&6; }
  4582. else
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4584. $as_echo "no" >&6; }
  4585. fi
  4586. test -n "$AR" && break
  4587. done
  4588. fi
  4589. if test -z "$AR"; then
  4590. ac_ct_AR=$AR
  4591. for ac_prog in ar
  4592. do
  4593. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4594. set dummy $ac_prog; ac_word=$2
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4596. $as_echo_n "checking for $ac_word... " >&6; }
  4597. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4598. $as_echo_n "(cached) " >&6
  4599. else
  4600. if test -n "$ac_ct_AR"; then
  4601. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4602. else
  4603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4604. for as_dir in $PATH
  4605. do
  4606. IFS=$as_save_IFS
  4607. test -z "$as_dir" && as_dir=.
  4608. for ac_exec_ext in '' $ac_executable_extensions; do
  4609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4610. ac_cv_prog_ac_ct_AR="$ac_prog"
  4611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4612. break 2
  4613. fi
  4614. done
  4615. done
  4616. IFS=$as_save_IFS
  4617. fi
  4618. fi
  4619. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4620. if test -n "$ac_ct_AR"; then
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4622. $as_echo "$ac_ct_AR" >&6; }
  4623. else
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4625. $as_echo "no" >&6; }
  4626. fi
  4627. test -n "$ac_ct_AR" && break
  4628. done
  4629. if test "x$ac_ct_AR" = x; then
  4630. AR="false"
  4631. else
  4632. case $cross_compiling:$ac_tool_warned in
  4633. yes:)
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4635. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4636. ac_tool_warned=yes ;;
  4637. esac
  4638. AR=$ac_ct_AR
  4639. fi
  4640. fi
  4641. : ${AR=ar}
  4642. : ${AR_FLAGS=cru}
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4644. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4645. if ${lt_cv_ar_at_file+:} false; then :
  4646. $as_echo_n "(cached) " >&6
  4647. else
  4648. lt_cv_ar_at_file=no
  4649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4650. /* end confdefs.h. */
  4651. int
  4652. main ()
  4653. {
  4654. ;
  4655. return 0;
  4656. }
  4657. _ACEOF
  4658. if ac_fn_c_try_compile "$LINENO"; then :
  4659. echo conftest.$ac_objext > conftest.lst
  4660. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4661. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4662. (eval $lt_ar_try) 2>&5
  4663. ac_status=$?
  4664. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4665. test $ac_status = 0; }
  4666. if test "$ac_status" -eq 0; then
  4667. # Ensure the archiver fails upon bogus file names.
  4668. rm -f conftest.$ac_objext libconftest.a
  4669. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4670. (eval $lt_ar_try) 2>&5
  4671. ac_status=$?
  4672. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4673. test $ac_status = 0; }
  4674. if test "$ac_status" -ne 0; then
  4675. lt_cv_ar_at_file=@
  4676. fi
  4677. fi
  4678. rm -f conftest.* libconftest.a
  4679. fi
  4680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4681. fi
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4683. $as_echo "$lt_cv_ar_at_file" >&6; }
  4684. if test "x$lt_cv_ar_at_file" = xno; then
  4685. archiver_list_spec=
  4686. else
  4687. archiver_list_spec=$lt_cv_ar_at_file
  4688. fi
  4689. if test -n "$ac_tool_prefix"; then
  4690. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4691. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4693. $as_echo_n "checking for $ac_word... " >&6; }
  4694. if ${ac_cv_prog_STRIP+:} false; then :
  4695. $as_echo_n "(cached) " >&6
  4696. else
  4697. if test -n "$STRIP"; then
  4698. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4699. else
  4700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4701. for as_dir in $PATH
  4702. do
  4703. IFS=$as_save_IFS
  4704. test -z "$as_dir" && as_dir=.
  4705. for ac_exec_ext in '' $ac_executable_extensions; do
  4706. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4707. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4708. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4709. break 2
  4710. fi
  4711. done
  4712. done
  4713. IFS=$as_save_IFS
  4714. fi
  4715. fi
  4716. STRIP=$ac_cv_prog_STRIP
  4717. if test -n "$STRIP"; then
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4719. $as_echo "$STRIP" >&6; }
  4720. else
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4722. $as_echo "no" >&6; }
  4723. fi
  4724. fi
  4725. if test -z "$ac_cv_prog_STRIP"; then
  4726. ac_ct_STRIP=$STRIP
  4727. # Extract the first word of "strip", so it can be a program name with args.
  4728. set dummy strip; ac_word=$2
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4730. $as_echo_n "checking for $ac_word... " >&6; }
  4731. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4732. $as_echo_n "(cached) " >&6
  4733. else
  4734. if test -n "$ac_ct_STRIP"; then
  4735. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4736. else
  4737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4738. for as_dir in $PATH
  4739. do
  4740. IFS=$as_save_IFS
  4741. test -z "$as_dir" && as_dir=.
  4742. for ac_exec_ext in '' $ac_executable_extensions; do
  4743. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4744. ac_cv_prog_ac_ct_STRIP="strip"
  4745. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4746. break 2
  4747. fi
  4748. done
  4749. done
  4750. IFS=$as_save_IFS
  4751. fi
  4752. fi
  4753. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4754. if test -n "$ac_ct_STRIP"; then
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4756. $as_echo "$ac_ct_STRIP" >&6; }
  4757. else
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4759. $as_echo "no" >&6; }
  4760. fi
  4761. if test "x$ac_ct_STRIP" = x; then
  4762. STRIP=":"
  4763. else
  4764. case $cross_compiling:$ac_tool_warned in
  4765. yes:)
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4767. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4768. ac_tool_warned=yes ;;
  4769. esac
  4770. STRIP=$ac_ct_STRIP
  4771. fi
  4772. else
  4773. STRIP="$ac_cv_prog_STRIP"
  4774. fi
  4775. test -z "$STRIP" && STRIP=:
  4776. if test -n "$ac_tool_prefix"; then
  4777. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4778. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4780. $as_echo_n "checking for $ac_word... " >&6; }
  4781. if ${ac_cv_prog_RANLIB+:} false; then :
  4782. $as_echo_n "(cached) " >&6
  4783. else
  4784. if test -n "$RANLIB"; then
  4785. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4786. else
  4787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4788. for as_dir in $PATH
  4789. do
  4790. IFS=$as_save_IFS
  4791. test -z "$as_dir" && as_dir=.
  4792. for ac_exec_ext in '' $ac_executable_extensions; do
  4793. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4794. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4796. break 2
  4797. fi
  4798. done
  4799. done
  4800. IFS=$as_save_IFS
  4801. fi
  4802. fi
  4803. RANLIB=$ac_cv_prog_RANLIB
  4804. if test -n "$RANLIB"; then
  4805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4806. $as_echo "$RANLIB" >&6; }
  4807. else
  4808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4809. $as_echo "no" >&6; }
  4810. fi
  4811. fi
  4812. if test -z "$ac_cv_prog_RANLIB"; then
  4813. ac_ct_RANLIB=$RANLIB
  4814. # Extract the first word of "ranlib", so it can be a program name with args.
  4815. set dummy ranlib; ac_word=$2
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4817. $as_echo_n "checking for $ac_word... " >&6; }
  4818. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4819. $as_echo_n "(cached) " >&6
  4820. else
  4821. if test -n "$ac_ct_RANLIB"; then
  4822. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4823. else
  4824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4825. for as_dir in $PATH
  4826. do
  4827. IFS=$as_save_IFS
  4828. test -z "$as_dir" && as_dir=.
  4829. for ac_exec_ext in '' $ac_executable_extensions; do
  4830. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4831. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4832. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4833. break 2
  4834. fi
  4835. done
  4836. done
  4837. IFS=$as_save_IFS
  4838. fi
  4839. fi
  4840. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4841. if test -n "$ac_ct_RANLIB"; then
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4843. $as_echo "$ac_ct_RANLIB" >&6; }
  4844. else
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4846. $as_echo "no" >&6; }
  4847. fi
  4848. if test "x$ac_ct_RANLIB" = x; then
  4849. RANLIB=":"
  4850. else
  4851. case $cross_compiling:$ac_tool_warned in
  4852. yes:)
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4854. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4855. ac_tool_warned=yes ;;
  4856. esac
  4857. RANLIB=$ac_ct_RANLIB
  4858. fi
  4859. else
  4860. RANLIB="$ac_cv_prog_RANLIB"
  4861. fi
  4862. test -z "$RANLIB" && RANLIB=:
  4863. # Determine commands to create old-style static archives.
  4864. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4865. old_postinstall_cmds='chmod 644 $oldlib'
  4866. old_postuninstall_cmds=
  4867. if test -n "$RANLIB"; then
  4868. case $host_os in
  4869. openbsd*)
  4870. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4871. ;;
  4872. *)
  4873. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4874. ;;
  4875. esac
  4876. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4877. fi
  4878. case $host_os in
  4879. darwin*)
  4880. lock_old_archive_extraction=yes ;;
  4881. *)
  4882. lock_old_archive_extraction=no ;;
  4883. esac
  4884. for ac_prog in gawk mawk nawk awk
  4885. do
  4886. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4887. set dummy $ac_prog; ac_word=$2
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4889. $as_echo_n "checking for $ac_word... " >&6; }
  4890. if ${ac_cv_prog_AWK+:} false; then :
  4891. $as_echo_n "(cached) " >&6
  4892. else
  4893. if test -n "$AWK"; then
  4894. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4895. else
  4896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4897. for as_dir in $PATH
  4898. do
  4899. IFS=$as_save_IFS
  4900. test -z "$as_dir" && as_dir=.
  4901. for ac_exec_ext in '' $ac_executable_extensions; do
  4902. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4903. ac_cv_prog_AWK="$ac_prog"
  4904. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4905. break 2
  4906. fi
  4907. done
  4908. done
  4909. IFS=$as_save_IFS
  4910. fi
  4911. fi
  4912. AWK=$ac_cv_prog_AWK
  4913. if test -n "$AWK"; then
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4915. $as_echo "$AWK" >&6; }
  4916. else
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4918. $as_echo "no" >&6; }
  4919. fi
  4920. test -n "$AWK" && break
  4921. done
  4922. # If no C compiler was specified, use CC.
  4923. LTCC=${LTCC-"$CC"}
  4924. # If no C compiler flags were specified, use CFLAGS.
  4925. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4926. # Allow CC to be a program name with arguments.
  4927. compiler=$CC
  4928. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4930. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4931. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4932. $as_echo_n "(cached) " >&6
  4933. else
  4934. # These are sane defaults that work on at least a few old systems.
  4935. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4936. # Character class describing NM global symbol codes.
  4937. symcode='[BCDEGRST]'
  4938. # Regexp to match symbols that can be accessed directly from C.
  4939. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4940. # Define system-specific variables.
  4941. case $host_os in
  4942. aix*)
  4943. symcode='[BCDT]'
  4944. ;;
  4945. cygwin* | mingw* | pw32* | cegcc*)
  4946. symcode='[ABCDGISTW]'
  4947. ;;
  4948. hpux*)
  4949. if test "$host_cpu" = ia64; then
  4950. symcode='[ABCDEGRST]'
  4951. fi
  4952. ;;
  4953. irix* | nonstopux*)
  4954. symcode='[BCDEGRST]'
  4955. ;;
  4956. osf*)
  4957. symcode='[BCDEGQRST]'
  4958. ;;
  4959. solaris*)
  4960. symcode='[BDRT]'
  4961. ;;
  4962. sco3.2v5*)
  4963. symcode='[DT]'
  4964. ;;
  4965. sysv4.2uw2*)
  4966. symcode='[DT]'
  4967. ;;
  4968. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4969. symcode='[ABDT]'
  4970. ;;
  4971. sysv4)
  4972. symcode='[DFNSTU]'
  4973. ;;
  4974. esac
  4975. # If we're using GNU nm, then use its standard symbol codes.
  4976. case `$NM -V 2>&1` in
  4977. *GNU* | *'with BFD'*)
  4978. symcode='[ABCDGIRSTW]' ;;
  4979. esac
  4980. # Transform an extracted symbol line into a proper C declaration.
  4981. # Some systems (esp. on ia64) link data and code symbols differently,
  4982. # so use this general approach.
  4983. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4984. # Transform an extracted symbol line into symbol name and symbol address
  4985. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4986. 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'"
  4987. # Handle CRLF in mingw tool chain
  4988. opt_cr=
  4989. case $build_os in
  4990. mingw*)
  4991. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4992. ;;
  4993. esac
  4994. # Try without a prefix underscore, then with it.
  4995. for ac_symprfx in "" "_"; do
  4996. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4997. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4998. # Write the raw and C identifiers.
  4999. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5000. # Fake it for dumpbin and say T for any non-static function
  5001. # and D for any global variable.
  5002. # Also find C++ and __fastcall symbols from MSVC++,
  5003. # which start with @ or ?.
  5004. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5005. " {last_section=section; section=\$ 3};"\
  5006. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5007. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5008. " \$ 0!~/External *\|/{next};"\
  5009. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5010. " {if(hide[section]) next};"\
  5011. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5012. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5013. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5014. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5015. " ' prfx=^$ac_symprfx"
  5016. else
  5017. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5018. fi
  5019. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5020. # Check to see that the pipe works correctly.
  5021. pipe_works=no
  5022. rm -f conftest*
  5023. cat > conftest.$ac_ext <<_LT_EOF
  5024. #ifdef __cplusplus
  5025. extern "C" {
  5026. #endif
  5027. char nm_test_var;
  5028. void nm_test_func(void);
  5029. void nm_test_func(void){}
  5030. #ifdef __cplusplus
  5031. }
  5032. #endif
  5033. int main(){nm_test_var='a';nm_test_func();return(0);}
  5034. _LT_EOF
  5035. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5036. (eval $ac_compile) 2>&5
  5037. ac_status=$?
  5038. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5039. test $ac_status = 0; }; then
  5040. # Now try to grab the symbols.
  5041. nlist=conftest.nm
  5042. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5043. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5044. ac_status=$?
  5045. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5046. test $ac_status = 0; } && test -s "$nlist"; then
  5047. # Try sorting and uniquifying the output.
  5048. if sort "$nlist" | uniq > "$nlist"T; then
  5049. mv -f "$nlist"T "$nlist"
  5050. else
  5051. rm -f "$nlist"T
  5052. fi
  5053. # Make sure that we snagged all the symbols we need.
  5054. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5055. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5056. cat <<_LT_EOF > conftest.$ac_ext
  5057. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5058. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5059. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5060. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5061. # define LT_DLSYM_CONST
  5062. #elif defined(__osf__)
  5063. /* This system does not cope well with relocations in const data. */
  5064. # define LT_DLSYM_CONST
  5065. #else
  5066. # define LT_DLSYM_CONST const
  5067. #endif
  5068. #ifdef __cplusplus
  5069. extern "C" {
  5070. #endif
  5071. _LT_EOF
  5072. # Now generate the symbol file.
  5073. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5074. cat <<_LT_EOF >> conftest.$ac_ext
  5075. /* The mapping between symbol names and symbols. */
  5076. LT_DLSYM_CONST struct {
  5077. const char *name;
  5078. void *address;
  5079. }
  5080. lt__PROGRAM__LTX_preloaded_symbols[] =
  5081. {
  5082. { "@PROGRAM@", (void *) 0 },
  5083. _LT_EOF
  5084. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5085. cat <<\_LT_EOF >> conftest.$ac_ext
  5086. {0, (void *) 0}
  5087. };
  5088. /* This works around a problem in FreeBSD linker */
  5089. #ifdef FREEBSD_WORKAROUND
  5090. static const void *lt_preloaded_setup() {
  5091. return lt__PROGRAM__LTX_preloaded_symbols;
  5092. }
  5093. #endif
  5094. #ifdef __cplusplus
  5095. }
  5096. #endif
  5097. _LT_EOF
  5098. # Now try linking the two files.
  5099. mv conftest.$ac_objext conftstm.$ac_objext
  5100. lt_globsym_save_LIBS=$LIBS
  5101. lt_globsym_save_CFLAGS=$CFLAGS
  5102. LIBS="conftstm.$ac_objext"
  5103. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5104. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5105. (eval $ac_link) 2>&5
  5106. ac_status=$?
  5107. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5108. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5109. pipe_works=yes
  5110. fi
  5111. LIBS=$lt_globsym_save_LIBS
  5112. CFLAGS=$lt_globsym_save_CFLAGS
  5113. else
  5114. echo "cannot find nm_test_func in $nlist" >&5
  5115. fi
  5116. else
  5117. echo "cannot find nm_test_var in $nlist" >&5
  5118. fi
  5119. else
  5120. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5121. fi
  5122. else
  5123. echo "$progname: failed program was:" >&5
  5124. cat conftest.$ac_ext >&5
  5125. fi
  5126. rm -rf conftest* conftst*
  5127. # Do not use the global_symbol_pipe unless it works.
  5128. if test "$pipe_works" = yes; then
  5129. break
  5130. else
  5131. lt_cv_sys_global_symbol_pipe=
  5132. fi
  5133. done
  5134. fi
  5135. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5136. lt_cv_sys_global_symbol_to_cdecl=
  5137. fi
  5138. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5140. $as_echo "failed" >&6; }
  5141. else
  5142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5143. $as_echo "ok" >&6; }
  5144. fi
  5145. # Response file support.
  5146. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5147. nm_file_list_spec='@'
  5148. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5149. nm_file_list_spec='@'
  5150. fi
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5152. $as_echo_n "checking for sysroot... " >&6; }
  5153. # Check whether --with-sysroot was given.
  5154. if test "${with_sysroot+set}" = set; then :
  5155. withval=$with_sysroot;
  5156. else
  5157. with_sysroot=no
  5158. fi
  5159. lt_sysroot=
  5160. case ${with_sysroot} in #(
  5161. yes)
  5162. if test "$GCC" = yes; then
  5163. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5164. fi
  5165. ;; #(
  5166. /*)
  5167. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5168. ;; #(
  5169. no|'')
  5170. ;; #(
  5171. *)
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5173. $as_echo "${with_sysroot}" >&6; }
  5174. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5175. ;;
  5176. esac
  5177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5178. $as_echo "${lt_sysroot:-no}" >&6; }
  5179. # Check whether --enable-libtool-lock was given.
  5180. if test "${enable_libtool_lock+set}" = set; then :
  5181. enableval=$enable_libtool_lock;
  5182. fi
  5183. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5184. # Some flags need to be propagated to the compiler or linker for good
  5185. # libtool support.
  5186. case $host in
  5187. ia64-*-hpux*)
  5188. # Find out which ABI we are using.
  5189. echo 'int i;' > conftest.$ac_ext
  5190. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5191. (eval $ac_compile) 2>&5
  5192. ac_status=$?
  5193. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5194. test $ac_status = 0; }; then
  5195. case `/usr/bin/file conftest.$ac_objext` in
  5196. *ELF-32*)
  5197. HPUX_IA64_MODE="32"
  5198. ;;
  5199. *ELF-64*)
  5200. HPUX_IA64_MODE="64"
  5201. ;;
  5202. esac
  5203. fi
  5204. rm -rf conftest*
  5205. ;;
  5206. *-*-irix6*)
  5207. # Find out which ABI we are using.
  5208. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5209. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5210. (eval $ac_compile) 2>&5
  5211. ac_status=$?
  5212. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5213. test $ac_status = 0; }; then
  5214. if test "$lt_cv_prog_gnu_ld" = yes; then
  5215. case `/usr/bin/file conftest.$ac_objext` in
  5216. *32-bit*)
  5217. LD="${LD-ld} -melf32bsmip"
  5218. ;;
  5219. *N32*)
  5220. LD="${LD-ld} -melf32bmipn32"
  5221. ;;
  5222. *64-bit*)
  5223. LD="${LD-ld} -melf64bmip"
  5224. ;;
  5225. esac
  5226. else
  5227. case `/usr/bin/file conftest.$ac_objext` in
  5228. *32-bit*)
  5229. LD="${LD-ld} -32"
  5230. ;;
  5231. *N32*)
  5232. LD="${LD-ld} -n32"
  5233. ;;
  5234. *64-bit*)
  5235. LD="${LD-ld} -64"
  5236. ;;
  5237. esac
  5238. fi
  5239. fi
  5240. rm -rf conftest*
  5241. ;;
  5242. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5243. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5244. # Find out which ABI we are using.
  5245. echo 'int i;' > conftest.$ac_ext
  5246. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5247. (eval $ac_compile) 2>&5
  5248. ac_status=$?
  5249. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5250. test $ac_status = 0; }; then
  5251. case `/usr/bin/file conftest.o` in
  5252. *32-bit*)
  5253. case $host in
  5254. x86_64-*kfreebsd*-gnu)
  5255. LD="${LD-ld} -m elf_i386_fbsd"
  5256. ;;
  5257. x86_64-*linux*)
  5258. LD="${LD-ld} -m elf_i386"
  5259. ;;
  5260. ppc64-*linux*|powerpc64-*linux*)
  5261. LD="${LD-ld} -m elf32ppclinux"
  5262. ;;
  5263. s390x-*linux*)
  5264. LD="${LD-ld} -m elf_s390"
  5265. ;;
  5266. sparc64-*linux*)
  5267. LD="${LD-ld} -m elf32_sparc"
  5268. ;;
  5269. esac
  5270. ;;
  5271. *64-bit*)
  5272. case $host in
  5273. x86_64-*kfreebsd*-gnu)
  5274. LD="${LD-ld} -m elf_x86_64_fbsd"
  5275. ;;
  5276. x86_64-*linux*)
  5277. LD="${LD-ld} -m elf_x86_64"
  5278. ;;
  5279. powerpc64le-*linux*)
  5280. LD="${LD-ld} -m elf64lppc"
  5281. ;;
  5282. powerpc64-*linux*)
  5283. LD="${LD-ld} -m elf64ppc"
  5284. ;;
  5285. s390*-*linux*|s390*-*tpf*)
  5286. LD="${LD-ld} -m elf64_s390"
  5287. ;;
  5288. sparc*-*linux*)
  5289. LD="${LD-ld} -m elf64_sparc"
  5290. ;;
  5291. esac
  5292. ;;
  5293. esac
  5294. fi
  5295. rm -rf conftest*
  5296. ;;
  5297. *-*-sco3.2v5*)
  5298. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5299. SAVE_CFLAGS="$CFLAGS"
  5300. CFLAGS="$CFLAGS -belf"
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5302. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5303. if ${lt_cv_cc_needs_belf+:} false; then :
  5304. $as_echo_n "(cached) " >&6
  5305. else
  5306. ac_ext=c
  5307. ac_cpp='$CPP $CPPFLAGS'
  5308. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5309. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5310. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5312. /* end confdefs.h. */
  5313. int
  5314. main ()
  5315. {
  5316. ;
  5317. return 0;
  5318. }
  5319. _ACEOF
  5320. if ac_fn_c_try_link "$LINENO"; then :
  5321. lt_cv_cc_needs_belf=yes
  5322. else
  5323. lt_cv_cc_needs_belf=no
  5324. fi
  5325. rm -f core conftest.err conftest.$ac_objext \
  5326. conftest$ac_exeext conftest.$ac_ext
  5327. ac_ext=c
  5328. ac_cpp='$CPP $CPPFLAGS'
  5329. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5330. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5331. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5332. fi
  5333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5334. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5335. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5336. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5337. CFLAGS="$SAVE_CFLAGS"
  5338. fi
  5339. ;;
  5340. *-*solaris*)
  5341. # Find out which ABI we are using.
  5342. echo 'int i;' > conftest.$ac_ext
  5343. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5344. (eval $ac_compile) 2>&5
  5345. ac_status=$?
  5346. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5347. test $ac_status = 0; }; then
  5348. case `/usr/bin/file conftest.o` in
  5349. *64-bit*)
  5350. case $lt_cv_prog_gnu_ld in
  5351. yes*)
  5352. case $host in
  5353. i?86-*-solaris*)
  5354. LD="${LD-ld} -m elf_x86_64"
  5355. ;;
  5356. sparc*-*-solaris*)
  5357. LD="${LD-ld} -m elf64_sparc"
  5358. ;;
  5359. esac
  5360. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5361. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5362. LD="${LD-ld}_sol2"
  5363. fi
  5364. ;;
  5365. *)
  5366. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5367. LD="${LD-ld} -64"
  5368. fi
  5369. ;;
  5370. esac
  5371. ;;
  5372. esac
  5373. fi
  5374. rm -rf conftest*
  5375. ;;
  5376. esac
  5377. need_locks="$enable_libtool_lock"
  5378. if test -n "$ac_tool_prefix"; then
  5379. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5380. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5382. $as_echo_n "checking for $ac_word... " >&6; }
  5383. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5384. $as_echo_n "(cached) " >&6
  5385. else
  5386. if test -n "$MANIFEST_TOOL"; then
  5387. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5388. else
  5389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5390. for as_dir in $PATH
  5391. do
  5392. IFS=$as_save_IFS
  5393. test -z "$as_dir" && as_dir=.
  5394. for ac_exec_ext in '' $ac_executable_extensions; do
  5395. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5396. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5397. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5398. break 2
  5399. fi
  5400. done
  5401. done
  5402. IFS=$as_save_IFS
  5403. fi
  5404. fi
  5405. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5406. if test -n "$MANIFEST_TOOL"; then
  5407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5408. $as_echo "$MANIFEST_TOOL" >&6; }
  5409. else
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5411. $as_echo "no" >&6; }
  5412. fi
  5413. fi
  5414. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5415. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5416. # Extract the first word of "mt", so it can be a program name with args.
  5417. set dummy mt; ac_word=$2
  5418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5419. $as_echo_n "checking for $ac_word... " >&6; }
  5420. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5421. $as_echo_n "(cached) " >&6
  5422. else
  5423. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5424. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5425. else
  5426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5427. for as_dir in $PATH
  5428. do
  5429. IFS=$as_save_IFS
  5430. test -z "$as_dir" && as_dir=.
  5431. for ac_exec_ext in '' $ac_executable_extensions; do
  5432. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5433. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5434. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5435. break 2
  5436. fi
  5437. done
  5438. done
  5439. IFS=$as_save_IFS
  5440. fi
  5441. fi
  5442. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5443. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5445. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5446. else
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5448. $as_echo "no" >&6; }
  5449. fi
  5450. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5451. MANIFEST_TOOL=":"
  5452. else
  5453. case $cross_compiling:$ac_tool_warned in
  5454. yes:)
  5455. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5456. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5457. ac_tool_warned=yes ;;
  5458. esac
  5459. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5460. fi
  5461. else
  5462. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5463. fi
  5464. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5466. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5467. if ${lt_cv_path_mainfest_tool+:} false; then :
  5468. $as_echo_n "(cached) " >&6
  5469. else
  5470. lt_cv_path_mainfest_tool=no
  5471. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5472. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5473. cat conftest.err >&5
  5474. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5475. lt_cv_path_mainfest_tool=yes
  5476. fi
  5477. rm -f conftest*
  5478. fi
  5479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5480. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5481. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5482. MANIFEST_TOOL=:
  5483. fi
  5484. case $host_os in
  5485. rhapsody* | darwin*)
  5486. if test -n "$ac_tool_prefix"; then
  5487. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5488. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5490. $as_echo_n "checking for $ac_word... " >&6; }
  5491. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5492. $as_echo_n "(cached) " >&6
  5493. else
  5494. if test -n "$DSYMUTIL"; then
  5495. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5496. else
  5497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5498. for as_dir in $PATH
  5499. do
  5500. IFS=$as_save_IFS
  5501. test -z "$as_dir" && as_dir=.
  5502. for ac_exec_ext in '' $ac_executable_extensions; do
  5503. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5504. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5505. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5506. break 2
  5507. fi
  5508. done
  5509. done
  5510. IFS=$as_save_IFS
  5511. fi
  5512. fi
  5513. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5514. if test -n "$DSYMUTIL"; then
  5515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5516. $as_echo "$DSYMUTIL" >&6; }
  5517. else
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5519. $as_echo "no" >&6; }
  5520. fi
  5521. fi
  5522. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5523. ac_ct_DSYMUTIL=$DSYMUTIL
  5524. # Extract the first word of "dsymutil", so it can be a program name with args.
  5525. set dummy dsymutil; ac_word=$2
  5526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5527. $as_echo_n "checking for $ac_word... " >&6; }
  5528. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5529. $as_echo_n "(cached) " >&6
  5530. else
  5531. if test -n "$ac_ct_DSYMUTIL"; then
  5532. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5533. else
  5534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5535. for as_dir in $PATH
  5536. do
  5537. IFS=$as_save_IFS
  5538. test -z "$as_dir" && as_dir=.
  5539. for ac_exec_ext in '' $ac_executable_extensions; do
  5540. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5541. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5542. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5543. break 2
  5544. fi
  5545. done
  5546. done
  5547. IFS=$as_save_IFS
  5548. fi
  5549. fi
  5550. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5551. if test -n "$ac_ct_DSYMUTIL"; then
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5553. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5554. else
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5556. $as_echo "no" >&6; }
  5557. fi
  5558. if test "x$ac_ct_DSYMUTIL" = x; then
  5559. DSYMUTIL=":"
  5560. else
  5561. case $cross_compiling:$ac_tool_warned in
  5562. yes:)
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5564. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5565. ac_tool_warned=yes ;;
  5566. esac
  5567. DSYMUTIL=$ac_ct_DSYMUTIL
  5568. fi
  5569. else
  5570. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5571. fi
  5572. if test -n "$ac_tool_prefix"; then
  5573. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5574. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5576. $as_echo_n "checking for $ac_word... " >&6; }
  5577. if ${ac_cv_prog_NMEDIT+:} false; then :
  5578. $as_echo_n "(cached) " >&6
  5579. else
  5580. if test -n "$NMEDIT"; then
  5581. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5582. else
  5583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5584. for as_dir in $PATH
  5585. do
  5586. IFS=$as_save_IFS
  5587. test -z "$as_dir" && as_dir=.
  5588. for ac_exec_ext in '' $ac_executable_extensions; do
  5589. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5590. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5591. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5592. break 2
  5593. fi
  5594. done
  5595. done
  5596. IFS=$as_save_IFS
  5597. fi
  5598. fi
  5599. NMEDIT=$ac_cv_prog_NMEDIT
  5600. if test -n "$NMEDIT"; then
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5602. $as_echo "$NMEDIT" >&6; }
  5603. else
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5605. $as_echo "no" >&6; }
  5606. fi
  5607. fi
  5608. if test -z "$ac_cv_prog_NMEDIT"; then
  5609. ac_ct_NMEDIT=$NMEDIT
  5610. # Extract the first word of "nmedit", so it can be a program name with args.
  5611. set dummy nmedit; ac_word=$2
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5613. $as_echo_n "checking for $ac_word... " >&6; }
  5614. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5615. $as_echo_n "(cached) " >&6
  5616. else
  5617. if test -n "$ac_ct_NMEDIT"; then
  5618. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5619. else
  5620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5621. for as_dir in $PATH
  5622. do
  5623. IFS=$as_save_IFS
  5624. test -z "$as_dir" && as_dir=.
  5625. for ac_exec_ext in '' $ac_executable_extensions; do
  5626. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5627. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5628. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5629. break 2
  5630. fi
  5631. done
  5632. done
  5633. IFS=$as_save_IFS
  5634. fi
  5635. fi
  5636. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5637. if test -n "$ac_ct_NMEDIT"; then
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5639. $as_echo "$ac_ct_NMEDIT" >&6; }
  5640. else
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5642. $as_echo "no" >&6; }
  5643. fi
  5644. if test "x$ac_ct_NMEDIT" = x; then
  5645. NMEDIT=":"
  5646. else
  5647. case $cross_compiling:$ac_tool_warned in
  5648. yes:)
  5649. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5650. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5651. ac_tool_warned=yes ;;
  5652. esac
  5653. NMEDIT=$ac_ct_NMEDIT
  5654. fi
  5655. else
  5656. NMEDIT="$ac_cv_prog_NMEDIT"
  5657. fi
  5658. if test -n "$ac_tool_prefix"; then
  5659. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5660. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5662. $as_echo_n "checking for $ac_word... " >&6; }
  5663. if ${ac_cv_prog_LIPO+:} false; then :
  5664. $as_echo_n "(cached) " >&6
  5665. else
  5666. if test -n "$LIPO"; then
  5667. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5668. else
  5669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5670. for as_dir in $PATH
  5671. do
  5672. IFS=$as_save_IFS
  5673. test -z "$as_dir" && as_dir=.
  5674. for ac_exec_ext in '' $ac_executable_extensions; do
  5675. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5676. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5678. break 2
  5679. fi
  5680. done
  5681. done
  5682. IFS=$as_save_IFS
  5683. fi
  5684. fi
  5685. LIPO=$ac_cv_prog_LIPO
  5686. if test -n "$LIPO"; then
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5688. $as_echo "$LIPO" >&6; }
  5689. else
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5691. $as_echo "no" >&6; }
  5692. fi
  5693. fi
  5694. if test -z "$ac_cv_prog_LIPO"; then
  5695. ac_ct_LIPO=$LIPO
  5696. # Extract the first word of "lipo", so it can be a program name with args.
  5697. set dummy lipo; ac_word=$2
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5699. $as_echo_n "checking for $ac_word... " >&6; }
  5700. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5701. $as_echo_n "(cached) " >&6
  5702. else
  5703. if test -n "$ac_ct_LIPO"; then
  5704. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5705. else
  5706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5707. for as_dir in $PATH
  5708. do
  5709. IFS=$as_save_IFS
  5710. test -z "$as_dir" && as_dir=.
  5711. for ac_exec_ext in '' $ac_executable_extensions; do
  5712. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5713. ac_cv_prog_ac_ct_LIPO="lipo"
  5714. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5715. break 2
  5716. fi
  5717. done
  5718. done
  5719. IFS=$as_save_IFS
  5720. fi
  5721. fi
  5722. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5723. if test -n "$ac_ct_LIPO"; then
  5724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5725. $as_echo "$ac_ct_LIPO" >&6; }
  5726. else
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5728. $as_echo "no" >&6; }
  5729. fi
  5730. if test "x$ac_ct_LIPO" = x; then
  5731. LIPO=":"
  5732. else
  5733. case $cross_compiling:$ac_tool_warned in
  5734. yes:)
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5736. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5737. ac_tool_warned=yes ;;
  5738. esac
  5739. LIPO=$ac_ct_LIPO
  5740. fi
  5741. else
  5742. LIPO="$ac_cv_prog_LIPO"
  5743. fi
  5744. if test -n "$ac_tool_prefix"; then
  5745. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5746. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5748. $as_echo_n "checking for $ac_word... " >&6; }
  5749. if ${ac_cv_prog_OTOOL+:} false; then :
  5750. $as_echo_n "(cached) " >&6
  5751. else
  5752. if test -n "$OTOOL"; then
  5753. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5754. else
  5755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5756. for as_dir in $PATH
  5757. do
  5758. IFS=$as_save_IFS
  5759. test -z "$as_dir" && as_dir=.
  5760. for ac_exec_ext in '' $ac_executable_extensions; do
  5761. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5762. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5763. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5764. break 2
  5765. fi
  5766. done
  5767. done
  5768. IFS=$as_save_IFS
  5769. fi
  5770. fi
  5771. OTOOL=$ac_cv_prog_OTOOL
  5772. if test -n "$OTOOL"; then
  5773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5774. $as_echo "$OTOOL" >&6; }
  5775. else
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5777. $as_echo "no" >&6; }
  5778. fi
  5779. fi
  5780. if test -z "$ac_cv_prog_OTOOL"; then
  5781. ac_ct_OTOOL=$OTOOL
  5782. # Extract the first word of "otool", so it can be a program name with args.
  5783. set dummy otool; ac_word=$2
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5785. $as_echo_n "checking for $ac_word... " >&6; }
  5786. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5787. $as_echo_n "(cached) " >&6
  5788. else
  5789. if test -n "$ac_ct_OTOOL"; then
  5790. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5791. else
  5792. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5793. for as_dir in $PATH
  5794. do
  5795. IFS=$as_save_IFS
  5796. test -z "$as_dir" && as_dir=.
  5797. for ac_exec_ext in '' $ac_executable_extensions; do
  5798. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5799. ac_cv_prog_ac_ct_OTOOL="otool"
  5800. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5801. break 2
  5802. fi
  5803. done
  5804. done
  5805. IFS=$as_save_IFS
  5806. fi
  5807. fi
  5808. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5809. if test -n "$ac_ct_OTOOL"; then
  5810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5811. $as_echo "$ac_ct_OTOOL" >&6; }
  5812. else
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5814. $as_echo "no" >&6; }
  5815. fi
  5816. if test "x$ac_ct_OTOOL" = x; then
  5817. OTOOL=":"
  5818. else
  5819. case $cross_compiling:$ac_tool_warned in
  5820. yes:)
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5822. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5823. ac_tool_warned=yes ;;
  5824. esac
  5825. OTOOL=$ac_ct_OTOOL
  5826. fi
  5827. else
  5828. OTOOL="$ac_cv_prog_OTOOL"
  5829. fi
  5830. if test -n "$ac_tool_prefix"; then
  5831. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5832. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5834. $as_echo_n "checking for $ac_word... " >&6; }
  5835. if ${ac_cv_prog_OTOOL64+:} false; then :
  5836. $as_echo_n "(cached) " >&6
  5837. else
  5838. if test -n "$OTOOL64"; then
  5839. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5840. else
  5841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5842. for as_dir in $PATH
  5843. do
  5844. IFS=$as_save_IFS
  5845. test -z "$as_dir" && as_dir=.
  5846. for ac_exec_ext in '' $ac_executable_extensions; do
  5847. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5848. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5850. break 2
  5851. fi
  5852. done
  5853. done
  5854. IFS=$as_save_IFS
  5855. fi
  5856. fi
  5857. OTOOL64=$ac_cv_prog_OTOOL64
  5858. if test -n "$OTOOL64"; then
  5859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5860. $as_echo "$OTOOL64" >&6; }
  5861. else
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5863. $as_echo "no" >&6; }
  5864. fi
  5865. fi
  5866. if test -z "$ac_cv_prog_OTOOL64"; then
  5867. ac_ct_OTOOL64=$OTOOL64
  5868. # Extract the first word of "otool64", so it can be a program name with args.
  5869. set dummy otool64; ac_word=$2
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5871. $as_echo_n "checking for $ac_word... " >&6; }
  5872. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5873. $as_echo_n "(cached) " >&6
  5874. else
  5875. if test -n "$ac_ct_OTOOL64"; then
  5876. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5877. else
  5878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5879. for as_dir in $PATH
  5880. do
  5881. IFS=$as_save_IFS
  5882. test -z "$as_dir" && as_dir=.
  5883. for ac_exec_ext in '' $ac_executable_extensions; do
  5884. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5885. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5886. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5887. break 2
  5888. fi
  5889. done
  5890. done
  5891. IFS=$as_save_IFS
  5892. fi
  5893. fi
  5894. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5895. if test -n "$ac_ct_OTOOL64"; then
  5896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5897. $as_echo "$ac_ct_OTOOL64" >&6; }
  5898. else
  5899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5900. $as_echo "no" >&6; }
  5901. fi
  5902. if test "x$ac_ct_OTOOL64" = x; then
  5903. OTOOL64=":"
  5904. else
  5905. case $cross_compiling:$ac_tool_warned in
  5906. yes:)
  5907. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5908. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5909. ac_tool_warned=yes ;;
  5910. esac
  5911. OTOOL64=$ac_ct_OTOOL64
  5912. fi
  5913. else
  5914. OTOOL64="$ac_cv_prog_OTOOL64"
  5915. fi
  5916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5917. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5918. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5919. $as_echo_n "(cached) " >&6
  5920. else
  5921. lt_cv_apple_cc_single_mod=no
  5922. if test -z "${LT_MULTI_MODULE}"; then
  5923. # By default we will add the -single_module flag. You can override
  5924. # by either setting the environment variable LT_MULTI_MODULE
  5925. # non-empty at configure time, or by adding -multi_module to the
  5926. # link flags.
  5927. rm -rf libconftest.dylib*
  5928. echo "int foo(void){return 1;}" > conftest.c
  5929. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5930. -dynamiclib -Wl,-single_module conftest.c" >&5
  5931. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5932. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5933. _lt_result=$?
  5934. # If there is a non-empty error log, and "single_module"
  5935. # appears in it, assume the flag caused a linker warning
  5936. if test -s conftest.err && $GREP single_module conftest.err; then
  5937. cat conftest.err >&5
  5938. # Otherwise, if the output was created with a 0 exit code from
  5939. # the compiler, it worked.
  5940. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5941. lt_cv_apple_cc_single_mod=yes
  5942. else
  5943. cat conftest.err >&5
  5944. fi
  5945. rm -rf libconftest.dylib*
  5946. rm -f conftest.*
  5947. fi
  5948. fi
  5949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5950. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5952. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5953. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5954. $as_echo_n "(cached) " >&6
  5955. else
  5956. lt_cv_ld_exported_symbols_list=no
  5957. save_LDFLAGS=$LDFLAGS
  5958. echo "_main" > conftest.sym
  5959. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5961. /* end confdefs.h. */
  5962. int
  5963. main ()
  5964. {
  5965. ;
  5966. return 0;
  5967. }
  5968. _ACEOF
  5969. if ac_fn_c_try_link "$LINENO"; then :
  5970. lt_cv_ld_exported_symbols_list=yes
  5971. else
  5972. lt_cv_ld_exported_symbols_list=no
  5973. fi
  5974. rm -f core conftest.err conftest.$ac_objext \
  5975. conftest$ac_exeext conftest.$ac_ext
  5976. LDFLAGS="$save_LDFLAGS"
  5977. fi
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5979. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5981. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5982. if ${lt_cv_ld_force_load+:} false; then :
  5983. $as_echo_n "(cached) " >&6
  5984. else
  5985. lt_cv_ld_force_load=no
  5986. cat > conftest.c << _LT_EOF
  5987. int forced_loaded() { return 2;}
  5988. _LT_EOF
  5989. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5990. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5991. echo "$AR cru libconftest.a conftest.o" >&5
  5992. $AR cru libconftest.a conftest.o 2>&5
  5993. echo "$RANLIB libconftest.a" >&5
  5994. $RANLIB libconftest.a 2>&5
  5995. cat > conftest.c << _LT_EOF
  5996. int main() { return 0;}
  5997. _LT_EOF
  5998. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5999. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6000. _lt_result=$?
  6001. if test -s conftest.err && $GREP force_load conftest.err; then
  6002. cat conftest.err >&5
  6003. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6004. lt_cv_ld_force_load=yes
  6005. else
  6006. cat conftest.err >&5
  6007. fi
  6008. rm -f conftest.err libconftest.a conftest conftest.c
  6009. rm -rf conftest.dSYM
  6010. fi
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6012. $as_echo "$lt_cv_ld_force_load" >&6; }
  6013. case $host_os in
  6014. rhapsody* | darwin1.[012])
  6015. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6016. darwin1.*)
  6017. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6018. darwin*) # darwin 5.x on
  6019. # if running on 10.5 or later, the deployment target defaults
  6020. # to the OS version, if on x86, and 10.4, the deployment
  6021. # target defaults to 10.4. Don't you love it?
  6022. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6023. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6024. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6025. 10.[012]*)
  6026. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6027. 10.*)
  6028. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6029. esac
  6030. ;;
  6031. esac
  6032. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6033. _lt_dar_single_mod='$single_module'
  6034. fi
  6035. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6036. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6037. else
  6038. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6039. fi
  6040. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6041. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6042. else
  6043. _lt_dsymutil=
  6044. fi
  6045. ;;
  6046. esac
  6047. ac_ext=c
  6048. ac_cpp='$CPP $CPPFLAGS'
  6049. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6050. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6051. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6053. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6054. # On Suns, sometimes $CPP names a directory.
  6055. if test -n "$CPP" && test -d "$CPP"; then
  6056. CPP=
  6057. fi
  6058. if test -z "$CPP"; then
  6059. if ${ac_cv_prog_CPP+:} false; then :
  6060. $as_echo_n "(cached) " >&6
  6061. else
  6062. # Double quotes because CPP needs to be expanded
  6063. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6064. do
  6065. ac_preproc_ok=false
  6066. for ac_c_preproc_warn_flag in '' yes
  6067. do
  6068. # Use a header file that comes with gcc, so configuring glibc
  6069. # with a fresh cross-compiler works.
  6070. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6071. # <limits.h> exists even on freestanding compilers.
  6072. # On the NeXT, cc -E runs the code through the compiler's parser,
  6073. # not just through cpp. "Syntax error" is here to catch this case.
  6074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6075. /* end confdefs.h. */
  6076. #ifdef __STDC__
  6077. # include <limits.h>
  6078. #else
  6079. # include <assert.h>
  6080. #endif
  6081. Syntax error
  6082. _ACEOF
  6083. if ac_fn_c_try_cpp "$LINENO"; then :
  6084. else
  6085. # Broken: fails on valid input.
  6086. continue
  6087. fi
  6088. rm -f conftest.err conftest.i conftest.$ac_ext
  6089. # OK, works on sane cases. Now check whether nonexistent headers
  6090. # can be detected and how.
  6091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6092. /* end confdefs.h. */
  6093. #include <ac_nonexistent.h>
  6094. _ACEOF
  6095. if ac_fn_c_try_cpp "$LINENO"; then :
  6096. # Broken: success on invalid input.
  6097. continue
  6098. else
  6099. # Passes both tests.
  6100. ac_preproc_ok=:
  6101. break
  6102. fi
  6103. rm -f conftest.err conftest.i conftest.$ac_ext
  6104. done
  6105. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6106. rm -f conftest.i conftest.err conftest.$ac_ext
  6107. if $ac_preproc_ok; then :
  6108. break
  6109. fi
  6110. done
  6111. ac_cv_prog_CPP=$CPP
  6112. fi
  6113. CPP=$ac_cv_prog_CPP
  6114. else
  6115. ac_cv_prog_CPP=$CPP
  6116. fi
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6118. $as_echo "$CPP" >&6; }
  6119. ac_preproc_ok=false
  6120. for ac_c_preproc_warn_flag in '' yes
  6121. do
  6122. # Use a header file that comes with gcc, so configuring glibc
  6123. # with a fresh cross-compiler works.
  6124. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6125. # <limits.h> exists even on freestanding compilers.
  6126. # On the NeXT, cc -E runs the code through the compiler's parser,
  6127. # not just through cpp. "Syntax error" is here to catch this case.
  6128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6129. /* end confdefs.h. */
  6130. #ifdef __STDC__
  6131. # include <limits.h>
  6132. #else
  6133. # include <assert.h>
  6134. #endif
  6135. Syntax error
  6136. _ACEOF
  6137. if ac_fn_c_try_cpp "$LINENO"; then :
  6138. else
  6139. # Broken: fails on valid input.
  6140. continue
  6141. fi
  6142. rm -f conftest.err conftest.i conftest.$ac_ext
  6143. # OK, works on sane cases. Now check whether nonexistent headers
  6144. # can be detected and how.
  6145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6146. /* end confdefs.h. */
  6147. #include <ac_nonexistent.h>
  6148. _ACEOF
  6149. if ac_fn_c_try_cpp "$LINENO"; then :
  6150. # Broken: success on invalid input.
  6151. continue
  6152. else
  6153. # Passes both tests.
  6154. ac_preproc_ok=:
  6155. break
  6156. fi
  6157. rm -f conftest.err conftest.i conftest.$ac_ext
  6158. done
  6159. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6160. rm -f conftest.i conftest.err conftest.$ac_ext
  6161. if $ac_preproc_ok; then :
  6162. else
  6163. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6164. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6165. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6166. See \`config.log' for more details" "$LINENO" 5; }
  6167. fi
  6168. ac_ext=c
  6169. ac_cpp='$CPP $CPPFLAGS'
  6170. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6171. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6172. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6174. $as_echo_n "checking for ANSI C header files... " >&6; }
  6175. if ${ac_cv_header_stdc+:} false; then :
  6176. $as_echo_n "(cached) " >&6
  6177. else
  6178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6179. /* end confdefs.h. */
  6180. #include <stdlib.h>
  6181. #include <stdarg.h>
  6182. #include <string.h>
  6183. #include <float.h>
  6184. int
  6185. main ()
  6186. {
  6187. ;
  6188. return 0;
  6189. }
  6190. _ACEOF
  6191. if ac_fn_c_try_compile "$LINENO"; then :
  6192. ac_cv_header_stdc=yes
  6193. else
  6194. ac_cv_header_stdc=no
  6195. fi
  6196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6197. if test $ac_cv_header_stdc = yes; then
  6198. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6200. /* end confdefs.h. */
  6201. #include <string.h>
  6202. _ACEOF
  6203. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6204. $EGREP "memchr" >/dev/null 2>&1; then :
  6205. else
  6206. ac_cv_header_stdc=no
  6207. fi
  6208. rm -f conftest*
  6209. fi
  6210. if test $ac_cv_header_stdc = yes; then
  6211. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6213. /* end confdefs.h. */
  6214. #include <stdlib.h>
  6215. _ACEOF
  6216. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6217. $EGREP "free" >/dev/null 2>&1; then :
  6218. else
  6219. ac_cv_header_stdc=no
  6220. fi
  6221. rm -f conftest*
  6222. fi
  6223. if test $ac_cv_header_stdc = yes; then
  6224. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6225. if test "$cross_compiling" = yes; then :
  6226. :
  6227. else
  6228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6229. /* end confdefs.h. */
  6230. #include <ctype.h>
  6231. #include <stdlib.h>
  6232. #if ((' ' & 0x0FF) == 0x020)
  6233. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6234. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6235. #else
  6236. # define ISLOWER(c) \
  6237. (('a' <= (c) && (c) <= 'i') \
  6238. || ('j' <= (c) && (c) <= 'r') \
  6239. || ('s' <= (c) && (c) <= 'z'))
  6240. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6241. #endif
  6242. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6243. int
  6244. main ()
  6245. {
  6246. int i;
  6247. for (i = 0; i < 256; i++)
  6248. if (XOR (islower (i), ISLOWER (i))
  6249. || toupper (i) != TOUPPER (i))
  6250. return 2;
  6251. return 0;
  6252. }
  6253. _ACEOF
  6254. if ac_fn_c_try_run "$LINENO"; then :
  6255. else
  6256. ac_cv_header_stdc=no
  6257. fi
  6258. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6259. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6260. fi
  6261. fi
  6262. fi
  6263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6264. $as_echo "$ac_cv_header_stdc" >&6; }
  6265. if test $ac_cv_header_stdc = yes; then
  6266. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6267. fi
  6268. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6269. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6270. inttypes.h stdint.h unistd.h
  6271. do :
  6272. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6273. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6274. "
  6275. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6276. cat >>confdefs.h <<_ACEOF
  6277. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6278. _ACEOF
  6279. fi
  6280. done
  6281. for ac_header in dlfcn.h
  6282. do :
  6283. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6284. "
  6285. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6286. cat >>confdefs.h <<_ACEOF
  6287. #define HAVE_DLFCN_H 1
  6288. _ACEOF
  6289. fi
  6290. done
  6291. # Set options
  6292. enable_win32_dll=yes
  6293. case $host in
  6294. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6295. if test -n "$ac_tool_prefix"; then
  6296. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6297. set dummy ${ac_tool_prefix}as; ac_word=$2
  6298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6299. $as_echo_n "checking for $ac_word... " >&6; }
  6300. if ${ac_cv_prog_AS+:} false; then :
  6301. $as_echo_n "(cached) " >&6
  6302. else
  6303. if test -n "$AS"; then
  6304. ac_cv_prog_AS="$AS" # Let the user override the test.
  6305. else
  6306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6307. for as_dir in $PATH
  6308. do
  6309. IFS=$as_save_IFS
  6310. test -z "$as_dir" && as_dir=.
  6311. for ac_exec_ext in '' $ac_executable_extensions; do
  6312. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6313. ac_cv_prog_AS="${ac_tool_prefix}as"
  6314. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6315. break 2
  6316. fi
  6317. done
  6318. done
  6319. IFS=$as_save_IFS
  6320. fi
  6321. fi
  6322. AS=$ac_cv_prog_AS
  6323. if test -n "$AS"; then
  6324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6325. $as_echo "$AS" >&6; }
  6326. else
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6328. $as_echo "no" >&6; }
  6329. fi
  6330. fi
  6331. if test -z "$ac_cv_prog_AS"; then
  6332. ac_ct_AS=$AS
  6333. # Extract the first word of "as", so it can be a program name with args.
  6334. set dummy as; ac_word=$2
  6335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6336. $as_echo_n "checking for $ac_word... " >&6; }
  6337. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6338. $as_echo_n "(cached) " >&6
  6339. else
  6340. if test -n "$ac_ct_AS"; then
  6341. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6342. else
  6343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6344. for as_dir in $PATH
  6345. do
  6346. IFS=$as_save_IFS
  6347. test -z "$as_dir" && as_dir=.
  6348. for ac_exec_ext in '' $ac_executable_extensions; do
  6349. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6350. ac_cv_prog_ac_ct_AS="as"
  6351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6352. break 2
  6353. fi
  6354. done
  6355. done
  6356. IFS=$as_save_IFS
  6357. fi
  6358. fi
  6359. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6360. if test -n "$ac_ct_AS"; then
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6362. $as_echo "$ac_ct_AS" >&6; }
  6363. else
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6365. $as_echo "no" >&6; }
  6366. fi
  6367. if test "x$ac_ct_AS" = x; then
  6368. AS="false"
  6369. else
  6370. case $cross_compiling:$ac_tool_warned in
  6371. yes:)
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6373. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6374. ac_tool_warned=yes ;;
  6375. esac
  6376. AS=$ac_ct_AS
  6377. fi
  6378. else
  6379. AS="$ac_cv_prog_AS"
  6380. fi
  6381. if test -n "$ac_tool_prefix"; then
  6382. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6383. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6385. $as_echo_n "checking for $ac_word... " >&6; }
  6386. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6387. $as_echo_n "(cached) " >&6
  6388. else
  6389. if test -n "$DLLTOOL"; then
  6390. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6391. else
  6392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6393. for as_dir in $PATH
  6394. do
  6395. IFS=$as_save_IFS
  6396. test -z "$as_dir" && as_dir=.
  6397. for ac_exec_ext in '' $ac_executable_extensions; do
  6398. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6399. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6400. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6401. break 2
  6402. fi
  6403. done
  6404. done
  6405. IFS=$as_save_IFS
  6406. fi
  6407. fi
  6408. DLLTOOL=$ac_cv_prog_DLLTOOL
  6409. if test -n "$DLLTOOL"; then
  6410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6411. $as_echo "$DLLTOOL" >&6; }
  6412. else
  6413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6414. $as_echo "no" >&6; }
  6415. fi
  6416. fi
  6417. if test -z "$ac_cv_prog_DLLTOOL"; then
  6418. ac_ct_DLLTOOL=$DLLTOOL
  6419. # Extract the first word of "dlltool", so it can be a program name with args.
  6420. set dummy dlltool; ac_word=$2
  6421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6422. $as_echo_n "checking for $ac_word... " >&6; }
  6423. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6424. $as_echo_n "(cached) " >&6
  6425. else
  6426. if test -n "$ac_ct_DLLTOOL"; then
  6427. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6428. else
  6429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6430. for as_dir in $PATH
  6431. do
  6432. IFS=$as_save_IFS
  6433. test -z "$as_dir" && as_dir=.
  6434. for ac_exec_ext in '' $ac_executable_extensions; do
  6435. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6436. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6437. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6438. break 2
  6439. fi
  6440. done
  6441. done
  6442. IFS=$as_save_IFS
  6443. fi
  6444. fi
  6445. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6446. if test -n "$ac_ct_DLLTOOL"; then
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6448. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6449. else
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6451. $as_echo "no" >&6; }
  6452. fi
  6453. if test "x$ac_ct_DLLTOOL" = x; then
  6454. DLLTOOL="false"
  6455. else
  6456. case $cross_compiling:$ac_tool_warned in
  6457. yes:)
  6458. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6459. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6460. ac_tool_warned=yes ;;
  6461. esac
  6462. DLLTOOL=$ac_ct_DLLTOOL
  6463. fi
  6464. else
  6465. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6466. fi
  6467. if test -n "$ac_tool_prefix"; then
  6468. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6469. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6471. $as_echo_n "checking for $ac_word... " >&6; }
  6472. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6473. $as_echo_n "(cached) " >&6
  6474. else
  6475. if test -n "$OBJDUMP"; then
  6476. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6477. else
  6478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6479. for as_dir in $PATH
  6480. do
  6481. IFS=$as_save_IFS
  6482. test -z "$as_dir" && as_dir=.
  6483. for ac_exec_ext in '' $ac_executable_extensions; do
  6484. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6485. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6486. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6487. break 2
  6488. fi
  6489. done
  6490. done
  6491. IFS=$as_save_IFS
  6492. fi
  6493. fi
  6494. OBJDUMP=$ac_cv_prog_OBJDUMP
  6495. if test -n "$OBJDUMP"; then
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6497. $as_echo "$OBJDUMP" >&6; }
  6498. else
  6499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6500. $as_echo "no" >&6; }
  6501. fi
  6502. fi
  6503. if test -z "$ac_cv_prog_OBJDUMP"; then
  6504. ac_ct_OBJDUMP=$OBJDUMP
  6505. # Extract the first word of "objdump", so it can be a program name with args.
  6506. set dummy objdump; ac_word=$2
  6507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6508. $as_echo_n "checking for $ac_word... " >&6; }
  6509. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6510. $as_echo_n "(cached) " >&6
  6511. else
  6512. if test -n "$ac_ct_OBJDUMP"; then
  6513. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6514. else
  6515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6516. for as_dir in $PATH
  6517. do
  6518. IFS=$as_save_IFS
  6519. test -z "$as_dir" && as_dir=.
  6520. for ac_exec_ext in '' $ac_executable_extensions; do
  6521. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6522. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6523. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6524. break 2
  6525. fi
  6526. done
  6527. done
  6528. IFS=$as_save_IFS
  6529. fi
  6530. fi
  6531. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6532. if test -n "$ac_ct_OBJDUMP"; then
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6534. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6535. else
  6536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6537. $as_echo "no" >&6; }
  6538. fi
  6539. if test "x$ac_ct_OBJDUMP" = x; then
  6540. OBJDUMP="false"
  6541. else
  6542. case $cross_compiling:$ac_tool_warned in
  6543. yes:)
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6545. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6546. ac_tool_warned=yes ;;
  6547. esac
  6548. OBJDUMP=$ac_ct_OBJDUMP
  6549. fi
  6550. else
  6551. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6552. fi
  6553. ;;
  6554. esac
  6555. test -z "$AS" && AS=as
  6556. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6557. test -z "$OBJDUMP" && OBJDUMP=objdump
  6558. enable_dlopen=no
  6559. # Check whether --enable-shared was given.
  6560. if test "${enable_shared+set}" = set; then :
  6561. enableval=$enable_shared; p=${PACKAGE-default}
  6562. case $enableval in
  6563. yes) enable_shared=yes ;;
  6564. no) enable_shared=no ;;
  6565. *)
  6566. enable_shared=no
  6567. # Look at the argument we got. We use all the common list separators.
  6568. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6569. for pkg in $enableval; do
  6570. IFS="$lt_save_ifs"
  6571. if test "X$pkg" = "X$p"; then
  6572. enable_shared=yes
  6573. fi
  6574. done
  6575. IFS="$lt_save_ifs"
  6576. ;;
  6577. esac
  6578. else
  6579. enable_shared=yes
  6580. fi
  6581. # Check whether --enable-static was given.
  6582. if test "${enable_static+set}" = set; then :
  6583. enableval=$enable_static; p=${PACKAGE-default}
  6584. case $enableval in
  6585. yes) enable_static=yes ;;
  6586. no) enable_static=no ;;
  6587. *)
  6588. enable_static=no
  6589. # Look at the argument we got. We use all the common list separators.
  6590. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6591. for pkg in $enableval; do
  6592. IFS="$lt_save_ifs"
  6593. if test "X$pkg" = "X$p"; then
  6594. enable_static=yes
  6595. fi
  6596. done
  6597. IFS="$lt_save_ifs"
  6598. ;;
  6599. esac
  6600. else
  6601. enable_static=yes
  6602. fi
  6603. # Check whether --with-pic was given.
  6604. if test "${with_pic+set}" = set; then :
  6605. withval=$with_pic; lt_p=${PACKAGE-default}
  6606. case $withval in
  6607. yes|no) pic_mode=$withval ;;
  6608. *)
  6609. pic_mode=default
  6610. # Look at the argument we got. We use all the common list separators.
  6611. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6612. for lt_pkg in $withval; do
  6613. IFS="$lt_save_ifs"
  6614. if test "X$lt_pkg" = "X$lt_p"; then
  6615. pic_mode=yes
  6616. fi
  6617. done
  6618. IFS="$lt_save_ifs"
  6619. ;;
  6620. esac
  6621. else
  6622. pic_mode=default
  6623. fi
  6624. test -z "$pic_mode" && pic_mode=default
  6625. # Check whether --enable-fast-install was given.
  6626. if test "${enable_fast_install+set}" = set; then :
  6627. enableval=$enable_fast_install; p=${PACKAGE-default}
  6628. case $enableval in
  6629. yes) enable_fast_install=yes ;;
  6630. no) enable_fast_install=no ;;
  6631. *)
  6632. enable_fast_install=no
  6633. # Look at the argument we got. We use all the common list separators.
  6634. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6635. for pkg in $enableval; do
  6636. IFS="$lt_save_ifs"
  6637. if test "X$pkg" = "X$p"; then
  6638. enable_fast_install=yes
  6639. fi
  6640. done
  6641. IFS="$lt_save_ifs"
  6642. ;;
  6643. esac
  6644. else
  6645. enable_fast_install=yes
  6646. fi
  6647. # This can be used to rebuild libtool when needed
  6648. LIBTOOL_DEPS="$ltmain"
  6649. # Always use our own libtool.
  6650. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6651. test -z "$LN_S" && LN_S="ln -s"
  6652. if test -n "${ZSH_VERSION+set}" ; then
  6653. setopt NO_GLOB_SUBST
  6654. fi
  6655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6656. $as_echo_n "checking for objdir... " >&6; }
  6657. if ${lt_cv_objdir+:} false; then :
  6658. $as_echo_n "(cached) " >&6
  6659. else
  6660. rm -f .libs 2>/dev/null
  6661. mkdir .libs 2>/dev/null
  6662. if test -d .libs; then
  6663. lt_cv_objdir=.libs
  6664. else
  6665. # MS-DOS does not allow filenames that begin with a dot.
  6666. lt_cv_objdir=_libs
  6667. fi
  6668. rmdir .libs 2>/dev/null
  6669. fi
  6670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6671. $as_echo "$lt_cv_objdir" >&6; }
  6672. objdir=$lt_cv_objdir
  6673. cat >>confdefs.h <<_ACEOF
  6674. #define LT_OBJDIR "$lt_cv_objdir/"
  6675. _ACEOF
  6676. case $host_os in
  6677. aix3*)
  6678. # AIX sometimes has problems with the GCC collect2 program. For some
  6679. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6680. # vanish in a puff of smoke.
  6681. if test "X${COLLECT_NAMES+set}" != Xset; then
  6682. COLLECT_NAMES=
  6683. export COLLECT_NAMES
  6684. fi
  6685. ;;
  6686. esac
  6687. # Global variables:
  6688. ofile=libtool
  6689. can_build_shared=yes
  6690. # All known linkers require a `.a' archive for static linking (except MSVC,
  6691. # which needs '.lib').
  6692. libext=a
  6693. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6694. old_CC="$CC"
  6695. old_CFLAGS="$CFLAGS"
  6696. # Set sane defaults for various variables
  6697. test -z "$CC" && CC=cc
  6698. test -z "$LTCC" && LTCC=$CC
  6699. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6700. test -z "$LD" && LD=ld
  6701. test -z "$ac_objext" && ac_objext=o
  6702. for cc_temp in $compiler""; do
  6703. case $cc_temp in
  6704. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6705. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6706. \-*) ;;
  6707. *) break;;
  6708. esac
  6709. done
  6710. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6711. # Only perform the check for file, if the check method requires it
  6712. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6713. case $deplibs_check_method in
  6714. file_magic*)
  6715. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6717. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6718. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6719. $as_echo_n "(cached) " >&6
  6720. else
  6721. case $MAGIC_CMD in
  6722. [\\/*] | ?:[\\/]*)
  6723. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6724. ;;
  6725. *)
  6726. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6727. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6728. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6729. for ac_dir in $ac_dummy; do
  6730. IFS="$lt_save_ifs"
  6731. test -z "$ac_dir" && ac_dir=.
  6732. if test -f $ac_dir/${ac_tool_prefix}file; then
  6733. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6734. if test -n "$file_magic_test_file"; then
  6735. case $deplibs_check_method in
  6736. "file_magic "*)
  6737. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6738. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6739. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6740. $EGREP "$file_magic_regex" > /dev/null; then
  6741. :
  6742. else
  6743. cat <<_LT_EOF 1>&2
  6744. *** Warning: the command libtool uses to detect shared libraries,
  6745. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6746. *** The result is that libtool may fail to recognize shared libraries
  6747. *** as such. This will affect the creation of libtool libraries that
  6748. *** depend on shared libraries, but programs linked with such libtool
  6749. *** libraries will work regardless of this problem. Nevertheless, you
  6750. *** may want to report the problem to your system manager and/or to
  6751. *** bug-libtool@gnu.org
  6752. _LT_EOF
  6753. fi ;;
  6754. esac
  6755. fi
  6756. break
  6757. fi
  6758. done
  6759. IFS="$lt_save_ifs"
  6760. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6761. ;;
  6762. esac
  6763. fi
  6764. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6765. if test -n "$MAGIC_CMD"; then
  6766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6767. $as_echo "$MAGIC_CMD" >&6; }
  6768. else
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6770. $as_echo "no" >&6; }
  6771. fi
  6772. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6773. if test -n "$ac_tool_prefix"; then
  6774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6775. $as_echo_n "checking for file... " >&6; }
  6776. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6777. $as_echo_n "(cached) " >&6
  6778. else
  6779. case $MAGIC_CMD in
  6780. [\\/*] | ?:[\\/]*)
  6781. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6782. ;;
  6783. *)
  6784. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6785. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6786. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6787. for ac_dir in $ac_dummy; do
  6788. IFS="$lt_save_ifs"
  6789. test -z "$ac_dir" && ac_dir=.
  6790. if test -f $ac_dir/file; then
  6791. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6792. if test -n "$file_magic_test_file"; then
  6793. case $deplibs_check_method in
  6794. "file_magic "*)
  6795. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6796. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6797. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6798. $EGREP "$file_magic_regex" > /dev/null; then
  6799. :
  6800. else
  6801. cat <<_LT_EOF 1>&2
  6802. *** Warning: the command libtool uses to detect shared libraries,
  6803. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6804. *** The result is that libtool may fail to recognize shared libraries
  6805. *** as such. This will affect the creation of libtool libraries that
  6806. *** depend on shared libraries, but programs linked with such libtool
  6807. *** libraries will work regardless of this problem. Nevertheless, you
  6808. *** may want to report the problem to your system manager and/or to
  6809. *** bug-libtool@gnu.org
  6810. _LT_EOF
  6811. fi ;;
  6812. esac
  6813. fi
  6814. break
  6815. fi
  6816. done
  6817. IFS="$lt_save_ifs"
  6818. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6819. ;;
  6820. esac
  6821. fi
  6822. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6823. if test -n "$MAGIC_CMD"; then
  6824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6825. $as_echo "$MAGIC_CMD" >&6; }
  6826. else
  6827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6828. $as_echo "no" >&6; }
  6829. fi
  6830. else
  6831. MAGIC_CMD=:
  6832. fi
  6833. fi
  6834. fi
  6835. ;;
  6836. esac
  6837. # Use C for the default configuration in the libtool script
  6838. lt_save_CC="$CC"
  6839. ac_ext=c
  6840. ac_cpp='$CPP $CPPFLAGS'
  6841. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6842. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6843. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6844. # Source file extension for C test sources.
  6845. ac_ext=c
  6846. # Object file extension for compiled C test sources.
  6847. objext=o
  6848. objext=$objext
  6849. # Code to be used in simple compile tests
  6850. lt_simple_compile_test_code="int some_variable = 0;"
  6851. # Code to be used in simple link tests
  6852. lt_simple_link_test_code='int main(){return(0);}'
  6853. # If no C compiler was specified, use CC.
  6854. LTCC=${LTCC-"$CC"}
  6855. # If no C compiler flags were specified, use CFLAGS.
  6856. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6857. # Allow CC to be a program name with arguments.
  6858. compiler=$CC
  6859. # Save the default compiler, since it gets overwritten when the other
  6860. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6861. compiler_DEFAULT=$CC
  6862. # save warnings/boilerplate of simple test code
  6863. ac_outfile=conftest.$ac_objext
  6864. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6865. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6866. _lt_compiler_boilerplate=`cat conftest.err`
  6867. $RM conftest*
  6868. ac_outfile=conftest.$ac_objext
  6869. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6870. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6871. _lt_linker_boilerplate=`cat conftest.err`
  6872. $RM -r conftest*
  6873. ## CAVEAT EMPTOR:
  6874. ## There is no encapsulation within the following macros, do not change
  6875. ## the running order or otherwise move them around unless you know exactly
  6876. ## what you are doing...
  6877. if test -n "$compiler"; then
  6878. lt_prog_compiler_no_builtin_flag=
  6879. if test "$GCC" = yes; then
  6880. case $cc_basename in
  6881. nvcc*)
  6882. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6883. *)
  6884. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6885. esac
  6886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6887. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6888. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6889. $as_echo_n "(cached) " >&6
  6890. else
  6891. lt_cv_prog_compiler_rtti_exceptions=no
  6892. ac_outfile=conftest.$ac_objext
  6893. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6894. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6895. # Insert the option either (1) after the last *FLAGS variable, or
  6896. # (2) before a word containing "conftest.", or (3) at the end.
  6897. # Note that $ac_compile itself does not contain backslashes and begins
  6898. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6899. # The option is referenced via a variable to avoid confusing sed.
  6900. lt_compile=`echo "$ac_compile" | $SED \
  6901. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6902. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6903. -e 's:$: $lt_compiler_flag:'`
  6904. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6905. (eval "$lt_compile" 2>conftest.err)
  6906. ac_status=$?
  6907. cat conftest.err >&5
  6908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6909. if (exit $ac_status) && test -s "$ac_outfile"; then
  6910. # The compiler can only warn and ignore the option if not recognized
  6911. # So say no if there are warnings other than the usual output.
  6912. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6913. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6914. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6915. lt_cv_prog_compiler_rtti_exceptions=yes
  6916. fi
  6917. fi
  6918. $RM conftest*
  6919. fi
  6920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6921. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6922. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6923. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6924. else
  6925. :
  6926. fi
  6927. fi
  6928. lt_prog_compiler_wl=
  6929. lt_prog_compiler_pic=
  6930. lt_prog_compiler_static=
  6931. if test "$GCC" = yes; then
  6932. lt_prog_compiler_wl='-Wl,'
  6933. lt_prog_compiler_static='-static'
  6934. case $host_os in
  6935. aix*)
  6936. # All AIX code is PIC.
  6937. if test "$host_cpu" = ia64; then
  6938. # AIX 5 now supports IA64 processor
  6939. lt_prog_compiler_static='-Bstatic'
  6940. fi
  6941. ;;
  6942. amigaos*)
  6943. case $host_cpu in
  6944. powerpc)
  6945. # see comment about AmigaOS4 .so support
  6946. lt_prog_compiler_pic='-fPIC'
  6947. ;;
  6948. m68k)
  6949. # FIXME: we need at least 68020 code to build shared libraries, but
  6950. # adding the `-m68020' flag to GCC prevents building anything better,
  6951. # like `-m68040'.
  6952. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6953. ;;
  6954. esac
  6955. ;;
  6956. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6957. # PIC is the default for these OSes.
  6958. ;;
  6959. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6960. # This hack is so that the source file can tell whether it is being
  6961. # built for inclusion in a dll (and should export symbols for example).
  6962. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6963. # (--disable-auto-import) libraries
  6964. lt_prog_compiler_pic='-DDLL_EXPORT'
  6965. ;;
  6966. darwin* | rhapsody*)
  6967. # PIC is the default on this platform
  6968. # Common symbols not allowed in MH_DYLIB files
  6969. lt_prog_compiler_pic='-fno-common'
  6970. ;;
  6971. haiku*)
  6972. # PIC is the default for Haiku.
  6973. # The "-static" flag exists, but is broken.
  6974. lt_prog_compiler_static=
  6975. ;;
  6976. hpux*)
  6977. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6978. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6979. # sets the default TLS model and affects inlining.
  6980. case $host_cpu in
  6981. hppa*64*)
  6982. # +Z the default
  6983. ;;
  6984. *)
  6985. lt_prog_compiler_pic='-fPIC'
  6986. ;;
  6987. esac
  6988. ;;
  6989. interix[3-9]*)
  6990. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6991. # Instead, we relocate shared libraries at runtime.
  6992. ;;
  6993. msdosdjgpp*)
  6994. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6995. # on systems that don't support them.
  6996. lt_prog_compiler_can_build_shared=no
  6997. enable_shared=no
  6998. ;;
  6999. *nto* | *qnx*)
  7000. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7001. # it will coredump.
  7002. lt_prog_compiler_pic='-fPIC -shared'
  7003. ;;
  7004. sysv4*MP*)
  7005. if test -d /usr/nec; then
  7006. lt_prog_compiler_pic=-Kconform_pic
  7007. fi
  7008. ;;
  7009. *)
  7010. lt_prog_compiler_pic='-fPIC'
  7011. ;;
  7012. esac
  7013. case $cc_basename in
  7014. nvcc*) # Cuda Compiler Driver 2.2
  7015. lt_prog_compiler_wl='-Xlinker '
  7016. if test -n "$lt_prog_compiler_pic"; then
  7017. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7018. fi
  7019. ;;
  7020. esac
  7021. else
  7022. # PORTME Check for flag to pass linker flags through the system compiler.
  7023. case $host_os in
  7024. aix*)
  7025. lt_prog_compiler_wl='-Wl,'
  7026. if test "$host_cpu" = ia64; then
  7027. # AIX 5 now supports IA64 processor
  7028. lt_prog_compiler_static='-Bstatic'
  7029. else
  7030. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7031. fi
  7032. ;;
  7033. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7034. # This hack is so that the source file can tell whether it is being
  7035. # built for inclusion in a dll (and should export symbols for example).
  7036. lt_prog_compiler_pic='-DDLL_EXPORT'
  7037. ;;
  7038. hpux9* | hpux10* | hpux11*)
  7039. lt_prog_compiler_wl='-Wl,'
  7040. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7041. # not for PA HP-UX.
  7042. case $host_cpu in
  7043. hppa*64*|ia64*)
  7044. # +Z the default
  7045. ;;
  7046. *)
  7047. lt_prog_compiler_pic='+Z'
  7048. ;;
  7049. esac
  7050. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7051. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7052. ;;
  7053. irix5* | irix6* | nonstopux*)
  7054. lt_prog_compiler_wl='-Wl,'
  7055. # PIC (with -KPIC) is the default.
  7056. lt_prog_compiler_static='-non_shared'
  7057. ;;
  7058. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7059. case $cc_basename in
  7060. # old Intel for x86_64 which still supported -KPIC.
  7061. ecc*)
  7062. lt_prog_compiler_wl='-Wl,'
  7063. lt_prog_compiler_pic='-KPIC'
  7064. lt_prog_compiler_static='-static'
  7065. ;;
  7066. # icc used to be incompatible with GCC.
  7067. # ICC 10 doesn't accept -KPIC any more.
  7068. icc* | ifort*)
  7069. lt_prog_compiler_wl='-Wl,'
  7070. lt_prog_compiler_pic='-fPIC'
  7071. lt_prog_compiler_static='-static'
  7072. ;;
  7073. # Lahey Fortran 8.1.
  7074. lf95*)
  7075. lt_prog_compiler_wl='-Wl,'
  7076. lt_prog_compiler_pic='--shared'
  7077. lt_prog_compiler_static='--static'
  7078. ;;
  7079. nagfor*)
  7080. # NAG Fortran compiler
  7081. lt_prog_compiler_wl='-Wl,-Wl,,'
  7082. lt_prog_compiler_pic='-PIC'
  7083. lt_prog_compiler_static='-Bstatic'
  7084. ;;
  7085. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7086. # Portland Group compilers (*not* the Pentium gcc compiler,
  7087. # which looks to be a dead project)
  7088. lt_prog_compiler_wl='-Wl,'
  7089. lt_prog_compiler_pic='-fpic'
  7090. lt_prog_compiler_static='-Bstatic'
  7091. ;;
  7092. ccc*)
  7093. lt_prog_compiler_wl='-Wl,'
  7094. # All Alpha code is PIC.
  7095. lt_prog_compiler_static='-non_shared'
  7096. ;;
  7097. xl* | bgxl* | bgf* | mpixl*)
  7098. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7099. lt_prog_compiler_wl='-Wl,'
  7100. lt_prog_compiler_pic='-qpic'
  7101. lt_prog_compiler_static='-qstaticlink'
  7102. ;;
  7103. *)
  7104. case `$CC -V 2>&1 | sed 5q` in
  7105. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7106. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7107. lt_prog_compiler_pic='-KPIC'
  7108. lt_prog_compiler_static='-Bstatic'
  7109. lt_prog_compiler_wl=''
  7110. ;;
  7111. *Sun\ F* | *Sun*Fortran*)
  7112. lt_prog_compiler_pic='-KPIC'
  7113. lt_prog_compiler_static='-Bstatic'
  7114. lt_prog_compiler_wl='-Qoption ld '
  7115. ;;
  7116. *Sun\ C*)
  7117. # Sun C 5.9
  7118. lt_prog_compiler_pic='-KPIC'
  7119. lt_prog_compiler_static='-Bstatic'
  7120. lt_prog_compiler_wl='-Wl,'
  7121. ;;
  7122. *Intel*\ [CF]*Compiler*)
  7123. lt_prog_compiler_wl='-Wl,'
  7124. lt_prog_compiler_pic='-fPIC'
  7125. lt_prog_compiler_static='-static'
  7126. ;;
  7127. *Portland\ Group*)
  7128. lt_prog_compiler_wl='-Wl,'
  7129. lt_prog_compiler_pic='-fpic'
  7130. lt_prog_compiler_static='-Bstatic'
  7131. ;;
  7132. esac
  7133. ;;
  7134. esac
  7135. ;;
  7136. newsos6)
  7137. lt_prog_compiler_pic='-KPIC'
  7138. lt_prog_compiler_static='-Bstatic'
  7139. ;;
  7140. *nto* | *qnx*)
  7141. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7142. # it will coredump.
  7143. lt_prog_compiler_pic='-fPIC -shared'
  7144. ;;
  7145. osf3* | osf4* | osf5*)
  7146. lt_prog_compiler_wl='-Wl,'
  7147. # All OSF/1 code is PIC.
  7148. lt_prog_compiler_static='-non_shared'
  7149. ;;
  7150. rdos*)
  7151. lt_prog_compiler_static='-non_shared'
  7152. ;;
  7153. solaris*)
  7154. lt_prog_compiler_pic='-KPIC'
  7155. lt_prog_compiler_static='-Bstatic'
  7156. case $cc_basename in
  7157. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7158. lt_prog_compiler_wl='-Qoption ld ';;
  7159. *)
  7160. lt_prog_compiler_wl='-Wl,';;
  7161. esac
  7162. ;;
  7163. sunos4*)
  7164. lt_prog_compiler_wl='-Qoption ld '
  7165. lt_prog_compiler_pic='-PIC'
  7166. lt_prog_compiler_static='-Bstatic'
  7167. ;;
  7168. sysv4 | sysv4.2uw2* | sysv4.3*)
  7169. lt_prog_compiler_wl='-Wl,'
  7170. lt_prog_compiler_pic='-KPIC'
  7171. lt_prog_compiler_static='-Bstatic'
  7172. ;;
  7173. sysv4*MP*)
  7174. if test -d /usr/nec ;then
  7175. lt_prog_compiler_pic='-Kconform_pic'
  7176. lt_prog_compiler_static='-Bstatic'
  7177. fi
  7178. ;;
  7179. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7180. lt_prog_compiler_wl='-Wl,'
  7181. lt_prog_compiler_pic='-KPIC'
  7182. lt_prog_compiler_static='-Bstatic'
  7183. ;;
  7184. unicos*)
  7185. lt_prog_compiler_wl='-Wl,'
  7186. lt_prog_compiler_can_build_shared=no
  7187. ;;
  7188. uts4*)
  7189. lt_prog_compiler_pic='-pic'
  7190. lt_prog_compiler_static='-Bstatic'
  7191. ;;
  7192. *)
  7193. lt_prog_compiler_can_build_shared=no
  7194. ;;
  7195. esac
  7196. fi
  7197. case $host_os in
  7198. # For platforms which do not support PIC, -DPIC is meaningless:
  7199. *djgpp*)
  7200. lt_prog_compiler_pic=
  7201. ;;
  7202. *)
  7203. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7204. ;;
  7205. esac
  7206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7207. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7208. if ${lt_cv_prog_compiler_pic+:} false; then :
  7209. $as_echo_n "(cached) " >&6
  7210. else
  7211. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7212. fi
  7213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7214. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7215. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7216. #
  7217. # Check to make sure the PIC flag actually works.
  7218. #
  7219. if test -n "$lt_prog_compiler_pic"; then
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7221. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7222. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7223. $as_echo_n "(cached) " >&6
  7224. else
  7225. lt_cv_prog_compiler_pic_works=no
  7226. ac_outfile=conftest.$ac_objext
  7227. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7228. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7229. # Insert the option either (1) after the last *FLAGS variable, or
  7230. # (2) before a word containing "conftest.", or (3) at the end.
  7231. # Note that $ac_compile itself does not contain backslashes and begins
  7232. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7233. # The option is referenced via a variable to avoid confusing sed.
  7234. lt_compile=`echo "$ac_compile" | $SED \
  7235. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7236. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7237. -e 's:$: $lt_compiler_flag:'`
  7238. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7239. (eval "$lt_compile" 2>conftest.err)
  7240. ac_status=$?
  7241. cat conftest.err >&5
  7242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7243. if (exit $ac_status) && test -s "$ac_outfile"; then
  7244. # The compiler can only warn and ignore the option if not recognized
  7245. # So say no if there are warnings other than the usual output.
  7246. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7247. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7248. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7249. lt_cv_prog_compiler_pic_works=yes
  7250. fi
  7251. fi
  7252. $RM conftest*
  7253. fi
  7254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7255. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7256. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7257. case $lt_prog_compiler_pic in
  7258. "" | " "*) ;;
  7259. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7260. esac
  7261. else
  7262. lt_prog_compiler_pic=
  7263. lt_prog_compiler_can_build_shared=no
  7264. fi
  7265. fi
  7266. #
  7267. # Check to make sure the static flag actually works.
  7268. #
  7269. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7271. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7272. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7273. $as_echo_n "(cached) " >&6
  7274. else
  7275. lt_cv_prog_compiler_static_works=no
  7276. save_LDFLAGS="$LDFLAGS"
  7277. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7278. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7279. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7280. # The linker can only warn and ignore the option if not recognized
  7281. # So say no if there are warnings
  7282. if test -s conftest.err; then
  7283. # Append any errors to the config.log.
  7284. cat conftest.err 1>&5
  7285. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7286. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7287. if diff conftest.exp conftest.er2 >/dev/null; then
  7288. lt_cv_prog_compiler_static_works=yes
  7289. fi
  7290. else
  7291. lt_cv_prog_compiler_static_works=yes
  7292. fi
  7293. fi
  7294. $RM -r conftest*
  7295. LDFLAGS="$save_LDFLAGS"
  7296. fi
  7297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7298. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7299. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7300. :
  7301. else
  7302. lt_prog_compiler_static=
  7303. fi
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7305. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7306. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7307. $as_echo_n "(cached) " >&6
  7308. else
  7309. lt_cv_prog_compiler_c_o=no
  7310. $RM -r conftest 2>/dev/null
  7311. mkdir conftest
  7312. cd conftest
  7313. mkdir out
  7314. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7315. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7316. # Insert the option either (1) after the last *FLAGS variable, or
  7317. # (2) before a word containing "conftest.", or (3) at the end.
  7318. # Note that $ac_compile itself does not contain backslashes and begins
  7319. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7320. lt_compile=`echo "$ac_compile" | $SED \
  7321. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7322. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7323. -e 's:$: $lt_compiler_flag:'`
  7324. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7325. (eval "$lt_compile" 2>out/conftest.err)
  7326. ac_status=$?
  7327. cat out/conftest.err >&5
  7328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7329. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7330. then
  7331. # The compiler can only warn and ignore the option if not recognized
  7332. # So say no if there are warnings
  7333. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7334. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7335. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7336. lt_cv_prog_compiler_c_o=yes
  7337. fi
  7338. fi
  7339. chmod u+w . 2>&5
  7340. $RM conftest*
  7341. # SGI C++ compiler will create directory out/ii_files/ for
  7342. # template instantiation
  7343. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7344. $RM out/* && rmdir out
  7345. cd ..
  7346. $RM -r conftest
  7347. $RM conftest*
  7348. fi
  7349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7350. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7352. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7353. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7354. $as_echo_n "(cached) " >&6
  7355. else
  7356. lt_cv_prog_compiler_c_o=no
  7357. $RM -r conftest 2>/dev/null
  7358. mkdir conftest
  7359. cd conftest
  7360. mkdir out
  7361. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7362. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7363. # Insert the option either (1) after the last *FLAGS variable, or
  7364. # (2) before a word containing "conftest.", or (3) at the end.
  7365. # Note that $ac_compile itself does not contain backslashes and begins
  7366. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7367. lt_compile=`echo "$ac_compile" | $SED \
  7368. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7369. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7370. -e 's:$: $lt_compiler_flag:'`
  7371. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7372. (eval "$lt_compile" 2>out/conftest.err)
  7373. ac_status=$?
  7374. cat out/conftest.err >&5
  7375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7376. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7377. then
  7378. # The compiler can only warn and ignore the option if not recognized
  7379. # So say no if there are warnings
  7380. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7381. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7382. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7383. lt_cv_prog_compiler_c_o=yes
  7384. fi
  7385. fi
  7386. chmod u+w . 2>&5
  7387. $RM conftest*
  7388. # SGI C++ compiler will create directory out/ii_files/ for
  7389. # template instantiation
  7390. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7391. $RM out/* && rmdir out
  7392. cd ..
  7393. $RM -r conftest
  7394. $RM conftest*
  7395. fi
  7396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7397. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7398. hard_links="nottested"
  7399. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7400. # do not overwrite the value of need_locks provided by the user
  7401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7402. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7403. hard_links=yes
  7404. $RM conftest*
  7405. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7406. touch conftest.a
  7407. ln conftest.a conftest.b 2>&5 || hard_links=no
  7408. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7410. $as_echo "$hard_links" >&6; }
  7411. if test "$hard_links" = no; then
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7413. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7414. need_locks=warn
  7415. fi
  7416. else
  7417. need_locks=no
  7418. fi
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7420. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7421. runpath_var=
  7422. allow_undefined_flag=
  7423. always_export_symbols=no
  7424. archive_cmds=
  7425. archive_expsym_cmds=
  7426. compiler_needs_object=no
  7427. enable_shared_with_static_runtimes=no
  7428. export_dynamic_flag_spec=
  7429. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7430. hardcode_automatic=no
  7431. hardcode_direct=no
  7432. hardcode_direct_absolute=no
  7433. hardcode_libdir_flag_spec=
  7434. hardcode_libdir_separator=
  7435. hardcode_minus_L=no
  7436. hardcode_shlibpath_var=unsupported
  7437. inherit_rpath=no
  7438. link_all_deplibs=unknown
  7439. module_cmds=
  7440. module_expsym_cmds=
  7441. old_archive_from_new_cmds=
  7442. old_archive_from_expsyms_cmds=
  7443. thread_safe_flag_spec=
  7444. whole_archive_flag_spec=
  7445. # include_expsyms should be a list of space-separated symbols to be *always*
  7446. # included in the symbol list
  7447. include_expsyms=
  7448. # exclude_expsyms can be an extended regexp of symbols to exclude
  7449. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7450. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7451. # as well as any symbol that contains `d'.
  7452. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7453. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7454. # platforms (ab)use it in PIC code, but their linkers get confused if
  7455. # the symbol is explicitly referenced. Since portable code cannot
  7456. # rely on this symbol name, it's probably fine to never include it in
  7457. # preloaded symbol tables.
  7458. # Exclude shared library initialization/finalization symbols.
  7459. extract_expsyms_cmds=
  7460. case $host_os in
  7461. cygwin* | mingw* | pw32* | cegcc*)
  7462. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7463. # When not using gcc, we currently assume that we are using
  7464. # Microsoft Visual C++.
  7465. if test "$GCC" != yes; then
  7466. with_gnu_ld=no
  7467. fi
  7468. ;;
  7469. interix*)
  7470. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7471. with_gnu_ld=yes
  7472. ;;
  7473. openbsd*)
  7474. with_gnu_ld=no
  7475. ;;
  7476. esac
  7477. ld_shlibs=yes
  7478. # On some targets, GNU ld is compatible enough with the native linker
  7479. # that we're better off using the native interface for both.
  7480. lt_use_gnu_ld_interface=no
  7481. if test "$with_gnu_ld" = yes; then
  7482. case $host_os in
  7483. aix*)
  7484. # The AIX port of GNU ld has always aspired to compatibility
  7485. # with the native linker. However, as the warning in the GNU ld
  7486. # block says, versions before 2.19.5* couldn't really create working
  7487. # shared libraries, regardless of the interface used.
  7488. case `$LD -v 2>&1` in
  7489. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7490. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7491. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7492. *)
  7493. lt_use_gnu_ld_interface=yes
  7494. ;;
  7495. esac
  7496. ;;
  7497. *)
  7498. lt_use_gnu_ld_interface=yes
  7499. ;;
  7500. esac
  7501. fi
  7502. if test "$lt_use_gnu_ld_interface" = yes; then
  7503. # If archive_cmds runs LD, not CC, wlarc should be empty
  7504. wlarc='${wl}'
  7505. # Set some defaults for GNU ld with shared library support. These
  7506. # are reset later if shared libraries are not supported. Putting them
  7507. # here allows them to be overridden if necessary.
  7508. runpath_var=LD_RUN_PATH
  7509. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7510. export_dynamic_flag_spec='${wl}--export-dynamic'
  7511. # ancient GNU ld didn't support --whole-archive et. al.
  7512. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7513. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7514. else
  7515. whole_archive_flag_spec=
  7516. fi
  7517. supports_anon_versioning=no
  7518. case `$LD -v 2>&1` in
  7519. *GNU\ gold*) supports_anon_versioning=yes ;;
  7520. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7521. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7522. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7523. *\ 2.11.*) ;; # other 2.11 versions
  7524. *) supports_anon_versioning=yes ;;
  7525. esac
  7526. # See if GNU ld supports shared libraries.
  7527. case $host_os in
  7528. aix[3-9]*)
  7529. # On AIX/PPC, the GNU linker is very broken
  7530. if test "$host_cpu" != ia64; then
  7531. ld_shlibs=no
  7532. cat <<_LT_EOF 1>&2
  7533. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7534. *** to be unable to reliably create shared libraries on AIX.
  7535. *** Therefore, libtool is disabling shared libraries support. If you
  7536. *** really care for shared libraries, you may want to install binutils
  7537. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7538. *** You will then need to restart the configuration process.
  7539. _LT_EOF
  7540. fi
  7541. ;;
  7542. amigaos*)
  7543. case $host_cpu in
  7544. powerpc)
  7545. # see comment about AmigaOS4 .so support
  7546. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7547. archive_expsym_cmds=''
  7548. ;;
  7549. m68k)
  7550. 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)'
  7551. hardcode_libdir_flag_spec='-L$libdir'
  7552. hardcode_minus_L=yes
  7553. ;;
  7554. esac
  7555. ;;
  7556. beos*)
  7557. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7558. allow_undefined_flag=unsupported
  7559. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7560. # support --undefined. This deserves some investigation. FIXME
  7561. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7562. else
  7563. ld_shlibs=no
  7564. fi
  7565. ;;
  7566. cygwin* | mingw* | pw32* | cegcc*)
  7567. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7568. # as there is no search path for DLLs.
  7569. hardcode_libdir_flag_spec='-L$libdir'
  7570. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7571. allow_undefined_flag=unsupported
  7572. always_export_symbols=no
  7573. enable_shared_with_static_runtimes=yes
  7574. 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'
  7575. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7576. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7577. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7578. # If the export-symbols file already is a .def file (1st line
  7579. # is EXPORTS), use it as is; otherwise, prepend...
  7580. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7581. cp $export_symbols $output_objdir/$soname.def;
  7582. else
  7583. echo EXPORTS > $output_objdir/$soname.def;
  7584. cat $export_symbols >> $output_objdir/$soname.def;
  7585. fi~
  7586. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7587. else
  7588. ld_shlibs=no
  7589. fi
  7590. ;;
  7591. haiku*)
  7592. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7593. link_all_deplibs=yes
  7594. ;;
  7595. interix[3-9]*)
  7596. hardcode_direct=no
  7597. hardcode_shlibpath_var=no
  7598. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7599. export_dynamic_flag_spec='${wl}-E'
  7600. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7601. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7602. # default) and relocated if they conflict, which is a slow very memory
  7603. # consuming and fragmenting process. To avoid this, we pick a random,
  7604. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7605. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7606. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7607. 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'
  7608. ;;
  7609. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7610. tmp_diet=no
  7611. if test "$host_os" = linux-dietlibc; then
  7612. case $cc_basename in
  7613. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7614. esac
  7615. fi
  7616. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7617. && test "$tmp_diet" = no
  7618. then
  7619. tmp_addflag=' $pic_flag'
  7620. tmp_sharedflag='-shared'
  7621. case $cc_basename,$host_cpu in
  7622. pgcc*) # Portland Group C compiler
  7623. 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'
  7624. tmp_addflag=' $pic_flag'
  7625. ;;
  7626. pgf77* | pgf90* | pgf95* | pgfortran*)
  7627. # Portland Group f77 and f90 compilers
  7628. 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'
  7629. tmp_addflag=' $pic_flag -Mnomain' ;;
  7630. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7631. tmp_addflag=' -i_dynamic' ;;
  7632. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7633. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7634. ifc* | ifort*) # Intel Fortran compiler
  7635. tmp_addflag=' -nofor_main' ;;
  7636. lf95*) # Lahey Fortran 8.1
  7637. whole_archive_flag_spec=
  7638. tmp_sharedflag='--shared' ;;
  7639. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7640. tmp_sharedflag='-qmkshrobj'
  7641. tmp_addflag= ;;
  7642. nvcc*) # Cuda Compiler Driver 2.2
  7643. 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'
  7644. compiler_needs_object=yes
  7645. ;;
  7646. esac
  7647. case `$CC -V 2>&1 | sed 5q` in
  7648. *Sun\ C*) # Sun C 5.9
  7649. 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'
  7650. compiler_needs_object=yes
  7651. tmp_sharedflag='-G' ;;
  7652. *Sun\ F*) # Sun Fortran 8.3
  7653. tmp_sharedflag='-G' ;;
  7654. esac
  7655. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7656. if test "x$supports_anon_versioning" = xyes; then
  7657. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7658. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7659. echo "local: *; };" >> $output_objdir/$libname.ver~
  7660. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7661. fi
  7662. case $cc_basename in
  7663. xlf* | bgf* | bgxlf* | mpixlf*)
  7664. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7665. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7666. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7667. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7668. if test "x$supports_anon_versioning" = xyes; then
  7669. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7670. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7671. echo "local: *; };" >> $output_objdir/$libname.ver~
  7672. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7673. fi
  7674. ;;
  7675. esac
  7676. else
  7677. ld_shlibs=no
  7678. fi
  7679. ;;
  7680. netbsd*)
  7681. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7682. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7683. wlarc=
  7684. else
  7685. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7686. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7687. fi
  7688. ;;
  7689. solaris*)
  7690. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7691. ld_shlibs=no
  7692. cat <<_LT_EOF 1>&2
  7693. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7694. *** create shared libraries on Solaris systems. Therefore, libtool
  7695. *** is disabling shared libraries support. We urge you to upgrade GNU
  7696. *** binutils to release 2.9.1 or newer. Another option is to modify
  7697. *** your PATH or compiler configuration so that the native linker is
  7698. *** used, and then restart.
  7699. _LT_EOF
  7700. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7701. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7702. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7703. else
  7704. ld_shlibs=no
  7705. fi
  7706. ;;
  7707. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7708. case `$LD -v 2>&1` in
  7709. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7710. ld_shlibs=no
  7711. cat <<_LT_EOF 1>&2
  7712. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7713. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7714. *** is disabling shared libraries support. We urge you to upgrade GNU
  7715. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7716. *** your PATH or compiler configuration so that the native linker is
  7717. *** used, and then restart.
  7718. _LT_EOF
  7719. ;;
  7720. *)
  7721. # For security reasons, it is highly recommended that you always
  7722. # use absolute paths for naming shared libraries, and exclude the
  7723. # DT_RUNPATH tag from executables and libraries. But doing so
  7724. # requires that you compile everything twice, which is a pain.
  7725. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7726. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7727. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7728. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7729. else
  7730. ld_shlibs=no
  7731. fi
  7732. ;;
  7733. esac
  7734. ;;
  7735. sunos4*)
  7736. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7737. wlarc=
  7738. hardcode_direct=yes
  7739. hardcode_shlibpath_var=no
  7740. ;;
  7741. *)
  7742. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7743. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7744. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7745. else
  7746. ld_shlibs=no
  7747. fi
  7748. ;;
  7749. esac
  7750. if test "$ld_shlibs" = no; then
  7751. runpath_var=
  7752. hardcode_libdir_flag_spec=
  7753. export_dynamic_flag_spec=
  7754. whole_archive_flag_spec=
  7755. fi
  7756. else
  7757. # PORTME fill in a description of your system's linker (not GNU ld)
  7758. case $host_os in
  7759. aix3*)
  7760. allow_undefined_flag=unsupported
  7761. always_export_symbols=yes
  7762. 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'
  7763. # Note: this linker hardcodes the directories in LIBPATH if there
  7764. # are no directories specified by -L.
  7765. hardcode_minus_L=yes
  7766. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7767. # Neither direct hardcoding nor static linking is supported with a
  7768. # broken collect2.
  7769. hardcode_direct=unsupported
  7770. fi
  7771. ;;
  7772. aix[4-9]*)
  7773. if test "$host_cpu" = ia64; then
  7774. # On IA64, the linker does run time linking by default, so we don't
  7775. # have to do anything special.
  7776. aix_use_runtimelinking=no
  7777. exp_sym_flag='-Bexport'
  7778. no_entry_flag=""
  7779. else
  7780. # If we're using GNU nm, then we don't want the "-C" option.
  7781. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7782. # Also, AIX nm treats weak defined symbols like other global
  7783. # defined symbols, whereas GNU nm marks them as "W".
  7784. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7785. 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'
  7786. else
  7787. 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'
  7788. fi
  7789. aix_use_runtimelinking=no
  7790. # Test if we are trying to use run time linking or normal
  7791. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7792. # need to do runtime linking.
  7793. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7794. for ld_flag in $LDFLAGS; do
  7795. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7796. aix_use_runtimelinking=yes
  7797. break
  7798. fi
  7799. done
  7800. ;;
  7801. esac
  7802. exp_sym_flag='-bexport'
  7803. no_entry_flag='-bnoentry'
  7804. fi
  7805. # When large executables or shared objects are built, AIX ld can
  7806. # have problems creating the table of contents. If linking a library
  7807. # or program results in "error TOC overflow" add -mminimal-toc to
  7808. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7809. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7810. archive_cmds=''
  7811. hardcode_direct=yes
  7812. hardcode_direct_absolute=yes
  7813. hardcode_libdir_separator=':'
  7814. link_all_deplibs=yes
  7815. file_list_spec='${wl}-f,'
  7816. if test "$GCC" = yes; then
  7817. case $host_os in aix4.[012]|aix4.[012].*)
  7818. # We only want to do this on AIX 4.2 and lower, the check
  7819. # below for broken collect2 doesn't work under 4.3+
  7820. collect2name=`${CC} -print-prog-name=collect2`
  7821. if test -f "$collect2name" &&
  7822. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7823. then
  7824. # We have reworked collect2
  7825. :
  7826. else
  7827. # We have old collect2
  7828. hardcode_direct=unsupported
  7829. # It fails to find uninstalled libraries when the uninstalled
  7830. # path is not listed in the libpath. Setting hardcode_minus_L
  7831. # to unsupported forces relinking
  7832. hardcode_minus_L=yes
  7833. hardcode_libdir_flag_spec='-L$libdir'
  7834. hardcode_libdir_separator=
  7835. fi
  7836. ;;
  7837. esac
  7838. shared_flag='-shared'
  7839. if test "$aix_use_runtimelinking" = yes; then
  7840. shared_flag="$shared_flag "'${wl}-G'
  7841. fi
  7842. else
  7843. # not using gcc
  7844. if test "$host_cpu" = ia64; then
  7845. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7846. # chokes on -Wl,-G. The following line is correct:
  7847. shared_flag='-G'
  7848. else
  7849. if test "$aix_use_runtimelinking" = yes; then
  7850. shared_flag='${wl}-G'
  7851. else
  7852. shared_flag='${wl}-bM:SRE'
  7853. fi
  7854. fi
  7855. fi
  7856. export_dynamic_flag_spec='${wl}-bexpall'
  7857. # It seems that -bexpall does not export symbols beginning with
  7858. # underscore (_), so it is better to generate a list of symbols to export.
  7859. always_export_symbols=yes
  7860. if test "$aix_use_runtimelinking" = yes; then
  7861. # Warning - without using the other runtime loading flags (-brtl),
  7862. # -berok will link without error, but may produce a broken library.
  7863. allow_undefined_flag='-berok'
  7864. # Determine the default libpath from the value encoded in an
  7865. # empty executable.
  7866. if test "${lt_cv_aix_libpath+set}" = set; then
  7867. aix_libpath=$lt_cv_aix_libpath
  7868. else
  7869. if ${lt_cv_aix_libpath_+:} false; then :
  7870. $as_echo_n "(cached) " >&6
  7871. else
  7872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7873. /* end confdefs.h. */
  7874. int
  7875. main ()
  7876. {
  7877. ;
  7878. return 0;
  7879. }
  7880. _ACEOF
  7881. if ac_fn_c_try_link "$LINENO"; then :
  7882. lt_aix_libpath_sed='
  7883. /Import File Strings/,/^$/ {
  7884. /^0/ {
  7885. s/^0 *\([^ ]*\) *$/\1/
  7886. p
  7887. }
  7888. }'
  7889. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7890. # Check for a 64-bit object if we didn't find anything.
  7891. if test -z "$lt_cv_aix_libpath_"; then
  7892. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7893. fi
  7894. fi
  7895. rm -f core conftest.err conftest.$ac_objext \
  7896. conftest$ac_exeext conftest.$ac_ext
  7897. if test -z "$lt_cv_aix_libpath_"; then
  7898. lt_cv_aix_libpath_="/usr/lib:/lib"
  7899. fi
  7900. fi
  7901. aix_libpath=$lt_cv_aix_libpath_
  7902. fi
  7903. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7904. 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"
  7905. else
  7906. if test "$host_cpu" = ia64; then
  7907. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7908. allow_undefined_flag="-z nodefs"
  7909. 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"
  7910. else
  7911. # Determine the default libpath from the value encoded in an
  7912. # empty executable.
  7913. if test "${lt_cv_aix_libpath+set}" = set; then
  7914. aix_libpath=$lt_cv_aix_libpath
  7915. else
  7916. if ${lt_cv_aix_libpath_+:} false; then :
  7917. $as_echo_n "(cached) " >&6
  7918. else
  7919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7920. /* end confdefs.h. */
  7921. int
  7922. main ()
  7923. {
  7924. ;
  7925. return 0;
  7926. }
  7927. _ACEOF
  7928. if ac_fn_c_try_link "$LINENO"; then :
  7929. lt_aix_libpath_sed='
  7930. /Import File Strings/,/^$/ {
  7931. /^0/ {
  7932. s/^0 *\([^ ]*\) *$/\1/
  7933. p
  7934. }
  7935. }'
  7936. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7937. # Check for a 64-bit object if we didn't find anything.
  7938. if test -z "$lt_cv_aix_libpath_"; then
  7939. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7940. fi
  7941. fi
  7942. rm -f core conftest.err conftest.$ac_objext \
  7943. conftest$ac_exeext conftest.$ac_ext
  7944. if test -z "$lt_cv_aix_libpath_"; then
  7945. lt_cv_aix_libpath_="/usr/lib:/lib"
  7946. fi
  7947. fi
  7948. aix_libpath=$lt_cv_aix_libpath_
  7949. fi
  7950. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7951. # Warning - without using the other run time loading flags,
  7952. # -berok will link without error, but may produce a broken library.
  7953. no_undefined_flag=' ${wl}-bernotok'
  7954. allow_undefined_flag=' ${wl}-berok'
  7955. if test "$with_gnu_ld" = yes; then
  7956. # We only use this code for GNU lds that support --whole-archive.
  7957. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7958. else
  7959. # Exported symbols can be pulled into shared objects from archives
  7960. whole_archive_flag_spec='$convenience'
  7961. fi
  7962. archive_cmds_need_lc=yes
  7963. # This is similar to how AIX traditionally builds its shared libraries.
  7964. 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'
  7965. fi
  7966. fi
  7967. ;;
  7968. amigaos*)
  7969. case $host_cpu in
  7970. powerpc)
  7971. # see comment about AmigaOS4 .so support
  7972. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7973. archive_expsym_cmds=''
  7974. ;;
  7975. m68k)
  7976. 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)'
  7977. hardcode_libdir_flag_spec='-L$libdir'
  7978. hardcode_minus_L=yes
  7979. ;;
  7980. esac
  7981. ;;
  7982. bsdi[45]*)
  7983. export_dynamic_flag_spec=-rdynamic
  7984. ;;
  7985. cygwin* | mingw* | pw32* | cegcc*)
  7986. # When not using gcc, we currently assume that we are using
  7987. # Microsoft Visual C++.
  7988. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7989. # no search path for DLLs.
  7990. case $cc_basename in
  7991. cl*)
  7992. # Native MSVC
  7993. hardcode_libdir_flag_spec=' '
  7994. allow_undefined_flag=unsupported
  7995. always_export_symbols=yes
  7996. file_list_spec='@'
  7997. # Tell ltmain to make .lib files, not .a files.
  7998. libext=lib
  7999. # Tell ltmain to make .dll files, not .so files.
  8000. shrext_cmds=".dll"
  8001. # FIXME: Setting linknames here is a bad hack.
  8002. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8003. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8004. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8005. else
  8006. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8007. fi~
  8008. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8009. linknames='
  8010. # The linker will not automatically build a static lib if we build a DLL.
  8011. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8012. enable_shared_with_static_runtimes=yes
  8013. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8014. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8015. # Don't use ranlib
  8016. old_postinstall_cmds='chmod 644 $oldlib'
  8017. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8018. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8019. case $lt_outputfile in
  8020. *.exe|*.EXE) ;;
  8021. *)
  8022. lt_outputfile="$lt_outputfile.exe"
  8023. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8024. ;;
  8025. esac~
  8026. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8027. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8028. $RM "$lt_outputfile.manifest";
  8029. fi'
  8030. ;;
  8031. *)
  8032. # Assume MSVC wrapper
  8033. hardcode_libdir_flag_spec=' '
  8034. allow_undefined_flag=unsupported
  8035. # Tell ltmain to make .lib files, not .a files.
  8036. libext=lib
  8037. # Tell ltmain to make .dll files, not .so files.
  8038. shrext_cmds=".dll"
  8039. # FIXME: Setting linknames here is a bad hack.
  8040. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8041. # The linker will automatically build a .lib file if we build a DLL.
  8042. old_archive_from_new_cmds='true'
  8043. # FIXME: Should let the user specify the lib program.
  8044. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8045. enable_shared_with_static_runtimes=yes
  8046. ;;
  8047. esac
  8048. ;;
  8049. darwin* | rhapsody*)
  8050. archive_cmds_need_lc=no
  8051. hardcode_direct=no
  8052. hardcode_automatic=yes
  8053. hardcode_shlibpath_var=unsupported
  8054. if test "$lt_cv_ld_force_load" = "yes"; then
  8055. 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\"`'
  8056. else
  8057. whole_archive_flag_spec=''
  8058. fi
  8059. link_all_deplibs=yes
  8060. allow_undefined_flag="$_lt_dar_allow_undefined"
  8061. case $cc_basename in
  8062. ifort*) _lt_dar_can_shared=yes ;;
  8063. *) _lt_dar_can_shared=$GCC ;;
  8064. esac
  8065. if test "$_lt_dar_can_shared" = "yes"; then
  8066. output_verbose_link_cmd=func_echo_all
  8067. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8068. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8069. 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}"
  8070. 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}"
  8071. else
  8072. ld_shlibs=no
  8073. fi
  8074. ;;
  8075. dgux*)
  8076. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8077. hardcode_libdir_flag_spec='-L$libdir'
  8078. hardcode_shlibpath_var=no
  8079. ;;
  8080. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8081. # support. Future versions do this automatically, but an explicit c++rt0.o
  8082. # does not break anything, and helps significantly (at the cost of a little
  8083. # extra space).
  8084. freebsd2.2*)
  8085. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8086. hardcode_libdir_flag_spec='-R$libdir'
  8087. hardcode_direct=yes
  8088. hardcode_shlibpath_var=no
  8089. ;;
  8090. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8091. freebsd2.*)
  8092. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8093. hardcode_direct=yes
  8094. hardcode_minus_L=yes
  8095. hardcode_shlibpath_var=no
  8096. ;;
  8097. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8098. freebsd* | dragonfly*)
  8099. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8100. hardcode_libdir_flag_spec='-R$libdir'
  8101. hardcode_direct=yes
  8102. hardcode_shlibpath_var=no
  8103. ;;
  8104. hpux9*)
  8105. if test "$GCC" = yes; then
  8106. 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'
  8107. else
  8108. 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'
  8109. fi
  8110. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8111. hardcode_libdir_separator=:
  8112. hardcode_direct=yes
  8113. # hardcode_minus_L: Not really in the search PATH,
  8114. # but as the default location of the library.
  8115. hardcode_minus_L=yes
  8116. export_dynamic_flag_spec='${wl}-E'
  8117. ;;
  8118. hpux10*)
  8119. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8120. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8121. else
  8122. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8123. fi
  8124. if test "$with_gnu_ld" = no; then
  8125. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8126. hardcode_libdir_separator=:
  8127. hardcode_direct=yes
  8128. hardcode_direct_absolute=yes
  8129. export_dynamic_flag_spec='${wl}-E'
  8130. # hardcode_minus_L: Not really in the search PATH,
  8131. # but as the default location of the library.
  8132. hardcode_minus_L=yes
  8133. fi
  8134. ;;
  8135. hpux11*)
  8136. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8137. case $host_cpu in
  8138. hppa*64*)
  8139. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8140. ;;
  8141. ia64*)
  8142. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8143. ;;
  8144. *)
  8145. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8146. ;;
  8147. esac
  8148. else
  8149. case $host_cpu in
  8150. hppa*64*)
  8151. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8152. ;;
  8153. ia64*)
  8154. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8155. ;;
  8156. *)
  8157. # Older versions of the 11.00 compiler do not understand -b yet
  8158. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8160. $as_echo_n "checking if $CC understands -b... " >&6; }
  8161. if ${lt_cv_prog_compiler__b+:} false; then :
  8162. $as_echo_n "(cached) " >&6
  8163. else
  8164. lt_cv_prog_compiler__b=no
  8165. save_LDFLAGS="$LDFLAGS"
  8166. LDFLAGS="$LDFLAGS -b"
  8167. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8168. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8169. # The linker can only warn and ignore the option if not recognized
  8170. # So say no if there are warnings
  8171. if test -s conftest.err; then
  8172. # Append any errors to the config.log.
  8173. cat conftest.err 1>&5
  8174. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8175. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8176. if diff conftest.exp conftest.er2 >/dev/null; then
  8177. lt_cv_prog_compiler__b=yes
  8178. fi
  8179. else
  8180. lt_cv_prog_compiler__b=yes
  8181. fi
  8182. fi
  8183. $RM -r conftest*
  8184. LDFLAGS="$save_LDFLAGS"
  8185. fi
  8186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8187. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8188. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8189. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8190. else
  8191. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8192. fi
  8193. ;;
  8194. esac
  8195. fi
  8196. if test "$with_gnu_ld" = no; then
  8197. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8198. hardcode_libdir_separator=:
  8199. case $host_cpu in
  8200. hppa*64*|ia64*)
  8201. hardcode_direct=no
  8202. hardcode_shlibpath_var=no
  8203. ;;
  8204. *)
  8205. hardcode_direct=yes
  8206. hardcode_direct_absolute=yes
  8207. export_dynamic_flag_spec='${wl}-E'
  8208. # hardcode_minus_L: Not really in the search PATH,
  8209. # but as the default location of the library.
  8210. hardcode_minus_L=yes
  8211. ;;
  8212. esac
  8213. fi
  8214. ;;
  8215. irix5* | irix6* | nonstopux*)
  8216. if test "$GCC" = yes; then
  8217. 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'
  8218. # Try to use the -exported_symbol ld option, if it does not
  8219. # work, assume that -exports_file does not work either and
  8220. # implicitly export all symbols.
  8221. # This should be the same for all languages, so no per-tag cache variable.
  8222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8223. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8224. if ${lt_cv_irix_exported_symbol+:} false; then :
  8225. $as_echo_n "(cached) " >&6
  8226. else
  8227. save_LDFLAGS="$LDFLAGS"
  8228. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8230. /* end confdefs.h. */
  8231. int foo (void) { return 0; }
  8232. _ACEOF
  8233. if ac_fn_c_try_link "$LINENO"; then :
  8234. lt_cv_irix_exported_symbol=yes
  8235. else
  8236. lt_cv_irix_exported_symbol=no
  8237. fi
  8238. rm -f core conftest.err conftest.$ac_objext \
  8239. conftest$ac_exeext conftest.$ac_ext
  8240. LDFLAGS="$save_LDFLAGS"
  8241. fi
  8242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8243. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8244. if test "$lt_cv_irix_exported_symbol" = yes; then
  8245. 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'
  8246. fi
  8247. else
  8248. 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'
  8249. 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'
  8250. fi
  8251. archive_cmds_need_lc='no'
  8252. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8253. hardcode_libdir_separator=:
  8254. inherit_rpath=yes
  8255. link_all_deplibs=yes
  8256. ;;
  8257. netbsd*)
  8258. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8259. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8260. else
  8261. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8262. fi
  8263. hardcode_libdir_flag_spec='-R$libdir'
  8264. hardcode_direct=yes
  8265. hardcode_shlibpath_var=no
  8266. ;;
  8267. newsos6)
  8268. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8269. hardcode_direct=yes
  8270. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8271. hardcode_libdir_separator=:
  8272. hardcode_shlibpath_var=no
  8273. ;;
  8274. *nto* | *qnx*)
  8275. ;;
  8276. openbsd*)
  8277. if test -f /usr/libexec/ld.so; then
  8278. hardcode_direct=yes
  8279. hardcode_shlibpath_var=no
  8280. hardcode_direct_absolute=yes
  8281. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8282. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8283. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8284. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8285. export_dynamic_flag_spec='${wl}-E'
  8286. else
  8287. case $host_os in
  8288. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8289. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8290. hardcode_libdir_flag_spec='-R$libdir'
  8291. ;;
  8292. *)
  8293. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8294. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8295. ;;
  8296. esac
  8297. fi
  8298. else
  8299. ld_shlibs=no
  8300. fi
  8301. ;;
  8302. os2*)
  8303. hardcode_libdir_flag_spec='-L$libdir'
  8304. hardcode_minus_L=yes
  8305. allow_undefined_flag=unsupported
  8306. 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'
  8307. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8308. ;;
  8309. osf3*)
  8310. if test "$GCC" = yes; then
  8311. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8312. 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'
  8313. else
  8314. allow_undefined_flag=' -expect_unresolved \*'
  8315. 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'
  8316. fi
  8317. archive_cmds_need_lc='no'
  8318. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8319. hardcode_libdir_separator=:
  8320. ;;
  8321. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8322. if test "$GCC" = yes; then
  8323. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8324. 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'
  8325. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8326. else
  8327. allow_undefined_flag=' -expect_unresolved \*'
  8328. 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'
  8329. 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~
  8330. $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'
  8331. # Both c and cxx compiler support -rpath directly
  8332. hardcode_libdir_flag_spec='-rpath $libdir'
  8333. fi
  8334. archive_cmds_need_lc='no'
  8335. hardcode_libdir_separator=:
  8336. ;;
  8337. solaris*)
  8338. no_undefined_flag=' -z defs'
  8339. if test "$GCC" = yes; then
  8340. wlarc='${wl}'
  8341. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8342. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8343. $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'
  8344. else
  8345. case `$CC -V 2>&1` in
  8346. *"Compilers 5.0"*)
  8347. wlarc=''
  8348. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8349. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8350. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8351. ;;
  8352. *)
  8353. wlarc='${wl}'
  8354. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8355. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8356. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8357. ;;
  8358. esac
  8359. fi
  8360. hardcode_libdir_flag_spec='-R$libdir'
  8361. hardcode_shlibpath_var=no
  8362. case $host_os in
  8363. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8364. *)
  8365. # The compiler driver will combine and reorder linker options,
  8366. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8367. # but is careful enough not to reorder.
  8368. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8369. if test "$GCC" = yes; then
  8370. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8371. else
  8372. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8373. fi
  8374. ;;
  8375. esac
  8376. link_all_deplibs=yes
  8377. ;;
  8378. sunos4*)
  8379. if test "x$host_vendor" = xsequent; then
  8380. # Use $CC to link under sequent, because it throws in some extra .o
  8381. # files that make .init and .fini sections work.
  8382. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8383. else
  8384. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8385. fi
  8386. hardcode_libdir_flag_spec='-L$libdir'
  8387. hardcode_direct=yes
  8388. hardcode_minus_L=yes
  8389. hardcode_shlibpath_var=no
  8390. ;;
  8391. sysv4)
  8392. case $host_vendor in
  8393. sni)
  8394. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8395. hardcode_direct=yes # is this really true???
  8396. ;;
  8397. siemens)
  8398. ## LD is ld it makes a PLAMLIB
  8399. ## CC just makes a GrossModule.
  8400. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8401. reload_cmds='$CC -r -o $output$reload_objs'
  8402. hardcode_direct=no
  8403. ;;
  8404. motorola)
  8405. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8406. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8407. ;;
  8408. esac
  8409. runpath_var='LD_RUN_PATH'
  8410. hardcode_shlibpath_var=no
  8411. ;;
  8412. sysv4.3*)
  8413. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8414. hardcode_shlibpath_var=no
  8415. export_dynamic_flag_spec='-Bexport'
  8416. ;;
  8417. sysv4*MP*)
  8418. if test -d /usr/nec; then
  8419. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8420. hardcode_shlibpath_var=no
  8421. runpath_var=LD_RUN_PATH
  8422. hardcode_runpath_var=yes
  8423. ld_shlibs=yes
  8424. fi
  8425. ;;
  8426. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8427. no_undefined_flag='${wl}-z,text'
  8428. archive_cmds_need_lc=no
  8429. hardcode_shlibpath_var=no
  8430. runpath_var='LD_RUN_PATH'
  8431. if test "$GCC" = yes; then
  8432. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8433. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8434. else
  8435. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8436. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8437. fi
  8438. ;;
  8439. sysv5* | sco3.2v5* | sco5v6*)
  8440. # Note: We can NOT use -z defs as we might desire, because we do not
  8441. # link with -lc, and that would cause any symbols used from libc to
  8442. # always be unresolved, which means just about no library would
  8443. # ever link correctly. If we're not using GNU ld we use -z text
  8444. # though, which does catch some bad symbols but isn't as heavy-handed
  8445. # as -z defs.
  8446. no_undefined_flag='${wl}-z,text'
  8447. allow_undefined_flag='${wl}-z,nodefs'
  8448. archive_cmds_need_lc=no
  8449. hardcode_shlibpath_var=no
  8450. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8451. hardcode_libdir_separator=':'
  8452. link_all_deplibs=yes
  8453. export_dynamic_flag_spec='${wl}-Bexport'
  8454. runpath_var='LD_RUN_PATH'
  8455. if test "$GCC" = yes; then
  8456. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8457. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8458. else
  8459. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8460. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8461. fi
  8462. ;;
  8463. uts4*)
  8464. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8465. hardcode_libdir_flag_spec='-L$libdir'
  8466. hardcode_shlibpath_var=no
  8467. ;;
  8468. *)
  8469. ld_shlibs=no
  8470. ;;
  8471. esac
  8472. if test x$host_vendor = xsni; then
  8473. case $host in
  8474. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8475. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8476. ;;
  8477. esac
  8478. fi
  8479. fi
  8480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8481. $as_echo "$ld_shlibs" >&6; }
  8482. test "$ld_shlibs" = no && can_build_shared=no
  8483. with_gnu_ld=$with_gnu_ld
  8484. #
  8485. # Do we need to explicitly link libc?
  8486. #
  8487. case "x$archive_cmds_need_lc" in
  8488. x|xyes)
  8489. # Assume -lc should be added
  8490. archive_cmds_need_lc=yes
  8491. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8492. case $archive_cmds in
  8493. *'~'*)
  8494. # FIXME: we may have to deal with multi-command sequences.
  8495. ;;
  8496. '$CC '*)
  8497. # Test whether the compiler implicitly links with -lc since on some
  8498. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8499. # to ld, don't add -lc before -lgcc.
  8500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8501. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8502. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8503. $as_echo_n "(cached) " >&6
  8504. else
  8505. $RM conftest*
  8506. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8507. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8508. (eval $ac_compile) 2>&5
  8509. ac_status=$?
  8510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8511. test $ac_status = 0; } 2>conftest.err; then
  8512. soname=conftest
  8513. lib=conftest
  8514. libobjs=conftest.$ac_objext
  8515. deplibs=
  8516. wl=$lt_prog_compiler_wl
  8517. pic_flag=$lt_prog_compiler_pic
  8518. compiler_flags=-v
  8519. linker_flags=-v
  8520. verstring=
  8521. output_objdir=.
  8522. libname=conftest
  8523. lt_save_allow_undefined_flag=$allow_undefined_flag
  8524. allow_undefined_flag=
  8525. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8526. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8527. ac_status=$?
  8528. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8529. test $ac_status = 0; }
  8530. then
  8531. lt_cv_archive_cmds_need_lc=no
  8532. else
  8533. lt_cv_archive_cmds_need_lc=yes
  8534. fi
  8535. allow_undefined_flag=$lt_save_allow_undefined_flag
  8536. else
  8537. cat conftest.err 1>&5
  8538. fi
  8539. $RM conftest*
  8540. fi
  8541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8542. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8543. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8544. ;;
  8545. esac
  8546. fi
  8547. ;;
  8548. esac
  8549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8550. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8551. if test "$GCC" = yes; then
  8552. case $host_os in
  8553. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8554. *) lt_awk_arg="/^libraries:/" ;;
  8555. esac
  8556. case $host_os in
  8557. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8558. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8559. esac
  8560. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8561. case $lt_search_path_spec in
  8562. *\;*)
  8563. # if the path contains ";" then we assume it to be the separator
  8564. # otherwise default to the standard path separator (i.e. ":") - it is
  8565. # assumed that no part of a normal pathname contains ";" but that should
  8566. # okay in the real world where ";" in dirpaths is itself problematic.
  8567. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8568. ;;
  8569. *)
  8570. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8571. ;;
  8572. esac
  8573. # Ok, now we have the path, separated by spaces, we can step through it
  8574. # and add multilib dir if necessary...
  8575. lt_tmp_lt_search_path_spec=
  8576. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8577. # ...but if some path already ends with the multilib dir we assume
  8578. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8579. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8580. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8581. lt_multi_os_dir=
  8582. ;;
  8583. esac
  8584. for lt_sys_path in $lt_search_path_spec; do
  8585. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8586. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8587. elif test -n "$lt_multi_os_dir"; then
  8588. test -d "$lt_sys_path" && \
  8589. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8590. fi
  8591. done
  8592. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8593. BEGIN {RS=" "; FS="/|\n";} {
  8594. lt_foo="";
  8595. lt_count=0;
  8596. for (lt_i = NF; lt_i > 0; lt_i--) {
  8597. if ($lt_i != "" && $lt_i != ".") {
  8598. if ($lt_i == "..") {
  8599. lt_count++;
  8600. } else {
  8601. if (lt_count == 0) {
  8602. lt_foo="/" $lt_i lt_foo;
  8603. } else {
  8604. lt_count--;
  8605. }
  8606. }
  8607. }
  8608. }
  8609. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8610. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8611. }'`
  8612. # AWK program above erroneously prepends '/' to C:/dos/paths
  8613. # for these hosts.
  8614. case $host_os in
  8615. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8616. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8617. esac
  8618. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8619. else
  8620. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8621. fi
  8622. library_names_spec=
  8623. libname_spec='lib$name'
  8624. soname_spec=
  8625. shrext_cmds=".so"
  8626. postinstall_cmds=
  8627. postuninstall_cmds=
  8628. finish_cmds=
  8629. finish_eval=
  8630. shlibpath_var=
  8631. shlibpath_overrides_runpath=unknown
  8632. version_type=none
  8633. dynamic_linker="$host_os ld.so"
  8634. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8635. need_lib_prefix=unknown
  8636. hardcode_into_libs=no
  8637. # when you set need_version to no, make sure it does not cause -set_version
  8638. # flags to be left without arguments
  8639. need_version=unknown
  8640. case $host_os in
  8641. aix3*)
  8642. version_type=linux # correct to gnu/linux during the next big refactor
  8643. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8644. shlibpath_var=LIBPATH
  8645. # AIX 3 has no versioning support, so we append a major version to the name.
  8646. soname_spec='${libname}${release}${shared_ext}$major'
  8647. ;;
  8648. aix[4-9]*)
  8649. version_type=linux # correct to gnu/linux during the next big refactor
  8650. need_lib_prefix=no
  8651. need_version=no
  8652. hardcode_into_libs=yes
  8653. if test "$host_cpu" = ia64; then
  8654. # AIX 5 supports IA64
  8655. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8656. shlibpath_var=LD_LIBRARY_PATH
  8657. else
  8658. # With GCC up to 2.95.x, collect2 would create an import file
  8659. # for dependence libraries. The import file would start with
  8660. # the line `#! .'. This would cause the generated library to
  8661. # depend on `.', always an invalid library. This was fixed in
  8662. # development snapshots of GCC prior to 3.0.
  8663. case $host_os in
  8664. aix4 | aix4.[01] | aix4.[01].*)
  8665. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8666. echo ' yes '
  8667. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8668. :
  8669. else
  8670. can_build_shared=no
  8671. fi
  8672. ;;
  8673. esac
  8674. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8675. # soname into executable. Probably we can add versioning support to
  8676. # collect2, so additional links can be useful in future.
  8677. if test "$aix_use_runtimelinking" = yes; then
  8678. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8679. # instead of lib<name>.a to let people know that these are not
  8680. # typical AIX shared libraries.
  8681. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8682. else
  8683. # We preserve .a as extension for shared libraries through AIX4.2
  8684. # and later when we are not doing run time linking.
  8685. library_names_spec='${libname}${release}.a $libname.a'
  8686. soname_spec='${libname}${release}${shared_ext}$major'
  8687. fi
  8688. shlibpath_var=LIBPATH
  8689. fi
  8690. ;;
  8691. amigaos*)
  8692. case $host_cpu in
  8693. powerpc)
  8694. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8695. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8696. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8697. ;;
  8698. m68k)
  8699. library_names_spec='$libname.ixlibrary $libname.a'
  8700. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8701. 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'
  8702. ;;
  8703. esac
  8704. ;;
  8705. beos*)
  8706. library_names_spec='${libname}${shared_ext}'
  8707. dynamic_linker="$host_os ld.so"
  8708. shlibpath_var=LIBRARY_PATH
  8709. ;;
  8710. bsdi[45]*)
  8711. version_type=linux # correct to gnu/linux during the next big refactor
  8712. need_version=no
  8713. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8714. soname_spec='${libname}${release}${shared_ext}$major'
  8715. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8716. shlibpath_var=LD_LIBRARY_PATH
  8717. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8718. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8719. # the default ld.so.conf also contains /usr/contrib/lib and
  8720. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8721. # libtool to hard-code these into programs
  8722. ;;
  8723. cygwin* | mingw* | pw32* | cegcc*)
  8724. version_type=windows
  8725. shrext_cmds=".dll"
  8726. need_version=no
  8727. need_lib_prefix=no
  8728. case $GCC,$cc_basename in
  8729. yes,*)
  8730. # gcc
  8731. library_names_spec='$libname.dll.a'
  8732. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8733. postinstall_cmds='base_file=`basename \${file}`~
  8734. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8735. dldir=$destdir/`dirname \$dlpath`~
  8736. test -d \$dldir || mkdir -p \$dldir~
  8737. $install_prog $dir/$dlname \$dldir/$dlname~
  8738. chmod a+x \$dldir/$dlname~
  8739. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8740. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8741. fi'
  8742. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8743. dlpath=$dir/\$dldll~
  8744. $RM \$dlpath'
  8745. shlibpath_overrides_runpath=yes
  8746. case $host_os in
  8747. cygwin*)
  8748. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8749. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8750. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8751. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8752. ;;
  8753. mingw* | cegcc*)
  8754. # MinGW DLLs use traditional 'lib' prefix
  8755. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8756. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8757. ;;
  8758. pw32*)
  8759. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8760. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8761. ;;
  8762. esac
  8763. dynamic_linker='Win32 ld.exe'
  8764. ;;
  8765. *,cl*)
  8766. # Native MSVC
  8767. libname_spec='$name'
  8768. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8769. library_names_spec='${libname}.dll.lib'
  8770. case $build_os in
  8771. mingw*)
  8772. sys_lib_search_path_spec=
  8773. lt_save_ifs=$IFS
  8774. IFS=';'
  8775. for lt_path in $LIB
  8776. do
  8777. IFS=$lt_save_ifs
  8778. # Let DOS variable expansion print the short 8.3 style file name.
  8779. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8780. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8781. done
  8782. IFS=$lt_save_ifs
  8783. # Convert to MSYS style.
  8784. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8785. ;;
  8786. cygwin*)
  8787. # Convert to unix form, then to dos form, then back to unix form
  8788. # but this time dos style (no spaces!) so that the unix form looks
  8789. # like /cygdrive/c/PROGRA~1:/cygdr...
  8790. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8791. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8792. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8793. ;;
  8794. *)
  8795. sys_lib_search_path_spec="$LIB"
  8796. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8797. # It is most probably a Windows format PATH.
  8798. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8799. else
  8800. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8801. fi
  8802. # FIXME: find the short name or the path components, as spaces are
  8803. # common. (e.g. "Program Files" -> "PROGRA~1")
  8804. ;;
  8805. esac
  8806. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8807. postinstall_cmds='base_file=`basename \${file}`~
  8808. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8809. dldir=$destdir/`dirname \$dlpath`~
  8810. test -d \$dldir || mkdir -p \$dldir~
  8811. $install_prog $dir/$dlname \$dldir/$dlname'
  8812. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8813. dlpath=$dir/\$dldll~
  8814. $RM \$dlpath'
  8815. shlibpath_overrides_runpath=yes
  8816. dynamic_linker='Win32 link.exe'
  8817. ;;
  8818. *)
  8819. # Assume MSVC wrapper
  8820. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8821. dynamic_linker='Win32 ld.exe'
  8822. ;;
  8823. esac
  8824. # FIXME: first we should search . and the directory the executable is in
  8825. shlibpath_var=PATH
  8826. ;;
  8827. darwin* | rhapsody*)
  8828. dynamic_linker="$host_os dyld"
  8829. version_type=darwin
  8830. need_lib_prefix=no
  8831. need_version=no
  8832. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8833. soname_spec='${libname}${release}${major}$shared_ext'
  8834. shlibpath_overrides_runpath=yes
  8835. shlibpath_var=DYLD_LIBRARY_PATH
  8836. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8837. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8838. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8839. ;;
  8840. dgux*)
  8841. version_type=linux # correct to gnu/linux during the next big refactor
  8842. need_lib_prefix=no
  8843. need_version=no
  8844. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8845. soname_spec='${libname}${release}${shared_ext}$major'
  8846. shlibpath_var=LD_LIBRARY_PATH
  8847. ;;
  8848. freebsd* | dragonfly*)
  8849. # DragonFly does not have aout. When/if they implement a new
  8850. # versioning mechanism, adjust this.
  8851. if test -x /usr/bin/objformat; then
  8852. objformat=`/usr/bin/objformat`
  8853. else
  8854. case $host_os in
  8855. freebsd[23].*) objformat=aout ;;
  8856. *) objformat=elf ;;
  8857. esac
  8858. fi
  8859. version_type=freebsd-$objformat
  8860. case $version_type in
  8861. freebsd-elf*)
  8862. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8863. need_version=no
  8864. need_lib_prefix=no
  8865. ;;
  8866. freebsd-*)
  8867. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8868. need_version=yes
  8869. ;;
  8870. esac
  8871. shlibpath_var=LD_LIBRARY_PATH
  8872. case $host_os in
  8873. freebsd2.*)
  8874. shlibpath_overrides_runpath=yes
  8875. ;;
  8876. freebsd3.[01]* | freebsdelf3.[01]*)
  8877. shlibpath_overrides_runpath=yes
  8878. hardcode_into_libs=yes
  8879. ;;
  8880. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8881. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8882. shlibpath_overrides_runpath=no
  8883. hardcode_into_libs=yes
  8884. ;;
  8885. *) # from 4.6 on, and DragonFly
  8886. shlibpath_overrides_runpath=yes
  8887. hardcode_into_libs=yes
  8888. ;;
  8889. esac
  8890. ;;
  8891. gnu*)
  8892. version_type=linux # correct to gnu/linux during the next big refactor
  8893. need_lib_prefix=no
  8894. need_version=no
  8895. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8896. soname_spec='${libname}${release}${shared_ext}$major'
  8897. shlibpath_var=LD_LIBRARY_PATH
  8898. shlibpath_overrides_runpath=no
  8899. hardcode_into_libs=yes
  8900. ;;
  8901. haiku*)
  8902. version_type=linux # correct to gnu/linux during the next big refactor
  8903. need_lib_prefix=no
  8904. need_version=no
  8905. dynamic_linker="$host_os runtime_loader"
  8906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8907. soname_spec='${libname}${release}${shared_ext}$major'
  8908. shlibpath_var=LIBRARY_PATH
  8909. shlibpath_overrides_runpath=yes
  8910. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8911. hardcode_into_libs=yes
  8912. ;;
  8913. hpux9* | hpux10* | hpux11*)
  8914. # Give a soname corresponding to the major version so that dld.sl refuses to
  8915. # link against other versions.
  8916. version_type=sunos
  8917. need_lib_prefix=no
  8918. need_version=no
  8919. case $host_cpu in
  8920. ia64*)
  8921. shrext_cmds='.so'
  8922. hardcode_into_libs=yes
  8923. dynamic_linker="$host_os dld.so"
  8924. shlibpath_var=LD_LIBRARY_PATH
  8925. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8926. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8927. soname_spec='${libname}${release}${shared_ext}$major'
  8928. if test "X$HPUX_IA64_MODE" = X32; then
  8929. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8930. else
  8931. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8932. fi
  8933. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8934. ;;
  8935. hppa*64*)
  8936. shrext_cmds='.sl'
  8937. hardcode_into_libs=yes
  8938. dynamic_linker="$host_os dld.sl"
  8939. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8940. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8942. soname_spec='${libname}${release}${shared_ext}$major'
  8943. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8944. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8945. ;;
  8946. *)
  8947. shrext_cmds='.sl'
  8948. dynamic_linker="$host_os dld.sl"
  8949. shlibpath_var=SHLIB_PATH
  8950. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8951. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8952. soname_spec='${libname}${release}${shared_ext}$major'
  8953. ;;
  8954. esac
  8955. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8956. postinstall_cmds='chmod 555 $lib'
  8957. # or fails outright, so override atomically:
  8958. install_override_mode=555
  8959. ;;
  8960. interix[3-9]*)
  8961. version_type=linux # correct to gnu/linux during the next big refactor
  8962. need_lib_prefix=no
  8963. need_version=no
  8964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8965. soname_spec='${libname}${release}${shared_ext}$major'
  8966. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8967. shlibpath_var=LD_LIBRARY_PATH
  8968. shlibpath_overrides_runpath=no
  8969. hardcode_into_libs=yes
  8970. ;;
  8971. irix5* | irix6* | nonstopux*)
  8972. case $host_os in
  8973. nonstopux*) version_type=nonstopux ;;
  8974. *)
  8975. if test "$lt_cv_prog_gnu_ld" = yes; then
  8976. version_type=linux # correct to gnu/linux during the next big refactor
  8977. else
  8978. version_type=irix
  8979. fi ;;
  8980. esac
  8981. need_lib_prefix=no
  8982. need_version=no
  8983. soname_spec='${libname}${release}${shared_ext}$major'
  8984. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8985. case $host_os in
  8986. irix5* | nonstopux*)
  8987. libsuff= shlibsuff=
  8988. ;;
  8989. *)
  8990. case $LD in # libtool.m4 will add one of these switches to LD
  8991. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8992. libsuff= shlibsuff= libmagic=32-bit;;
  8993. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8994. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8995. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8996. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8997. *) libsuff= shlibsuff= libmagic=never-match;;
  8998. esac
  8999. ;;
  9000. esac
  9001. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9002. shlibpath_overrides_runpath=no
  9003. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9004. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9005. hardcode_into_libs=yes
  9006. ;;
  9007. # No shared lib support for Linux oldld, aout, or coff.
  9008. linux*oldld* | linux*aout* | linux*coff*)
  9009. dynamic_linker=no
  9010. ;;
  9011. # This must be glibc/ELF.
  9012. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9013. version_type=linux # correct to gnu/linux during the next big refactor
  9014. need_lib_prefix=no
  9015. need_version=no
  9016. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9017. soname_spec='${libname}${release}${shared_ext}$major'
  9018. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9019. shlibpath_var=LD_LIBRARY_PATH
  9020. shlibpath_overrides_runpath=no
  9021. # Some binutils ld are patched to set DT_RUNPATH
  9022. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9023. $as_echo_n "(cached) " >&6
  9024. else
  9025. lt_cv_shlibpath_overrides_runpath=no
  9026. save_LDFLAGS=$LDFLAGS
  9027. save_libdir=$libdir
  9028. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9029. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9031. /* end confdefs.h. */
  9032. int
  9033. main ()
  9034. {
  9035. ;
  9036. return 0;
  9037. }
  9038. _ACEOF
  9039. if ac_fn_c_try_link "$LINENO"; then :
  9040. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9041. lt_cv_shlibpath_overrides_runpath=yes
  9042. fi
  9043. fi
  9044. rm -f core conftest.err conftest.$ac_objext \
  9045. conftest$ac_exeext conftest.$ac_ext
  9046. LDFLAGS=$save_LDFLAGS
  9047. libdir=$save_libdir
  9048. fi
  9049. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9050. # This implies no fast_install, which is unacceptable.
  9051. # Some rework will be needed to allow for fast_install
  9052. # before this can be enabled.
  9053. hardcode_into_libs=yes
  9054. # Append ld.so.conf contents to the search path
  9055. if test -f /etc/ld.so.conf; then
  9056. 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' ' '`
  9057. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9058. fi
  9059. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9060. # powerpc, because MkLinux only supported shared libraries with the
  9061. # GNU dynamic linker. Since this was broken with cross compilers,
  9062. # most powerpc-linux boxes support dynamic linking these days and
  9063. # people can always --disable-shared, the test was removed, and we
  9064. # assume the GNU/Linux dynamic linker is in use.
  9065. dynamic_linker='GNU/Linux ld.so'
  9066. ;;
  9067. netbsd*)
  9068. version_type=sunos
  9069. need_lib_prefix=no
  9070. need_version=no
  9071. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9073. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9074. dynamic_linker='NetBSD (a.out) ld.so'
  9075. else
  9076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9077. soname_spec='${libname}${release}${shared_ext}$major'
  9078. dynamic_linker='NetBSD ld.elf_so'
  9079. fi
  9080. shlibpath_var=LD_LIBRARY_PATH
  9081. shlibpath_overrides_runpath=yes
  9082. hardcode_into_libs=yes
  9083. ;;
  9084. newsos6)
  9085. version_type=linux # correct to gnu/linux during the next big refactor
  9086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9087. shlibpath_var=LD_LIBRARY_PATH
  9088. shlibpath_overrides_runpath=yes
  9089. ;;
  9090. *nto* | *qnx*)
  9091. version_type=qnx
  9092. need_lib_prefix=no
  9093. need_version=no
  9094. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9095. soname_spec='${libname}${release}${shared_ext}$major'
  9096. shlibpath_var=LD_LIBRARY_PATH
  9097. shlibpath_overrides_runpath=no
  9098. hardcode_into_libs=yes
  9099. dynamic_linker='ldqnx.so'
  9100. ;;
  9101. openbsd*)
  9102. version_type=sunos
  9103. sys_lib_dlsearch_path_spec="/usr/lib"
  9104. need_lib_prefix=no
  9105. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9106. case $host_os in
  9107. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9108. *) need_version=no ;;
  9109. esac
  9110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9111. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9112. shlibpath_var=LD_LIBRARY_PATH
  9113. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9114. case $host_os in
  9115. openbsd2.[89] | openbsd2.[89].*)
  9116. shlibpath_overrides_runpath=no
  9117. ;;
  9118. *)
  9119. shlibpath_overrides_runpath=yes
  9120. ;;
  9121. esac
  9122. else
  9123. shlibpath_overrides_runpath=yes
  9124. fi
  9125. ;;
  9126. os2*)
  9127. libname_spec='$name'
  9128. shrext_cmds=".dll"
  9129. need_lib_prefix=no
  9130. library_names_spec='$libname${shared_ext} $libname.a'
  9131. dynamic_linker='OS/2 ld.exe'
  9132. shlibpath_var=LIBPATH
  9133. ;;
  9134. osf3* | osf4* | osf5*)
  9135. version_type=osf
  9136. need_lib_prefix=no
  9137. need_version=no
  9138. soname_spec='${libname}${release}${shared_ext}$major'
  9139. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9140. shlibpath_var=LD_LIBRARY_PATH
  9141. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9142. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9143. ;;
  9144. rdos*)
  9145. dynamic_linker=no
  9146. ;;
  9147. solaris*)
  9148. version_type=linux # correct to gnu/linux during the next big refactor
  9149. need_lib_prefix=no
  9150. need_version=no
  9151. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9152. soname_spec='${libname}${release}${shared_ext}$major'
  9153. shlibpath_var=LD_LIBRARY_PATH
  9154. shlibpath_overrides_runpath=yes
  9155. hardcode_into_libs=yes
  9156. # ldd complains unless libraries are executable
  9157. postinstall_cmds='chmod +x $lib'
  9158. ;;
  9159. sunos4*)
  9160. version_type=sunos
  9161. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9162. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9163. shlibpath_var=LD_LIBRARY_PATH
  9164. shlibpath_overrides_runpath=yes
  9165. if test "$with_gnu_ld" = yes; then
  9166. need_lib_prefix=no
  9167. fi
  9168. need_version=yes
  9169. ;;
  9170. sysv4 | sysv4.3*)
  9171. version_type=linux # correct to gnu/linux during the next big refactor
  9172. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9173. soname_spec='${libname}${release}${shared_ext}$major'
  9174. shlibpath_var=LD_LIBRARY_PATH
  9175. case $host_vendor in
  9176. sni)
  9177. shlibpath_overrides_runpath=no
  9178. need_lib_prefix=no
  9179. runpath_var=LD_RUN_PATH
  9180. ;;
  9181. siemens)
  9182. need_lib_prefix=no
  9183. ;;
  9184. motorola)
  9185. need_lib_prefix=no
  9186. need_version=no
  9187. shlibpath_overrides_runpath=no
  9188. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9189. ;;
  9190. esac
  9191. ;;
  9192. sysv4*MP*)
  9193. if test -d /usr/nec ;then
  9194. version_type=linux # correct to gnu/linux during the next big refactor
  9195. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9196. soname_spec='$libname${shared_ext}.$major'
  9197. shlibpath_var=LD_LIBRARY_PATH
  9198. fi
  9199. ;;
  9200. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9201. version_type=freebsd-elf
  9202. need_lib_prefix=no
  9203. need_version=no
  9204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9205. soname_spec='${libname}${release}${shared_ext}$major'
  9206. shlibpath_var=LD_LIBRARY_PATH
  9207. shlibpath_overrides_runpath=yes
  9208. hardcode_into_libs=yes
  9209. if test "$with_gnu_ld" = yes; then
  9210. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9211. else
  9212. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9213. case $host_os in
  9214. sco3.2v5*)
  9215. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9216. ;;
  9217. esac
  9218. fi
  9219. sys_lib_dlsearch_path_spec='/usr/lib'
  9220. ;;
  9221. tpf*)
  9222. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9223. version_type=linux # correct to gnu/linux during the next big refactor
  9224. need_lib_prefix=no
  9225. need_version=no
  9226. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9227. shlibpath_var=LD_LIBRARY_PATH
  9228. shlibpath_overrides_runpath=no
  9229. hardcode_into_libs=yes
  9230. ;;
  9231. uts4*)
  9232. version_type=linux # correct to gnu/linux during the next big refactor
  9233. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9234. soname_spec='${libname}${release}${shared_ext}$major'
  9235. shlibpath_var=LD_LIBRARY_PATH
  9236. ;;
  9237. *)
  9238. dynamic_linker=no
  9239. ;;
  9240. esac
  9241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9242. $as_echo "$dynamic_linker" >&6; }
  9243. test "$dynamic_linker" = no && can_build_shared=no
  9244. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9245. if test "$GCC" = yes; then
  9246. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9247. fi
  9248. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9249. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9250. fi
  9251. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9252. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9253. fi
  9254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9255. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9256. hardcode_action=
  9257. if test -n "$hardcode_libdir_flag_spec" ||
  9258. test -n "$runpath_var" ||
  9259. test "X$hardcode_automatic" = "Xyes" ; then
  9260. # We can hardcode non-existent directories.
  9261. if test "$hardcode_direct" != no &&
  9262. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9263. # have to relink, otherwise we might link with an installed library
  9264. # when we should be linking with a yet-to-be-installed one
  9265. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9266. test "$hardcode_minus_L" != no; then
  9267. # Linking always hardcodes the temporary library directory.
  9268. hardcode_action=relink
  9269. else
  9270. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9271. hardcode_action=immediate
  9272. fi
  9273. else
  9274. # We cannot hardcode anything, or else we can only hardcode existing
  9275. # directories.
  9276. hardcode_action=unsupported
  9277. fi
  9278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9279. $as_echo "$hardcode_action" >&6; }
  9280. if test "$hardcode_action" = relink ||
  9281. test "$inherit_rpath" = yes; then
  9282. # Fast installation is not supported
  9283. enable_fast_install=no
  9284. elif test "$shlibpath_overrides_runpath" = yes ||
  9285. test "$enable_shared" = no; then
  9286. # Fast installation is not necessary
  9287. enable_fast_install=needless
  9288. fi
  9289. if test "x$enable_dlopen" != xyes; then
  9290. enable_dlopen=unknown
  9291. enable_dlopen_self=unknown
  9292. enable_dlopen_self_static=unknown
  9293. else
  9294. lt_cv_dlopen=no
  9295. lt_cv_dlopen_libs=
  9296. case $host_os in
  9297. beos*)
  9298. lt_cv_dlopen="load_add_on"
  9299. lt_cv_dlopen_libs=
  9300. lt_cv_dlopen_self=yes
  9301. ;;
  9302. mingw* | pw32* | cegcc*)
  9303. lt_cv_dlopen="LoadLibrary"
  9304. lt_cv_dlopen_libs=
  9305. ;;
  9306. cygwin*)
  9307. lt_cv_dlopen="dlopen"
  9308. lt_cv_dlopen_libs=
  9309. ;;
  9310. darwin*)
  9311. # if libdl is installed we need to link against it
  9312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9313. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9314. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9315. $as_echo_n "(cached) " >&6
  9316. else
  9317. ac_check_lib_save_LIBS=$LIBS
  9318. LIBS="-ldl $LIBS"
  9319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9320. /* end confdefs.h. */
  9321. /* Override any GCC internal prototype to avoid an error.
  9322. Use char because int might match the return type of a GCC
  9323. builtin and then its argument prototype would still apply. */
  9324. #ifdef __cplusplus
  9325. extern "C"
  9326. #endif
  9327. char dlopen ();
  9328. int
  9329. main ()
  9330. {
  9331. return dlopen ();
  9332. ;
  9333. return 0;
  9334. }
  9335. _ACEOF
  9336. if ac_fn_c_try_link "$LINENO"; then :
  9337. ac_cv_lib_dl_dlopen=yes
  9338. else
  9339. ac_cv_lib_dl_dlopen=no
  9340. fi
  9341. rm -f core conftest.err conftest.$ac_objext \
  9342. conftest$ac_exeext conftest.$ac_ext
  9343. LIBS=$ac_check_lib_save_LIBS
  9344. fi
  9345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9346. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9347. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9348. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9349. else
  9350. lt_cv_dlopen="dyld"
  9351. lt_cv_dlopen_libs=
  9352. lt_cv_dlopen_self=yes
  9353. fi
  9354. ;;
  9355. *)
  9356. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9357. if test "x$ac_cv_func_shl_load" = xyes; then :
  9358. lt_cv_dlopen="shl_load"
  9359. else
  9360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9361. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9362. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9363. $as_echo_n "(cached) " >&6
  9364. else
  9365. ac_check_lib_save_LIBS=$LIBS
  9366. LIBS="-ldld $LIBS"
  9367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9368. /* end confdefs.h. */
  9369. /* Override any GCC internal prototype to avoid an error.
  9370. Use char because int might match the return type of a GCC
  9371. builtin and then its argument prototype would still apply. */
  9372. #ifdef __cplusplus
  9373. extern "C"
  9374. #endif
  9375. char shl_load ();
  9376. int
  9377. main ()
  9378. {
  9379. return shl_load ();
  9380. ;
  9381. return 0;
  9382. }
  9383. _ACEOF
  9384. if ac_fn_c_try_link "$LINENO"; then :
  9385. ac_cv_lib_dld_shl_load=yes
  9386. else
  9387. ac_cv_lib_dld_shl_load=no
  9388. fi
  9389. rm -f core conftest.err conftest.$ac_objext \
  9390. conftest$ac_exeext conftest.$ac_ext
  9391. LIBS=$ac_check_lib_save_LIBS
  9392. fi
  9393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9394. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9395. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9396. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9397. else
  9398. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9399. if test "x$ac_cv_func_dlopen" = xyes; then :
  9400. lt_cv_dlopen="dlopen"
  9401. else
  9402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9403. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9404. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9405. $as_echo_n "(cached) " >&6
  9406. else
  9407. ac_check_lib_save_LIBS=$LIBS
  9408. LIBS="-ldl $LIBS"
  9409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9410. /* end confdefs.h. */
  9411. /* Override any GCC internal prototype to avoid an error.
  9412. Use char because int might match the return type of a GCC
  9413. builtin and then its argument prototype would still apply. */
  9414. #ifdef __cplusplus
  9415. extern "C"
  9416. #endif
  9417. char dlopen ();
  9418. int
  9419. main ()
  9420. {
  9421. return dlopen ();
  9422. ;
  9423. return 0;
  9424. }
  9425. _ACEOF
  9426. if ac_fn_c_try_link "$LINENO"; then :
  9427. ac_cv_lib_dl_dlopen=yes
  9428. else
  9429. ac_cv_lib_dl_dlopen=no
  9430. fi
  9431. rm -f core conftest.err conftest.$ac_objext \
  9432. conftest$ac_exeext conftest.$ac_ext
  9433. LIBS=$ac_check_lib_save_LIBS
  9434. fi
  9435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9436. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9437. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9438. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9439. else
  9440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9441. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9442. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9443. $as_echo_n "(cached) " >&6
  9444. else
  9445. ac_check_lib_save_LIBS=$LIBS
  9446. LIBS="-lsvld $LIBS"
  9447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9448. /* end confdefs.h. */
  9449. /* Override any GCC internal prototype to avoid an error.
  9450. Use char because int might match the return type of a GCC
  9451. builtin and then its argument prototype would still apply. */
  9452. #ifdef __cplusplus
  9453. extern "C"
  9454. #endif
  9455. char dlopen ();
  9456. int
  9457. main ()
  9458. {
  9459. return dlopen ();
  9460. ;
  9461. return 0;
  9462. }
  9463. _ACEOF
  9464. if ac_fn_c_try_link "$LINENO"; then :
  9465. ac_cv_lib_svld_dlopen=yes
  9466. else
  9467. ac_cv_lib_svld_dlopen=no
  9468. fi
  9469. rm -f core conftest.err conftest.$ac_objext \
  9470. conftest$ac_exeext conftest.$ac_ext
  9471. LIBS=$ac_check_lib_save_LIBS
  9472. fi
  9473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9474. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9475. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9476. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9477. else
  9478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9479. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9480. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9481. $as_echo_n "(cached) " >&6
  9482. else
  9483. ac_check_lib_save_LIBS=$LIBS
  9484. LIBS="-ldld $LIBS"
  9485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9486. /* end confdefs.h. */
  9487. /* Override any GCC internal prototype to avoid an error.
  9488. Use char because int might match the return type of a GCC
  9489. builtin and then its argument prototype would still apply. */
  9490. #ifdef __cplusplus
  9491. extern "C"
  9492. #endif
  9493. char dld_link ();
  9494. int
  9495. main ()
  9496. {
  9497. return dld_link ();
  9498. ;
  9499. return 0;
  9500. }
  9501. _ACEOF
  9502. if ac_fn_c_try_link "$LINENO"; then :
  9503. ac_cv_lib_dld_dld_link=yes
  9504. else
  9505. ac_cv_lib_dld_dld_link=no
  9506. fi
  9507. rm -f core conftest.err conftest.$ac_objext \
  9508. conftest$ac_exeext conftest.$ac_ext
  9509. LIBS=$ac_check_lib_save_LIBS
  9510. fi
  9511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9512. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9513. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9514. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9515. fi
  9516. fi
  9517. fi
  9518. fi
  9519. fi
  9520. fi
  9521. ;;
  9522. esac
  9523. if test "x$lt_cv_dlopen" != xno; then
  9524. enable_dlopen=yes
  9525. else
  9526. enable_dlopen=no
  9527. fi
  9528. case $lt_cv_dlopen in
  9529. dlopen)
  9530. save_CPPFLAGS="$CPPFLAGS"
  9531. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9532. save_LDFLAGS="$LDFLAGS"
  9533. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9534. save_LIBS="$LIBS"
  9535. LIBS="$lt_cv_dlopen_libs $LIBS"
  9536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9537. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9538. if ${lt_cv_dlopen_self+:} false; then :
  9539. $as_echo_n "(cached) " >&6
  9540. else
  9541. if test "$cross_compiling" = yes; then :
  9542. lt_cv_dlopen_self=cross
  9543. else
  9544. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9545. lt_status=$lt_dlunknown
  9546. cat > conftest.$ac_ext <<_LT_EOF
  9547. #line $LINENO "configure"
  9548. #include "confdefs.h"
  9549. #if HAVE_DLFCN_H
  9550. #include <dlfcn.h>
  9551. #endif
  9552. #include <stdio.h>
  9553. #ifdef RTLD_GLOBAL
  9554. # define LT_DLGLOBAL RTLD_GLOBAL
  9555. #else
  9556. # ifdef DL_GLOBAL
  9557. # define LT_DLGLOBAL DL_GLOBAL
  9558. # else
  9559. # define LT_DLGLOBAL 0
  9560. # endif
  9561. #endif
  9562. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9563. find out it does not work in some platform. */
  9564. #ifndef LT_DLLAZY_OR_NOW
  9565. # ifdef RTLD_LAZY
  9566. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9567. # else
  9568. # ifdef DL_LAZY
  9569. # define LT_DLLAZY_OR_NOW DL_LAZY
  9570. # else
  9571. # ifdef RTLD_NOW
  9572. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9573. # else
  9574. # ifdef DL_NOW
  9575. # define LT_DLLAZY_OR_NOW DL_NOW
  9576. # else
  9577. # define LT_DLLAZY_OR_NOW 0
  9578. # endif
  9579. # endif
  9580. # endif
  9581. # endif
  9582. #endif
  9583. /* When -fvisbility=hidden is used, assume the code has been annotated
  9584. correspondingly for the symbols needed. */
  9585. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9586. int fnord () __attribute__((visibility("default")));
  9587. #endif
  9588. int fnord () { return 42; }
  9589. int main ()
  9590. {
  9591. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9592. int status = $lt_dlunknown;
  9593. if (self)
  9594. {
  9595. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9596. else
  9597. {
  9598. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9599. else puts (dlerror ());
  9600. }
  9601. /* dlclose (self); */
  9602. }
  9603. else
  9604. puts (dlerror ());
  9605. return status;
  9606. }
  9607. _LT_EOF
  9608. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9609. (eval $ac_link) 2>&5
  9610. ac_status=$?
  9611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9612. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9613. (./conftest; exit; ) >&5 2>/dev/null
  9614. lt_status=$?
  9615. case x$lt_status in
  9616. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9617. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9618. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9619. esac
  9620. else :
  9621. # compilation failed
  9622. lt_cv_dlopen_self=no
  9623. fi
  9624. fi
  9625. rm -fr conftest*
  9626. fi
  9627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9628. $as_echo "$lt_cv_dlopen_self" >&6; }
  9629. if test "x$lt_cv_dlopen_self" = xyes; then
  9630. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9632. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9633. if ${lt_cv_dlopen_self_static+:} false; then :
  9634. $as_echo_n "(cached) " >&6
  9635. else
  9636. if test "$cross_compiling" = yes; then :
  9637. lt_cv_dlopen_self_static=cross
  9638. else
  9639. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9640. lt_status=$lt_dlunknown
  9641. cat > conftest.$ac_ext <<_LT_EOF
  9642. #line $LINENO "configure"
  9643. #include "confdefs.h"
  9644. #if HAVE_DLFCN_H
  9645. #include <dlfcn.h>
  9646. #endif
  9647. #include <stdio.h>
  9648. #ifdef RTLD_GLOBAL
  9649. # define LT_DLGLOBAL RTLD_GLOBAL
  9650. #else
  9651. # ifdef DL_GLOBAL
  9652. # define LT_DLGLOBAL DL_GLOBAL
  9653. # else
  9654. # define LT_DLGLOBAL 0
  9655. # endif
  9656. #endif
  9657. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9658. find out it does not work in some platform. */
  9659. #ifndef LT_DLLAZY_OR_NOW
  9660. # ifdef RTLD_LAZY
  9661. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9662. # else
  9663. # ifdef DL_LAZY
  9664. # define LT_DLLAZY_OR_NOW DL_LAZY
  9665. # else
  9666. # ifdef RTLD_NOW
  9667. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9668. # else
  9669. # ifdef DL_NOW
  9670. # define LT_DLLAZY_OR_NOW DL_NOW
  9671. # else
  9672. # define LT_DLLAZY_OR_NOW 0
  9673. # endif
  9674. # endif
  9675. # endif
  9676. # endif
  9677. #endif
  9678. /* When -fvisbility=hidden is used, assume the code has been annotated
  9679. correspondingly for the symbols needed. */
  9680. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9681. int fnord () __attribute__((visibility("default")));
  9682. #endif
  9683. int fnord () { return 42; }
  9684. int main ()
  9685. {
  9686. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9687. int status = $lt_dlunknown;
  9688. if (self)
  9689. {
  9690. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9691. else
  9692. {
  9693. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9694. else puts (dlerror ());
  9695. }
  9696. /* dlclose (self); */
  9697. }
  9698. else
  9699. puts (dlerror ());
  9700. return status;
  9701. }
  9702. _LT_EOF
  9703. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9704. (eval $ac_link) 2>&5
  9705. ac_status=$?
  9706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9707. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9708. (./conftest; exit; ) >&5 2>/dev/null
  9709. lt_status=$?
  9710. case x$lt_status in
  9711. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9712. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9713. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9714. esac
  9715. else :
  9716. # compilation failed
  9717. lt_cv_dlopen_self_static=no
  9718. fi
  9719. fi
  9720. rm -fr conftest*
  9721. fi
  9722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9723. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9724. fi
  9725. CPPFLAGS="$save_CPPFLAGS"
  9726. LDFLAGS="$save_LDFLAGS"
  9727. LIBS="$save_LIBS"
  9728. ;;
  9729. esac
  9730. case $lt_cv_dlopen_self in
  9731. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9732. *) enable_dlopen_self=unknown ;;
  9733. esac
  9734. case $lt_cv_dlopen_self_static in
  9735. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9736. *) enable_dlopen_self_static=unknown ;;
  9737. esac
  9738. fi
  9739. striplib=
  9740. old_striplib=
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9742. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9743. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9744. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9745. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9747. $as_echo "yes" >&6; }
  9748. else
  9749. # FIXME - insert some real tests, host_os isn't really good enough
  9750. case $host_os in
  9751. darwin*)
  9752. if test -n "$STRIP" ; then
  9753. striplib="$STRIP -x"
  9754. old_striplib="$STRIP -S"
  9755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9756. $as_echo "yes" >&6; }
  9757. else
  9758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9759. $as_echo "no" >&6; }
  9760. fi
  9761. ;;
  9762. *)
  9763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9764. $as_echo "no" >&6; }
  9765. ;;
  9766. esac
  9767. fi
  9768. # Report which library types will actually be built
  9769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9770. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9772. $as_echo "$can_build_shared" >&6; }
  9773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9774. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9775. test "$can_build_shared" = "no" && enable_shared=no
  9776. # On AIX, shared libraries and static libraries use the same namespace, and
  9777. # are all built from PIC.
  9778. case $host_os in
  9779. aix3*)
  9780. test "$enable_shared" = yes && enable_static=no
  9781. if test -n "$RANLIB"; then
  9782. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9783. postinstall_cmds='$RANLIB $lib'
  9784. fi
  9785. ;;
  9786. aix[4-9]*)
  9787. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9788. test "$enable_shared" = yes && enable_static=no
  9789. fi
  9790. ;;
  9791. esac
  9792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9793. $as_echo "$enable_shared" >&6; }
  9794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9795. $as_echo_n "checking whether to build static libraries... " >&6; }
  9796. # Make sure either enable_shared or enable_static is yes.
  9797. test "$enable_shared" = yes || enable_static=yes
  9798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9799. $as_echo "$enable_static" >&6; }
  9800. fi
  9801. ac_ext=c
  9802. ac_cpp='$CPP $CPPFLAGS'
  9803. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9804. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9805. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9806. CC="$lt_save_CC"
  9807. ac_config_commands="$ac_config_commands libtool"
  9808. # Only expand once:
  9809. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9810. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9811. LT_REVISION=$SDL_INTERFACE_AGE
  9812. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9813. ac_ext=c
  9814. ac_cpp='$CPP $CPPFLAGS'
  9815. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9816. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9817. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9818. if test -n "$ac_tool_prefix"; then
  9819. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9820. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9822. $as_echo_n "checking for $ac_word... " >&6; }
  9823. if ${ac_cv_prog_CC+:} false; then :
  9824. $as_echo_n "(cached) " >&6
  9825. else
  9826. if test -n "$CC"; then
  9827. ac_cv_prog_CC="$CC" # Let the user override the test.
  9828. else
  9829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9830. for as_dir in $PATH
  9831. do
  9832. IFS=$as_save_IFS
  9833. test -z "$as_dir" && as_dir=.
  9834. for ac_exec_ext in '' $ac_executable_extensions; do
  9835. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9836. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9838. break 2
  9839. fi
  9840. done
  9841. done
  9842. IFS=$as_save_IFS
  9843. fi
  9844. fi
  9845. CC=$ac_cv_prog_CC
  9846. if test -n "$CC"; then
  9847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9848. $as_echo "$CC" >&6; }
  9849. else
  9850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9851. $as_echo "no" >&6; }
  9852. fi
  9853. fi
  9854. if test -z "$ac_cv_prog_CC"; then
  9855. ac_ct_CC=$CC
  9856. # Extract the first word of "gcc", so it can be a program name with args.
  9857. set dummy gcc; ac_word=$2
  9858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9859. $as_echo_n "checking for $ac_word... " >&6; }
  9860. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9861. $as_echo_n "(cached) " >&6
  9862. else
  9863. if test -n "$ac_ct_CC"; then
  9864. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9865. else
  9866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9867. for as_dir in $PATH
  9868. do
  9869. IFS=$as_save_IFS
  9870. test -z "$as_dir" && as_dir=.
  9871. for ac_exec_ext in '' $ac_executable_extensions; do
  9872. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9873. ac_cv_prog_ac_ct_CC="gcc"
  9874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9875. break 2
  9876. fi
  9877. done
  9878. done
  9879. IFS=$as_save_IFS
  9880. fi
  9881. fi
  9882. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9883. if test -n "$ac_ct_CC"; then
  9884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9885. $as_echo "$ac_ct_CC" >&6; }
  9886. else
  9887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9888. $as_echo "no" >&6; }
  9889. fi
  9890. if test "x$ac_ct_CC" = x; then
  9891. CC=""
  9892. else
  9893. case $cross_compiling:$ac_tool_warned in
  9894. yes:)
  9895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9896. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9897. ac_tool_warned=yes ;;
  9898. esac
  9899. CC=$ac_ct_CC
  9900. fi
  9901. else
  9902. CC="$ac_cv_prog_CC"
  9903. fi
  9904. if test -z "$CC"; then
  9905. if test -n "$ac_tool_prefix"; then
  9906. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9907. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9909. $as_echo_n "checking for $ac_word... " >&6; }
  9910. if ${ac_cv_prog_CC+:} false; then :
  9911. $as_echo_n "(cached) " >&6
  9912. else
  9913. if test -n "$CC"; then
  9914. ac_cv_prog_CC="$CC" # Let the user override the test.
  9915. else
  9916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9917. for as_dir in $PATH
  9918. do
  9919. IFS=$as_save_IFS
  9920. test -z "$as_dir" && as_dir=.
  9921. for ac_exec_ext in '' $ac_executable_extensions; do
  9922. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9923. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9924. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9925. break 2
  9926. fi
  9927. done
  9928. done
  9929. IFS=$as_save_IFS
  9930. fi
  9931. fi
  9932. CC=$ac_cv_prog_CC
  9933. if test -n "$CC"; then
  9934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9935. $as_echo "$CC" >&6; }
  9936. else
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9938. $as_echo "no" >&6; }
  9939. fi
  9940. fi
  9941. fi
  9942. if test -z "$CC"; then
  9943. # Extract the first word of "cc", so it can be a program name with args.
  9944. set dummy cc; ac_word=$2
  9945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9946. $as_echo_n "checking for $ac_word... " >&6; }
  9947. if ${ac_cv_prog_CC+:} false; then :
  9948. $as_echo_n "(cached) " >&6
  9949. else
  9950. if test -n "$CC"; then
  9951. ac_cv_prog_CC="$CC" # Let the user override the test.
  9952. else
  9953. ac_prog_rejected=no
  9954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9955. for as_dir in $PATH
  9956. do
  9957. IFS=$as_save_IFS
  9958. test -z "$as_dir" && as_dir=.
  9959. for ac_exec_ext in '' $ac_executable_extensions; do
  9960. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9961. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9962. ac_prog_rejected=yes
  9963. continue
  9964. fi
  9965. ac_cv_prog_CC="cc"
  9966. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9967. break 2
  9968. fi
  9969. done
  9970. done
  9971. IFS=$as_save_IFS
  9972. if test $ac_prog_rejected = yes; then
  9973. # We found a bogon in the path, so make sure we never use it.
  9974. set dummy $ac_cv_prog_CC
  9975. shift
  9976. if test $# != 0; then
  9977. # We chose a different compiler from the bogus one.
  9978. # However, it has the same basename, so the bogon will be chosen
  9979. # first if we set CC to just the basename; use the full file name.
  9980. shift
  9981. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9982. fi
  9983. fi
  9984. fi
  9985. fi
  9986. CC=$ac_cv_prog_CC
  9987. if test -n "$CC"; then
  9988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9989. $as_echo "$CC" >&6; }
  9990. else
  9991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9992. $as_echo "no" >&6; }
  9993. fi
  9994. fi
  9995. if test -z "$CC"; then
  9996. if test -n "$ac_tool_prefix"; then
  9997. for ac_prog in cl.exe
  9998. do
  9999. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10000. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10002. $as_echo_n "checking for $ac_word... " >&6; }
  10003. if ${ac_cv_prog_CC+:} false; then :
  10004. $as_echo_n "(cached) " >&6
  10005. else
  10006. if test -n "$CC"; then
  10007. ac_cv_prog_CC="$CC" # Let the user override the test.
  10008. else
  10009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10010. for as_dir in $PATH
  10011. do
  10012. IFS=$as_save_IFS
  10013. test -z "$as_dir" && as_dir=.
  10014. for ac_exec_ext in '' $ac_executable_extensions; do
  10015. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10016. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10017. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10018. break 2
  10019. fi
  10020. done
  10021. done
  10022. IFS=$as_save_IFS
  10023. fi
  10024. fi
  10025. CC=$ac_cv_prog_CC
  10026. if test -n "$CC"; then
  10027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10028. $as_echo "$CC" >&6; }
  10029. else
  10030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10031. $as_echo "no" >&6; }
  10032. fi
  10033. test -n "$CC" && break
  10034. done
  10035. fi
  10036. if test -z "$CC"; then
  10037. ac_ct_CC=$CC
  10038. for ac_prog in cl.exe
  10039. do
  10040. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10041. set dummy $ac_prog; ac_word=$2
  10042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10043. $as_echo_n "checking for $ac_word... " >&6; }
  10044. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10045. $as_echo_n "(cached) " >&6
  10046. else
  10047. if test -n "$ac_ct_CC"; then
  10048. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10049. else
  10050. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10051. for as_dir in $PATH
  10052. do
  10053. IFS=$as_save_IFS
  10054. test -z "$as_dir" && as_dir=.
  10055. for ac_exec_ext in '' $ac_executable_extensions; do
  10056. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10057. ac_cv_prog_ac_ct_CC="$ac_prog"
  10058. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10059. break 2
  10060. fi
  10061. done
  10062. done
  10063. IFS=$as_save_IFS
  10064. fi
  10065. fi
  10066. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10067. if test -n "$ac_ct_CC"; then
  10068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10069. $as_echo "$ac_ct_CC" >&6; }
  10070. else
  10071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10072. $as_echo "no" >&6; }
  10073. fi
  10074. test -n "$ac_ct_CC" && break
  10075. done
  10076. if test "x$ac_ct_CC" = x; then
  10077. CC=""
  10078. else
  10079. case $cross_compiling:$ac_tool_warned in
  10080. yes:)
  10081. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10082. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10083. ac_tool_warned=yes ;;
  10084. esac
  10085. CC=$ac_ct_CC
  10086. fi
  10087. fi
  10088. fi
  10089. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10090. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10091. as_fn_error $? "no acceptable C compiler found in \$PATH
  10092. See \`config.log' for more details" "$LINENO" 5; }
  10093. # Provide some information about the compiler.
  10094. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10095. set X $ac_compile
  10096. ac_compiler=$2
  10097. for ac_option in --version -v -V -qversion; do
  10098. { { ac_try="$ac_compiler $ac_option >&5"
  10099. case "(($ac_try" in
  10100. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10101. *) ac_try_echo=$ac_try;;
  10102. esac
  10103. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10104. $as_echo "$ac_try_echo"; } >&5
  10105. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10106. ac_status=$?
  10107. if test -s conftest.err; then
  10108. sed '10a\
  10109. ... rest of stderr output deleted ...
  10110. 10q' conftest.err >conftest.er1
  10111. cat conftest.er1 >&5
  10112. fi
  10113. rm -f conftest.er1 conftest.err
  10114. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10115. test $ac_status = 0; }
  10116. done
  10117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10118. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10119. if ${ac_cv_c_compiler_gnu+:} false; then :
  10120. $as_echo_n "(cached) " >&6
  10121. else
  10122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10123. /* end confdefs.h. */
  10124. int
  10125. main ()
  10126. {
  10127. #ifndef __GNUC__
  10128. choke me
  10129. #endif
  10130. ;
  10131. return 0;
  10132. }
  10133. _ACEOF
  10134. if ac_fn_c_try_compile "$LINENO"; then :
  10135. ac_compiler_gnu=yes
  10136. else
  10137. ac_compiler_gnu=no
  10138. fi
  10139. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10140. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10141. fi
  10142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10143. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10144. if test $ac_compiler_gnu = yes; then
  10145. GCC=yes
  10146. else
  10147. GCC=
  10148. fi
  10149. ac_test_CFLAGS=${CFLAGS+set}
  10150. ac_save_CFLAGS=$CFLAGS
  10151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10152. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10153. if ${ac_cv_prog_cc_g+:} false; then :
  10154. $as_echo_n "(cached) " >&6
  10155. else
  10156. ac_save_c_werror_flag=$ac_c_werror_flag
  10157. ac_c_werror_flag=yes
  10158. ac_cv_prog_cc_g=no
  10159. CFLAGS="-g"
  10160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10161. /* end confdefs.h. */
  10162. int
  10163. main ()
  10164. {
  10165. ;
  10166. return 0;
  10167. }
  10168. _ACEOF
  10169. if ac_fn_c_try_compile "$LINENO"; then :
  10170. ac_cv_prog_cc_g=yes
  10171. else
  10172. CFLAGS=""
  10173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10174. /* end confdefs.h. */
  10175. int
  10176. main ()
  10177. {
  10178. ;
  10179. return 0;
  10180. }
  10181. _ACEOF
  10182. if ac_fn_c_try_compile "$LINENO"; then :
  10183. else
  10184. ac_c_werror_flag=$ac_save_c_werror_flag
  10185. CFLAGS="-g"
  10186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10187. /* end confdefs.h. */
  10188. int
  10189. main ()
  10190. {
  10191. ;
  10192. return 0;
  10193. }
  10194. _ACEOF
  10195. if ac_fn_c_try_compile "$LINENO"; then :
  10196. ac_cv_prog_cc_g=yes
  10197. fi
  10198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10199. fi
  10200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10201. fi
  10202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10203. ac_c_werror_flag=$ac_save_c_werror_flag
  10204. fi
  10205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10206. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10207. if test "$ac_test_CFLAGS" = set; then
  10208. CFLAGS=$ac_save_CFLAGS
  10209. elif test $ac_cv_prog_cc_g = yes; then
  10210. if test "$GCC" = yes; then
  10211. CFLAGS="-g -O2"
  10212. else
  10213. CFLAGS="-g"
  10214. fi
  10215. else
  10216. if test "$GCC" = yes; then
  10217. CFLAGS="-O2"
  10218. else
  10219. CFLAGS=
  10220. fi
  10221. fi
  10222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10223. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10224. if ${ac_cv_prog_cc_c89+:} false; then :
  10225. $as_echo_n "(cached) " >&6
  10226. else
  10227. ac_cv_prog_cc_c89=no
  10228. ac_save_CC=$CC
  10229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10230. /* end confdefs.h. */
  10231. #include <stdarg.h>
  10232. #include <stdio.h>
  10233. struct stat;
  10234. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10235. struct buf { int x; };
  10236. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10237. static char *e (p, i)
  10238. char **p;
  10239. int i;
  10240. {
  10241. return p[i];
  10242. }
  10243. static char *f (char * (*g) (char **, int), char **p, ...)
  10244. {
  10245. char *s;
  10246. va_list v;
  10247. va_start (v,p);
  10248. s = g (p, va_arg (v,int));
  10249. va_end (v);
  10250. return s;
  10251. }
  10252. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10253. function prototypes and stuff, but not '\xHH' hex character constants.
  10254. These don't provoke an error unfortunately, instead are silently treated
  10255. as 'x'. The following induces an error, until -std is added to get
  10256. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10257. array size at least. It's necessary to write '\x00'==0 to get something
  10258. that's true only with -std. */
  10259. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10260. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10261. inside strings and character constants. */
  10262. #define FOO(x) 'x'
  10263. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10264. int test (int i, double x);
  10265. struct s1 {int (*f) (int a);};
  10266. struct s2 {int (*f) (double a);};
  10267. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10268. int argc;
  10269. char **argv;
  10270. int
  10271. main ()
  10272. {
  10273. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10274. ;
  10275. return 0;
  10276. }
  10277. _ACEOF
  10278. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10279. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10280. do
  10281. CC="$ac_save_CC $ac_arg"
  10282. if ac_fn_c_try_compile "$LINENO"; then :
  10283. ac_cv_prog_cc_c89=$ac_arg
  10284. fi
  10285. rm -f core conftest.err conftest.$ac_objext
  10286. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10287. done
  10288. rm -f conftest.$ac_ext
  10289. CC=$ac_save_CC
  10290. fi
  10291. # AC_CACHE_VAL
  10292. case "x$ac_cv_prog_cc_c89" in
  10293. x)
  10294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10295. $as_echo "none needed" >&6; } ;;
  10296. xno)
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10298. $as_echo "unsupported" >&6; } ;;
  10299. *)
  10300. CC="$CC $ac_cv_prog_cc_c89"
  10301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10302. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10303. esac
  10304. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10305. fi
  10306. ac_ext=c
  10307. ac_cpp='$CPP $CPPFLAGS'
  10308. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10309. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10310. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10311. ac_ext=cpp
  10312. ac_cpp='$CXXCPP $CPPFLAGS'
  10313. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10314. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10315. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10316. if test -z "$CXX"; then
  10317. if test -n "$CCC"; then
  10318. CXX=$CCC
  10319. else
  10320. if test -n "$ac_tool_prefix"; then
  10321. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10322. do
  10323. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10324. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10326. $as_echo_n "checking for $ac_word... " >&6; }
  10327. if ${ac_cv_prog_CXX+:} false; then :
  10328. $as_echo_n "(cached) " >&6
  10329. else
  10330. if test -n "$CXX"; then
  10331. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10332. else
  10333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10334. for as_dir in $PATH
  10335. do
  10336. IFS=$as_save_IFS
  10337. test -z "$as_dir" && as_dir=.
  10338. for ac_exec_ext in '' $ac_executable_extensions; do
  10339. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10340. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10341. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10342. break 2
  10343. fi
  10344. done
  10345. done
  10346. IFS=$as_save_IFS
  10347. fi
  10348. fi
  10349. CXX=$ac_cv_prog_CXX
  10350. if test -n "$CXX"; then
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10352. $as_echo "$CXX" >&6; }
  10353. else
  10354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10355. $as_echo "no" >&6; }
  10356. fi
  10357. test -n "$CXX" && break
  10358. done
  10359. fi
  10360. if test -z "$CXX"; then
  10361. ac_ct_CXX=$CXX
  10362. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10363. do
  10364. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10365. set dummy $ac_prog; ac_word=$2
  10366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10367. $as_echo_n "checking for $ac_word... " >&6; }
  10368. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10369. $as_echo_n "(cached) " >&6
  10370. else
  10371. if test -n "$ac_ct_CXX"; then
  10372. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10373. else
  10374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10375. for as_dir in $PATH
  10376. do
  10377. IFS=$as_save_IFS
  10378. test -z "$as_dir" && as_dir=.
  10379. for ac_exec_ext in '' $ac_executable_extensions; do
  10380. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10381. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10382. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10383. break 2
  10384. fi
  10385. done
  10386. done
  10387. IFS=$as_save_IFS
  10388. fi
  10389. fi
  10390. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10391. if test -n "$ac_ct_CXX"; then
  10392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10393. $as_echo "$ac_ct_CXX" >&6; }
  10394. else
  10395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10396. $as_echo "no" >&6; }
  10397. fi
  10398. test -n "$ac_ct_CXX" && break
  10399. done
  10400. if test "x$ac_ct_CXX" = x; then
  10401. CXX="g++"
  10402. else
  10403. case $cross_compiling:$ac_tool_warned in
  10404. yes:)
  10405. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10406. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10407. ac_tool_warned=yes ;;
  10408. esac
  10409. CXX=$ac_ct_CXX
  10410. fi
  10411. fi
  10412. fi
  10413. fi
  10414. # Provide some information about the compiler.
  10415. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10416. set X $ac_compile
  10417. ac_compiler=$2
  10418. for ac_option in --version -v -V -qversion; do
  10419. { { ac_try="$ac_compiler $ac_option >&5"
  10420. case "(($ac_try" in
  10421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10422. *) ac_try_echo=$ac_try;;
  10423. esac
  10424. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10425. $as_echo "$ac_try_echo"; } >&5
  10426. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10427. ac_status=$?
  10428. if test -s conftest.err; then
  10429. sed '10a\
  10430. ... rest of stderr output deleted ...
  10431. 10q' conftest.err >conftest.er1
  10432. cat conftest.er1 >&5
  10433. fi
  10434. rm -f conftest.er1 conftest.err
  10435. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10436. test $ac_status = 0; }
  10437. done
  10438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10439. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10440. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10441. $as_echo_n "(cached) " >&6
  10442. else
  10443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10444. /* end confdefs.h. */
  10445. int
  10446. main ()
  10447. {
  10448. #ifndef __GNUC__
  10449. choke me
  10450. #endif
  10451. ;
  10452. return 0;
  10453. }
  10454. _ACEOF
  10455. if ac_fn_cxx_try_compile "$LINENO"; then :
  10456. ac_compiler_gnu=yes
  10457. else
  10458. ac_compiler_gnu=no
  10459. fi
  10460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10461. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10462. fi
  10463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10464. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10465. if test $ac_compiler_gnu = yes; then
  10466. GXX=yes
  10467. else
  10468. GXX=
  10469. fi
  10470. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10471. ac_save_CXXFLAGS=$CXXFLAGS
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10473. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10474. if ${ac_cv_prog_cxx_g+:} false; then :
  10475. $as_echo_n "(cached) " >&6
  10476. else
  10477. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10478. ac_cxx_werror_flag=yes
  10479. ac_cv_prog_cxx_g=no
  10480. CXXFLAGS="-g"
  10481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10482. /* end confdefs.h. */
  10483. int
  10484. main ()
  10485. {
  10486. ;
  10487. return 0;
  10488. }
  10489. _ACEOF
  10490. if ac_fn_cxx_try_compile "$LINENO"; then :
  10491. ac_cv_prog_cxx_g=yes
  10492. else
  10493. CXXFLAGS=""
  10494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10495. /* end confdefs.h. */
  10496. int
  10497. main ()
  10498. {
  10499. ;
  10500. return 0;
  10501. }
  10502. _ACEOF
  10503. if ac_fn_cxx_try_compile "$LINENO"; then :
  10504. else
  10505. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10506. CXXFLAGS="-g"
  10507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10508. /* end confdefs.h. */
  10509. int
  10510. main ()
  10511. {
  10512. ;
  10513. return 0;
  10514. }
  10515. _ACEOF
  10516. if ac_fn_cxx_try_compile "$LINENO"; then :
  10517. ac_cv_prog_cxx_g=yes
  10518. fi
  10519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10520. fi
  10521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10522. fi
  10523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10524. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10525. fi
  10526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10527. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10528. if test "$ac_test_CXXFLAGS" = set; then
  10529. CXXFLAGS=$ac_save_CXXFLAGS
  10530. elif test $ac_cv_prog_cxx_g = yes; then
  10531. if test "$GXX" = yes; then
  10532. CXXFLAGS="-g -O2"
  10533. else
  10534. CXXFLAGS="-g"
  10535. fi
  10536. else
  10537. if test "$GXX" = yes; then
  10538. CXXFLAGS="-O2"
  10539. else
  10540. CXXFLAGS=
  10541. fi
  10542. fi
  10543. ac_ext=c
  10544. ac_cpp='$CPP $CPPFLAGS'
  10545. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10546. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10547. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10548. func_stripname_cnf ()
  10549. {
  10550. case ${2} in
  10551. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10552. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10553. esac
  10554. } # func_stripname_cnf
  10555. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10556. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10557. (test "X$CXX" != "Xg++"))) ; then
  10558. ac_ext=cpp
  10559. ac_cpp='$CXXCPP $CPPFLAGS'
  10560. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10561. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10562. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10564. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10565. if test -z "$CXXCPP"; then
  10566. if ${ac_cv_prog_CXXCPP+:} false; then :
  10567. $as_echo_n "(cached) " >&6
  10568. else
  10569. # Double quotes because CXXCPP needs to be expanded
  10570. for CXXCPP in "$CXX -E" "/lib/cpp"
  10571. do
  10572. ac_preproc_ok=false
  10573. for ac_cxx_preproc_warn_flag in '' yes
  10574. do
  10575. # Use a header file that comes with gcc, so configuring glibc
  10576. # with a fresh cross-compiler works.
  10577. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10578. # <limits.h> exists even on freestanding compilers.
  10579. # On the NeXT, cc -E runs the code through the compiler's parser,
  10580. # not just through cpp. "Syntax error" is here to catch this case.
  10581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10582. /* end confdefs.h. */
  10583. #ifdef __STDC__
  10584. # include <limits.h>
  10585. #else
  10586. # include <assert.h>
  10587. #endif
  10588. Syntax error
  10589. _ACEOF
  10590. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10591. else
  10592. # Broken: fails on valid input.
  10593. continue
  10594. fi
  10595. rm -f conftest.err conftest.i conftest.$ac_ext
  10596. # OK, works on sane cases. Now check whether nonexistent headers
  10597. # can be detected and how.
  10598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10599. /* end confdefs.h. */
  10600. #include <ac_nonexistent.h>
  10601. _ACEOF
  10602. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10603. # Broken: success on invalid input.
  10604. continue
  10605. else
  10606. # Passes both tests.
  10607. ac_preproc_ok=:
  10608. break
  10609. fi
  10610. rm -f conftest.err conftest.i conftest.$ac_ext
  10611. done
  10612. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10613. rm -f conftest.i conftest.err conftest.$ac_ext
  10614. if $ac_preproc_ok; then :
  10615. break
  10616. fi
  10617. done
  10618. ac_cv_prog_CXXCPP=$CXXCPP
  10619. fi
  10620. CXXCPP=$ac_cv_prog_CXXCPP
  10621. else
  10622. ac_cv_prog_CXXCPP=$CXXCPP
  10623. fi
  10624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10625. $as_echo "$CXXCPP" >&6; }
  10626. ac_preproc_ok=false
  10627. for ac_cxx_preproc_warn_flag in '' yes
  10628. do
  10629. # Use a header file that comes with gcc, so configuring glibc
  10630. # with a fresh cross-compiler works.
  10631. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10632. # <limits.h> exists even on freestanding compilers.
  10633. # On the NeXT, cc -E runs the code through the compiler's parser,
  10634. # not just through cpp. "Syntax error" is here to catch this case.
  10635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10636. /* end confdefs.h. */
  10637. #ifdef __STDC__
  10638. # include <limits.h>
  10639. #else
  10640. # include <assert.h>
  10641. #endif
  10642. Syntax error
  10643. _ACEOF
  10644. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10645. else
  10646. # Broken: fails on valid input.
  10647. continue
  10648. fi
  10649. rm -f conftest.err conftest.i conftest.$ac_ext
  10650. # OK, works on sane cases. Now check whether nonexistent headers
  10651. # can be detected and how.
  10652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10653. /* end confdefs.h. */
  10654. #include <ac_nonexistent.h>
  10655. _ACEOF
  10656. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10657. # Broken: success on invalid input.
  10658. continue
  10659. else
  10660. # Passes both tests.
  10661. ac_preproc_ok=:
  10662. break
  10663. fi
  10664. rm -f conftest.err conftest.i conftest.$ac_ext
  10665. done
  10666. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10667. rm -f conftest.i conftest.err conftest.$ac_ext
  10668. if $ac_preproc_ok; then :
  10669. else
  10670. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10671. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10672. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10673. See \`config.log' for more details" "$LINENO" 5; }
  10674. fi
  10675. ac_ext=c
  10676. ac_cpp='$CPP $CPPFLAGS'
  10677. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10678. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10679. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10680. else
  10681. _lt_caught_CXX_error=yes
  10682. fi
  10683. ac_ext=cpp
  10684. ac_cpp='$CXXCPP $CPPFLAGS'
  10685. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10686. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10687. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10688. archive_cmds_need_lc_CXX=no
  10689. allow_undefined_flag_CXX=
  10690. always_export_symbols_CXX=no
  10691. archive_expsym_cmds_CXX=
  10692. compiler_needs_object_CXX=no
  10693. export_dynamic_flag_spec_CXX=
  10694. hardcode_direct_CXX=no
  10695. hardcode_direct_absolute_CXX=no
  10696. hardcode_libdir_flag_spec_CXX=
  10697. hardcode_libdir_separator_CXX=
  10698. hardcode_minus_L_CXX=no
  10699. hardcode_shlibpath_var_CXX=unsupported
  10700. hardcode_automatic_CXX=no
  10701. inherit_rpath_CXX=no
  10702. module_cmds_CXX=
  10703. module_expsym_cmds_CXX=
  10704. link_all_deplibs_CXX=unknown
  10705. old_archive_cmds_CXX=$old_archive_cmds
  10706. reload_flag_CXX=$reload_flag
  10707. reload_cmds_CXX=$reload_cmds
  10708. no_undefined_flag_CXX=
  10709. whole_archive_flag_spec_CXX=
  10710. enable_shared_with_static_runtimes_CXX=no
  10711. # Source file extension for C++ test sources.
  10712. ac_ext=cpp
  10713. # Object file extension for compiled C++ test sources.
  10714. objext=o
  10715. objext_CXX=$objext
  10716. # No sense in running all these tests if we already determined that
  10717. # the CXX compiler isn't working. Some variables (like enable_shared)
  10718. # are currently assumed to apply to all compilers on this platform,
  10719. # and will be corrupted by setting them based on a non-working compiler.
  10720. if test "$_lt_caught_CXX_error" != yes; then
  10721. # Code to be used in simple compile tests
  10722. lt_simple_compile_test_code="int some_variable = 0;"
  10723. # Code to be used in simple link tests
  10724. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10725. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10726. # If no C compiler was specified, use CC.
  10727. LTCC=${LTCC-"$CC"}
  10728. # If no C compiler flags were specified, use CFLAGS.
  10729. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10730. # Allow CC to be a program name with arguments.
  10731. compiler=$CC
  10732. # save warnings/boilerplate of simple test code
  10733. ac_outfile=conftest.$ac_objext
  10734. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10735. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10736. _lt_compiler_boilerplate=`cat conftest.err`
  10737. $RM conftest*
  10738. ac_outfile=conftest.$ac_objext
  10739. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10740. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10741. _lt_linker_boilerplate=`cat conftest.err`
  10742. $RM -r conftest*
  10743. # Allow CC to be a program name with arguments.
  10744. lt_save_CC=$CC
  10745. lt_save_CFLAGS=$CFLAGS
  10746. lt_save_LD=$LD
  10747. lt_save_GCC=$GCC
  10748. GCC=$GXX
  10749. lt_save_with_gnu_ld=$with_gnu_ld
  10750. lt_save_path_LD=$lt_cv_path_LD
  10751. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10752. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10753. else
  10754. $as_unset lt_cv_prog_gnu_ld
  10755. fi
  10756. if test -n "${lt_cv_path_LDCXX+set}"; then
  10757. lt_cv_path_LD=$lt_cv_path_LDCXX
  10758. else
  10759. $as_unset lt_cv_path_LD
  10760. fi
  10761. test -z "${LDCXX+set}" || LD=$LDCXX
  10762. CC=${CXX-"c++"}
  10763. CFLAGS=$CXXFLAGS
  10764. compiler=$CC
  10765. compiler_CXX=$CC
  10766. for cc_temp in $compiler""; do
  10767. case $cc_temp in
  10768. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10769. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10770. \-*) ;;
  10771. *) break;;
  10772. esac
  10773. done
  10774. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10775. if test -n "$compiler"; then
  10776. # We don't want -fno-exception when compiling C++ code, so set the
  10777. # no_builtin_flag separately
  10778. if test "$GXX" = yes; then
  10779. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10780. else
  10781. lt_prog_compiler_no_builtin_flag_CXX=
  10782. fi
  10783. if test "$GXX" = yes; then
  10784. # Set up default GNU C++ configuration
  10785. # Check whether --with-gnu-ld was given.
  10786. if test "${with_gnu_ld+set}" = set; then :
  10787. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10788. else
  10789. with_gnu_ld=no
  10790. fi
  10791. ac_prog=ld
  10792. if test "$GCC" = yes; then
  10793. # Check if gcc -print-prog-name=ld gives a path.
  10794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10795. $as_echo_n "checking for ld used by $CC... " >&6; }
  10796. case $host in
  10797. *-*-mingw*)
  10798. # gcc leaves a trailing carriage return which upsets mingw
  10799. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10800. *)
  10801. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10802. esac
  10803. case $ac_prog in
  10804. # Accept absolute paths.
  10805. [\\/]* | ?:[\\/]*)
  10806. re_direlt='/[^/][^/]*/\.\./'
  10807. # Canonicalize the pathname of ld
  10808. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10809. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10810. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10811. done
  10812. test -z "$LD" && LD="$ac_prog"
  10813. ;;
  10814. "")
  10815. # If it fails, then pretend we aren't using GCC.
  10816. ac_prog=ld
  10817. ;;
  10818. *)
  10819. # If it is relative, then search for the first ld in PATH.
  10820. with_gnu_ld=unknown
  10821. ;;
  10822. esac
  10823. elif test "$with_gnu_ld" = yes; then
  10824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10825. $as_echo_n "checking for GNU ld... " >&6; }
  10826. else
  10827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10828. $as_echo_n "checking for non-GNU ld... " >&6; }
  10829. fi
  10830. if ${lt_cv_path_LD+:} false; then :
  10831. $as_echo_n "(cached) " >&6
  10832. else
  10833. if test -z "$LD"; then
  10834. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10835. for ac_dir in $PATH; do
  10836. IFS="$lt_save_ifs"
  10837. test -z "$ac_dir" && ac_dir=.
  10838. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10839. lt_cv_path_LD="$ac_dir/$ac_prog"
  10840. # Check to see if the program is GNU ld. I'd rather use --version,
  10841. # but apparently some variants of GNU ld only accept -v.
  10842. # Break only if it was the GNU/non-GNU ld that we prefer.
  10843. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10844. *GNU* | *'with BFD'*)
  10845. test "$with_gnu_ld" != no && break
  10846. ;;
  10847. *)
  10848. test "$with_gnu_ld" != yes && break
  10849. ;;
  10850. esac
  10851. fi
  10852. done
  10853. IFS="$lt_save_ifs"
  10854. else
  10855. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10856. fi
  10857. fi
  10858. LD="$lt_cv_path_LD"
  10859. if test -n "$LD"; then
  10860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10861. $as_echo "$LD" >&6; }
  10862. else
  10863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10864. $as_echo "no" >&6; }
  10865. fi
  10866. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10868. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10869. if ${lt_cv_prog_gnu_ld+:} false; then :
  10870. $as_echo_n "(cached) " >&6
  10871. else
  10872. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10873. case `$LD -v 2>&1 </dev/null` in
  10874. *GNU* | *'with BFD'*)
  10875. lt_cv_prog_gnu_ld=yes
  10876. ;;
  10877. *)
  10878. lt_cv_prog_gnu_ld=no
  10879. ;;
  10880. esac
  10881. fi
  10882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10883. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10884. with_gnu_ld=$lt_cv_prog_gnu_ld
  10885. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10886. # archiving commands below assume that GNU ld is being used.
  10887. if test "$with_gnu_ld" = yes; then
  10888. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10889. 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'
  10890. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10891. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10892. # If archive_cmds runs LD, not CC, wlarc should be empty
  10893. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10894. # investigate it a little bit more. (MM)
  10895. wlarc='${wl}'
  10896. # ancient GNU ld didn't support --whole-archive et. al.
  10897. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10898. $GREP 'no-whole-archive' > /dev/null; then
  10899. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10900. else
  10901. whole_archive_flag_spec_CXX=
  10902. fi
  10903. else
  10904. with_gnu_ld=no
  10905. wlarc=
  10906. # A generic and very simple default shared library creation
  10907. # command for GNU C++ for the case where it uses the native
  10908. # linker, instead of GNU ld. If possible, this setting should
  10909. # overridden to take advantage of the native linker features on
  10910. # the platform it is being used on.
  10911. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10912. fi
  10913. # Commands to make compiler produce verbose output that lists
  10914. # what "hidden" libraries, object files and flags are used when
  10915. # linking a shared library.
  10916. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10917. else
  10918. GXX=no
  10919. with_gnu_ld=no
  10920. wlarc=
  10921. fi
  10922. # PORTME: fill in a description of your system's C++ link characteristics
  10923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10924. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10925. ld_shlibs_CXX=yes
  10926. case $host_os in
  10927. aix3*)
  10928. # FIXME: insert proper C++ library support
  10929. ld_shlibs_CXX=no
  10930. ;;
  10931. aix[4-9]*)
  10932. if test "$host_cpu" = ia64; then
  10933. # On IA64, the linker does run time linking by default, so we don't
  10934. # have to do anything special.
  10935. aix_use_runtimelinking=no
  10936. exp_sym_flag='-Bexport'
  10937. no_entry_flag=""
  10938. else
  10939. aix_use_runtimelinking=no
  10940. # Test if we are trying to use run time linking or normal
  10941. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10942. # need to do runtime linking.
  10943. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10944. for ld_flag in $LDFLAGS; do
  10945. case $ld_flag in
  10946. *-brtl*)
  10947. aix_use_runtimelinking=yes
  10948. break
  10949. ;;
  10950. esac
  10951. done
  10952. ;;
  10953. esac
  10954. exp_sym_flag='-bexport'
  10955. no_entry_flag='-bnoentry'
  10956. fi
  10957. # When large executables or shared objects are built, AIX ld can
  10958. # have problems creating the table of contents. If linking a library
  10959. # or program results in "error TOC overflow" add -mminimal-toc to
  10960. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10961. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10962. archive_cmds_CXX=''
  10963. hardcode_direct_CXX=yes
  10964. hardcode_direct_absolute_CXX=yes
  10965. hardcode_libdir_separator_CXX=':'
  10966. link_all_deplibs_CXX=yes
  10967. file_list_spec_CXX='${wl}-f,'
  10968. if test "$GXX" = yes; then
  10969. case $host_os in aix4.[012]|aix4.[012].*)
  10970. # We only want to do this on AIX 4.2 and lower, the check
  10971. # below for broken collect2 doesn't work under 4.3+
  10972. collect2name=`${CC} -print-prog-name=collect2`
  10973. if test -f "$collect2name" &&
  10974. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10975. then
  10976. # We have reworked collect2
  10977. :
  10978. else
  10979. # We have old collect2
  10980. hardcode_direct_CXX=unsupported
  10981. # It fails to find uninstalled libraries when the uninstalled
  10982. # path is not listed in the libpath. Setting hardcode_minus_L
  10983. # to unsupported forces relinking
  10984. hardcode_minus_L_CXX=yes
  10985. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10986. hardcode_libdir_separator_CXX=
  10987. fi
  10988. esac
  10989. shared_flag='-shared'
  10990. if test "$aix_use_runtimelinking" = yes; then
  10991. shared_flag="$shared_flag "'${wl}-G'
  10992. fi
  10993. else
  10994. # not using gcc
  10995. if test "$host_cpu" = ia64; then
  10996. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10997. # chokes on -Wl,-G. The following line is correct:
  10998. shared_flag='-G'
  10999. else
  11000. if test "$aix_use_runtimelinking" = yes; then
  11001. shared_flag='${wl}-G'
  11002. else
  11003. shared_flag='${wl}-bM:SRE'
  11004. fi
  11005. fi
  11006. fi
  11007. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11008. # It seems that -bexpall does not export symbols beginning with
  11009. # underscore (_), so it is better to generate a list of symbols to
  11010. # export.
  11011. always_export_symbols_CXX=yes
  11012. if test "$aix_use_runtimelinking" = yes; then
  11013. # Warning - without using the other runtime loading flags (-brtl),
  11014. # -berok will link without error, but may produce a broken library.
  11015. allow_undefined_flag_CXX='-berok'
  11016. # Determine the default libpath from the value encoded in an empty
  11017. # executable.
  11018. if test "${lt_cv_aix_libpath+set}" = set; then
  11019. aix_libpath=$lt_cv_aix_libpath
  11020. else
  11021. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11022. $as_echo_n "(cached) " >&6
  11023. else
  11024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11025. /* end confdefs.h. */
  11026. int
  11027. main ()
  11028. {
  11029. ;
  11030. return 0;
  11031. }
  11032. _ACEOF
  11033. if ac_fn_cxx_try_link "$LINENO"; then :
  11034. lt_aix_libpath_sed='
  11035. /Import File Strings/,/^$/ {
  11036. /^0/ {
  11037. s/^0 *\([^ ]*\) *$/\1/
  11038. p
  11039. }
  11040. }'
  11041. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11042. # Check for a 64-bit object if we didn't find anything.
  11043. if test -z "$lt_cv_aix_libpath__CXX"; then
  11044. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11045. fi
  11046. fi
  11047. rm -f core conftest.err conftest.$ac_objext \
  11048. conftest$ac_exeext conftest.$ac_ext
  11049. if test -z "$lt_cv_aix_libpath__CXX"; then
  11050. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11051. fi
  11052. fi
  11053. aix_libpath=$lt_cv_aix_libpath__CXX
  11054. fi
  11055. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11056. 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"
  11057. else
  11058. if test "$host_cpu" = ia64; then
  11059. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11060. allow_undefined_flag_CXX="-z nodefs"
  11061. 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"
  11062. else
  11063. # Determine the default libpath from the value encoded in an
  11064. # empty executable.
  11065. if test "${lt_cv_aix_libpath+set}" = set; then
  11066. aix_libpath=$lt_cv_aix_libpath
  11067. else
  11068. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11069. $as_echo_n "(cached) " >&6
  11070. else
  11071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11072. /* end confdefs.h. */
  11073. int
  11074. main ()
  11075. {
  11076. ;
  11077. return 0;
  11078. }
  11079. _ACEOF
  11080. if ac_fn_cxx_try_link "$LINENO"; then :
  11081. lt_aix_libpath_sed='
  11082. /Import File Strings/,/^$/ {
  11083. /^0/ {
  11084. s/^0 *\([^ ]*\) *$/\1/
  11085. p
  11086. }
  11087. }'
  11088. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11089. # Check for a 64-bit object if we didn't find anything.
  11090. if test -z "$lt_cv_aix_libpath__CXX"; then
  11091. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11092. fi
  11093. fi
  11094. rm -f core conftest.err conftest.$ac_objext \
  11095. conftest$ac_exeext conftest.$ac_ext
  11096. if test -z "$lt_cv_aix_libpath__CXX"; then
  11097. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11098. fi
  11099. fi
  11100. aix_libpath=$lt_cv_aix_libpath__CXX
  11101. fi
  11102. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11103. # Warning - without using the other run time loading flags,
  11104. # -berok will link without error, but may produce a broken library.
  11105. no_undefined_flag_CXX=' ${wl}-bernotok'
  11106. allow_undefined_flag_CXX=' ${wl}-berok'
  11107. if test "$with_gnu_ld" = yes; then
  11108. # We only use this code for GNU lds that support --whole-archive.
  11109. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11110. else
  11111. # Exported symbols can be pulled into shared objects from archives
  11112. whole_archive_flag_spec_CXX='$convenience'
  11113. fi
  11114. archive_cmds_need_lc_CXX=yes
  11115. # This is similar to how AIX traditionally builds its shared
  11116. # libraries.
  11117. 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'
  11118. fi
  11119. fi
  11120. ;;
  11121. beos*)
  11122. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11123. allow_undefined_flag_CXX=unsupported
  11124. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11125. # support --undefined. This deserves some investigation. FIXME
  11126. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11127. else
  11128. ld_shlibs_CXX=no
  11129. fi
  11130. ;;
  11131. chorus*)
  11132. case $cc_basename in
  11133. *)
  11134. # FIXME: insert proper C++ library support
  11135. ld_shlibs_CXX=no
  11136. ;;
  11137. esac
  11138. ;;
  11139. cygwin* | mingw* | pw32* | cegcc*)
  11140. case $GXX,$cc_basename in
  11141. ,cl* | no,cl*)
  11142. # Native MSVC
  11143. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11144. # no search path for DLLs.
  11145. hardcode_libdir_flag_spec_CXX=' '
  11146. allow_undefined_flag_CXX=unsupported
  11147. always_export_symbols_CXX=yes
  11148. file_list_spec_CXX='@'
  11149. # Tell ltmain to make .lib files, not .a files.
  11150. libext=lib
  11151. # Tell ltmain to make .dll files, not .so files.
  11152. shrext_cmds=".dll"
  11153. # FIXME: Setting linknames here is a bad hack.
  11154. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11155. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11156. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11157. else
  11158. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11159. fi~
  11160. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11161. linknames='
  11162. # The linker will not automatically build a static lib if we build a DLL.
  11163. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11164. enable_shared_with_static_runtimes_CXX=yes
  11165. # Don't use ranlib
  11166. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11167. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11168. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11169. case $lt_outputfile in
  11170. *.exe|*.EXE) ;;
  11171. *)
  11172. lt_outputfile="$lt_outputfile.exe"
  11173. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11174. ;;
  11175. esac~
  11176. func_to_tool_file "$lt_outputfile"~
  11177. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11178. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11179. $RM "$lt_outputfile.manifest";
  11180. fi'
  11181. ;;
  11182. *)
  11183. # g++
  11184. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11185. # as there is no search path for DLLs.
  11186. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11187. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11188. allow_undefined_flag_CXX=unsupported
  11189. always_export_symbols_CXX=no
  11190. enable_shared_with_static_runtimes_CXX=yes
  11191. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11192. 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'
  11193. # If the export-symbols file already is a .def file (1st line
  11194. # is EXPORTS), use it as is; otherwise, prepend...
  11195. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11196. cp $export_symbols $output_objdir/$soname.def;
  11197. else
  11198. echo EXPORTS > $output_objdir/$soname.def;
  11199. cat $export_symbols >> $output_objdir/$soname.def;
  11200. fi~
  11201. $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'
  11202. else
  11203. ld_shlibs_CXX=no
  11204. fi
  11205. ;;
  11206. esac
  11207. ;;
  11208. darwin* | rhapsody*)
  11209. archive_cmds_need_lc_CXX=no
  11210. hardcode_direct_CXX=no
  11211. hardcode_automatic_CXX=yes
  11212. hardcode_shlibpath_var_CXX=unsupported
  11213. if test "$lt_cv_ld_force_load" = "yes"; then
  11214. 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\"`'
  11215. else
  11216. whole_archive_flag_spec_CXX=''
  11217. fi
  11218. link_all_deplibs_CXX=yes
  11219. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11220. case $cc_basename in
  11221. ifort*) _lt_dar_can_shared=yes ;;
  11222. *) _lt_dar_can_shared=$GCC ;;
  11223. esac
  11224. if test "$_lt_dar_can_shared" = "yes"; then
  11225. output_verbose_link_cmd=func_echo_all
  11226. 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}"
  11227. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11228. 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}"
  11229. 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}"
  11230. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11231. 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}"
  11232. 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}"
  11233. fi
  11234. else
  11235. ld_shlibs_CXX=no
  11236. fi
  11237. ;;
  11238. dgux*)
  11239. case $cc_basename in
  11240. ec++*)
  11241. # FIXME: insert proper C++ library support
  11242. ld_shlibs_CXX=no
  11243. ;;
  11244. ghcx*)
  11245. # Green Hills C++ Compiler
  11246. # FIXME: insert proper C++ library support
  11247. ld_shlibs_CXX=no
  11248. ;;
  11249. *)
  11250. # FIXME: insert proper C++ library support
  11251. ld_shlibs_CXX=no
  11252. ;;
  11253. esac
  11254. ;;
  11255. freebsd2.*)
  11256. # C++ shared libraries reported to be fairly broken before
  11257. # switch to ELF
  11258. ld_shlibs_CXX=no
  11259. ;;
  11260. freebsd-elf*)
  11261. archive_cmds_need_lc_CXX=no
  11262. ;;
  11263. freebsd* | dragonfly*)
  11264. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11265. # conventions
  11266. ld_shlibs_CXX=yes
  11267. ;;
  11268. gnu*)
  11269. ;;
  11270. haiku*)
  11271. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11272. link_all_deplibs_CXX=yes
  11273. ;;
  11274. hpux9*)
  11275. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11276. hardcode_libdir_separator_CXX=:
  11277. export_dynamic_flag_spec_CXX='${wl}-E'
  11278. hardcode_direct_CXX=yes
  11279. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11280. # but as the default
  11281. # location of the library.
  11282. case $cc_basename in
  11283. CC*)
  11284. # FIXME: insert proper C++ library support
  11285. ld_shlibs_CXX=no
  11286. ;;
  11287. aCC*)
  11288. 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'
  11289. # Commands to make compiler produce verbose output that lists
  11290. # what "hidden" libraries, object files and flags are used when
  11291. # linking a shared library.
  11292. #
  11293. # There doesn't appear to be a way to prevent this compiler from
  11294. # explicitly linking system object files so we need to strip them
  11295. # from the output so that they don't get included in the library
  11296. # dependencies.
  11297. 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"'
  11298. ;;
  11299. *)
  11300. if test "$GXX" = yes; then
  11301. 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'
  11302. else
  11303. # FIXME: insert proper C++ library support
  11304. ld_shlibs_CXX=no
  11305. fi
  11306. ;;
  11307. esac
  11308. ;;
  11309. hpux10*|hpux11*)
  11310. if test $with_gnu_ld = no; then
  11311. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11312. hardcode_libdir_separator_CXX=:
  11313. case $host_cpu in
  11314. hppa*64*|ia64*)
  11315. ;;
  11316. *)
  11317. export_dynamic_flag_spec_CXX='${wl}-E'
  11318. ;;
  11319. esac
  11320. fi
  11321. case $host_cpu in
  11322. hppa*64*|ia64*)
  11323. hardcode_direct_CXX=no
  11324. hardcode_shlibpath_var_CXX=no
  11325. ;;
  11326. *)
  11327. hardcode_direct_CXX=yes
  11328. hardcode_direct_absolute_CXX=yes
  11329. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11330. # but as the default
  11331. # location of the library.
  11332. ;;
  11333. esac
  11334. case $cc_basename in
  11335. CC*)
  11336. # FIXME: insert proper C++ library support
  11337. ld_shlibs_CXX=no
  11338. ;;
  11339. aCC*)
  11340. case $host_cpu in
  11341. hppa*64*)
  11342. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11343. ;;
  11344. ia64*)
  11345. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11346. ;;
  11347. *)
  11348. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11349. ;;
  11350. esac
  11351. # Commands to make compiler produce verbose output that lists
  11352. # what "hidden" libraries, object files and flags are used when
  11353. # linking a shared library.
  11354. #
  11355. # There doesn't appear to be a way to prevent this compiler from
  11356. # explicitly linking system object files so we need to strip them
  11357. # from the output so that they don't get included in the library
  11358. # dependencies.
  11359. 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"'
  11360. ;;
  11361. *)
  11362. if test "$GXX" = yes; then
  11363. if test $with_gnu_ld = no; then
  11364. case $host_cpu in
  11365. hppa*64*)
  11366. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11367. ;;
  11368. ia64*)
  11369. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11370. ;;
  11371. *)
  11372. 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'
  11373. ;;
  11374. esac
  11375. fi
  11376. else
  11377. # FIXME: insert proper C++ library support
  11378. ld_shlibs_CXX=no
  11379. fi
  11380. ;;
  11381. esac
  11382. ;;
  11383. interix[3-9]*)
  11384. hardcode_direct_CXX=no
  11385. hardcode_shlibpath_var_CXX=no
  11386. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11387. export_dynamic_flag_spec_CXX='${wl}-E'
  11388. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11389. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11390. # default) and relocated if they conflict, which is a slow very memory
  11391. # consuming and fragmenting process. To avoid this, we pick a random,
  11392. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11393. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11394. 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'
  11395. 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'
  11396. ;;
  11397. irix5* | irix6*)
  11398. case $cc_basename in
  11399. CC*)
  11400. # SGI C++
  11401. 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'
  11402. # Archives containing C++ object files must be created using
  11403. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11404. # necessary to make sure instantiated templates are included
  11405. # in the archive.
  11406. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11407. ;;
  11408. *)
  11409. if test "$GXX" = yes; then
  11410. if test "$with_gnu_ld" = no; then
  11411. 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'
  11412. else
  11413. 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'
  11414. fi
  11415. fi
  11416. link_all_deplibs_CXX=yes
  11417. ;;
  11418. esac
  11419. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11420. hardcode_libdir_separator_CXX=:
  11421. inherit_rpath_CXX=yes
  11422. ;;
  11423. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11424. case $cc_basename in
  11425. KCC*)
  11426. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11427. # KCC will only create a shared library if the output file
  11428. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11429. # to its proper name (with version) after linking.
  11430. 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'
  11431. 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'
  11432. # Commands to make compiler produce verbose output that lists
  11433. # what "hidden" libraries, object files and flags are used when
  11434. # linking a shared library.
  11435. #
  11436. # There doesn't appear to be a way to prevent this compiler from
  11437. # explicitly linking system object files so we need to strip them
  11438. # from the output so that they don't get included in the library
  11439. # dependencies.
  11440. 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"'
  11441. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11442. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11443. # Archives containing C++ object files must be created using
  11444. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11445. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11446. ;;
  11447. icpc* | ecpc* )
  11448. # Intel C++
  11449. with_gnu_ld=yes
  11450. # version 8.0 and above of icpc choke on multiply defined symbols
  11451. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11452. # earlier do not add the objects themselves.
  11453. case `$CC -V 2>&1` in
  11454. *"Version 7."*)
  11455. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11456. 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'
  11457. ;;
  11458. *) # Version 8.0 or newer
  11459. tmp_idyn=
  11460. case $host_cpu in
  11461. ia64*) tmp_idyn=' -i_dynamic';;
  11462. esac
  11463. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11464. 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'
  11465. ;;
  11466. esac
  11467. archive_cmds_need_lc_CXX=no
  11468. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11469. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11470. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11471. ;;
  11472. pgCC* | pgcpp*)
  11473. # Portland Group C++ compiler
  11474. case `$CC -V` in
  11475. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11476. prelink_cmds_CXX='tpldir=Template.dir~
  11477. rm -rf $tpldir~
  11478. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11479. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11480. old_archive_cmds_CXX='tpldir=Template.dir~
  11481. rm -rf $tpldir~
  11482. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11483. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11484. $RANLIB $oldlib'
  11485. archive_cmds_CXX='tpldir=Template.dir~
  11486. rm -rf $tpldir~
  11487. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11488. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11489. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11490. rm -rf $tpldir~
  11491. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11492. $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'
  11493. ;;
  11494. *) # Version 6 and above use weak symbols
  11495. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11496. 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'
  11497. ;;
  11498. esac
  11499. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11500. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11501. 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'
  11502. ;;
  11503. cxx*)
  11504. # Compaq C++
  11505. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11506. 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'
  11507. runpath_var=LD_RUN_PATH
  11508. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11509. hardcode_libdir_separator_CXX=:
  11510. # Commands to make compiler produce verbose output that lists
  11511. # what "hidden" libraries, object files and flags are used when
  11512. # linking a shared library.
  11513. #
  11514. # There doesn't appear to be a way to prevent this compiler from
  11515. # explicitly linking system object files so we need to strip them
  11516. # from the output so that they don't get included in the library
  11517. # dependencies.
  11518. 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'
  11519. ;;
  11520. xl* | mpixl* | bgxl*)
  11521. # IBM XL 8.0 on PPC, with GNU ld
  11522. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11523. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11524. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11525. if test "x$supports_anon_versioning" = xyes; then
  11526. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11527. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11528. echo "local: *; };" >> $output_objdir/$libname.ver~
  11529. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11530. fi
  11531. ;;
  11532. *)
  11533. case `$CC -V 2>&1 | sed 5q` in
  11534. *Sun\ C*)
  11535. # Sun C++ 5.9
  11536. no_undefined_flag_CXX=' -zdefs'
  11537. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11538. 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'
  11539. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11540. 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'
  11541. compiler_needs_object_CXX=yes
  11542. # Not sure whether something based on
  11543. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11544. # would be better.
  11545. output_verbose_link_cmd='func_echo_all'
  11546. # Archives containing C++ object files must be created using
  11547. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11548. # necessary to make sure instantiated templates are included
  11549. # in the archive.
  11550. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11551. ;;
  11552. esac
  11553. ;;
  11554. esac
  11555. ;;
  11556. lynxos*)
  11557. # FIXME: insert proper C++ library support
  11558. ld_shlibs_CXX=no
  11559. ;;
  11560. m88k*)
  11561. # FIXME: insert proper C++ library support
  11562. ld_shlibs_CXX=no
  11563. ;;
  11564. mvs*)
  11565. case $cc_basename in
  11566. cxx*)
  11567. # FIXME: insert proper C++ library support
  11568. ld_shlibs_CXX=no
  11569. ;;
  11570. *)
  11571. # FIXME: insert proper C++ library support
  11572. ld_shlibs_CXX=no
  11573. ;;
  11574. esac
  11575. ;;
  11576. netbsd*)
  11577. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11578. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11579. wlarc=
  11580. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11581. hardcode_direct_CXX=yes
  11582. hardcode_shlibpath_var_CXX=no
  11583. fi
  11584. # Workaround some broken pre-1.5 toolchains
  11585. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11586. ;;
  11587. *nto* | *qnx*)
  11588. ld_shlibs_CXX=yes
  11589. ;;
  11590. openbsd2*)
  11591. # C++ shared libraries are fairly broken
  11592. ld_shlibs_CXX=no
  11593. ;;
  11594. openbsd*)
  11595. if test -f /usr/libexec/ld.so; then
  11596. hardcode_direct_CXX=yes
  11597. hardcode_shlibpath_var_CXX=no
  11598. hardcode_direct_absolute_CXX=yes
  11599. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11600. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11601. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11602. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11603. export_dynamic_flag_spec_CXX='${wl}-E'
  11604. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11605. fi
  11606. output_verbose_link_cmd=func_echo_all
  11607. else
  11608. ld_shlibs_CXX=no
  11609. fi
  11610. ;;
  11611. osf3* | osf4* | osf5*)
  11612. case $cc_basename in
  11613. KCC*)
  11614. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11615. # KCC will only create a shared library if the output file
  11616. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11617. # to its proper name (with version) after linking.
  11618. 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'
  11619. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11620. hardcode_libdir_separator_CXX=:
  11621. # Archives containing C++ object files must be created using
  11622. # the KAI C++ compiler.
  11623. case $host in
  11624. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11625. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11626. esac
  11627. ;;
  11628. RCC*)
  11629. # Rational C++ 2.4.1
  11630. # FIXME: insert proper C++ library support
  11631. ld_shlibs_CXX=no
  11632. ;;
  11633. cxx*)
  11634. case $host in
  11635. osf3*)
  11636. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11637. 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'
  11638. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11639. ;;
  11640. *)
  11641. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11642. 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'
  11643. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11644. echo "-hidden">> $lib.exp~
  11645. $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~
  11646. $RM $lib.exp'
  11647. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11648. ;;
  11649. esac
  11650. hardcode_libdir_separator_CXX=:
  11651. # Commands to make compiler produce verbose output that lists
  11652. # what "hidden" libraries, object files and flags are used when
  11653. # linking a shared library.
  11654. #
  11655. # There doesn't appear to be a way to prevent this compiler from
  11656. # explicitly linking system object files so we need to strip them
  11657. # from the output so that they don't get included in the library
  11658. # dependencies.
  11659. 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"'
  11660. ;;
  11661. *)
  11662. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11663. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11664. case $host in
  11665. osf3*)
  11666. 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'
  11667. ;;
  11668. *)
  11669. 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'
  11670. ;;
  11671. esac
  11672. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11673. hardcode_libdir_separator_CXX=:
  11674. # Commands to make compiler produce verbose output that lists
  11675. # what "hidden" libraries, object files and flags are used when
  11676. # linking a shared library.
  11677. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11678. else
  11679. # FIXME: insert proper C++ library support
  11680. ld_shlibs_CXX=no
  11681. fi
  11682. ;;
  11683. esac
  11684. ;;
  11685. psos*)
  11686. # FIXME: insert proper C++ library support
  11687. ld_shlibs_CXX=no
  11688. ;;
  11689. sunos4*)
  11690. case $cc_basename in
  11691. CC*)
  11692. # Sun C++ 4.x
  11693. # FIXME: insert proper C++ library support
  11694. ld_shlibs_CXX=no
  11695. ;;
  11696. lcc*)
  11697. # Lucid
  11698. # FIXME: insert proper C++ library support
  11699. ld_shlibs_CXX=no
  11700. ;;
  11701. *)
  11702. # FIXME: insert proper C++ library support
  11703. ld_shlibs_CXX=no
  11704. ;;
  11705. esac
  11706. ;;
  11707. solaris*)
  11708. case $cc_basename in
  11709. CC* | sunCC*)
  11710. # Sun C++ 4.2, 5.x and Centerline C++
  11711. archive_cmds_need_lc_CXX=yes
  11712. no_undefined_flag_CXX=' -zdefs'
  11713. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11714. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11715. $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'
  11716. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11717. hardcode_shlibpath_var_CXX=no
  11718. case $host_os in
  11719. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11720. *)
  11721. # The compiler driver will combine and reorder linker options,
  11722. # but understands `-z linker_flag'.
  11723. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11724. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11725. ;;
  11726. esac
  11727. link_all_deplibs_CXX=yes
  11728. output_verbose_link_cmd='func_echo_all'
  11729. # Archives containing C++ object files must be created using
  11730. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11731. # necessary to make sure instantiated templates are included
  11732. # in the archive.
  11733. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11734. ;;
  11735. gcx*)
  11736. # Green Hills C++ Compiler
  11737. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11738. # The C++ compiler must be used to create the archive.
  11739. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11740. ;;
  11741. *)
  11742. # GNU C++ compiler with Solaris linker
  11743. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11744. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11745. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11746. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11747. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11748. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11749. # Commands to make compiler produce verbose output that lists
  11750. # what "hidden" libraries, object files and flags are used when
  11751. # linking a shared library.
  11752. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11753. else
  11754. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11755. # platform.
  11756. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11757. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11758. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11759. # Commands to make compiler produce verbose output that lists
  11760. # what "hidden" libraries, object files and flags are used when
  11761. # linking a shared library.
  11762. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11763. fi
  11764. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11765. case $host_os in
  11766. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11767. *)
  11768. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11769. ;;
  11770. esac
  11771. fi
  11772. ;;
  11773. esac
  11774. ;;
  11775. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11776. no_undefined_flag_CXX='${wl}-z,text'
  11777. archive_cmds_need_lc_CXX=no
  11778. hardcode_shlibpath_var_CXX=no
  11779. runpath_var='LD_RUN_PATH'
  11780. case $cc_basename in
  11781. CC*)
  11782. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11783. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11784. ;;
  11785. *)
  11786. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11787. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11788. ;;
  11789. esac
  11790. ;;
  11791. sysv5* | sco3.2v5* | sco5v6*)
  11792. # Note: We can NOT use -z defs as we might desire, because we do not
  11793. # link with -lc, and that would cause any symbols used from libc to
  11794. # always be unresolved, which means just about no library would
  11795. # ever link correctly. If we're not using GNU ld we use -z text
  11796. # though, which does catch some bad symbols but isn't as heavy-handed
  11797. # as -z defs.
  11798. no_undefined_flag_CXX='${wl}-z,text'
  11799. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11800. archive_cmds_need_lc_CXX=no
  11801. hardcode_shlibpath_var_CXX=no
  11802. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11803. hardcode_libdir_separator_CXX=':'
  11804. link_all_deplibs_CXX=yes
  11805. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11806. runpath_var='LD_RUN_PATH'
  11807. case $cc_basename in
  11808. CC*)
  11809. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11810. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11811. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11812. '"$old_archive_cmds_CXX"
  11813. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11814. '"$reload_cmds_CXX"
  11815. ;;
  11816. *)
  11817. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11818. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11819. ;;
  11820. esac
  11821. ;;
  11822. tandem*)
  11823. case $cc_basename in
  11824. NCC*)
  11825. # NonStop-UX NCC 3.20
  11826. # FIXME: insert proper C++ library support
  11827. ld_shlibs_CXX=no
  11828. ;;
  11829. *)
  11830. # FIXME: insert proper C++ library support
  11831. ld_shlibs_CXX=no
  11832. ;;
  11833. esac
  11834. ;;
  11835. vxworks*)
  11836. # FIXME: insert proper C++ library support
  11837. ld_shlibs_CXX=no
  11838. ;;
  11839. *)
  11840. # FIXME: insert proper C++ library support
  11841. ld_shlibs_CXX=no
  11842. ;;
  11843. esac
  11844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11845. $as_echo "$ld_shlibs_CXX" >&6; }
  11846. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11847. GCC_CXX="$GXX"
  11848. LD_CXX="$LD"
  11849. ## CAVEAT EMPTOR:
  11850. ## There is no encapsulation within the following macros, do not change
  11851. ## the running order or otherwise move them around unless you know exactly
  11852. ## what you are doing...
  11853. # Dependencies to place before and after the object being linked:
  11854. predep_objects_CXX=
  11855. postdep_objects_CXX=
  11856. predeps_CXX=
  11857. postdeps_CXX=
  11858. compiler_lib_search_path_CXX=
  11859. cat > conftest.$ac_ext <<_LT_EOF
  11860. class Foo
  11861. {
  11862. public:
  11863. Foo (void) { a = 0; }
  11864. private:
  11865. int a;
  11866. };
  11867. _LT_EOF
  11868. _lt_libdeps_save_CFLAGS=$CFLAGS
  11869. case "$CC $CFLAGS " in #(
  11870. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11871. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11872. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11873. esac
  11874. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11875. (eval $ac_compile) 2>&5
  11876. ac_status=$?
  11877. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11878. test $ac_status = 0; }; then
  11879. # Parse the compiler output and extract the necessary
  11880. # objects, libraries and library flags.
  11881. # Sentinel used to keep track of whether or not we are before
  11882. # the conftest object file.
  11883. pre_test_object_deps_done=no
  11884. for p in `eval "$output_verbose_link_cmd"`; do
  11885. case ${prev}${p} in
  11886. -L* | -R* | -l*)
  11887. # Some compilers place space between "-{L,R}" and the path.
  11888. # Remove the space.
  11889. if test $p = "-L" ||
  11890. test $p = "-R"; then
  11891. prev=$p
  11892. continue
  11893. fi
  11894. # Expand the sysroot to ease extracting the directories later.
  11895. if test -z "$prev"; then
  11896. case $p in
  11897. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11898. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11899. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11900. esac
  11901. fi
  11902. case $p in
  11903. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11904. esac
  11905. if test "$pre_test_object_deps_done" = no; then
  11906. case ${prev} in
  11907. -L | -R)
  11908. # Internal compiler library paths should come after those
  11909. # provided the user. The postdeps already come after the
  11910. # user supplied libs so there is no need to process them.
  11911. if test -z "$compiler_lib_search_path_CXX"; then
  11912. compiler_lib_search_path_CXX="${prev}${p}"
  11913. else
  11914. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11915. fi
  11916. ;;
  11917. # The "-l" case would never come before the object being
  11918. # linked, so don't bother handling this case.
  11919. esac
  11920. else
  11921. if test -z "$postdeps_CXX"; then
  11922. postdeps_CXX="${prev}${p}"
  11923. else
  11924. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11925. fi
  11926. fi
  11927. prev=
  11928. ;;
  11929. *.lto.$objext) ;; # Ignore GCC LTO objects
  11930. *.$objext)
  11931. # This assumes that the test object file only shows up
  11932. # once in the compiler output.
  11933. if test "$p" = "conftest.$objext"; then
  11934. pre_test_object_deps_done=yes
  11935. continue
  11936. fi
  11937. if test "$pre_test_object_deps_done" = no; then
  11938. if test -z "$predep_objects_CXX"; then
  11939. predep_objects_CXX="$p"
  11940. else
  11941. predep_objects_CXX="$predep_objects_CXX $p"
  11942. fi
  11943. else
  11944. if test -z "$postdep_objects_CXX"; then
  11945. postdep_objects_CXX="$p"
  11946. else
  11947. postdep_objects_CXX="$postdep_objects_CXX $p"
  11948. fi
  11949. fi
  11950. ;;
  11951. *) ;; # Ignore the rest.
  11952. esac
  11953. done
  11954. # Clean up.
  11955. rm -f a.out a.exe
  11956. else
  11957. echo "libtool.m4: error: problem compiling CXX test program"
  11958. fi
  11959. $RM -f confest.$objext
  11960. CFLAGS=$_lt_libdeps_save_CFLAGS
  11961. # PORTME: override above test on systems where it is broken
  11962. case $host_os in
  11963. interix[3-9]*)
  11964. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11965. # hack all around it, let's just trust "g++" to DTRT.
  11966. predep_objects_CXX=
  11967. postdep_objects_CXX=
  11968. postdeps_CXX=
  11969. ;;
  11970. linux*)
  11971. case `$CC -V 2>&1 | sed 5q` in
  11972. *Sun\ C*)
  11973. # Sun C++ 5.9
  11974. # The more standards-conforming stlport4 library is
  11975. # incompatible with the Cstd library. Avoid specifying
  11976. # it if it's in CXXFLAGS. Ignore libCrun as
  11977. # -library=stlport4 depends on it.
  11978. case " $CXX $CXXFLAGS " in
  11979. *" -library=stlport4 "*)
  11980. solaris_use_stlport4=yes
  11981. ;;
  11982. esac
  11983. if test "$solaris_use_stlport4" != yes; then
  11984. postdeps_CXX='-library=Cstd -library=Crun'
  11985. fi
  11986. ;;
  11987. esac
  11988. ;;
  11989. solaris*)
  11990. case $cc_basename in
  11991. CC* | sunCC*)
  11992. # The more standards-conforming stlport4 library is
  11993. # incompatible with the Cstd library. Avoid specifying
  11994. # it if it's in CXXFLAGS. Ignore libCrun as
  11995. # -library=stlport4 depends on it.
  11996. case " $CXX $CXXFLAGS " in
  11997. *" -library=stlport4 "*)
  11998. solaris_use_stlport4=yes
  11999. ;;
  12000. esac
  12001. # Adding this requires a known-good setup of shared libraries for
  12002. # Sun compiler versions before 5.6, else PIC objects from an old
  12003. # archive will be linked into the output, leading to subtle bugs.
  12004. if test "$solaris_use_stlport4" != yes; then
  12005. postdeps_CXX='-library=Cstd -library=Crun'
  12006. fi
  12007. ;;
  12008. esac
  12009. ;;
  12010. esac
  12011. case " $postdeps_CXX " in
  12012. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12013. esac
  12014. compiler_lib_search_dirs_CXX=
  12015. if test -n "${compiler_lib_search_path_CXX}"; then
  12016. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12017. fi
  12018. lt_prog_compiler_wl_CXX=
  12019. lt_prog_compiler_pic_CXX=
  12020. lt_prog_compiler_static_CXX=
  12021. # C++ specific cases for pic, static, wl, etc.
  12022. if test "$GXX" = yes; then
  12023. lt_prog_compiler_wl_CXX='-Wl,'
  12024. lt_prog_compiler_static_CXX='-static'
  12025. case $host_os in
  12026. aix*)
  12027. # All AIX code is PIC.
  12028. if test "$host_cpu" = ia64; then
  12029. # AIX 5 now supports IA64 processor
  12030. lt_prog_compiler_static_CXX='-Bstatic'
  12031. fi
  12032. ;;
  12033. amigaos*)
  12034. case $host_cpu in
  12035. powerpc)
  12036. # see comment about AmigaOS4 .so support
  12037. lt_prog_compiler_pic_CXX='-fPIC'
  12038. ;;
  12039. m68k)
  12040. # FIXME: we need at least 68020 code to build shared libraries, but
  12041. # adding the `-m68020' flag to GCC prevents building anything better,
  12042. # like `-m68040'.
  12043. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12044. ;;
  12045. esac
  12046. ;;
  12047. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12048. # PIC is the default for these OSes.
  12049. ;;
  12050. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12051. # This hack is so that the source file can tell whether it is being
  12052. # built for inclusion in a dll (and should export symbols for example).
  12053. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12054. # (--disable-auto-import) libraries
  12055. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12056. ;;
  12057. darwin* | rhapsody*)
  12058. # PIC is the default on this platform
  12059. # Common symbols not allowed in MH_DYLIB files
  12060. lt_prog_compiler_pic_CXX='-fno-common'
  12061. ;;
  12062. *djgpp*)
  12063. # DJGPP does not support shared libraries at all
  12064. lt_prog_compiler_pic_CXX=
  12065. ;;
  12066. haiku*)
  12067. # PIC is the default for Haiku.
  12068. # The "-static" flag exists, but is broken.
  12069. lt_prog_compiler_static_CXX=
  12070. ;;
  12071. interix[3-9]*)
  12072. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12073. # Instead, we relocate shared libraries at runtime.
  12074. ;;
  12075. sysv4*MP*)
  12076. if test -d /usr/nec; then
  12077. lt_prog_compiler_pic_CXX=-Kconform_pic
  12078. fi
  12079. ;;
  12080. hpux*)
  12081. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12082. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12083. # sets the default TLS model and affects inlining.
  12084. case $host_cpu in
  12085. hppa*64*)
  12086. ;;
  12087. *)
  12088. lt_prog_compiler_pic_CXX='-fPIC'
  12089. ;;
  12090. esac
  12091. ;;
  12092. *qnx* | *nto*)
  12093. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12094. # it will coredump.
  12095. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12096. ;;
  12097. *)
  12098. lt_prog_compiler_pic_CXX='-fPIC'
  12099. ;;
  12100. esac
  12101. else
  12102. case $host_os in
  12103. aix[4-9]*)
  12104. # All AIX code is PIC.
  12105. if test "$host_cpu" = ia64; then
  12106. # AIX 5 now supports IA64 processor
  12107. lt_prog_compiler_static_CXX='-Bstatic'
  12108. else
  12109. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12110. fi
  12111. ;;
  12112. chorus*)
  12113. case $cc_basename in
  12114. cxch68*)
  12115. # Green Hills C++ Compiler
  12116. # _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"
  12117. ;;
  12118. esac
  12119. ;;
  12120. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12121. # This hack is so that the source file can tell whether it is being
  12122. # built for inclusion in a dll (and should export symbols for example).
  12123. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12124. ;;
  12125. dgux*)
  12126. case $cc_basename in
  12127. ec++*)
  12128. lt_prog_compiler_pic_CXX='-KPIC'
  12129. ;;
  12130. ghcx*)
  12131. # Green Hills C++ Compiler
  12132. lt_prog_compiler_pic_CXX='-pic'
  12133. ;;
  12134. *)
  12135. ;;
  12136. esac
  12137. ;;
  12138. freebsd* | dragonfly*)
  12139. # FreeBSD uses GNU C++
  12140. ;;
  12141. hpux9* | hpux10* | hpux11*)
  12142. case $cc_basename in
  12143. CC*)
  12144. lt_prog_compiler_wl_CXX='-Wl,'
  12145. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12146. if test "$host_cpu" != ia64; then
  12147. lt_prog_compiler_pic_CXX='+Z'
  12148. fi
  12149. ;;
  12150. aCC*)
  12151. lt_prog_compiler_wl_CXX='-Wl,'
  12152. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12153. case $host_cpu in
  12154. hppa*64*|ia64*)
  12155. # +Z the default
  12156. ;;
  12157. *)
  12158. lt_prog_compiler_pic_CXX='+Z'
  12159. ;;
  12160. esac
  12161. ;;
  12162. *)
  12163. ;;
  12164. esac
  12165. ;;
  12166. interix*)
  12167. # This is c89, which is MS Visual C++ (no shared libs)
  12168. # Anyone wants to do a port?
  12169. ;;
  12170. irix5* | irix6* | nonstopux*)
  12171. case $cc_basename in
  12172. CC*)
  12173. lt_prog_compiler_wl_CXX='-Wl,'
  12174. lt_prog_compiler_static_CXX='-non_shared'
  12175. # CC pic flag -KPIC is the default.
  12176. ;;
  12177. *)
  12178. ;;
  12179. esac
  12180. ;;
  12181. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12182. case $cc_basename in
  12183. KCC*)
  12184. # KAI C++ Compiler
  12185. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12186. lt_prog_compiler_pic_CXX='-fPIC'
  12187. ;;
  12188. ecpc* )
  12189. # old Intel C++ for x86_64 which still supported -KPIC.
  12190. lt_prog_compiler_wl_CXX='-Wl,'
  12191. lt_prog_compiler_pic_CXX='-KPIC'
  12192. lt_prog_compiler_static_CXX='-static'
  12193. ;;
  12194. icpc* )
  12195. # Intel C++, used to be incompatible with GCC.
  12196. # ICC 10 doesn't accept -KPIC any more.
  12197. lt_prog_compiler_wl_CXX='-Wl,'
  12198. lt_prog_compiler_pic_CXX='-fPIC'
  12199. lt_prog_compiler_static_CXX='-static'
  12200. ;;
  12201. pgCC* | pgcpp*)
  12202. # Portland Group C++ compiler
  12203. lt_prog_compiler_wl_CXX='-Wl,'
  12204. lt_prog_compiler_pic_CXX='-fpic'
  12205. lt_prog_compiler_static_CXX='-Bstatic'
  12206. ;;
  12207. cxx*)
  12208. # Compaq C++
  12209. # Make sure the PIC flag is empty. It appears that all Alpha
  12210. # Linux and Compaq Tru64 Unix objects are PIC.
  12211. lt_prog_compiler_pic_CXX=
  12212. lt_prog_compiler_static_CXX='-non_shared'
  12213. ;;
  12214. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12215. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12216. lt_prog_compiler_wl_CXX='-Wl,'
  12217. lt_prog_compiler_pic_CXX='-qpic'
  12218. lt_prog_compiler_static_CXX='-qstaticlink'
  12219. ;;
  12220. *)
  12221. case `$CC -V 2>&1 | sed 5q` in
  12222. *Sun\ C*)
  12223. # Sun C++ 5.9
  12224. lt_prog_compiler_pic_CXX='-KPIC'
  12225. lt_prog_compiler_static_CXX='-Bstatic'
  12226. lt_prog_compiler_wl_CXX='-Qoption ld '
  12227. ;;
  12228. esac
  12229. ;;
  12230. esac
  12231. ;;
  12232. lynxos*)
  12233. ;;
  12234. m88k*)
  12235. ;;
  12236. mvs*)
  12237. case $cc_basename in
  12238. cxx*)
  12239. lt_prog_compiler_pic_CXX='-W c,exportall'
  12240. ;;
  12241. *)
  12242. ;;
  12243. esac
  12244. ;;
  12245. netbsd*)
  12246. ;;
  12247. *qnx* | *nto*)
  12248. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12249. # it will coredump.
  12250. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12251. ;;
  12252. osf3* | osf4* | osf5*)
  12253. case $cc_basename in
  12254. KCC*)
  12255. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12256. ;;
  12257. RCC*)
  12258. # Rational C++ 2.4.1
  12259. lt_prog_compiler_pic_CXX='-pic'
  12260. ;;
  12261. cxx*)
  12262. # Digital/Compaq C++
  12263. lt_prog_compiler_wl_CXX='-Wl,'
  12264. # Make sure the PIC flag is empty. It appears that all Alpha
  12265. # Linux and Compaq Tru64 Unix objects are PIC.
  12266. lt_prog_compiler_pic_CXX=
  12267. lt_prog_compiler_static_CXX='-non_shared'
  12268. ;;
  12269. *)
  12270. ;;
  12271. esac
  12272. ;;
  12273. psos*)
  12274. ;;
  12275. solaris*)
  12276. case $cc_basename in
  12277. CC* | sunCC*)
  12278. # Sun C++ 4.2, 5.x and Centerline C++
  12279. lt_prog_compiler_pic_CXX='-KPIC'
  12280. lt_prog_compiler_static_CXX='-Bstatic'
  12281. lt_prog_compiler_wl_CXX='-Qoption ld '
  12282. ;;
  12283. gcx*)
  12284. # Green Hills C++ Compiler
  12285. lt_prog_compiler_pic_CXX='-PIC'
  12286. ;;
  12287. *)
  12288. ;;
  12289. esac
  12290. ;;
  12291. sunos4*)
  12292. case $cc_basename in
  12293. CC*)
  12294. # Sun C++ 4.x
  12295. lt_prog_compiler_pic_CXX='-pic'
  12296. lt_prog_compiler_static_CXX='-Bstatic'
  12297. ;;
  12298. lcc*)
  12299. # Lucid
  12300. lt_prog_compiler_pic_CXX='-pic'
  12301. ;;
  12302. *)
  12303. ;;
  12304. esac
  12305. ;;
  12306. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12307. case $cc_basename in
  12308. CC*)
  12309. lt_prog_compiler_wl_CXX='-Wl,'
  12310. lt_prog_compiler_pic_CXX='-KPIC'
  12311. lt_prog_compiler_static_CXX='-Bstatic'
  12312. ;;
  12313. esac
  12314. ;;
  12315. tandem*)
  12316. case $cc_basename in
  12317. NCC*)
  12318. # NonStop-UX NCC 3.20
  12319. lt_prog_compiler_pic_CXX='-KPIC'
  12320. ;;
  12321. *)
  12322. ;;
  12323. esac
  12324. ;;
  12325. vxworks*)
  12326. ;;
  12327. *)
  12328. lt_prog_compiler_can_build_shared_CXX=no
  12329. ;;
  12330. esac
  12331. fi
  12332. case $host_os in
  12333. # For platforms which do not support PIC, -DPIC is meaningless:
  12334. *djgpp*)
  12335. lt_prog_compiler_pic_CXX=
  12336. ;;
  12337. *)
  12338. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12339. ;;
  12340. esac
  12341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12342. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12343. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12344. $as_echo_n "(cached) " >&6
  12345. else
  12346. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12347. fi
  12348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12349. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12350. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12351. #
  12352. # Check to make sure the PIC flag actually works.
  12353. #
  12354. if test -n "$lt_prog_compiler_pic_CXX"; then
  12355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12356. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12357. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12358. $as_echo_n "(cached) " >&6
  12359. else
  12360. lt_cv_prog_compiler_pic_works_CXX=no
  12361. ac_outfile=conftest.$ac_objext
  12362. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12363. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12364. # Insert the option either (1) after the last *FLAGS variable, or
  12365. # (2) before a word containing "conftest.", or (3) at the end.
  12366. # Note that $ac_compile itself does not contain backslashes and begins
  12367. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12368. # The option is referenced via a variable to avoid confusing sed.
  12369. lt_compile=`echo "$ac_compile" | $SED \
  12370. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12371. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12372. -e 's:$: $lt_compiler_flag:'`
  12373. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12374. (eval "$lt_compile" 2>conftest.err)
  12375. ac_status=$?
  12376. cat conftest.err >&5
  12377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12378. if (exit $ac_status) && test -s "$ac_outfile"; then
  12379. # The compiler can only warn and ignore the option if not recognized
  12380. # So say no if there are warnings other than the usual output.
  12381. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12382. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12383. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12384. lt_cv_prog_compiler_pic_works_CXX=yes
  12385. fi
  12386. fi
  12387. $RM conftest*
  12388. fi
  12389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12390. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12391. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12392. case $lt_prog_compiler_pic_CXX in
  12393. "" | " "*) ;;
  12394. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12395. esac
  12396. else
  12397. lt_prog_compiler_pic_CXX=
  12398. lt_prog_compiler_can_build_shared_CXX=no
  12399. fi
  12400. fi
  12401. #
  12402. # Check to make sure the static flag actually works.
  12403. #
  12404. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12406. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12407. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12408. $as_echo_n "(cached) " >&6
  12409. else
  12410. lt_cv_prog_compiler_static_works_CXX=no
  12411. save_LDFLAGS="$LDFLAGS"
  12412. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12413. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12414. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12415. # The linker can only warn and ignore the option if not recognized
  12416. # So say no if there are warnings
  12417. if test -s conftest.err; then
  12418. # Append any errors to the config.log.
  12419. cat conftest.err 1>&5
  12420. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12421. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12422. if diff conftest.exp conftest.er2 >/dev/null; then
  12423. lt_cv_prog_compiler_static_works_CXX=yes
  12424. fi
  12425. else
  12426. lt_cv_prog_compiler_static_works_CXX=yes
  12427. fi
  12428. fi
  12429. $RM -r conftest*
  12430. LDFLAGS="$save_LDFLAGS"
  12431. fi
  12432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12433. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12434. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12435. :
  12436. else
  12437. lt_prog_compiler_static_CXX=
  12438. fi
  12439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12440. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12441. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12442. $as_echo_n "(cached) " >&6
  12443. else
  12444. lt_cv_prog_compiler_c_o_CXX=no
  12445. $RM -r conftest 2>/dev/null
  12446. mkdir conftest
  12447. cd conftest
  12448. mkdir out
  12449. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12450. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12451. # Insert the option either (1) after the last *FLAGS variable, or
  12452. # (2) before a word containing "conftest.", or (3) at the end.
  12453. # Note that $ac_compile itself does not contain backslashes and begins
  12454. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12455. lt_compile=`echo "$ac_compile" | $SED \
  12456. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12457. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12458. -e 's:$: $lt_compiler_flag:'`
  12459. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12460. (eval "$lt_compile" 2>out/conftest.err)
  12461. ac_status=$?
  12462. cat out/conftest.err >&5
  12463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12464. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12465. then
  12466. # The compiler can only warn and ignore the option if not recognized
  12467. # So say no if there are warnings
  12468. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12469. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12470. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12471. lt_cv_prog_compiler_c_o_CXX=yes
  12472. fi
  12473. fi
  12474. chmod u+w . 2>&5
  12475. $RM conftest*
  12476. # SGI C++ compiler will create directory out/ii_files/ for
  12477. # template instantiation
  12478. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12479. $RM out/* && rmdir out
  12480. cd ..
  12481. $RM -r conftest
  12482. $RM conftest*
  12483. fi
  12484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12485. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12487. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12488. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12489. $as_echo_n "(cached) " >&6
  12490. else
  12491. lt_cv_prog_compiler_c_o_CXX=no
  12492. $RM -r conftest 2>/dev/null
  12493. mkdir conftest
  12494. cd conftest
  12495. mkdir out
  12496. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12497. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12498. # Insert the option either (1) after the last *FLAGS variable, or
  12499. # (2) before a word containing "conftest.", or (3) at the end.
  12500. # Note that $ac_compile itself does not contain backslashes and begins
  12501. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12502. lt_compile=`echo "$ac_compile" | $SED \
  12503. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12504. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12505. -e 's:$: $lt_compiler_flag:'`
  12506. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12507. (eval "$lt_compile" 2>out/conftest.err)
  12508. ac_status=$?
  12509. cat out/conftest.err >&5
  12510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12511. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12512. then
  12513. # The compiler can only warn and ignore the option if not recognized
  12514. # So say no if there are warnings
  12515. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12516. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12517. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12518. lt_cv_prog_compiler_c_o_CXX=yes
  12519. fi
  12520. fi
  12521. chmod u+w . 2>&5
  12522. $RM conftest*
  12523. # SGI C++ compiler will create directory out/ii_files/ for
  12524. # template instantiation
  12525. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12526. $RM out/* && rmdir out
  12527. cd ..
  12528. $RM -r conftest
  12529. $RM conftest*
  12530. fi
  12531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12532. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12533. hard_links="nottested"
  12534. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12535. # do not overwrite the value of need_locks provided by the user
  12536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12537. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12538. hard_links=yes
  12539. $RM conftest*
  12540. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12541. touch conftest.a
  12542. ln conftest.a conftest.b 2>&5 || hard_links=no
  12543. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12545. $as_echo "$hard_links" >&6; }
  12546. if test "$hard_links" = no; then
  12547. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12548. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12549. need_locks=warn
  12550. fi
  12551. else
  12552. need_locks=no
  12553. fi
  12554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12555. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12556. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12557. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12558. case $host_os in
  12559. aix[4-9]*)
  12560. # If we're using GNU nm, then we don't want the "-C" option.
  12561. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12562. # Also, AIX nm treats weak defined symbols like other global defined
  12563. # symbols, whereas GNU nm marks them as "W".
  12564. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12565. 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'
  12566. else
  12567. 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'
  12568. fi
  12569. ;;
  12570. pw32*)
  12571. export_symbols_cmds_CXX="$ltdll_cmds"
  12572. ;;
  12573. cygwin* | mingw* | cegcc*)
  12574. case $cc_basename in
  12575. cl*)
  12576. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12577. ;;
  12578. *)
  12579. 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'
  12580. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12581. ;;
  12582. esac
  12583. ;;
  12584. *)
  12585. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12586. ;;
  12587. esac
  12588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12589. $as_echo "$ld_shlibs_CXX" >&6; }
  12590. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12591. with_gnu_ld_CXX=$with_gnu_ld
  12592. #
  12593. # Do we need to explicitly link libc?
  12594. #
  12595. case "x$archive_cmds_need_lc_CXX" in
  12596. x|xyes)
  12597. # Assume -lc should be added
  12598. archive_cmds_need_lc_CXX=yes
  12599. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12600. case $archive_cmds_CXX in
  12601. *'~'*)
  12602. # FIXME: we may have to deal with multi-command sequences.
  12603. ;;
  12604. '$CC '*)
  12605. # Test whether the compiler implicitly links with -lc since on some
  12606. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12607. # to ld, don't add -lc before -lgcc.
  12608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12609. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12610. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12611. $as_echo_n "(cached) " >&6
  12612. else
  12613. $RM conftest*
  12614. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12615. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12616. (eval $ac_compile) 2>&5
  12617. ac_status=$?
  12618. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12619. test $ac_status = 0; } 2>conftest.err; then
  12620. soname=conftest
  12621. lib=conftest
  12622. libobjs=conftest.$ac_objext
  12623. deplibs=
  12624. wl=$lt_prog_compiler_wl_CXX
  12625. pic_flag=$lt_prog_compiler_pic_CXX
  12626. compiler_flags=-v
  12627. linker_flags=-v
  12628. verstring=
  12629. output_objdir=.
  12630. libname=conftest
  12631. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12632. allow_undefined_flag_CXX=
  12633. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12634. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12635. ac_status=$?
  12636. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12637. test $ac_status = 0; }
  12638. then
  12639. lt_cv_archive_cmds_need_lc_CXX=no
  12640. else
  12641. lt_cv_archive_cmds_need_lc_CXX=yes
  12642. fi
  12643. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12644. else
  12645. cat conftest.err 1>&5
  12646. fi
  12647. $RM conftest*
  12648. fi
  12649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12650. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12651. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12652. ;;
  12653. esac
  12654. fi
  12655. ;;
  12656. esac
  12657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12658. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12659. library_names_spec=
  12660. libname_spec='lib$name'
  12661. soname_spec=
  12662. shrext_cmds=".so"
  12663. postinstall_cmds=
  12664. postuninstall_cmds=
  12665. finish_cmds=
  12666. finish_eval=
  12667. shlibpath_var=
  12668. shlibpath_overrides_runpath=unknown
  12669. version_type=none
  12670. dynamic_linker="$host_os ld.so"
  12671. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12672. need_lib_prefix=unknown
  12673. hardcode_into_libs=no
  12674. # when you set need_version to no, make sure it does not cause -set_version
  12675. # flags to be left without arguments
  12676. need_version=unknown
  12677. case $host_os in
  12678. aix3*)
  12679. version_type=linux # correct to gnu/linux during the next big refactor
  12680. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12681. shlibpath_var=LIBPATH
  12682. # AIX 3 has no versioning support, so we append a major version to the name.
  12683. soname_spec='${libname}${release}${shared_ext}$major'
  12684. ;;
  12685. aix[4-9]*)
  12686. version_type=linux # correct to gnu/linux during the next big refactor
  12687. need_lib_prefix=no
  12688. need_version=no
  12689. hardcode_into_libs=yes
  12690. if test "$host_cpu" = ia64; then
  12691. # AIX 5 supports IA64
  12692. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12693. shlibpath_var=LD_LIBRARY_PATH
  12694. else
  12695. # With GCC up to 2.95.x, collect2 would create an import file
  12696. # for dependence libraries. The import file would start with
  12697. # the line `#! .'. This would cause the generated library to
  12698. # depend on `.', always an invalid library. This was fixed in
  12699. # development snapshots of GCC prior to 3.0.
  12700. case $host_os in
  12701. aix4 | aix4.[01] | aix4.[01].*)
  12702. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12703. echo ' yes '
  12704. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12705. :
  12706. else
  12707. can_build_shared=no
  12708. fi
  12709. ;;
  12710. esac
  12711. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12712. # soname into executable. Probably we can add versioning support to
  12713. # collect2, so additional links can be useful in future.
  12714. if test "$aix_use_runtimelinking" = yes; then
  12715. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12716. # instead of lib<name>.a to let people know that these are not
  12717. # typical AIX shared libraries.
  12718. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12719. else
  12720. # We preserve .a as extension for shared libraries through AIX4.2
  12721. # and later when we are not doing run time linking.
  12722. library_names_spec='${libname}${release}.a $libname.a'
  12723. soname_spec='${libname}${release}${shared_ext}$major'
  12724. fi
  12725. shlibpath_var=LIBPATH
  12726. fi
  12727. ;;
  12728. amigaos*)
  12729. case $host_cpu in
  12730. powerpc)
  12731. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12732. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12733. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12734. ;;
  12735. m68k)
  12736. library_names_spec='$libname.ixlibrary $libname.a'
  12737. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12738. 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'
  12739. ;;
  12740. esac
  12741. ;;
  12742. beos*)
  12743. library_names_spec='${libname}${shared_ext}'
  12744. dynamic_linker="$host_os ld.so"
  12745. shlibpath_var=LIBRARY_PATH
  12746. ;;
  12747. bsdi[45]*)
  12748. version_type=linux # correct to gnu/linux during the next big refactor
  12749. need_version=no
  12750. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12751. soname_spec='${libname}${release}${shared_ext}$major'
  12752. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12753. shlibpath_var=LD_LIBRARY_PATH
  12754. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12755. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12756. # the default ld.so.conf also contains /usr/contrib/lib and
  12757. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12758. # libtool to hard-code these into programs
  12759. ;;
  12760. cygwin* | mingw* | pw32* | cegcc*)
  12761. version_type=windows
  12762. shrext_cmds=".dll"
  12763. need_version=no
  12764. need_lib_prefix=no
  12765. case $GCC,$cc_basename in
  12766. yes,*)
  12767. # gcc
  12768. library_names_spec='$libname.dll.a'
  12769. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12770. postinstall_cmds='base_file=`basename \${file}`~
  12771. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12772. dldir=$destdir/`dirname \$dlpath`~
  12773. test -d \$dldir || mkdir -p \$dldir~
  12774. $install_prog $dir/$dlname \$dldir/$dlname~
  12775. chmod a+x \$dldir/$dlname~
  12776. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12777. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12778. fi'
  12779. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12780. dlpath=$dir/\$dldll~
  12781. $RM \$dlpath'
  12782. shlibpath_overrides_runpath=yes
  12783. case $host_os in
  12784. cygwin*)
  12785. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12786. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12787. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12788. ;;
  12789. mingw* | cegcc*)
  12790. # MinGW DLLs use traditional 'lib' prefix
  12791. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12792. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12793. ;;
  12794. pw32*)
  12795. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12796. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12797. ;;
  12798. esac
  12799. dynamic_linker='Win32 ld.exe'
  12800. ;;
  12801. *,cl*)
  12802. # Native MSVC
  12803. libname_spec='$name'
  12804. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12805. library_names_spec='${libname}.dll.lib'
  12806. case $build_os in
  12807. mingw*)
  12808. sys_lib_search_path_spec=
  12809. lt_save_ifs=$IFS
  12810. IFS=';'
  12811. for lt_path in $LIB
  12812. do
  12813. IFS=$lt_save_ifs
  12814. # Let DOS variable expansion print the short 8.3 style file name.
  12815. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12816. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12817. done
  12818. IFS=$lt_save_ifs
  12819. # Convert to MSYS style.
  12820. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12821. ;;
  12822. cygwin*)
  12823. # Convert to unix form, then to dos form, then back to unix form
  12824. # but this time dos style (no spaces!) so that the unix form looks
  12825. # like /cygdrive/c/PROGRA~1:/cygdr...
  12826. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12827. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12828. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12829. ;;
  12830. *)
  12831. sys_lib_search_path_spec="$LIB"
  12832. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12833. # It is most probably a Windows format PATH.
  12834. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12835. else
  12836. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12837. fi
  12838. # FIXME: find the short name or the path components, as spaces are
  12839. # common. (e.g. "Program Files" -> "PROGRA~1")
  12840. ;;
  12841. esac
  12842. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12843. postinstall_cmds='base_file=`basename \${file}`~
  12844. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12845. dldir=$destdir/`dirname \$dlpath`~
  12846. test -d \$dldir || mkdir -p \$dldir~
  12847. $install_prog $dir/$dlname \$dldir/$dlname'
  12848. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12849. dlpath=$dir/\$dldll~
  12850. $RM \$dlpath'
  12851. shlibpath_overrides_runpath=yes
  12852. dynamic_linker='Win32 link.exe'
  12853. ;;
  12854. *)
  12855. # Assume MSVC wrapper
  12856. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12857. dynamic_linker='Win32 ld.exe'
  12858. ;;
  12859. esac
  12860. # FIXME: first we should search . and the directory the executable is in
  12861. shlibpath_var=PATH
  12862. ;;
  12863. darwin* | rhapsody*)
  12864. dynamic_linker="$host_os dyld"
  12865. version_type=darwin
  12866. need_lib_prefix=no
  12867. need_version=no
  12868. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12869. soname_spec='${libname}${release}${major}$shared_ext'
  12870. shlibpath_overrides_runpath=yes
  12871. shlibpath_var=DYLD_LIBRARY_PATH
  12872. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12873. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12874. ;;
  12875. dgux*)
  12876. version_type=linux # correct to gnu/linux during the next big refactor
  12877. need_lib_prefix=no
  12878. need_version=no
  12879. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12880. soname_spec='${libname}${release}${shared_ext}$major'
  12881. shlibpath_var=LD_LIBRARY_PATH
  12882. ;;
  12883. freebsd* | dragonfly*)
  12884. # DragonFly does not have aout. When/if they implement a new
  12885. # versioning mechanism, adjust this.
  12886. if test -x /usr/bin/objformat; then
  12887. objformat=`/usr/bin/objformat`
  12888. else
  12889. case $host_os in
  12890. freebsd[23].*) objformat=aout ;;
  12891. *) objformat=elf ;;
  12892. esac
  12893. fi
  12894. version_type=freebsd-$objformat
  12895. case $version_type in
  12896. freebsd-elf*)
  12897. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12898. need_version=no
  12899. need_lib_prefix=no
  12900. ;;
  12901. freebsd-*)
  12902. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12903. need_version=yes
  12904. ;;
  12905. esac
  12906. shlibpath_var=LD_LIBRARY_PATH
  12907. case $host_os in
  12908. freebsd2.*)
  12909. shlibpath_overrides_runpath=yes
  12910. ;;
  12911. freebsd3.[01]* | freebsdelf3.[01]*)
  12912. shlibpath_overrides_runpath=yes
  12913. hardcode_into_libs=yes
  12914. ;;
  12915. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12916. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12917. shlibpath_overrides_runpath=no
  12918. hardcode_into_libs=yes
  12919. ;;
  12920. *) # from 4.6 on, and DragonFly
  12921. shlibpath_overrides_runpath=yes
  12922. hardcode_into_libs=yes
  12923. ;;
  12924. esac
  12925. ;;
  12926. gnu*)
  12927. version_type=linux # correct to gnu/linux during the next big refactor
  12928. need_lib_prefix=no
  12929. need_version=no
  12930. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12931. soname_spec='${libname}${release}${shared_ext}$major'
  12932. shlibpath_var=LD_LIBRARY_PATH
  12933. shlibpath_overrides_runpath=no
  12934. hardcode_into_libs=yes
  12935. ;;
  12936. haiku*)
  12937. version_type=linux # correct to gnu/linux during the next big refactor
  12938. need_lib_prefix=no
  12939. need_version=no
  12940. dynamic_linker="$host_os runtime_loader"
  12941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12942. soname_spec='${libname}${release}${shared_ext}$major'
  12943. shlibpath_var=LIBRARY_PATH
  12944. shlibpath_overrides_runpath=yes
  12945. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12946. hardcode_into_libs=yes
  12947. ;;
  12948. hpux9* | hpux10* | hpux11*)
  12949. # Give a soname corresponding to the major version so that dld.sl refuses to
  12950. # link against other versions.
  12951. version_type=sunos
  12952. need_lib_prefix=no
  12953. need_version=no
  12954. case $host_cpu in
  12955. ia64*)
  12956. shrext_cmds='.so'
  12957. hardcode_into_libs=yes
  12958. dynamic_linker="$host_os dld.so"
  12959. shlibpath_var=LD_LIBRARY_PATH
  12960. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12962. soname_spec='${libname}${release}${shared_ext}$major'
  12963. if test "X$HPUX_IA64_MODE" = X32; then
  12964. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12965. else
  12966. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12967. fi
  12968. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12969. ;;
  12970. hppa*64*)
  12971. shrext_cmds='.sl'
  12972. hardcode_into_libs=yes
  12973. dynamic_linker="$host_os dld.sl"
  12974. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12975. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12976. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12977. soname_spec='${libname}${release}${shared_ext}$major'
  12978. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12979. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12980. ;;
  12981. *)
  12982. shrext_cmds='.sl'
  12983. dynamic_linker="$host_os dld.sl"
  12984. shlibpath_var=SHLIB_PATH
  12985. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12987. soname_spec='${libname}${release}${shared_ext}$major'
  12988. ;;
  12989. esac
  12990. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12991. postinstall_cmds='chmod 555 $lib'
  12992. # or fails outright, so override atomically:
  12993. install_override_mode=555
  12994. ;;
  12995. interix[3-9]*)
  12996. version_type=linux # correct to gnu/linux during the next big refactor
  12997. need_lib_prefix=no
  12998. need_version=no
  12999. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13000. soname_spec='${libname}${release}${shared_ext}$major'
  13001. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13002. shlibpath_var=LD_LIBRARY_PATH
  13003. shlibpath_overrides_runpath=no
  13004. hardcode_into_libs=yes
  13005. ;;
  13006. irix5* | irix6* | nonstopux*)
  13007. case $host_os in
  13008. nonstopux*) version_type=nonstopux ;;
  13009. *)
  13010. if test "$lt_cv_prog_gnu_ld" = yes; then
  13011. version_type=linux # correct to gnu/linux during the next big refactor
  13012. else
  13013. version_type=irix
  13014. fi ;;
  13015. esac
  13016. need_lib_prefix=no
  13017. need_version=no
  13018. soname_spec='${libname}${release}${shared_ext}$major'
  13019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13020. case $host_os in
  13021. irix5* | nonstopux*)
  13022. libsuff= shlibsuff=
  13023. ;;
  13024. *)
  13025. case $LD in # libtool.m4 will add one of these switches to LD
  13026. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13027. libsuff= shlibsuff= libmagic=32-bit;;
  13028. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13029. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13030. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13031. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13032. *) libsuff= shlibsuff= libmagic=never-match;;
  13033. esac
  13034. ;;
  13035. esac
  13036. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13037. shlibpath_overrides_runpath=no
  13038. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13039. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13040. hardcode_into_libs=yes
  13041. ;;
  13042. # No shared lib support for Linux oldld, aout, or coff.
  13043. linux*oldld* | linux*aout* | linux*coff*)
  13044. dynamic_linker=no
  13045. ;;
  13046. # This must be glibc/ELF.
  13047. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13048. version_type=linux # correct to gnu/linux during the next big refactor
  13049. need_lib_prefix=no
  13050. need_version=no
  13051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13052. soname_spec='${libname}${release}${shared_ext}$major'
  13053. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13054. shlibpath_var=LD_LIBRARY_PATH
  13055. shlibpath_overrides_runpath=no
  13056. # Some binutils ld are patched to set DT_RUNPATH
  13057. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13058. $as_echo_n "(cached) " >&6
  13059. else
  13060. lt_cv_shlibpath_overrides_runpath=no
  13061. save_LDFLAGS=$LDFLAGS
  13062. save_libdir=$libdir
  13063. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13064. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13066. /* end confdefs.h. */
  13067. int
  13068. main ()
  13069. {
  13070. ;
  13071. return 0;
  13072. }
  13073. _ACEOF
  13074. if ac_fn_cxx_try_link "$LINENO"; then :
  13075. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13076. lt_cv_shlibpath_overrides_runpath=yes
  13077. fi
  13078. fi
  13079. rm -f core conftest.err conftest.$ac_objext \
  13080. conftest$ac_exeext conftest.$ac_ext
  13081. LDFLAGS=$save_LDFLAGS
  13082. libdir=$save_libdir
  13083. fi
  13084. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13085. # This implies no fast_install, which is unacceptable.
  13086. # Some rework will be needed to allow for fast_install
  13087. # before this can be enabled.
  13088. hardcode_into_libs=yes
  13089. # Append ld.so.conf contents to the search path
  13090. if test -f /etc/ld.so.conf; then
  13091. 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' ' '`
  13092. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13093. fi
  13094. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13095. # powerpc, because MkLinux only supported shared libraries with the
  13096. # GNU dynamic linker. Since this was broken with cross compilers,
  13097. # most powerpc-linux boxes support dynamic linking these days and
  13098. # people can always --disable-shared, the test was removed, and we
  13099. # assume the GNU/Linux dynamic linker is in use.
  13100. dynamic_linker='GNU/Linux ld.so'
  13101. ;;
  13102. netbsd*)
  13103. version_type=sunos
  13104. need_lib_prefix=no
  13105. need_version=no
  13106. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13108. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13109. dynamic_linker='NetBSD (a.out) ld.so'
  13110. else
  13111. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13112. soname_spec='${libname}${release}${shared_ext}$major'
  13113. dynamic_linker='NetBSD ld.elf_so'
  13114. fi
  13115. shlibpath_var=LD_LIBRARY_PATH
  13116. shlibpath_overrides_runpath=yes
  13117. hardcode_into_libs=yes
  13118. ;;
  13119. newsos6)
  13120. version_type=linux # correct to gnu/linux during the next big refactor
  13121. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13122. shlibpath_var=LD_LIBRARY_PATH
  13123. shlibpath_overrides_runpath=yes
  13124. ;;
  13125. *nto* | *qnx*)
  13126. version_type=qnx
  13127. need_lib_prefix=no
  13128. need_version=no
  13129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13130. soname_spec='${libname}${release}${shared_ext}$major'
  13131. shlibpath_var=LD_LIBRARY_PATH
  13132. shlibpath_overrides_runpath=no
  13133. hardcode_into_libs=yes
  13134. dynamic_linker='ldqnx.so'
  13135. ;;
  13136. openbsd*)
  13137. version_type=sunos
  13138. sys_lib_dlsearch_path_spec="/usr/lib"
  13139. need_lib_prefix=no
  13140. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13141. case $host_os in
  13142. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13143. *) need_version=no ;;
  13144. esac
  13145. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13146. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13147. shlibpath_var=LD_LIBRARY_PATH
  13148. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13149. case $host_os in
  13150. openbsd2.[89] | openbsd2.[89].*)
  13151. shlibpath_overrides_runpath=no
  13152. ;;
  13153. *)
  13154. shlibpath_overrides_runpath=yes
  13155. ;;
  13156. esac
  13157. else
  13158. shlibpath_overrides_runpath=yes
  13159. fi
  13160. ;;
  13161. os2*)
  13162. libname_spec='$name'
  13163. shrext_cmds=".dll"
  13164. need_lib_prefix=no
  13165. library_names_spec='$libname${shared_ext} $libname.a'
  13166. dynamic_linker='OS/2 ld.exe'
  13167. shlibpath_var=LIBPATH
  13168. ;;
  13169. osf3* | osf4* | osf5*)
  13170. version_type=osf
  13171. need_lib_prefix=no
  13172. need_version=no
  13173. soname_spec='${libname}${release}${shared_ext}$major'
  13174. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13175. shlibpath_var=LD_LIBRARY_PATH
  13176. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13177. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13178. ;;
  13179. rdos*)
  13180. dynamic_linker=no
  13181. ;;
  13182. solaris*)
  13183. version_type=linux # correct to gnu/linux during the next big refactor
  13184. need_lib_prefix=no
  13185. need_version=no
  13186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13187. soname_spec='${libname}${release}${shared_ext}$major'
  13188. shlibpath_var=LD_LIBRARY_PATH
  13189. shlibpath_overrides_runpath=yes
  13190. hardcode_into_libs=yes
  13191. # ldd complains unless libraries are executable
  13192. postinstall_cmds='chmod +x $lib'
  13193. ;;
  13194. sunos4*)
  13195. version_type=sunos
  13196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13197. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13198. shlibpath_var=LD_LIBRARY_PATH
  13199. shlibpath_overrides_runpath=yes
  13200. if test "$with_gnu_ld" = yes; then
  13201. need_lib_prefix=no
  13202. fi
  13203. need_version=yes
  13204. ;;
  13205. sysv4 | sysv4.3*)
  13206. version_type=linux # correct to gnu/linux during the next big refactor
  13207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13208. soname_spec='${libname}${release}${shared_ext}$major'
  13209. shlibpath_var=LD_LIBRARY_PATH
  13210. case $host_vendor in
  13211. sni)
  13212. shlibpath_overrides_runpath=no
  13213. need_lib_prefix=no
  13214. runpath_var=LD_RUN_PATH
  13215. ;;
  13216. siemens)
  13217. need_lib_prefix=no
  13218. ;;
  13219. motorola)
  13220. need_lib_prefix=no
  13221. need_version=no
  13222. shlibpath_overrides_runpath=no
  13223. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13224. ;;
  13225. esac
  13226. ;;
  13227. sysv4*MP*)
  13228. if test -d /usr/nec ;then
  13229. version_type=linux # correct to gnu/linux during the next big refactor
  13230. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13231. soname_spec='$libname${shared_ext}.$major'
  13232. shlibpath_var=LD_LIBRARY_PATH
  13233. fi
  13234. ;;
  13235. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13236. version_type=freebsd-elf
  13237. need_lib_prefix=no
  13238. need_version=no
  13239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13240. soname_spec='${libname}${release}${shared_ext}$major'
  13241. shlibpath_var=LD_LIBRARY_PATH
  13242. shlibpath_overrides_runpath=yes
  13243. hardcode_into_libs=yes
  13244. if test "$with_gnu_ld" = yes; then
  13245. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13246. else
  13247. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13248. case $host_os in
  13249. sco3.2v5*)
  13250. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13251. ;;
  13252. esac
  13253. fi
  13254. sys_lib_dlsearch_path_spec='/usr/lib'
  13255. ;;
  13256. tpf*)
  13257. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13258. version_type=linux # correct to gnu/linux during the next big refactor
  13259. need_lib_prefix=no
  13260. need_version=no
  13261. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13262. shlibpath_var=LD_LIBRARY_PATH
  13263. shlibpath_overrides_runpath=no
  13264. hardcode_into_libs=yes
  13265. ;;
  13266. uts4*)
  13267. version_type=linux # correct to gnu/linux during the next big refactor
  13268. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13269. soname_spec='${libname}${release}${shared_ext}$major'
  13270. shlibpath_var=LD_LIBRARY_PATH
  13271. ;;
  13272. *)
  13273. dynamic_linker=no
  13274. ;;
  13275. esac
  13276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13277. $as_echo "$dynamic_linker" >&6; }
  13278. test "$dynamic_linker" = no && can_build_shared=no
  13279. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13280. if test "$GCC" = yes; then
  13281. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13282. fi
  13283. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13284. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13285. fi
  13286. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13287. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13288. fi
  13289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13290. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13291. hardcode_action_CXX=
  13292. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13293. test -n "$runpath_var_CXX" ||
  13294. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13295. # We can hardcode non-existent directories.
  13296. if test "$hardcode_direct_CXX" != no &&
  13297. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13298. # have to relink, otherwise we might link with an installed library
  13299. # when we should be linking with a yet-to-be-installed one
  13300. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13301. test "$hardcode_minus_L_CXX" != no; then
  13302. # Linking always hardcodes the temporary library directory.
  13303. hardcode_action_CXX=relink
  13304. else
  13305. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13306. hardcode_action_CXX=immediate
  13307. fi
  13308. else
  13309. # We cannot hardcode anything, or else we can only hardcode existing
  13310. # directories.
  13311. hardcode_action_CXX=unsupported
  13312. fi
  13313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13314. $as_echo "$hardcode_action_CXX" >&6; }
  13315. if test "$hardcode_action_CXX" = relink ||
  13316. test "$inherit_rpath_CXX" = yes; then
  13317. # Fast installation is not supported
  13318. enable_fast_install=no
  13319. elif test "$shlibpath_overrides_runpath" = yes ||
  13320. test "$enable_shared" = no; then
  13321. # Fast installation is not necessary
  13322. enable_fast_install=needless
  13323. fi
  13324. fi # test -n "$compiler"
  13325. CC=$lt_save_CC
  13326. CFLAGS=$lt_save_CFLAGS
  13327. LDCXX=$LD
  13328. LD=$lt_save_LD
  13329. GCC=$lt_save_GCC
  13330. with_gnu_ld=$lt_save_with_gnu_ld
  13331. lt_cv_path_LDCXX=$lt_cv_path_LD
  13332. lt_cv_path_LD=$lt_save_path_LD
  13333. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13334. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13335. fi # test "$_lt_caught_CXX_error" != yes
  13336. ac_ext=c
  13337. ac_cpp='$CPP $CPPFLAGS'
  13338. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13339. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13340. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13341. # Find a good install program. We prefer a C program (faster),
  13342. # so one script is as good as another. But avoid the broken or
  13343. # incompatible versions:
  13344. # SysV /etc/install, /usr/sbin/install
  13345. # SunOS /usr/etc/install
  13346. # IRIX /sbin/install
  13347. # AIX /bin/install
  13348. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13349. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13350. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13351. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13352. # OS/2's system install, which has a completely different semantic
  13353. # ./install, which can be erroneously created by make from ./install.sh.
  13354. # Reject install programs that cannot install multiple files.
  13355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13356. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13357. if test -z "$INSTALL"; then
  13358. if ${ac_cv_path_install+:} false; then :
  13359. $as_echo_n "(cached) " >&6
  13360. else
  13361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13362. for as_dir in $PATH
  13363. do
  13364. IFS=$as_save_IFS
  13365. test -z "$as_dir" && as_dir=.
  13366. # Account for people who put trailing slashes in PATH elements.
  13367. case $as_dir/ in #((
  13368. ./ | .// | /[cC]/* | \
  13369. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13370. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13371. /usr/ucb/* ) ;;
  13372. *)
  13373. # OSF1 and SCO ODT 3.0 have their own names for install.
  13374. # Don't use installbsd from OSF since it installs stuff as root
  13375. # by default.
  13376. for ac_prog in ginstall scoinst install; do
  13377. for ac_exec_ext in '' $ac_executable_extensions; do
  13378. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13379. if test $ac_prog = install &&
  13380. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13381. # AIX install. It has an incompatible calling convention.
  13382. :
  13383. elif test $ac_prog = install &&
  13384. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13385. # program-specific install script used by HP pwplus--don't use.
  13386. :
  13387. else
  13388. rm -rf conftest.one conftest.two conftest.dir
  13389. echo one > conftest.one
  13390. echo two > conftest.two
  13391. mkdir conftest.dir
  13392. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13393. test -s conftest.one && test -s conftest.two &&
  13394. test -s conftest.dir/conftest.one &&
  13395. test -s conftest.dir/conftest.two
  13396. then
  13397. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13398. break 3
  13399. fi
  13400. fi
  13401. fi
  13402. done
  13403. done
  13404. ;;
  13405. esac
  13406. done
  13407. IFS=$as_save_IFS
  13408. rm -rf conftest.one conftest.two conftest.dir
  13409. fi
  13410. if test "${ac_cv_path_install+set}" = set; then
  13411. INSTALL=$ac_cv_path_install
  13412. else
  13413. # As a last resort, use the slow shell script. Don't cache a
  13414. # value for INSTALL within a source directory, because that will
  13415. # break other packages using the cache if that directory is
  13416. # removed, or if the value is a relative name.
  13417. INSTALL=$ac_install_sh
  13418. fi
  13419. fi
  13420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13421. $as_echo "$INSTALL" >&6; }
  13422. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13423. # It thinks the first close brace ends the variable substitution.
  13424. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13425. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13426. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13428. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13429. set x ${MAKE-make}
  13430. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13431. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13432. $as_echo_n "(cached) " >&6
  13433. else
  13434. cat >conftest.make <<\_ACEOF
  13435. SHELL = /bin/sh
  13436. all:
  13437. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13438. _ACEOF
  13439. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13440. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13441. *@@@%%%=?*=@@@%%%*)
  13442. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13443. *)
  13444. eval ac_cv_prog_make_${ac_make}_set=no;;
  13445. esac
  13446. rm -f conftest.make
  13447. fi
  13448. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13450. $as_echo "yes" >&6; }
  13451. SET_MAKE=
  13452. else
  13453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13454. $as_echo "no" >&6; }
  13455. SET_MAKE="MAKE=${MAKE-make}"
  13456. fi
  13457. if test -n "$ac_tool_prefix"; then
  13458. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13459. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13461. $as_echo_n "checking for $ac_word... " >&6; }
  13462. if ${ac_cv_prog_WINDRES+:} false; then :
  13463. $as_echo_n "(cached) " >&6
  13464. else
  13465. if test -n "$WINDRES"; then
  13466. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13467. else
  13468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13469. for as_dir in $PATH
  13470. do
  13471. IFS=$as_save_IFS
  13472. test -z "$as_dir" && as_dir=.
  13473. for ac_exec_ext in '' $ac_executable_extensions; do
  13474. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13475. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13476. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13477. break 2
  13478. fi
  13479. done
  13480. done
  13481. IFS=$as_save_IFS
  13482. fi
  13483. fi
  13484. WINDRES=$ac_cv_prog_WINDRES
  13485. if test -n "$WINDRES"; then
  13486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13487. $as_echo "$WINDRES" >&6; }
  13488. else
  13489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13490. $as_echo "no" >&6; }
  13491. fi
  13492. fi
  13493. if test -z "$ac_cv_prog_WINDRES"; then
  13494. ac_ct_WINDRES=$WINDRES
  13495. # Extract the first word of "windres", so it can be a program name with args.
  13496. set dummy windres; ac_word=$2
  13497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13498. $as_echo_n "checking for $ac_word... " >&6; }
  13499. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13500. $as_echo_n "(cached) " >&6
  13501. else
  13502. if test -n "$ac_ct_WINDRES"; then
  13503. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13504. else
  13505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13506. for as_dir in $PATH
  13507. do
  13508. IFS=$as_save_IFS
  13509. test -z "$as_dir" && as_dir=.
  13510. for ac_exec_ext in '' $ac_executable_extensions; do
  13511. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13512. ac_cv_prog_ac_ct_WINDRES="windres"
  13513. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13514. break 2
  13515. fi
  13516. done
  13517. done
  13518. IFS=$as_save_IFS
  13519. fi
  13520. fi
  13521. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13522. if test -n "$ac_ct_WINDRES"; then
  13523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13524. $as_echo "$ac_ct_WINDRES" >&6; }
  13525. else
  13526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13527. $as_echo "no" >&6; }
  13528. fi
  13529. if test "x$ac_ct_WINDRES" = x; then
  13530. WINDRES=":"
  13531. else
  13532. case $cross_compiling:$ac_tool_warned in
  13533. yes:)
  13534. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13535. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13536. ac_tool_warned=yes ;;
  13537. esac
  13538. WINDRES=$ac_ct_WINDRES
  13539. fi
  13540. else
  13541. WINDRES="$ac_cv_prog_WINDRES"
  13542. fi
  13543. case "$host" in
  13544. *-*-mingw32*)
  13545. # Except on msys, where make can't handle full pathnames (bug 1972)
  13546. ;;
  13547. *)
  13548. srcdir=`cd $srcdir && pwd`
  13549. ;;
  13550. esac
  13551. INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
  13552. if test x$srcdir != x.; then
  13553. INCLUDE="-Iinclude $INCLUDE"
  13554. elif test -d .hg; then
  13555. as_fn_error $? "
  13556. *** When building from Mercurial you should configure and build in a
  13557. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13558. " "$LINENO" 5
  13559. fi
  13560. BASE_CFLAGS=""
  13561. BASE_LDFLAGS=""
  13562. case "$host" in
  13563. *-*-cygwin*)
  13564. # We build SDL on cygwin without the UNIX emulation layer
  13565. save_CFLAGS="$CFLAGS"
  13566. have_no_cygwin=no
  13567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13568. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13569. CFLAGS="$save_CFLAGS -mno-cygwin"
  13570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13571. /* end confdefs.h. */
  13572. int
  13573. main ()
  13574. {
  13575. ;
  13576. return 0;
  13577. }
  13578. _ACEOF
  13579. if ac_fn_c_try_compile "$LINENO"; then :
  13580. have_no_cygwin=yes
  13581. fi
  13582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13584. $as_echo "$have_no_cygwin" >&6; }
  13585. CFLAGS="$save_CFLAGS"
  13586. if test x$have_no_cygwin = xyes; then
  13587. BASE_CFLAGS="-mno-cygwin"
  13588. BASE_LDFLAGS="-mno-cygwin"
  13589. fi
  13590. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13591. ;;
  13592. esac
  13593. # Uncomment the following line if you want to force SDL and applications
  13594. # built with it to be compiled for a particular architecture.
  13595. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13596. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13597. # The default optimization for SDL is -O3 (Bug #31)
  13598. if test "x$orig_CFLAGS" = x; then
  13599. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13600. fi
  13601. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13602. BUILD_LDFLAGS="$LDFLAGS"
  13603. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13604. ## These are common directories to find software packages
  13605. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13606. # if test -d $path/include; then
  13607. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13608. # fi
  13609. # if test -d $path/lib; then
  13610. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13611. # fi
  13612. #done
  13613. SDL_CFLAGS="$BASE_CFLAGS"
  13614. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13615. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13616. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13617. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13618. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13619. find_lib()
  13620. {
  13621. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13622. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13623. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13624. if test "$cross_compiling" = yes; then
  13625. host_lib_path=""
  13626. else
  13627. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13628. fi
  13629. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13630. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13631. if test x$lib != x; then
  13632. echo $lib
  13633. return
  13634. fi
  13635. done
  13636. }
  13637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13638. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13639. if ${ac_cv_c_const+:} false; then :
  13640. $as_echo_n "(cached) " >&6
  13641. else
  13642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13643. /* end confdefs.h. */
  13644. int
  13645. main ()
  13646. {
  13647. #ifndef __cplusplus
  13648. /* Ultrix mips cc rejects this sort of thing. */
  13649. typedef int charset[2];
  13650. const charset cs = { 0, 0 };
  13651. /* SunOS 4.1.1 cc rejects this. */
  13652. char const *const *pcpcc;
  13653. char **ppc;
  13654. /* NEC SVR4.0.2 mips cc rejects this. */
  13655. struct point {int x, y;};
  13656. static struct point const zero = {0,0};
  13657. /* AIX XL C 1.02.0.0 rejects this.
  13658. It does not let you subtract one const X* pointer from another in
  13659. an arm of an if-expression whose if-part is not a constant
  13660. expression */
  13661. const char *g = "string";
  13662. pcpcc = &g + (g ? g-g : 0);
  13663. /* HPUX 7.0 cc rejects these. */
  13664. ++pcpcc;
  13665. ppc = (char**) pcpcc;
  13666. pcpcc = (char const *const *) ppc;
  13667. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13668. char tx;
  13669. char *t = &tx;
  13670. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13671. *t++ = 0;
  13672. if (s) return 0;
  13673. }
  13674. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13675. int x[] = {25, 17};
  13676. const int *foo = &x[0];
  13677. ++foo;
  13678. }
  13679. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13680. typedef const int *iptr;
  13681. iptr p = 0;
  13682. ++p;
  13683. }
  13684. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13685. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13686. struct s { int j; const int *ap[3]; } bx;
  13687. struct s *b = &bx; b->j = 5;
  13688. }
  13689. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13690. const int foo = 10;
  13691. if (!foo) return 0;
  13692. }
  13693. return !cs[0] && !zero.x;
  13694. #endif
  13695. ;
  13696. return 0;
  13697. }
  13698. _ACEOF
  13699. if ac_fn_c_try_compile "$LINENO"; then :
  13700. ac_cv_c_const=yes
  13701. else
  13702. ac_cv_c_const=no
  13703. fi
  13704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13705. fi
  13706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13707. $as_echo "$ac_cv_c_const" >&6; }
  13708. if test $ac_cv_c_const = no; then
  13709. $as_echo "#define const /**/" >>confdefs.h
  13710. fi
  13711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13712. $as_echo_n "checking for inline... " >&6; }
  13713. if ${ac_cv_c_inline+:} false; then :
  13714. $as_echo_n "(cached) " >&6
  13715. else
  13716. ac_cv_c_inline=no
  13717. for ac_kw in inline __inline__ __inline; do
  13718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13719. /* end confdefs.h. */
  13720. #ifndef __cplusplus
  13721. typedef int foo_t;
  13722. static $ac_kw foo_t static_foo () {return 0; }
  13723. $ac_kw foo_t foo () {return 0; }
  13724. #endif
  13725. _ACEOF
  13726. if ac_fn_c_try_compile "$LINENO"; then :
  13727. ac_cv_c_inline=$ac_kw
  13728. fi
  13729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13730. test "$ac_cv_c_inline" != no && break
  13731. done
  13732. fi
  13733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13734. $as_echo "$ac_cv_c_inline" >&6; }
  13735. case $ac_cv_c_inline in
  13736. inline | yes) ;;
  13737. *)
  13738. case $ac_cv_c_inline in
  13739. no) ac_val=;;
  13740. *) ac_val=$ac_cv_c_inline;;
  13741. esac
  13742. cat >>confdefs.h <<_ACEOF
  13743. #ifndef __cplusplus
  13744. #define inline $ac_val
  13745. #endif
  13746. _ACEOF
  13747. ;;
  13748. esac
  13749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13750. $as_echo_n "checking for working volatile... " >&6; }
  13751. if ${ac_cv_c_volatile+:} false; then :
  13752. $as_echo_n "(cached) " >&6
  13753. else
  13754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13755. /* end confdefs.h. */
  13756. int
  13757. main ()
  13758. {
  13759. volatile int x;
  13760. int * volatile y = (int *) 0;
  13761. return !x && !y;
  13762. ;
  13763. return 0;
  13764. }
  13765. _ACEOF
  13766. if ac_fn_c_try_compile "$LINENO"; then :
  13767. ac_cv_c_volatile=yes
  13768. else
  13769. ac_cv_c_volatile=no
  13770. fi
  13771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13772. fi
  13773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13774. $as_echo "$ac_cv_c_volatile" >&6; }
  13775. if test $ac_cv_c_volatile = no; then
  13776. $as_echo "#define volatile /**/" >>confdefs.h
  13777. fi
  13778. # Check whether --enable-assertions was given.
  13779. if test "${enable_assertions+set}" = set; then :
  13780. enableval=$enable_assertions;
  13781. else
  13782. enable_assertions=auto
  13783. fi
  13784. case "$enable_assertions" in
  13785. auto) # Use optimization settings to determine assertion level
  13786. ;;
  13787. disabled)
  13788. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13789. ;;
  13790. release)
  13791. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13792. ;;
  13793. enabled)
  13794. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13795. ;;
  13796. paranoid)
  13797. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13798. ;;
  13799. *)
  13800. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13801. ;;
  13802. esac
  13803. # Check whether --enable-dependency-tracking was given.
  13804. if test "${enable_dependency_tracking+set}" = set; then :
  13805. enableval=$enable_dependency_tracking;
  13806. else
  13807. enable_dependency_tracking=yes
  13808. fi
  13809. if test x$enable_dependency_tracking = xyes; then
  13810. have_gcc_mmd_mt=no
  13811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13812. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13814. /* end confdefs.h. */
  13815. #if !defined(__GNUC__) || __GNUC__ < 3
  13816. #error Dependency tracking requires GCC 3.0 or newer
  13817. #endif
  13818. int
  13819. main ()
  13820. {
  13821. ;
  13822. return 0;
  13823. }
  13824. _ACEOF
  13825. if ac_fn_c_try_compile "$LINENO"; then :
  13826. have_gcc_mmd_mt=yes
  13827. fi
  13828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13830. $as_echo "$have_gcc_mmd_mt" >&6; }
  13831. if test x$have_gcc_mmd_mt = xyes; then
  13832. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13833. fi
  13834. fi
  13835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13836. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13837. have_no_undefined=no
  13838. case "$host" in
  13839. *-*-openbsd*)
  13840. ;;
  13841. *)
  13842. save_LDFLAGS="$LDFLAGS"
  13843. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13845. /* end confdefs.h. */
  13846. int
  13847. main ()
  13848. {
  13849. ;
  13850. return 0;
  13851. }
  13852. _ACEOF
  13853. if ac_fn_c_try_link "$LINENO"; then :
  13854. have_no_undefined=yes
  13855. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13856. fi
  13857. rm -f core conftest.err conftest.$ac_objext \
  13858. conftest$ac_exeext conftest.$ac_ext
  13859. LDFLAGS="$save_LDFLAGS"
  13860. ;;
  13861. esac
  13862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13863. $as_echo "$have_no_undefined" >&6; }
  13864. # Check whether --enable-libc was given.
  13865. if test "${enable_libc+set}" = set; then :
  13866. enableval=$enable_libc;
  13867. else
  13868. enable_libc=yes
  13869. fi
  13870. if test x$enable_libc = xyes; then
  13871. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13873. $as_echo_n "checking for ANSI C header files... " >&6; }
  13874. if ${ac_cv_header_stdc+:} false; then :
  13875. $as_echo_n "(cached) " >&6
  13876. else
  13877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13878. /* end confdefs.h. */
  13879. #include <stdlib.h>
  13880. #include <stdarg.h>
  13881. #include <string.h>
  13882. #include <float.h>
  13883. int
  13884. main ()
  13885. {
  13886. ;
  13887. return 0;
  13888. }
  13889. _ACEOF
  13890. if ac_fn_c_try_compile "$LINENO"; then :
  13891. ac_cv_header_stdc=yes
  13892. else
  13893. ac_cv_header_stdc=no
  13894. fi
  13895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13896. if test $ac_cv_header_stdc = yes; then
  13897. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13899. /* end confdefs.h. */
  13900. #include <string.h>
  13901. _ACEOF
  13902. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13903. $EGREP "memchr" >/dev/null 2>&1; then :
  13904. else
  13905. ac_cv_header_stdc=no
  13906. fi
  13907. rm -f conftest*
  13908. fi
  13909. if test $ac_cv_header_stdc = yes; then
  13910. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13912. /* end confdefs.h. */
  13913. #include <stdlib.h>
  13914. _ACEOF
  13915. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13916. $EGREP "free" >/dev/null 2>&1; then :
  13917. else
  13918. ac_cv_header_stdc=no
  13919. fi
  13920. rm -f conftest*
  13921. fi
  13922. if test $ac_cv_header_stdc = yes; then
  13923. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13924. if test "$cross_compiling" = yes; then :
  13925. :
  13926. else
  13927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13928. /* end confdefs.h. */
  13929. #include <ctype.h>
  13930. #include <stdlib.h>
  13931. #if ((' ' & 0x0FF) == 0x020)
  13932. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13933. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13934. #else
  13935. # define ISLOWER(c) \
  13936. (('a' <= (c) && (c) <= 'i') \
  13937. || ('j' <= (c) && (c) <= 'r') \
  13938. || ('s' <= (c) && (c) <= 'z'))
  13939. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13940. #endif
  13941. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13942. int
  13943. main ()
  13944. {
  13945. int i;
  13946. for (i = 0; i < 256; i++)
  13947. if (XOR (islower (i), ISLOWER (i))
  13948. || toupper (i) != TOUPPER (i))
  13949. return 2;
  13950. return 0;
  13951. }
  13952. _ACEOF
  13953. if ac_fn_c_try_run "$LINENO"; then :
  13954. else
  13955. ac_cv_header_stdc=no
  13956. fi
  13957. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13958. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13959. fi
  13960. fi
  13961. fi
  13962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13963. $as_echo "$ac_cv_header_stdc" >&6; }
  13964. if test $ac_cv_header_stdc = yes; then
  13965. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13966. fi
  13967. 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
  13968. do :
  13969. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13970. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13971. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13972. cat >>confdefs.h <<_ACEOF
  13973. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13974. _ACEOF
  13975. fi
  13976. done
  13977. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13978. if test "x$ac_cv_type_size_t" = xyes; then :
  13979. else
  13980. cat >>confdefs.h <<_ACEOF
  13981. #define size_t unsigned int
  13982. _ACEOF
  13983. fi
  13984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13985. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13986. if ${ac_cv_define_M_PI+:} false; then :
  13987. $as_echo_n "(cached) " >&6
  13988. else
  13989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13990. /* end confdefs.h. */
  13991. #include <math.h>
  13992. #ifdef M_PI
  13993. YES_IS_DEFINED
  13994. #endif
  13995. _ACEOF
  13996. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13997. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13998. ac_cv_define_M_PI=yes
  13999. else
  14000. ac_cv_define_M_PI=no
  14001. fi
  14002. rm -f conftest*
  14003. fi
  14004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14005. $as_echo "$ac_cv_define_M_PI" >&6; }
  14006. if test "$ac_cv_define_M_PI" = "yes" ; then
  14007. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14008. fi
  14009. case "$host" in
  14010. *-*-cygwin* | *-*-mingw32*)
  14011. ;;
  14012. *)
  14013. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14014. # for constant arguments. Useless!
  14015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14016. $as_echo_n "checking for working alloca.h... " >&6; }
  14017. if ${ac_cv_working_alloca_h+:} false; then :
  14018. $as_echo_n "(cached) " >&6
  14019. else
  14020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14021. /* end confdefs.h. */
  14022. #include <alloca.h>
  14023. int
  14024. main ()
  14025. {
  14026. char *p = (char *) alloca (2 * sizeof (int));
  14027. if (p) return 0;
  14028. ;
  14029. return 0;
  14030. }
  14031. _ACEOF
  14032. if ac_fn_c_try_link "$LINENO"; then :
  14033. ac_cv_working_alloca_h=yes
  14034. else
  14035. ac_cv_working_alloca_h=no
  14036. fi
  14037. rm -f core conftest.err conftest.$ac_objext \
  14038. conftest$ac_exeext conftest.$ac_ext
  14039. fi
  14040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14041. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14042. if test $ac_cv_working_alloca_h = yes; then
  14043. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14044. fi
  14045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14046. $as_echo_n "checking for alloca... " >&6; }
  14047. if ${ac_cv_func_alloca_works+:} false; then :
  14048. $as_echo_n "(cached) " >&6
  14049. else
  14050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14051. /* end confdefs.h. */
  14052. #ifdef __GNUC__
  14053. # define alloca __builtin_alloca
  14054. #else
  14055. # ifdef _MSC_VER
  14056. # include <malloc.h>
  14057. # define alloca _alloca
  14058. # else
  14059. # ifdef HAVE_ALLOCA_H
  14060. # include <alloca.h>
  14061. # else
  14062. # ifdef _AIX
  14063. #pragma alloca
  14064. # else
  14065. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14066. void *alloca (size_t);
  14067. # endif
  14068. # endif
  14069. # endif
  14070. # endif
  14071. #endif
  14072. int
  14073. main ()
  14074. {
  14075. char *p = (char *) alloca (1);
  14076. if (p) return 0;
  14077. ;
  14078. return 0;
  14079. }
  14080. _ACEOF
  14081. if ac_fn_c_try_link "$LINENO"; then :
  14082. ac_cv_func_alloca_works=yes
  14083. else
  14084. ac_cv_func_alloca_works=no
  14085. fi
  14086. rm -f core conftest.err conftest.$ac_objext \
  14087. conftest$ac_exeext conftest.$ac_ext
  14088. fi
  14089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14090. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14091. if test $ac_cv_func_alloca_works = yes; then
  14092. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14093. else
  14094. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14095. # that cause trouble. Some versions do not even contain alloca or
  14096. # contain a buggy version. If you still want to use their alloca,
  14097. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14098. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14099. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14101. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14102. if ${ac_cv_os_cray+:} false; then :
  14103. $as_echo_n "(cached) " >&6
  14104. else
  14105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14106. /* end confdefs.h. */
  14107. #if defined CRAY && ! defined CRAY2
  14108. webecray
  14109. #else
  14110. wenotbecray
  14111. #endif
  14112. _ACEOF
  14113. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14114. $EGREP "webecray" >/dev/null 2>&1; then :
  14115. ac_cv_os_cray=yes
  14116. else
  14117. ac_cv_os_cray=no
  14118. fi
  14119. rm -f conftest*
  14120. fi
  14121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14122. $as_echo "$ac_cv_os_cray" >&6; }
  14123. if test $ac_cv_os_cray = yes; then
  14124. for ac_func in _getb67 GETB67 getb67; do
  14125. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14126. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14127. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14128. cat >>confdefs.h <<_ACEOF
  14129. #define CRAY_STACKSEG_END $ac_func
  14130. _ACEOF
  14131. break
  14132. fi
  14133. done
  14134. fi
  14135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14136. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14137. if ${ac_cv_c_stack_direction+:} false; then :
  14138. $as_echo_n "(cached) " >&6
  14139. else
  14140. if test "$cross_compiling" = yes; then :
  14141. ac_cv_c_stack_direction=0
  14142. else
  14143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14144. /* end confdefs.h. */
  14145. $ac_includes_default
  14146. int
  14147. find_stack_direction (int *addr, int depth)
  14148. {
  14149. int dir, dummy = 0;
  14150. if (! addr)
  14151. addr = &dummy;
  14152. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14153. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14154. return dir + dummy;
  14155. }
  14156. int
  14157. main (int argc, char **argv)
  14158. {
  14159. return find_stack_direction (0, argc + !argv + 20) < 0;
  14160. }
  14161. _ACEOF
  14162. if ac_fn_c_try_run "$LINENO"; then :
  14163. ac_cv_c_stack_direction=1
  14164. else
  14165. ac_cv_c_stack_direction=-1
  14166. fi
  14167. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14168. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14169. fi
  14170. fi
  14171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14172. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14173. cat >>confdefs.h <<_ACEOF
  14174. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14175. _ACEOF
  14176. fi
  14177. ;;
  14178. esac
  14179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14180. $as_echo_n "checking for working memcmp... " >&6; }
  14181. if ${ac_cv_func_memcmp_working+:} false; then :
  14182. $as_echo_n "(cached) " >&6
  14183. else
  14184. if test "$cross_compiling" = yes; then :
  14185. ac_cv_func_memcmp_working=no
  14186. else
  14187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14188. /* end confdefs.h. */
  14189. $ac_includes_default
  14190. int
  14191. main ()
  14192. {
  14193. /* Some versions of memcmp are not 8-bit clean. */
  14194. char c0 = '\100', c1 = '\200', c2 = '\201';
  14195. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14196. return 1;
  14197. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14198. or more and with at least one buffer not starting on a 4-byte boundary.
  14199. William Lewis provided this test program. */
  14200. {
  14201. char foo[21];
  14202. char bar[21];
  14203. int i;
  14204. for (i = 0; i < 4; i++)
  14205. {
  14206. char *a = foo + i;
  14207. char *b = bar + i;
  14208. strcpy (a, "--------01111111");
  14209. strcpy (b, "--------10000000");
  14210. if (memcmp (a, b, 16) >= 0)
  14211. return 1;
  14212. }
  14213. return 0;
  14214. }
  14215. ;
  14216. return 0;
  14217. }
  14218. _ACEOF
  14219. if ac_fn_c_try_run "$LINENO"; then :
  14220. ac_cv_func_memcmp_working=yes
  14221. else
  14222. ac_cv_func_memcmp_working=no
  14223. fi
  14224. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14225. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14226. fi
  14227. fi
  14228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14229. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14230. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14231. *" memcmp.$ac_objext "* ) ;;
  14232. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14233. ;;
  14234. esac
  14235. if test x$ac_cv_func_memcmp_working = xyes; then
  14236. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14237. fi
  14238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14239. $as_echo_n "checking for working strtod... " >&6; }
  14240. if ${ac_cv_func_strtod+:} false; then :
  14241. $as_echo_n "(cached) " >&6
  14242. else
  14243. if test "$cross_compiling" = yes; then :
  14244. ac_cv_func_strtod=no
  14245. else
  14246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14247. /* end confdefs.h. */
  14248. $ac_includes_default
  14249. #ifndef strtod
  14250. double strtod ();
  14251. #endif
  14252. int
  14253. main()
  14254. {
  14255. {
  14256. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14257. char *string = " +69";
  14258. char *term;
  14259. double value;
  14260. value = strtod (string, &term);
  14261. if (value != 69 || term != (string + 4))
  14262. return 1;
  14263. }
  14264. {
  14265. /* Under Solaris 2.4, strtod returns the wrong value for the
  14266. terminating character under some conditions. */
  14267. char *string = "NaN";
  14268. char *term;
  14269. strtod (string, &term);
  14270. if (term != string && *(term - 1) == 0)
  14271. return 1;
  14272. }
  14273. return 0;
  14274. }
  14275. _ACEOF
  14276. if ac_fn_c_try_run "$LINENO"; then :
  14277. ac_cv_func_strtod=yes
  14278. else
  14279. ac_cv_func_strtod=no
  14280. fi
  14281. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14282. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14283. fi
  14284. fi
  14285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14286. $as_echo "$ac_cv_func_strtod" >&6; }
  14287. if test $ac_cv_func_strtod = no; then
  14288. case " $LIBOBJS " in
  14289. *" strtod.$ac_objext "* ) ;;
  14290. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14291. ;;
  14292. esac
  14293. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14294. if test "x$ac_cv_func_pow" = xyes; then :
  14295. fi
  14296. if test $ac_cv_func_pow = no; then
  14297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14298. $as_echo_n "checking for pow in -lm... " >&6; }
  14299. if ${ac_cv_lib_m_pow+:} false; then :
  14300. $as_echo_n "(cached) " >&6
  14301. else
  14302. ac_check_lib_save_LIBS=$LIBS
  14303. LIBS="-lm $LIBS"
  14304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14305. /* end confdefs.h. */
  14306. /* Override any GCC internal prototype to avoid an error.
  14307. Use char because int might match the return type of a GCC
  14308. builtin and then its argument prototype would still apply. */
  14309. #ifdef __cplusplus
  14310. extern "C"
  14311. #endif
  14312. char pow ();
  14313. int
  14314. main ()
  14315. {
  14316. return pow ();
  14317. ;
  14318. return 0;
  14319. }
  14320. _ACEOF
  14321. if ac_fn_c_try_link "$LINENO"; then :
  14322. ac_cv_lib_m_pow=yes
  14323. else
  14324. ac_cv_lib_m_pow=no
  14325. fi
  14326. rm -f core conftest.err conftest.$ac_objext \
  14327. conftest$ac_exeext conftest.$ac_ext
  14328. LIBS=$ac_check_lib_save_LIBS
  14329. fi
  14330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14331. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14332. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14333. POW_LIB=-lm
  14334. else
  14335. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14336. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14337. fi
  14338. fi
  14339. fi
  14340. if test x$ac_cv_func_strtod = xyes; then
  14341. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14342. fi
  14343. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14344. if test "x$ac_cv_func_mprotect" = xyes; then :
  14345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14346. /* end confdefs.h. */
  14347. #include <sys/types.h>
  14348. #include <sys/mman.h>
  14349. int
  14350. main ()
  14351. {
  14352. ;
  14353. return 0;
  14354. }
  14355. _ACEOF
  14356. if ac_fn_c_try_compile "$LINENO"; then :
  14357. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14358. fi
  14359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14360. fi
  14361. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcscmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll
  14362. do :
  14363. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14364. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14365. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14366. cat >>confdefs.h <<_ACEOF
  14367. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14368. _ACEOF
  14369. fi
  14370. done
  14371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14372. $as_echo_n "checking for pow in -lm... " >&6; }
  14373. if ${ac_cv_lib_m_pow+:} false; then :
  14374. $as_echo_n "(cached) " >&6
  14375. else
  14376. ac_check_lib_save_LIBS=$LIBS
  14377. LIBS="-lm $LIBS"
  14378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14379. /* end confdefs.h. */
  14380. /* Override any GCC internal prototype to avoid an error.
  14381. Use char because int might match the return type of a GCC
  14382. builtin and then its argument prototype would still apply. */
  14383. #ifdef __cplusplus
  14384. extern "C"
  14385. #endif
  14386. char pow ();
  14387. int
  14388. main ()
  14389. {
  14390. return pow ();
  14391. ;
  14392. return 0;
  14393. }
  14394. _ACEOF
  14395. if ac_fn_c_try_link "$LINENO"; then :
  14396. ac_cv_lib_m_pow=yes
  14397. else
  14398. ac_cv_lib_m_pow=no
  14399. fi
  14400. rm -f core conftest.err conftest.$ac_objext \
  14401. conftest$ac_exeext conftest.$ac_ext
  14402. LIBS=$ac_check_lib_save_LIBS
  14403. fi
  14404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14405. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14406. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14407. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14408. fi
  14409. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf fabs fabsf floor floorf fmod fmodf log logf pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14410. do :
  14411. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14412. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14413. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14414. cat >>confdefs.h <<_ACEOF
  14415. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14416. _ACEOF
  14417. fi
  14418. done
  14419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14420. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14421. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14422. $as_echo_n "(cached) " >&6
  14423. else
  14424. ac_check_lib_save_LIBS=$LIBS
  14425. LIBS="-liconv $LIBS"
  14426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14427. /* end confdefs.h. */
  14428. /* Override any GCC internal prototype to avoid an error.
  14429. Use char because int might match the return type of a GCC
  14430. builtin and then its argument prototype would still apply. */
  14431. #ifdef __cplusplus
  14432. extern "C"
  14433. #endif
  14434. char iconv_open ();
  14435. int
  14436. main ()
  14437. {
  14438. return iconv_open ();
  14439. ;
  14440. return 0;
  14441. }
  14442. _ACEOF
  14443. if ac_fn_c_try_link "$LINENO"; then :
  14444. ac_cv_lib_iconv_iconv_open=yes
  14445. else
  14446. ac_cv_lib_iconv_iconv_open=no
  14447. fi
  14448. rm -f core conftest.err conftest.$ac_objext \
  14449. conftest$ac_exeext conftest.$ac_ext
  14450. LIBS=$ac_check_lib_save_LIBS
  14451. fi
  14452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14453. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14454. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14455. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14456. fi
  14457. for ac_func in iconv
  14458. do :
  14459. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14460. if test "x$ac_cv_func_iconv" = xyes; then :
  14461. cat >>confdefs.h <<_ACEOF
  14462. #define HAVE_ICONV 1
  14463. _ACEOF
  14464. fi
  14465. done
  14466. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14467. "
  14468. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14469. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14470. fi
  14471. for ac_header in libunwind.h
  14472. do :
  14473. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14474. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14475. cat >>confdefs.h <<_ACEOF
  14476. #define HAVE_LIBUNWIND_H 1
  14477. _ACEOF
  14478. fi
  14479. done
  14480. fi
  14481. # Check whether --enable-gcc-atomics was given.
  14482. if test "${enable_gcc_atomics+set}" = set; then :
  14483. enableval=$enable_gcc_atomics;
  14484. else
  14485. enable_gcc_atomics=yes
  14486. fi
  14487. if test x$enable_gcc_atomics = xyes; then
  14488. have_gcc_atomics=no
  14489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14490. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14492. /* end confdefs.h. */
  14493. int
  14494. main ()
  14495. {
  14496. int a;
  14497. void *x, *y, *z;
  14498. __sync_lock_test_and_set(&a, 4);
  14499. __sync_lock_test_and_set(&x, y);
  14500. __sync_fetch_and_add(&a, 1);
  14501. __sync_bool_compare_and_swap(&a, 5, 10);
  14502. __sync_bool_compare_and_swap(&x, y, z);
  14503. ;
  14504. return 0;
  14505. }
  14506. _ACEOF
  14507. if ac_fn_c_try_link "$LINENO"; then :
  14508. have_gcc_atomics=yes
  14509. fi
  14510. rm -f core conftest.err conftest.$ac_objext \
  14511. conftest$ac_exeext conftest.$ac_ext
  14512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14513. $as_echo "$have_gcc_atomics" >&6; }
  14514. if test x$have_gcc_atomics = xyes; then
  14515. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14516. else
  14517. # See if we have the minimum operation needed for GCC atomics
  14518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14519. /* end confdefs.h. */
  14520. int
  14521. main ()
  14522. {
  14523. int a;
  14524. __sync_lock_test_and_set(&a, 1);
  14525. __sync_lock_release(&a);
  14526. ;
  14527. return 0;
  14528. }
  14529. _ACEOF
  14530. if ac_fn_c_try_link "$LINENO"; then :
  14531. have_gcc_sync_lock_test_and_set=yes
  14532. fi
  14533. rm -f core conftest.err conftest.$ac_objext \
  14534. conftest$ac_exeext conftest.$ac_ext
  14535. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14536. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14537. fi
  14538. fi
  14539. fi
  14540. # Standard C sources
  14541. SOURCES="$SOURCES $srcdir/src/*.c"
  14542. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14543. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14544. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14545. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14546. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14547. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14548. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14549. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14550. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14551. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14552. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14553. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14554. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14555. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14556. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14557. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14558. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14559. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14560. # Check whether --enable-atomic was given.
  14561. if test "${enable_atomic+set}" = set; then :
  14562. enableval=$enable_atomic;
  14563. else
  14564. enable_atomic=yes
  14565. fi
  14566. if test x$enable_atomic != xyes; then
  14567. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14568. else
  14569. SUMMARY_modules="${SUMMARY_modules} atomic"
  14570. fi
  14571. # Check whether --enable-audio was given.
  14572. if test "${enable_audio+set}" = set; then :
  14573. enableval=$enable_audio;
  14574. else
  14575. enable_audio=yes
  14576. fi
  14577. if test x$enable_audio != xyes; then
  14578. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14579. else
  14580. SUMMARY_modules="${SUMMARY_modules} audio"
  14581. fi
  14582. # Check whether --enable-video was given.
  14583. if test "${enable_video+set}" = set; then :
  14584. enableval=$enable_video;
  14585. else
  14586. enable_video=yes
  14587. fi
  14588. if test x$enable_video != xyes; then
  14589. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14590. else
  14591. SUMMARY_modules="${SUMMARY_modules} video"
  14592. fi
  14593. # Check whether --enable-render was given.
  14594. if test "${enable_render+set}" = set; then :
  14595. enableval=$enable_render;
  14596. else
  14597. enable_render=yes
  14598. fi
  14599. if test x$enable_render != xyes; then
  14600. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14601. else
  14602. SUMMARY_modules="${SUMMARY_modules} render"
  14603. fi
  14604. # Check whether --enable-events was given.
  14605. if test "${enable_events+set}" = set; then :
  14606. enableval=$enable_events;
  14607. else
  14608. enable_events=yes
  14609. fi
  14610. if test x$enable_events != xyes; then
  14611. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14612. else
  14613. SUMMARY_modules="${SUMMARY_modules} events"
  14614. fi
  14615. # Check whether --enable-joystick was given.
  14616. if test "${enable_joystick+set}" = set; then :
  14617. enableval=$enable_joystick;
  14618. else
  14619. enable_joystick=yes
  14620. fi
  14621. if test x$enable_joystick != xyes; then
  14622. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14623. else
  14624. SUMMARY_modules="${SUMMARY_modules} joystick"
  14625. fi
  14626. # Check whether --enable-haptic was given.
  14627. if test "${enable_haptic+set}" = set; then :
  14628. enableval=$enable_haptic;
  14629. else
  14630. enable_haptic=yes
  14631. fi
  14632. if test x$enable_haptic != xyes; then
  14633. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14634. else
  14635. SUMMARY_modules="${SUMMARY_modules} haptic"
  14636. fi
  14637. # Check whether --enable-power was given.
  14638. if test "${enable_power+set}" = set; then :
  14639. enableval=$enable_power;
  14640. else
  14641. enable_power=yes
  14642. fi
  14643. if test x$enable_power != xyes; then
  14644. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14645. else
  14646. SUMMARY_modules="${SUMMARY_modules} power"
  14647. fi
  14648. # Check whether --enable-filesystem was given.
  14649. if test "${enable_filesystem+set}" = set; then :
  14650. enableval=$enable_filesystem;
  14651. else
  14652. enable_filesystem=yes
  14653. fi
  14654. if test x$enable_filesystem != xyes; then
  14655. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14656. else
  14657. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14658. fi
  14659. # Check whether --enable-threads was given.
  14660. if test "${enable_threads+set}" = set; then :
  14661. enableval=$enable_threads;
  14662. else
  14663. enable_threads=yes
  14664. fi
  14665. if test x$enable_threads != xyes; then
  14666. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14667. else
  14668. SUMMARY_modules="${SUMMARY_modules} threads"
  14669. fi
  14670. # Check whether --enable-timers was given.
  14671. if test "${enable_timers+set}" = set; then :
  14672. enableval=$enable_timers;
  14673. else
  14674. enable_timers=yes
  14675. fi
  14676. if test x$enable_timers != xyes; then
  14677. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14678. else
  14679. SUMMARY_modules="${SUMMARY_modules} timers"
  14680. fi
  14681. # Check whether --enable-file was given.
  14682. if test "${enable_file+set}" = set; then :
  14683. enableval=$enable_file;
  14684. else
  14685. enable_file=yes
  14686. fi
  14687. if test x$enable_file != xyes; then
  14688. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14689. else
  14690. SUMMARY_modules="${SUMMARY_modules} file"
  14691. fi
  14692. # Check whether --enable-loadso was given.
  14693. if test "${enable_loadso+set}" = set; then :
  14694. enableval=$enable_loadso;
  14695. else
  14696. enable_loadso=yes
  14697. fi
  14698. if test x$enable_loadso != xyes; then
  14699. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14700. else
  14701. SUMMARY_modules="${SUMMARY_modules} loadso"
  14702. fi
  14703. # Check whether --enable-cpuinfo was given.
  14704. if test "${enable_cpuinfo+set}" = set; then :
  14705. enableval=$enable_cpuinfo;
  14706. else
  14707. enable_cpuinfo=yes
  14708. fi
  14709. if test x$enable_cpuinfo != xyes; then
  14710. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14711. else
  14712. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14713. fi
  14714. # Check whether --enable-assembly was given.
  14715. if test "${enable_assembly+set}" = set; then :
  14716. enableval=$enable_assembly;
  14717. else
  14718. enable_assembly=yes
  14719. fi
  14720. if test x$enable_assembly = xyes; then
  14721. SUMMARY_modules="${SUMMARY_modules} assembly"
  14722. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14723. # Make sure that we don't generate floating point code that would
  14724. # cause illegal instruction exceptions on older processors
  14725. case "$host" in
  14726. *-*-darwin*)
  14727. # Don't need to worry about Apple hardware, it's all SSE capable
  14728. default_ssemath=yes
  14729. ;;
  14730. *64-*-*)
  14731. # x86 64-bit architectures all have SSE instructions
  14732. default_ssemath=yes
  14733. ;;
  14734. *)
  14735. default_ssemath=no
  14736. ;;
  14737. esac
  14738. # Check whether --enable-ssemath was given.
  14739. if test "${enable_ssemath+set}" = set; then :
  14740. enableval=$enable_ssemath;
  14741. else
  14742. enable_ssemath=$default_ssemath
  14743. fi
  14744. if test x$enable_ssemath = xno; then
  14745. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  14746. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14747. fi
  14748. fi
  14749. # Check whether --enable-mmx was given.
  14750. if test "${enable_mmx+set}" = set; then :
  14751. enableval=$enable_mmx;
  14752. else
  14753. enable_mmx=yes
  14754. fi
  14755. if test x$enable_mmx = xyes; then
  14756. save_CFLAGS="$CFLAGS"
  14757. have_gcc_mmx=no
  14758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14759. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14760. mmx_CFLAGS="-mmmx"
  14761. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14763. /* end confdefs.h. */
  14764. #ifdef __MINGW32__
  14765. #include <_mingw.h>
  14766. #ifdef __MINGW64_VERSION_MAJOR
  14767. #include <intrin.h>
  14768. #else
  14769. #include <mmintrin.h>
  14770. #endif
  14771. #else
  14772. #include <mmintrin.h>
  14773. #endif
  14774. #ifndef __MMX__
  14775. #error Assembler CPP flag not enabled
  14776. #endif
  14777. int
  14778. main ()
  14779. {
  14780. ;
  14781. return 0;
  14782. }
  14783. _ACEOF
  14784. if ac_fn_c_try_compile "$LINENO"; then :
  14785. have_gcc_mmx=yes
  14786. fi
  14787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14789. $as_echo "$have_gcc_mmx" >&6; }
  14790. CFLAGS="$save_CFLAGS"
  14791. if test x$have_gcc_mmx = xyes; then
  14792. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14793. SUMMARY_math="${SUMMARY_math} mmx"
  14794. fi
  14795. fi
  14796. # Check whether --enable-3dnow was given.
  14797. if test "${enable_3dnow+set}" = set; then :
  14798. enableval=$enable_3dnow;
  14799. else
  14800. enable_3dnow=yes
  14801. fi
  14802. if test x$enable_3dnow = xyes; then
  14803. save_CFLAGS="$CFLAGS"
  14804. have_gcc_3dnow=no
  14805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14806. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14807. amd3dnow_CFLAGS="-m3dnow"
  14808. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14810. /* end confdefs.h. */
  14811. #include <mm3dnow.h>
  14812. #ifndef __3dNOW__
  14813. #error Assembler CPP flag not enabled
  14814. #endif
  14815. int
  14816. main ()
  14817. {
  14818. void *p = 0;
  14819. _m_prefetch(p);
  14820. ;
  14821. return 0;
  14822. }
  14823. _ACEOF
  14824. if ac_fn_c_try_link "$LINENO"; then :
  14825. have_gcc_3dnow=yes
  14826. fi
  14827. rm -f core conftest.err conftest.$ac_objext \
  14828. conftest$ac_exeext conftest.$ac_ext
  14829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14830. $as_echo "$have_gcc_3dnow" >&6; }
  14831. CFLAGS="$save_CFLAGS"
  14832. if test x$have_gcc_3dnow = xyes; then
  14833. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14834. SUMMARY_math="${SUMMARY_math} 3dnow"
  14835. fi
  14836. fi
  14837. # Check whether --enable-sse was given.
  14838. if test "${enable_sse+set}" = set; then :
  14839. enableval=$enable_sse;
  14840. else
  14841. enable_sse=yes
  14842. fi
  14843. if test x$enable_sse = xyes; then
  14844. save_CFLAGS="$CFLAGS"
  14845. have_gcc_sse=no
  14846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14847. $as_echo_n "checking for GCC -msse option... " >&6; }
  14848. sse_CFLAGS="-msse"
  14849. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14851. /* end confdefs.h. */
  14852. #ifdef __MINGW32__
  14853. #include <_mingw.h>
  14854. #ifdef __MINGW64_VERSION_MAJOR
  14855. #include <intrin.h>
  14856. #else
  14857. #include <xmmintrin.h>
  14858. #endif
  14859. #else
  14860. #include <xmmintrin.h>
  14861. #endif
  14862. #ifndef __SSE__
  14863. #error Assembler CPP flag not enabled
  14864. #endif
  14865. int
  14866. main ()
  14867. {
  14868. ;
  14869. return 0;
  14870. }
  14871. _ACEOF
  14872. if ac_fn_c_try_compile "$LINENO"; then :
  14873. have_gcc_sse=yes
  14874. fi
  14875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14877. $as_echo "$have_gcc_sse" >&6; }
  14878. CFLAGS="$save_CFLAGS"
  14879. if test x$have_gcc_sse = xyes; then
  14880. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14881. SUMMARY_math="${SUMMARY_math} sse"
  14882. fi
  14883. fi
  14884. # Check whether --enable-sse2 was given.
  14885. if test "${enable_sse2+set}" = set; then :
  14886. enableval=$enable_sse2;
  14887. else
  14888. enable_sse2=$default_ssemath
  14889. fi
  14890. if test x$enable_sse2 = xyes; then
  14891. save_CFLAGS="$CFLAGS"
  14892. have_gcc_sse2=no
  14893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14894. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14895. sse2_CFLAGS="-msse2"
  14896. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14898. /* end confdefs.h. */
  14899. #ifdef __MINGW32__
  14900. #include <_mingw.h>
  14901. #ifdef __MINGW64_VERSION_MAJOR
  14902. #include <intrin.h>
  14903. #else
  14904. #include <emmintrin.h>
  14905. #endif
  14906. #else
  14907. #include <emmintrin.h>
  14908. #endif
  14909. #ifndef __SSE2__
  14910. #error Assembler CPP flag not enabled
  14911. #endif
  14912. int
  14913. main ()
  14914. {
  14915. ;
  14916. return 0;
  14917. }
  14918. _ACEOF
  14919. if ac_fn_c_try_compile "$LINENO"; then :
  14920. have_gcc_sse2=yes
  14921. fi
  14922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14924. $as_echo "$have_gcc_sse2" >&6; }
  14925. CFLAGS="$save_CFLAGS"
  14926. if test x$have_gcc_sse2 = xyes; then
  14927. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14928. SUMMARY_math="${SUMMARY_math} sse2"
  14929. fi
  14930. fi
  14931. # Check whether --enable-sse3 was given.
  14932. if test "${enable_sse3+set}" = set; then :
  14933. enableval=$enable_sse3;
  14934. else
  14935. enable_sse3=$default_ssemath
  14936. fi
  14937. if test x$enable_sse3 = xyes; then
  14938. save_CFLAGS="$CFLAGS"
  14939. have_gcc_sse3=no
  14940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  14941. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  14942. sse3_CFLAGS="-msse3"
  14943. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  14944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14945. /* end confdefs.h. */
  14946. #ifdef __MINGW32__
  14947. #include <_mingw.h>
  14948. #ifdef __MINGW64_VERSION_MAJOR
  14949. #include <intrin.h>
  14950. #else
  14951. #include <pmmintrin.h>
  14952. #endif
  14953. #else
  14954. #include <pmmintrin.h>
  14955. #endif
  14956. #ifndef __SSE2__
  14957. #error Assembler CPP flag not enabled
  14958. #endif
  14959. int
  14960. main ()
  14961. {
  14962. ;
  14963. return 0;
  14964. }
  14965. _ACEOF
  14966. if ac_fn_c_try_compile "$LINENO"; then :
  14967. have_gcc_sse3=yes
  14968. fi
  14969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  14971. $as_echo "$have_gcc_sse3" >&6; }
  14972. CFLAGS="$save_CFLAGS"
  14973. if test x$have_gcc_sse3 = xyes; then
  14974. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  14975. SUMMARY_math="${SUMMARY_math} sse3"
  14976. fi
  14977. fi
  14978. # Check whether --enable-altivec was given.
  14979. if test "${enable_altivec+set}" = set; then :
  14980. enableval=$enable_altivec;
  14981. else
  14982. enable_altivec=yes
  14983. fi
  14984. if test x$enable_altivec = xyes; then
  14985. save_CFLAGS="$CFLAGS"
  14986. have_gcc_altivec=no
  14987. have_altivec_h_hdr=no
  14988. altivec_CFLAGS="-maltivec"
  14989. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14991. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14993. /* end confdefs.h. */
  14994. #include <altivec.h>
  14995. vector unsigned int vzero() {
  14996. return vec_splat_u32(0);
  14997. }
  14998. int
  14999. main ()
  15000. {
  15001. ;
  15002. return 0;
  15003. }
  15004. _ACEOF
  15005. if ac_fn_c_try_compile "$LINENO"; then :
  15006. have_gcc_altivec=yes
  15007. have_altivec_h_hdr=yes
  15008. fi
  15009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15011. $as_echo "$have_gcc_altivec" >&6; }
  15012. if test x$have_gcc_altivec = xno; then
  15013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15014. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15016. /* end confdefs.h. */
  15017. vector unsigned int vzero() {
  15018. return vec_splat_u32(0);
  15019. }
  15020. int
  15021. main ()
  15022. {
  15023. ;
  15024. return 0;
  15025. }
  15026. _ACEOF
  15027. if ac_fn_c_try_compile "$LINENO"; then :
  15028. have_gcc_altivec=yes
  15029. fi
  15030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15032. $as_echo "$have_gcc_altivec" >&6; }
  15033. fi
  15034. if test x$have_gcc_altivec = xno; then
  15035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15036. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15037. altivec_CFLAGS="-faltivec"
  15038. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15040. /* end confdefs.h. */
  15041. #include <altivec.h>
  15042. vector unsigned int vzero() {
  15043. return vec_splat_u32(0);
  15044. }
  15045. int
  15046. main ()
  15047. {
  15048. ;
  15049. return 0;
  15050. }
  15051. _ACEOF
  15052. if ac_fn_c_try_compile "$LINENO"; then :
  15053. have_gcc_altivec=yes
  15054. have_altivec_h_hdr=yes
  15055. fi
  15056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15058. $as_echo "$have_gcc_altivec" >&6; }
  15059. fi
  15060. if test x$have_gcc_altivec = xno; then
  15061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15062. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15064. /* end confdefs.h. */
  15065. vector unsigned int vzero() {
  15066. return vec_splat_u32(0);
  15067. }
  15068. int
  15069. main ()
  15070. {
  15071. ;
  15072. return 0;
  15073. }
  15074. _ACEOF
  15075. if ac_fn_c_try_compile "$LINENO"; then :
  15076. have_gcc_altivec=yes
  15077. fi
  15078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15080. $as_echo "$have_gcc_altivec" >&6; }
  15081. fi
  15082. CFLAGS="$save_CFLAGS"
  15083. if test x$have_gcc_altivec = xyes; then
  15084. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15085. if test x$have_altivec_h_hdr = xyes; then
  15086. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15087. fi
  15088. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15089. SUMMARY_math="${SUMMARY_math} altivec"
  15090. fi
  15091. fi
  15092. fi
  15093. CheckOSS()
  15094. {
  15095. # Check whether --enable-oss was given.
  15096. if test "${enable_oss+set}" = set; then :
  15097. enableval=$enable_oss;
  15098. else
  15099. enable_oss=maybe
  15100. fi
  15101. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15102. # use sndio instead. So on there, we default to disabled. You can force
  15103. # it on if you really want, though.
  15104. if test x$enable_oss = xmaybe; then
  15105. enable_oss=yes
  15106. case "$host" in
  15107. *-*-openbsd*)
  15108. enable_oss=no;;
  15109. esac
  15110. fi
  15111. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15113. $as_echo_n "checking for OSS audio support... " >&6; }
  15114. have_oss=no
  15115. if test x$have_oss != xyes; then
  15116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15117. /* end confdefs.h. */
  15118. #include <sys/soundcard.h>
  15119. int
  15120. main ()
  15121. {
  15122. int arg = SNDCTL_DSP_SETFRAGMENT;
  15123. ;
  15124. return 0;
  15125. }
  15126. _ACEOF
  15127. if ac_fn_c_try_compile "$LINENO"; then :
  15128. have_oss=yes
  15129. fi
  15130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15131. fi
  15132. if test x$have_oss != xyes; then
  15133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15134. /* end confdefs.h. */
  15135. #include <soundcard.h>
  15136. int
  15137. main ()
  15138. {
  15139. int arg = SNDCTL_DSP_SETFRAGMENT;
  15140. ;
  15141. return 0;
  15142. }
  15143. _ACEOF
  15144. if ac_fn_c_try_compile "$LINENO"; then :
  15145. have_oss=yes
  15146. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15147. fi
  15148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15149. fi
  15150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15151. $as_echo "$have_oss" >&6; }
  15152. if test x$have_oss = xyes; then
  15153. SUMMARY_audio="${SUMMARY_audio} oss"
  15154. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15155. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15156. have_audio=yes
  15157. # We may need to link with ossaudio emulation library
  15158. case "$host" in
  15159. *-*-openbsd*|*-*-netbsd*)
  15160. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15161. esac
  15162. fi
  15163. fi
  15164. }
  15165. CheckALSA()
  15166. {
  15167. # Check whether --enable-alsa was given.
  15168. if test "${enable_alsa+set}" = set; then :
  15169. enableval=$enable_alsa;
  15170. else
  15171. enable_alsa=yes
  15172. fi
  15173. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15174. alsa_save_CFLAGS="$CFLAGS"
  15175. alsa_save_LDFLAGS="$LDFLAGS"
  15176. alsa_save_LIBS="$LIBS"
  15177. alsa_found=yes
  15178. # Check whether --with-alsa-prefix was given.
  15179. if test "${with_alsa_prefix+set}" = set; then :
  15180. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15181. else
  15182. alsa_prefix=""
  15183. fi
  15184. # Check whether --with-alsa-inc-prefix was given.
  15185. if test "${with_alsa_inc_prefix+set}" = set; then :
  15186. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15187. else
  15188. alsa_inc_prefix=""
  15189. fi
  15190. # Check whether --enable-alsatest was given.
  15191. if test "${enable_alsatest+set}" = set; then :
  15192. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15193. else
  15194. enable_alsatest=yes
  15195. fi
  15196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15197. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15198. if test "$alsa_inc_prefix" != "" ; then
  15199. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15200. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15201. fi
  15202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15203. $as_echo "$ALSA_CFLAGS" >&6; }
  15204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15205. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15206. if test "$alsa_prefix" != "" ; then
  15207. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15208. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15209. fi
  15210. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15211. LIBS=`echo $LIBS | sed 's/-lm//'`
  15212. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15213. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15214. LIBS=`echo $LIBS | sed 's/ //'`
  15215. LIBS="$ALSA_LIBS $LIBS"
  15216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15217. $as_echo "$ALSA_LIBS" >&6; }
  15218. min_alsa_version=1.0.11
  15219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15220. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15221. no_alsa=""
  15222. alsa_min_major_version=`echo $min_alsa_version | \
  15223. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15224. alsa_min_minor_version=`echo $min_alsa_version | \
  15225. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15226. alsa_min_micro_version=`echo $min_alsa_version | \
  15227. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15228. ac_ext=c
  15229. ac_cpp='$CPP $CPPFLAGS'
  15230. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15231. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15232. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15234. /* end confdefs.h. */
  15235. #include <alsa/asoundlib.h>
  15236. int
  15237. main ()
  15238. {
  15239. /* ensure backward compatibility */
  15240. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15241. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15242. #endif
  15243. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15244. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15245. #endif
  15246. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15247. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15248. #endif
  15249. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15250. exit(0);
  15251. # else
  15252. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15253. # error not present
  15254. # endif
  15255. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15256. exit(0);
  15257. # else
  15258. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15259. # error not present
  15260. # endif
  15261. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15262. # error not present
  15263. # endif
  15264. # endif
  15265. # endif
  15266. exit(0);
  15267. ;
  15268. return 0;
  15269. }
  15270. _ACEOF
  15271. if ac_fn_c_try_compile "$LINENO"; then :
  15272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15273. $as_echo "found." >&6; }
  15274. else
  15275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15276. $as_echo "not present." >&6; }
  15277. alsa_found=no
  15278. fi
  15279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15280. ac_ext=c
  15281. ac_cpp='$CPP $CPPFLAGS'
  15282. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15283. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15284. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15285. if test "x$enable_alsatest" = "xyes"; then
  15286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15287. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15288. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15289. $as_echo_n "(cached) " >&6
  15290. else
  15291. ac_check_lib_save_LIBS=$LIBS
  15292. LIBS="-lasound $LIBS"
  15293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15294. /* end confdefs.h. */
  15295. /* Override any GCC internal prototype to avoid an error.
  15296. Use char because int might match the return type of a GCC
  15297. builtin and then its argument prototype would still apply. */
  15298. #ifdef __cplusplus
  15299. extern "C"
  15300. #endif
  15301. char snd_ctl_open ();
  15302. int
  15303. main ()
  15304. {
  15305. return snd_ctl_open ();
  15306. ;
  15307. return 0;
  15308. }
  15309. _ACEOF
  15310. if ac_fn_c_try_link "$LINENO"; then :
  15311. ac_cv_lib_asound_snd_ctl_open=yes
  15312. else
  15313. ac_cv_lib_asound_snd_ctl_open=no
  15314. fi
  15315. rm -f core conftest.err conftest.$ac_objext \
  15316. conftest$ac_exeext conftest.$ac_ext
  15317. LIBS=$ac_check_lib_save_LIBS
  15318. fi
  15319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15320. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15321. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15322. cat >>confdefs.h <<_ACEOF
  15323. #define HAVE_LIBASOUND 1
  15324. _ACEOF
  15325. LIBS="-lasound $LIBS"
  15326. else
  15327. alsa_found=no
  15328. fi
  15329. fi
  15330. if test "x$alsa_found" = "xyes" ; then
  15331. have_alsa=yes
  15332. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15333. LIBS=`echo $LIBS | sed 's/ //'`
  15334. LIBS="-lasound $LIBS"
  15335. fi
  15336. if test "x$alsa_found" = "xno" ; then
  15337. have_alsa=no
  15338. CFLAGS="$alsa_save_CFLAGS"
  15339. LDFLAGS="$alsa_save_LDFLAGS"
  15340. LIBS="$alsa_save_LIBS"
  15341. ALSA_CFLAGS=""
  15342. ALSA_LIBS=""
  15343. fi
  15344. # Restore all flags from before the ALSA detection runs
  15345. CFLAGS="$alsa_save_CFLAGS"
  15346. LDFLAGS="$alsa_save_LDFLAGS"
  15347. LIBS="$alsa_save_LIBS"
  15348. if test x$have_alsa = xyes; then
  15349. # Check whether --enable-alsa-shared was given.
  15350. if test "${enable_alsa_shared+set}" = set; then :
  15351. enableval=$enable_alsa_shared;
  15352. else
  15353. enable_alsa_shared=yes
  15354. fi
  15355. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15356. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15357. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15358. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15359. if test x$have_loadso != xyes && \
  15360. test x$enable_alsa_shared = xyes; then
  15361. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15362. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15363. fi
  15364. if test x$have_loadso = xyes && \
  15365. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15366. echo "-- dynamic libasound -> $alsa_lib"
  15367. cat >>confdefs.h <<_ACEOF
  15368. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15369. _ACEOF
  15370. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15371. else
  15372. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15373. SUMMARY_audio="${SUMMARY_audio} alsa"
  15374. fi
  15375. have_audio=yes
  15376. fi
  15377. fi
  15378. }
  15379. CheckJACK()
  15380. {
  15381. # Check whether --enable-jack was given.
  15382. if test "${enable_jack+set}" = set; then :
  15383. enableval=$enable_jack;
  15384. else
  15385. enable_jack=yes
  15386. fi
  15387. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15388. audio_jack=no
  15389. JACK_REQUIRED_VERSION=0.125
  15390. # Extract the first word of "pkg-config", so it can be a program name with args.
  15391. set dummy pkg-config; ac_word=$2
  15392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15393. $as_echo_n "checking for $ac_word... " >&6; }
  15394. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15395. $as_echo_n "(cached) " >&6
  15396. else
  15397. case $PKG_CONFIG in
  15398. [\\/]* | ?:[\\/]*)
  15399. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15400. ;;
  15401. *)
  15402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15403. for as_dir in $PATH
  15404. do
  15405. IFS=$as_save_IFS
  15406. test -z "$as_dir" && as_dir=.
  15407. for ac_exec_ext in '' $ac_executable_extensions; do
  15408. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15409. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15411. break 2
  15412. fi
  15413. done
  15414. done
  15415. IFS=$as_save_IFS
  15416. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15417. ;;
  15418. esac
  15419. fi
  15420. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15421. if test -n "$PKG_CONFIG"; then
  15422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15423. $as_echo "$PKG_CONFIG" >&6; }
  15424. else
  15425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15426. $as_echo "no" >&6; }
  15427. fi
  15428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK $JACK_REQUIRED_VERSION support" >&5
  15429. $as_echo_n "checking for JACK $JACK_REQUIRED_VERSION support... " >&6; }
  15430. if test x$PKG_CONFIG != xno; then
  15431. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then
  15432. JACK_CFLAGS=`$PKG_CONFIG --cflags jack`
  15433. JACK_LIBS=`$PKG_CONFIG --libs jack`
  15434. audio_jack=yes
  15435. fi
  15436. fi
  15437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_jack" >&5
  15438. $as_echo "$audio_jack" >&6; }
  15439. if test x$audio_jack = xyes; then
  15440. # Check whether --enable-jack-shared was given.
  15441. if test "${enable_jack_shared+set}" = set; then :
  15442. enableval=$enable_jack_shared;
  15443. else
  15444. enable_jack_shared=yes
  15445. fi
  15446. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15447. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15448. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15449. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15450. if test x$have_loadso != xyes && \
  15451. test x$enable_jack_shared = xyes; then
  15452. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15453. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15454. fi
  15455. if test x$have_loadso = xyes && \
  15456. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15457. echo "-- dynamic libjack -> $jack_lib"
  15458. cat >>confdefs.h <<_ACEOF
  15459. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15460. _ACEOF
  15461. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15462. case "$host" in
  15463. # On Solaris, jack must be linked deferred explicitly
  15464. # to prevent undefined symbol failures.
  15465. *-*-solaris*)
  15466. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15467. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15468. esac
  15469. else
  15470. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15471. SUMMARY_audio="${SUMMARY_audio} jack"
  15472. fi
  15473. have_audio=yes
  15474. fi
  15475. fi
  15476. }
  15477. CheckESD()
  15478. {
  15479. # Check whether --enable-esd was given.
  15480. if test "${enable_esd+set}" = set; then :
  15481. enableval=$enable_esd;
  15482. else
  15483. enable_esd=yes
  15484. fi
  15485. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15486. # Check whether --with-esd-prefix was given.
  15487. if test "${with_esd_prefix+set}" = set; then :
  15488. withval=$with_esd_prefix; esd_prefix="$withval"
  15489. else
  15490. esd_prefix=""
  15491. fi
  15492. # Check whether --with-esd-exec-prefix was given.
  15493. if test "${with_esd_exec_prefix+set}" = set; then :
  15494. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15495. else
  15496. esd_exec_prefix=""
  15497. fi
  15498. # Check whether --enable-esdtest was given.
  15499. if test "${enable_esdtest+set}" = set; then :
  15500. enableval=$enable_esdtest;
  15501. else
  15502. enable_esdtest=yes
  15503. fi
  15504. if test x$esd_exec_prefix != x ; then
  15505. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15506. if test x${ESD_CONFIG+set} != xset ; then
  15507. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15508. fi
  15509. fi
  15510. if test x$esd_prefix != x ; then
  15511. esd_args="$esd_args --prefix=$esd_prefix"
  15512. if test x${ESD_CONFIG+set} != xset ; then
  15513. ESD_CONFIG=$esd_prefix/bin/esd-config
  15514. fi
  15515. fi
  15516. # Extract the first word of "esd-config", so it can be a program name with args.
  15517. set dummy esd-config; ac_word=$2
  15518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15519. $as_echo_n "checking for $ac_word... " >&6; }
  15520. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15521. $as_echo_n "(cached) " >&6
  15522. else
  15523. case $ESD_CONFIG in
  15524. [\\/]* | ?:[\\/]*)
  15525. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15526. ;;
  15527. *)
  15528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15529. for as_dir in $PATH
  15530. do
  15531. IFS=$as_save_IFS
  15532. test -z "$as_dir" && as_dir=.
  15533. for ac_exec_ext in '' $ac_executable_extensions; do
  15534. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15535. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15536. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15537. break 2
  15538. fi
  15539. done
  15540. done
  15541. IFS=$as_save_IFS
  15542. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15543. ;;
  15544. esac
  15545. fi
  15546. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15547. if test -n "$ESD_CONFIG"; then
  15548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15549. $as_echo "$ESD_CONFIG" >&6; }
  15550. else
  15551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15552. $as_echo "no" >&6; }
  15553. fi
  15554. min_esd_version=0.2.8
  15555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15556. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15557. no_esd=""
  15558. if test "$ESD_CONFIG" = "no" ; then
  15559. no_esd=yes
  15560. else
  15561. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15562. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15563. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15564. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15565. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15566. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15567. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15568. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15569. if test "x$enable_esdtest" = "xyes" ; then
  15570. ac_save_CFLAGS="$CFLAGS"
  15571. ac_save_LIBS="$LIBS"
  15572. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15573. LIBS="$LIBS $ESD_LIBS"
  15574. rm -f conf.esdtest
  15575. if test "$cross_compiling" = yes; then :
  15576. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15577. else
  15578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15579. /* end confdefs.h. */
  15580. #include <stdio.h>
  15581. #include <stdlib.h>
  15582. #include <string.h>
  15583. #include <esd.h>
  15584. char*
  15585. my_strdup (char *str)
  15586. {
  15587. char *new_str;
  15588. if (str)
  15589. {
  15590. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15591. strcpy (new_str, str);
  15592. }
  15593. else
  15594. new_str = NULL;
  15595. return new_str;
  15596. }
  15597. int main ()
  15598. {
  15599. int major, minor, micro;
  15600. char *tmp_version;
  15601. system ("touch conf.esdtest");
  15602. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15603. tmp_version = my_strdup("$min_esd_version");
  15604. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15605. printf("%s, bad version string\n", "$min_esd_version");
  15606. exit(1);
  15607. }
  15608. if (($esd_major_version > major) ||
  15609. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15610. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15611. {
  15612. return 0;
  15613. }
  15614. else
  15615. {
  15616. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15617. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15618. printf("*** best to upgrade to the required version.\n");
  15619. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15620. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15621. printf("*** config.cache before re-running configure\n");
  15622. return 1;
  15623. }
  15624. }
  15625. _ACEOF
  15626. if ac_fn_c_try_run "$LINENO"; then :
  15627. else
  15628. no_esd=yes
  15629. fi
  15630. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15631. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15632. fi
  15633. CFLAGS="$ac_save_CFLAGS"
  15634. LIBS="$ac_save_LIBS"
  15635. fi
  15636. fi
  15637. if test "x$no_esd" = x ; then
  15638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15639. $as_echo "yes" >&6; }
  15640. have_esd=yes
  15641. else
  15642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15643. $as_echo "no" >&6; }
  15644. if test "$ESD_CONFIG" = "no" ; then
  15645. echo "*** The esd-config script installed by ESD could not be found"
  15646. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15647. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15648. echo "*** full path to esd-config."
  15649. else
  15650. if test -f conf.esdtest ; then
  15651. :
  15652. else
  15653. echo "*** Could not run ESD test program, checking why..."
  15654. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15655. LIBS="$LIBS $ESD_LIBS"
  15656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15657. /* end confdefs.h. */
  15658. #include <stdio.h>
  15659. #include <esd.h>
  15660. int
  15661. main ()
  15662. {
  15663. return 0;
  15664. ;
  15665. return 0;
  15666. }
  15667. _ACEOF
  15668. if ac_fn_c_try_link "$LINENO"; then :
  15669. echo "*** The test program compiled, but did not run. This usually means"
  15670. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15671. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15672. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15673. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15674. echo "*** is required on your system"
  15675. echo "***"
  15676. echo "*** If you have an old version installed, it is best to remove it, although"
  15677. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15678. else
  15679. echo "*** The test program failed to compile or link. See the file config.log for the"
  15680. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15681. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15682. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15683. fi
  15684. rm -f core conftest.err conftest.$ac_objext \
  15685. conftest$ac_exeext conftest.$ac_ext
  15686. CFLAGS="$ac_save_CFLAGS"
  15687. LIBS="$ac_save_LIBS"
  15688. fi
  15689. fi
  15690. ESD_CFLAGS=""
  15691. ESD_LIBS=""
  15692. have_esd=no
  15693. fi
  15694. rm -f conf.esdtest
  15695. if test x$have_esd = xyes; then
  15696. # Check whether --enable-esd-shared was given.
  15697. if test "${enable_esd_shared+set}" = set; then :
  15698. enableval=$enable_esd_shared;
  15699. else
  15700. enable_esd_shared=yes
  15701. fi
  15702. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15703. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15704. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15705. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15706. if test x$have_loadso != xyes && \
  15707. test x$enable_esd_shared = xyes; then
  15708. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15709. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15710. fi
  15711. if test x$have_loadso = xyes && \
  15712. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15713. echo "-- dynamic libesd -> $esd_lib"
  15714. cat >>confdefs.h <<_ACEOF
  15715. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15716. _ACEOF
  15717. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15718. else
  15719. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15720. SUMMARY_audio="${SUMMARY_audio} esd"
  15721. fi
  15722. have_audio=yes
  15723. fi
  15724. fi
  15725. }
  15726. CheckPulseAudio()
  15727. {
  15728. # Check whether --enable-pulseaudio was given.
  15729. if test "${enable_pulseaudio+set}" = set; then :
  15730. enableval=$enable_pulseaudio;
  15731. else
  15732. enable_pulseaudio=yes
  15733. fi
  15734. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15735. audio_pulseaudio=no
  15736. PULSEAUDIO_REQUIRED_VERSION=0.9
  15737. # Extract the first word of "pkg-config", so it can be a program name with args.
  15738. set dummy pkg-config; ac_word=$2
  15739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15740. $as_echo_n "checking for $ac_word... " >&6; }
  15741. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15742. $as_echo_n "(cached) " >&6
  15743. else
  15744. case $PKG_CONFIG in
  15745. [\\/]* | ?:[\\/]*)
  15746. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15747. ;;
  15748. *)
  15749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15750. for as_dir in $PATH
  15751. do
  15752. IFS=$as_save_IFS
  15753. test -z "$as_dir" && as_dir=.
  15754. for ac_exec_ext in '' $ac_executable_extensions; do
  15755. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15756. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15757. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15758. break 2
  15759. fi
  15760. done
  15761. done
  15762. IFS=$as_save_IFS
  15763. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15764. ;;
  15765. esac
  15766. fi
  15767. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15768. if test -n "$PKG_CONFIG"; then
  15769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15770. $as_echo "$PKG_CONFIG" >&6; }
  15771. else
  15772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15773. $as_echo "no" >&6; }
  15774. fi
  15775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15776. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15777. if test x$PKG_CONFIG != xno; then
  15778. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15779. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15780. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15781. audio_pulseaudio=yes
  15782. fi
  15783. fi
  15784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15785. $as_echo "$audio_pulseaudio" >&6; }
  15786. if test x$audio_pulseaudio = xyes; then
  15787. # Check whether --enable-pulseaudio-shared was given.
  15788. if test "${enable_pulseaudio_shared+set}" = set; then :
  15789. enableval=$enable_pulseaudio_shared;
  15790. else
  15791. enable_pulseaudio_shared=yes
  15792. fi
  15793. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15794. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15795. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15796. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15797. if test x$have_loadso != xyes && \
  15798. test x$enable_pulseaudio_shared = xyes; then
  15799. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15800. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15801. fi
  15802. if test x$have_loadso = xyes && \
  15803. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15804. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15805. cat >>confdefs.h <<_ACEOF
  15806. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15807. _ACEOF
  15808. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15809. case "$host" in
  15810. # On Solaris, pulseaudio must be linked deferred explicitly
  15811. # to prevent undefined symbol failures.
  15812. *-*-solaris*)
  15813. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15814. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15815. esac
  15816. else
  15817. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15818. SUMMARY_audio="${SUMMARY_audio} pulse"
  15819. fi
  15820. have_audio=yes
  15821. fi
  15822. fi
  15823. }
  15824. CheckARTSC()
  15825. {
  15826. # Check whether --enable-arts was given.
  15827. if test "${enable_arts+set}" = set; then :
  15828. enableval=$enable_arts;
  15829. else
  15830. enable_arts=yes
  15831. fi
  15832. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15833. # Extract the first word of "artsc-config", so it can be a program name with args.
  15834. set dummy artsc-config; ac_word=$2
  15835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15836. $as_echo_n "checking for $ac_word... " >&6; }
  15837. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15838. $as_echo_n "(cached) " >&6
  15839. else
  15840. case $ARTSCONFIG in
  15841. [\\/]* | ?:[\\/]*)
  15842. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15843. ;;
  15844. *)
  15845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15846. for as_dir in $PATH
  15847. do
  15848. IFS=$as_save_IFS
  15849. test -z "$as_dir" && as_dir=.
  15850. for ac_exec_ext in '' $ac_executable_extensions; do
  15851. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15852. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15853. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15854. break 2
  15855. fi
  15856. done
  15857. done
  15858. IFS=$as_save_IFS
  15859. ;;
  15860. esac
  15861. fi
  15862. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15863. if test -n "$ARTSCONFIG"; then
  15864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15865. $as_echo "$ARTSCONFIG" >&6; }
  15866. else
  15867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15868. $as_echo "no" >&6; }
  15869. fi
  15870. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15871. : # arts isn't installed
  15872. else
  15873. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15874. ARTS_LIBS=`$ARTSCONFIG --libs`
  15875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15876. $as_echo_n "checking for aRts development environment... " >&6; }
  15877. audio_arts=no
  15878. save_CFLAGS="$CFLAGS"
  15879. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15881. /* end confdefs.h. */
  15882. #include <artsc.h>
  15883. int
  15884. main ()
  15885. {
  15886. arts_stream_t stream;
  15887. ;
  15888. return 0;
  15889. }
  15890. _ACEOF
  15891. if ac_fn_c_try_compile "$LINENO"; then :
  15892. audio_arts=yes
  15893. fi
  15894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15895. CFLAGS="$save_CFLAGS"
  15896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15897. $as_echo "$audio_arts" >&6; }
  15898. if test x$audio_arts = xyes; then
  15899. # Check whether --enable-arts-shared was given.
  15900. if test "${enable_arts_shared+set}" = set; then :
  15901. enableval=$enable_arts_shared;
  15902. else
  15903. enable_arts_shared=yes
  15904. fi
  15905. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15906. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15907. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15908. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15909. if test x$have_loadso != xyes && \
  15910. test x$enable_arts_shared = xyes; then
  15911. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15912. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15913. fi
  15914. if test x$have_loadso = xyes && \
  15915. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15916. echo "-- dynamic libartsc -> $arts_lib"
  15917. cat >>confdefs.h <<_ACEOF
  15918. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15919. _ACEOF
  15920. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15921. else
  15922. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15923. SUMMARY_audio="${SUMMARY_audio} arts"
  15924. fi
  15925. have_audio=yes
  15926. fi
  15927. fi
  15928. fi
  15929. }
  15930. CheckNAS()
  15931. {
  15932. # Check whether --enable-nas was given.
  15933. if test "${enable_nas+set}" = set; then :
  15934. enableval=$enable_nas;
  15935. else
  15936. enable_nas=yes
  15937. fi
  15938. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15939. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15940. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15941. have_nas_hdr=yes
  15942. fi
  15943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15944. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15945. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15946. $as_echo_n "(cached) " >&6
  15947. else
  15948. ac_check_lib_save_LIBS=$LIBS
  15949. LIBS="-laudio $LIBS"
  15950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15951. /* end confdefs.h. */
  15952. /* Override any GCC internal prototype to avoid an error.
  15953. Use char because int might match the return type of a GCC
  15954. builtin and then its argument prototype would still apply. */
  15955. #ifdef __cplusplus
  15956. extern "C"
  15957. #endif
  15958. char AuOpenServer ();
  15959. int
  15960. main ()
  15961. {
  15962. return AuOpenServer ();
  15963. ;
  15964. return 0;
  15965. }
  15966. _ACEOF
  15967. if ac_fn_c_try_link "$LINENO"; then :
  15968. ac_cv_lib_audio_AuOpenServer=yes
  15969. else
  15970. ac_cv_lib_audio_AuOpenServer=no
  15971. fi
  15972. rm -f core conftest.err conftest.$ac_objext \
  15973. conftest$ac_exeext conftest.$ac_ext
  15974. LIBS=$ac_check_lib_save_LIBS
  15975. fi
  15976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15977. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15978. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15979. have_nas_lib=yes
  15980. fi
  15981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15982. $as_echo_n "checking for NAS audio support... " >&6; }
  15983. have_nas=no
  15984. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15985. have_nas=yes
  15986. NAS_LIBS="-laudio"
  15987. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15988. have_nas=yes
  15989. NAS_CFLAGS="-I/usr/X11R6/include/"
  15990. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15991. fi
  15992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15993. $as_echo "$have_nas" >&6; }
  15994. if test x$have_nas = xyes; then
  15995. # Check whether --enable-nas-shared was given.
  15996. if test "${enable_nas_shared+set}" = set; then :
  15997. enableval=$enable_nas_shared;
  15998. else
  15999. enable_nas_shared=yes
  16000. fi
  16001. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16002. if test x$have_loadso != xyes && \
  16003. test x$enable_nas_shared = xyes; then
  16004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16005. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16006. fi
  16007. if test x$have_loadso = xyes && \
  16008. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16009. echo "-- dynamic libaudio -> $nas_lib"
  16010. cat >>confdefs.h <<_ACEOF
  16011. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16012. _ACEOF
  16013. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16014. else
  16015. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16016. SUMMARY_audio="${SUMMARY_audio} nas"
  16017. fi
  16018. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16019. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16020. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16021. have_audio=yes
  16022. fi
  16023. fi
  16024. }
  16025. CheckSNDIO()
  16026. {
  16027. # Check whether --enable-sndio was given.
  16028. if test "${enable_sndio+set}" = set; then :
  16029. enableval=$enable_sndio;
  16030. else
  16031. enable_sndio=yes
  16032. fi
  16033. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16034. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16035. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16036. have_sndio_hdr=yes
  16037. fi
  16038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16039. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16040. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16041. $as_echo_n "(cached) " >&6
  16042. else
  16043. ac_check_lib_save_LIBS=$LIBS
  16044. LIBS="-lsndio $LIBS"
  16045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16046. /* end confdefs.h. */
  16047. /* Override any GCC internal prototype to avoid an error.
  16048. Use char because int might match the return type of a GCC
  16049. builtin and then its argument prototype would still apply. */
  16050. #ifdef __cplusplus
  16051. extern "C"
  16052. #endif
  16053. char sio_open ();
  16054. int
  16055. main ()
  16056. {
  16057. return sio_open ();
  16058. ;
  16059. return 0;
  16060. }
  16061. _ACEOF
  16062. if ac_fn_c_try_link "$LINENO"; then :
  16063. ac_cv_lib_sndio_sio_open=yes
  16064. else
  16065. ac_cv_lib_sndio_sio_open=no
  16066. fi
  16067. rm -f core conftest.err conftest.$ac_objext \
  16068. conftest$ac_exeext conftest.$ac_ext
  16069. LIBS=$ac_check_lib_save_LIBS
  16070. fi
  16071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16072. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16073. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16074. have_sndio_lib=yes
  16075. fi
  16076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16077. $as_echo_n "checking for sndio audio support... " >&6; }
  16078. have_sndio=no
  16079. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16080. have_sndio=yes
  16081. SNDIO_LIBS="-lsndio"
  16082. fi
  16083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16084. $as_echo "$have_sndio" >&6; }
  16085. if test x$have_sndio = xyes; then
  16086. # Check whether --enable-sndio-shared was given.
  16087. if test "${enable_sndio_shared+set}" = set; then :
  16088. enableval=$enable_sndio_shared;
  16089. else
  16090. enable_sndio_shared=yes
  16091. fi
  16092. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16093. if test x$have_loadso != xyes && \
  16094. test x$enable_sndio_shared = xyes; then
  16095. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16096. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16097. fi
  16098. if test x$have_loadso = xyes && \
  16099. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16100. echo "-- dynamic libsndio -> $sndio_lib"
  16101. cat >>confdefs.h <<_ACEOF
  16102. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16103. _ACEOF
  16104. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16105. else
  16106. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16107. SUMMARY_audio="${SUMMARY_audio} sndio"
  16108. fi
  16109. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16110. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16111. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16112. have_audio=yes
  16113. fi
  16114. fi
  16115. }
  16116. CheckFusionSound()
  16117. {
  16118. # Check whether --enable-fusionsound was given.
  16119. if test "${enable_fusionsound+set}" = set; then :
  16120. enableval=$enable_fusionsound;
  16121. else
  16122. enable_fusionsound=no
  16123. fi
  16124. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16125. fusionsound=no
  16126. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  16127. # Extract the first word of "pkg-config", so it can be a program name with args.
  16128. set dummy pkg-config; ac_word=$2
  16129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16130. $as_echo_n "checking for $ac_word... " >&6; }
  16131. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16132. $as_echo_n "(cached) " >&6
  16133. else
  16134. case $PKG_CONFIG in
  16135. [\\/]* | ?:[\\/]*)
  16136. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16137. ;;
  16138. *)
  16139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16140. for as_dir in $PATH
  16141. do
  16142. IFS=$as_save_IFS
  16143. test -z "$as_dir" && as_dir=.
  16144. for ac_exec_ext in '' $ac_executable_extensions; do
  16145. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16146. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16147. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16148. break 2
  16149. fi
  16150. done
  16151. done
  16152. IFS=$as_save_IFS
  16153. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16154. ;;
  16155. esac
  16156. fi
  16157. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16158. if test -n "$PKG_CONFIG"; then
  16159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16160. $as_echo "$PKG_CONFIG" >&6; }
  16161. else
  16162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16163. $as_echo "no" >&6; }
  16164. fi
  16165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  16166. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  16167. if test x$PKG_CONFIG != xno; then
  16168. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  16169. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  16170. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  16171. fusionsound=yes
  16172. fi
  16173. fi
  16174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  16175. $as_echo "$fusionsound" >&6; }
  16176. if test x$fusionsound = xyes; then
  16177. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16178. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16179. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16180. # Check whether --enable-fusionsound-shared was given.
  16181. if test "${enable_fusionsound_shared+set}" = set; then :
  16182. enableval=$enable_fusionsound_shared;
  16183. else
  16184. enable_fusionsound_shared=yes
  16185. fi
  16186. fusionsound_shared=no
  16187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16188. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16189. if test x$have_loadso != xyes && \
  16190. test x$enable_fusionsound_shared = xyes; then
  16191. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16192. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16193. fi
  16194. if test x$have_loadso = xyes && \
  16195. test x$enable_fusionsound_shared = xyes; then
  16196. cat >>confdefs.h <<_ACEOF
  16197. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16198. _ACEOF
  16199. fusionsound_shared=yes
  16200. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16201. else
  16202. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16203. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16204. fi
  16205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16206. $as_echo "$fusionsound_shared" >&6; }
  16207. have_audio=yes
  16208. fi
  16209. fi
  16210. }
  16211. CheckDiskAudio()
  16212. {
  16213. # Check whether --enable-diskaudio was given.
  16214. if test "${enable_diskaudio+set}" = set; then :
  16215. enableval=$enable_diskaudio;
  16216. else
  16217. enable_diskaudio=yes
  16218. fi
  16219. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16220. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16221. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16222. SUMMARY_audio="${SUMMARY_audio} disk"
  16223. fi
  16224. }
  16225. CheckDummyAudio()
  16226. {
  16227. # Check whether --enable-dummyaudio was given.
  16228. if test "${enable_dummyaudio+set}" = set; then :
  16229. enableval=$enable_dummyaudio;
  16230. else
  16231. enable_dummyaudio=yes
  16232. fi
  16233. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16234. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16235. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16236. SUMMARY_audio="${SUMMARY_audio} dummy"
  16237. fi
  16238. }
  16239. CheckLibSampleRate()
  16240. {
  16241. # Check whether --enable-libsamplerate was given.
  16242. if test "${enable_libsamplerate+set}" = set; then :
  16243. enableval=$enable_libsamplerate;
  16244. else
  16245. enable_libsamplerate=yes
  16246. fi
  16247. if test x$enable_libsamplerate = xyes; then
  16248. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16249. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16250. have_samplerate_h_hdr=yes
  16251. else
  16252. have_samplerate_h_hdr=no
  16253. fi
  16254. if test x$have_samplerate_h_hdr = xyes; then
  16255. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16256. # Check whether --enable-libsamplerate-shared was given.
  16257. if test "${enable_libsamplerate_shared+set}" = set; then :
  16258. enableval=$enable_libsamplerate_shared;
  16259. else
  16260. enable_libsamplerate_shared=yes
  16261. fi
  16262. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16263. if test x$have_loadso != xyes && \
  16264. test x$enable_libsamplerate_shared = xyes; then
  16265. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16266. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16267. fi
  16268. if test x$have_loadso = xyes && \
  16269. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16270. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16271. cat >>confdefs.h <<_ACEOF
  16272. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16273. _ACEOF
  16274. else
  16275. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16276. fi
  16277. fi
  16278. fi
  16279. }
  16280. CheckVisibilityHidden()
  16281. {
  16282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16283. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16284. have_gcc_fvisibility=no
  16285. visibility_CFLAGS="-fvisibility=hidden"
  16286. save_CFLAGS="$CFLAGS"
  16287. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16289. /* end confdefs.h. */
  16290. #if !defined(__GNUC__) || __GNUC__ < 4
  16291. #error SDL only uses visibility attributes in GCC 4 or newer
  16292. #endif
  16293. int
  16294. main ()
  16295. {
  16296. ;
  16297. return 0;
  16298. }
  16299. _ACEOF
  16300. if ac_fn_c_try_compile "$LINENO"; then :
  16301. have_gcc_fvisibility=yes
  16302. fi
  16303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16305. $as_echo "$have_gcc_fvisibility" >&6; }
  16306. CFLAGS="$save_CFLAGS"
  16307. if test x$have_gcc_fvisibility = xyes; then
  16308. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16309. fi
  16310. }
  16311. CheckStackBoundary()
  16312. {
  16313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16314. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16315. have_gcc_preferred_stack_boundary=no
  16316. save_CFLAGS="$CFLAGS"
  16317. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16319. /* end confdefs.h. */
  16320. int x = 0;
  16321. int
  16322. main ()
  16323. {
  16324. ;
  16325. return 0;
  16326. }
  16327. _ACEOF
  16328. if ac_fn_c_try_compile "$LINENO"; then :
  16329. have_gcc_preferred_stack_boundary=yes
  16330. fi
  16331. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16333. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16334. CFLAGS="$save_CFLAGS"
  16335. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16336. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16337. fi
  16338. }
  16339. CheckDeclarationAfterStatement()
  16340. {
  16341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16342. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16343. have_gcc_declaration_after_statement=no
  16344. save_CFLAGS="$CFLAGS"
  16345. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16347. /* end confdefs.h. */
  16348. int x = 0;
  16349. int
  16350. main ()
  16351. {
  16352. ;
  16353. return 0;
  16354. }
  16355. _ACEOF
  16356. if ac_fn_c_try_compile "$LINENO"; then :
  16357. have_gcc_declaration_after_statement=yes
  16358. fi
  16359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16361. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16362. CFLAGS="$save_CFLAGS"
  16363. if test x$have_gcc_declaration_after_statement = xyes; then
  16364. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16365. fi
  16366. }
  16367. CheckWarnAll()
  16368. {
  16369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16370. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16371. have_gcc_Wall=no
  16372. save_CFLAGS="$CFLAGS"
  16373. CFLAGS="$save_CFLAGS -Wall"
  16374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16375. /* end confdefs.h. */
  16376. int x = 0;
  16377. int
  16378. main ()
  16379. {
  16380. ;
  16381. return 0;
  16382. }
  16383. _ACEOF
  16384. if ac_fn_c_try_compile "$LINENO"; then :
  16385. have_gcc_Wall=yes
  16386. fi
  16387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16389. $as_echo "$have_gcc_Wall" >&6; }
  16390. CFLAGS="$save_CFLAGS"
  16391. if test x$have_gcc_Wall = xyes; then
  16392. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16394. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16395. need_gcc_Wno_multichar=no
  16396. case "$host" in
  16397. *-*-haiku*)
  16398. need_gcc_Wno_multichar=yes
  16399. ;;
  16400. esac
  16401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16402. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16403. if test x$need_gcc_Wno_multichar = xyes; then
  16404. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16405. fi
  16406. fi
  16407. }
  16408. CheckWayland()
  16409. {
  16410. # Check whether --enable-video-wayland was given.
  16411. if test "${enable_video_wayland+set}" = set; then :
  16412. enableval=$enable_video_wayland;
  16413. else
  16414. enable_video_wayland=yes
  16415. fi
  16416. # Check whether --enable-video-wayland-qt-touch was given.
  16417. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16418. enableval=$enable_video_wayland_qt_touch;
  16419. else
  16420. enable_video_wayland_qt_touch=yes
  16421. fi
  16422. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16423. # Extract the first word of "pkg-config", so it can be a program name with args.
  16424. set dummy pkg-config; ac_word=$2
  16425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16426. $as_echo_n "checking for $ac_word... " >&6; }
  16427. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16428. $as_echo_n "(cached) " >&6
  16429. else
  16430. case $PKG_CONFIG in
  16431. [\\/]* | ?:[\\/]*)
  16432. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16433. ;;
  16434. *)
  16435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16436. for as_dir in $PATH
  16437. do
  16438. IFS=$as_save_IFS
  16439. test -z "$as_dir" && as_dir=.
  16440. for ac_exec_ext in '' $ac_executable_extensions; do
  16441. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16442. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16443. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16444. break 2
  16445. fi
  16446. done
  16447. done
  16448. IFS=$as_save_IFS
  16449. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16450. ;;
  16451. esac
  16452. fi
  16453. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16454. if test -n "$PKG_CONFIG"; then
  16455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16456. $as_echo "$PKG_CONFIG" >&6; }
  16457. else
  16458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16459. $as_echo "no" >&6; }
  16460. fi
  16461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16462. $as_echo_n "checking for Wayland support... " >&6; }
  16463. video_wayland=no
  16464. if test x$PKG_CONFIG != xno && \
  16465. test x$video_opengl_egl = xyes && \
  16466. test x$video_opengles_v2 = xyes; then
  16467. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16468. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16469. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16470. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16471. WAYLAND_CORE_PROTOCOL_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-client`
  16472. WAYLAND_PROTOCOLS_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
  16473. video_wayland=yes
  16474. fi
  16475. fi
  16476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16477. $as_echo "$video_wayland" >&6; }
  16478. if test x$video_wayland = xyes; then
  16479. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16480. if test x$enable_video_wayland_qt_touch = xyes; then
  16481. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16482. fi
  16483. WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1"
  16484. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16485. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16486. # Check whether --enable-wayland-shared was given.
  16487. if test "${enable_wayland_shared+set}" = set; then :
  16488. enableval=$enable_wayland_shared;
  16489. else
  16490. enable_wayland_shared=maybe
  16491. fi
  16492. case "$host" in
  16493. *)
  16494. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16495. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16496. if test x$wayland_egl_lib = x; then
  16497. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16498. fi
  16499. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16500. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16501. ;;
  16502. esac
  16503. if test x$enable_wayland_shared = xmaybe; then
  16504. enable_wayland_shared=yes
  16505. fi
  16506. if test x$have_loadso != xyes && \
  16507. test x$enable_wayland_shared = xyes; then
  16508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16509. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16510. enable_wayland_shared=no
  16511. fi
  16512. if test x$have_loadso = xyes && \
  16513. test x$enable_wayland_shared = xyes && \
  16514. test x$wayland_client_lib != x && \
  16515. test x$wayland_egl_lib != x && \
  16516. test x$wayland_cursor_lib != x && \
  16517. test x$xkbcommon_lib != x; then
  16518. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16519. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16520. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16521. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16522. cat >>confdefs.h <<_ACEOF
  16523. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16524. _ACEOF
  16525. cat >>confdefs.h <<_ACEOF
  16526. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16527. _ACEOF
  16528. cat >>confdefs.h <<_ACEOF
  16529. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16530. _ACEOF
  16531. cat >>confdefs.h <<_ACEOF
  16532. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16533. _ACEOF
  16534. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16535. else
  16536. enable_wayland_shared=no
  16537. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16538. SUMMARY_video="${SUMMARY_video} wayland"
  16539. fi
  16540. have_video=yes
  16541. fi
  16542. fi
  16543. }
  16544. CheckMir()
  16545. {
  16546. # Check whether --enable-video-mir was given.
  16547. if test "${enable_video_mir+set}" = set; then :
  16548. enableval=$enable_video_mir;
  16549. else
  16550. enable_video_mir=yes
  16551. fi
  16552. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16553. # Extract the first word of "pkg-config", so it can be a program name with args.
  16554. set dummy pkg-config; ac_word=$2
  16555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16556. $as_echo_n "checking for $ac_word... " >&6; }
  16557. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16558. $as_echo_n "(cached) " >&6
  16559. else
  16560. case $PKG_CONFIG in
  16561. [\\/]* | ?:[\\/]*)
  16562. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16563. ;;
  16564. *)
  16565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16566. for as_dir in $PATH
  16567. do
  16568. IFS=$as_save_IFS
  16569. test -z "$as_dir" && as_dir=.
  16570. for ac_exec_ext in '' $ac_executable_extensions; do
  16571. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16572. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16574. break 2
  16575. fi
  16576. done
  16577. done
  16578. IFS=$as_save_IFS
  16579. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16580. ;;
  16581. esac
  16582. fi
  16583. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16584. if test -n "$PKG_CONFIG"; then
  16585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16586. $as_echo "$PKG_CONFIG" >&6; }
  16587. else
  16588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16589. $as_echo "no" >&6; }
  16590. fi
  16591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16592. $as_echo_n "checking for Mir support... " >&6; }
  16593. video_mir=no
  16594. if test x$PKG_CONFIG != xno; then
  16595. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16596. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16597. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16598. save_CFLAGS="$CFLAGS"
  16599. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16601. /* end confdefs.h. */
  16602. #include <mir_toolkit/mir_client_library.h>
  16603. int
  16604. main ()
  16605. {
  16606. MirWindowAttrib attrib = mir_window_attrib_state
  16607. ;
  16608. return 0;
  16609. }
  16610. _ACEOF
  16611. if ac_fn_c_try_compile "$LINENO"; then :
  16612. video_mir=yes
  16613. fi
  16614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16615. CFLAGS="$save_CFLAGS"
  16616. fi
  16617. fi
  16618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16619. $as_echo "$video_mir" >&6; }
  16620. if test x$video_mir = xyes; then
  16621. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16622. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16623. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16624. # Check whether --enable-mir-shared was given.
  16625. if test "${enable_mir_shared+set}" = set; then :
  16626. enableval=$enable_mir_shared;
  16627. else
  16628. enable_mir_shared=maybe
  16629. fi
  16630. case "$host" in
  16631. *)
  16632. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16633. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16634. ;;
  16635. esac
  16636. if test x$enable_mir_shared = xmaybe; then
  16637. enable_mir_shared=yes
  16638. fi
  16639. if test x$have_loadso != xyes && \
  16640. test x$enable_mir_shared = xyes; then
  16641. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16642. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16643. enable_mir_shared=no
  16644. fi
  16645. if test x$have_loadso = xyes && \
  16646. test x$enable_mir_shared = xyes && \
  16647. test x$mirclient_lib != x && \
  16648. test x$xkbcommon_lib != x; then
  16649. echo "-- dynamic libmirclient -> $mirclient_lib"
  16650. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16651. cat >>confdefs.h <<_ACEOF
  16652. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16653. _ACEOF
  16654. cat >>confdefs.h <<_ACEOF
  16655. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16656. _ACEOF
  16657. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16658. else
  16659. enable_mir_shared=no
  16660. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16661. SUMMARY_video="${SUMMARY_video} mir"
  16662. fi
  16663. have_video=yes
  16664. fi
  16665. fi
  16666. }
  16667. CheckNativeClient()
  16668. {
  16669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16670. /* end confdefs.h. */
  16671. #if !defined(__native_client__)
  16672. #error "NO NACL"
  16673. #endif
  16674. int
  16675. main ()
  16676. {
  16677. ;
  16678. return 0;
  16679. }
  16680. _ACEOF
  16681. if ac_fn_c_try_compile "$LINENO"; then :
  16682. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16683. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16684. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16685. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16686. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16687. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16688. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16689. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16690. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16691. SUMMARY_audio="${SUMMARY_audio} nacl"
  16692. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16693. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16694. fi
  16695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16696. }
  16697. CheckRPI()
  16698. {
  16699. # Check whether --enable-video-rpi was given.
  16700. if test "${enable_video_rpi+set}" = set; then :
  16701. enableval=$enable_video_rpi;
  16702. else
  16703. enable_video_rpi=yes
  16704. fi
  16705. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  16706. if test x$ARCH = xnetbsd; then
  16707. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  16708. RPI_LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  16709. else
  16710. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  16711. RPI_LDFLAGS="-L/opt/vc/lib -lbcm_host"
  16712. fi
  16713. # Save the original compiler flags and libraries
  16714. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  16715. # Add the Raspberry Pi compiler flags and libraries
  16716. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LDFLAGS"
  16717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  16718. $as_echo_n "checking for Raspberry Pi... " >&6; }
  16719. have_video_rpi=no
  16720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16721. /* end confdefs.h. */
  16722. #include <bcm_host.h>
  16723. int
  16724. main ()
  16725. {
  16726. bcm_host_init();
  16727. ;
  16728. return 0;
  16729. }
  16730. _ACEOF
  16731. if ac_fn_c_try_link "$LINENO"; then :
  16732. have_video_rpi=yes
  16733. fi
  16734. rm -f core conftest.err conftest.$ac_objext \
  16735. conftest$ac_exeext conftest.$ac_ext
  16736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  16737. $as_echo "$have_video_rpi" >&6; }
  16738. # Restore the compiler flags and libraries
  16739. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  16740. if test x$have_video_rpi = xyes; then
  16741. CFLAGS="$CFLAGS $RPI_CFLAGS"
  16742. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  16743. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  16744. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LDFLAGS"
  16745. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  16746. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  16747. SUMMARY_video="${SUMMARY_video} rpi"
  16748. fi
  16749. fi
  16750. }
  16751. CheckX11()
  16752. {
  16753. # Check whether --enable-video-x11 was given.
  16754. if test "${enable_video_x11+set}" = set; then :
  16755. enableval=$enable_video_x11;
  16756. else
  16757. enable_video_x11=yes
  16758. fi
  16759. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16760. case "$host" in
  16761. *-*-darwin*)
  16762. # This isn't necessary for X11, but fixes GLX detection
  16763. if test "x$x_includes" = xNONE && \
  16764. test "x$x_libraries" = xNONE && \
  16765. test -d /usr/X11R6/include && \
  16766. test -d /usr/X11R6/lib; then
  16767. x_includes="/usr/X11R6/include"
  16768. x_libraries="/usr/X11R6/lib"
  16769. fi
  16770. ;;
  16771. esac
  16772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16773. $as_echo_n "checking for X... " >&6; }
  16774. # Check whether --with-x was given.
  16775. if test "${with_x+set}" = set; then :
  16776. withval=$with_x;
  16777. fi
  16778. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16779. if test "x$with_x" = xno; then
  16780. # The user explicitly disabled X.
  16781. have_x=disabled
  16782. else
  16783. case $x_includes,$x_libraries in #(
  16784. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16785. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16786. $as_echo_n "(cached) " >&6
  16787. else
  16788. # One or both of the vars are not set, and there is no cached value.
  16789. ac_x_includes=no ac_x_libraries=no
  16790. rm -f -r conftest.dir
  16791. if mkdir conftest.dir; then
  16792. cd conftest.dir
  16793. cat >Imakefile <<'_ACEOF'
  16794. incroot:
  16795. @echo incroot='${INCROOT}'
  16796. usrlibdir:
  16797. @echo usrlibdir='${USRLIBDIR}'
  16798. libdir:
  16799. @echo libdir='${LIBDIR}'
  16800. _ACEOF
  16801. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16802. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16803. for ac_var in incroot usrlibdir libdir; do
  16804. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16805. done
  16806. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16807. for ac_extension in a so sl dylib la dll; do
  16808. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16809. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16810. ac_im_usrlibdir=$ac_im_libdir; break
  16811. fi
  16812. done
  16813. # Screen out bogus values from the imake configuration. They are
  16814. # bogus both because they are the default anyway, and because
  16815. # using them would break gcc on systems where it needs fixed includes.
  16816. case $ac_im_incroot in
  16817. /usr/include) ac_x_includes= ;;
  16818. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16819. esac
  16820. case $ac_im_usrlibdir in
  16821. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16822. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16823. esac
  16824. fi
  16825. cd ..
  16826. rm -f -r conftest.dir
  16827. fi
  16828. # Standard set of common directories for X headers.
  16829. # Check X11 before X11Rn because it is often a symlink to the current release.
  16830. ac_x_header_dirs='
  16831. /usr/X11/include
  16832. /usr/X11R7/include
  16833. /usr/X11R6/include
  16834. /usr/X11R5/include
  16835. /usr/X11R4/include
  16836. /usr/include/X11
  16837. /usr/include/X11R7
  16838. /usr/include/X11R6
  16839. /usr/include/X11R5
  16840. /usr/include/X11R4
  16841. /usr/local/X11/include
  16842. /usr/local/X11R7/include
  16843. /usr/local/X11R6/include
  16844. /usr/local/X11R5/include
  16845. /usr/local/X11R4/include
  16846. /usr/local/include/X11
  16847. /usr/local/include/X11R7
  16848. /usr/local/include/X11R6
  16849. /usr/local/include/X11R5
  16850. /usr/local/include/X11R4
  16851. /usr/X386/include
  16852. /usr/x386/include
  16853. /usr/XFree86/include/X11
  16854. /usr/include
  16855. /usr/local/include
  16856. /usr/unsupported/include
  16857. /usr/athena/include
  16858. /usr/local/x11r5/include
  16859. /usr/lpp/Xamples/include
  16860. /usr/openwin/include
  16861. /usr/openwin/share/include'
  16862. if test "$ac_x_includes" = no; then
  16863. # Guess where to find include files, by looking for Xlib.h.
  16864. # First, try using that file with no special directory specified.
  16865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16866. /* end confdefs.h. */
  16867. #include <X11/Xlib.h>
  16868. _ACEOF
  16869. if ac_fn_c_try_cpp "$LINENO"; then :
  16870. # We can compile using X headers with no special include directory.
  16871. ac_x_includes=
  16872. else
  16873. for ac_dir in $ac_x_header_dirs; do
  16874. if test -r "$ac_dir/X11/Xlib.h"; then
  16875. ac_x_includes=$ac_dir
  16876. break
  16877. fi
  16878. done
  16879. fi
  16880. rm -f conftest.err conftest.i conftest.$ac_ext
  16881. fi # $ac_x_includes = no
  16882. if test "$ac_x_libraries" = no; then
  16883. # Check for the libraries.
  16884. # See if we find them without any special options.
  16885. # Don't add to $LIBS permanently.
  16886. ac_save_LIBS=$LIBS
  16887. LIBS="-lX11 $LIBS"
  16888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16889. /* end confdefs.h. */
  16890. #include <X11/Xlib.h>
  16891. int
  16892. main ()
  16893. {
  16894. XrmInitialize ()
  16895. ;
  16896. return 0;
  16897. }
  16898. _ACEOF
  16899. if ac_fn_c_try_link "$LINENO"; then :
  16900. LIBS=$ac_save_LIBS
  16901. # We can link X programs with no special library path.
  16902. ac_x_libraries=
  16903. else
  16904. LIBS=$ac_save_LIBS
  16905. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16906. do
  16907. # Don't even attempt the hair of trying to link an X program!
  16908. for ac_extension in a so sl dylib la dll; do
  16909. if test -r "$ac_dir/libX11.$ac_extension"; then
  16910. ac_x_libraries=$ac_dir
  16911. break 2
  16912. fi
  16913. done
  16914. done
  16915. fi
  16916. rm -f core conftest.err conftest.$ac_objext \
  16917. conftest$ac_exeext conftest.$ac_ext
  16918. fi # $ac_x_libraries = no
  16919. case $ac_x_includes,$ac_x_libraries in #(
  16920. no,* | *,no | *\'*)
  16921. # Didn't find X, or a directory has "'" in its name.
  16922. ac_cv_have_x="have_x=no";; #(
  16923. *)
  16924. # Record where we found X for the cache.
  16925. ac_cv_have_x="have_x=yes\
  16926. ac_x_includes='$ac_x_includes'\
  16927. ac_x_libraries='$ac_x_libraries'"
  16928. esac
  16929. fi
  16930. ;; #(
  16931. *) have_x=yes;;
  16932. esac
  16933. eval "$ac_cv_have_x"
  16934. fi # $with_x != no
  16935. if test "$have_x" != yes; then
  16936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16937. $as_echo "$have_x" >&6; }
  16938. no_x=yes
  16939. else
  16940. # If each of the values was on the command line, it overrides each guess.
  16941. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16942. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16943. # Update the cache value to reflect the command line values.
  16944. ac_cv_have_x="have_x=yes\
  16945. ac_x_includes='$x_includes'\
  16946. ac_x_libraries='$x_libraries'"
  16947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16948. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16949. fi
  16950. if test "$no_x" = yes; then
  16951. # Not all programs may use this symbol, but it does not hurt to define it.
  16952. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16953. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16954. else
  16955. if test -n "$x_includes"; then
  16956. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16957. fi
  16958. # It would also be nice to do this for all -L options, not just this one.
  16959. if test -n "$x_libraries"; then
  16960. X_LIBS="$X_LIBS -L$x_libraries"
  16961. # For Solaris; some versions of Sun CC require a space after -R and
  16962. # others require no space. Words are not sufficient . . . .
  16963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16964. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16965. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16966. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16967. ac_c_werror_flag=yes
  16968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16969. /* end confdefs.h. */
  16970. int
  16971. main ()
  16972. {
  16973. ;
  16974. return 0;
  16975. }
  16976. _ACEOF
  16977. if ac_fn_c_try_link "$LINENO"; then :
  16978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16979. $as_echo "no" >&6; }
  16980. X_LIBS="$X_LIBS -R$x_libraries"
  16981. else
  16982. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16984. /* end confdefs.h. */
  16985. int
  16986. main ()
  16987. {
  16988. ;
  16989. return 0;
  16990. }
  16991. _ACEOF
  16992. if ac_fn_c_try_link "$LINENO"; then :
  16993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16994. $as_echo "yes" >&6; }
  16995. X_LIBS="$X_LIBS -R $x_libraries"
  16996. else
  16997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16998. $as_echo "neither works" >&6; }
  16999. fi
  17000. rm -f core conftest.err conftest.$ac_objext \
  17001. conftest$ac_exeext conftest.$ac_ext
  17002. fi
  17003. rm -f core conftest.err conftest.$ac_objext \
  17004. conftest$ac_exeext conftest.$ac_ext
  17005. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17006. LIBS=$ac_xsave_LIBS
  17007. fi
  17008. # Check for system-dependent libraries X programs must link with.
  17009. # Do this before checking for the system-independent R6 libraries
  17010. # (-lICE), since we may need -lsocket or whatever for X linking.
  17011. if test "$ISC" = yes; then
  17012. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17013. else
  17014. # Martyn Johnson says this is needed for Ultrix, if the X
  17015. # libraries were built with DECnet support. And Karl Berry says
  17016. # the Alpha needs dnet_stub (dnet does not exist).
  17017. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17019. /* end confdefs.h. */
  17020. /* Override any GCC internal prototype to avoid an error.
  17021. Use char because int might match the return type of a GCC
  17022. builtin and then its argument prototype would still apply. */
  17023. #ifdef __cplusplus
  17024. extern "C"
  17025. #endif
  17026. char XOpenDisplay ();
  17027. int
  17028. main ()
  17029. {
  17030. return XOpenDisplay ();
  17031. ;
  17032. return 0;
  17033. }
  17034. _ACEOF
  17035. if ac_fn_c_try_link "$LINENO"; then :
  17036. else
  17037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17038. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17039. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17040. $as_echo_n "(cached) " >&6
  17041. else
  17042. ac_check_lib_save_LIBS=$LIBS
  17043. LIBS="-ldnet $LIBS"
  17044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17045. /* end confdefs.h. */
  17046. /* Override any GCC internal prototype to avoid an error.
  17047. Use char because int might match the return type of a GCC
  17048. builtin and then its argument prototype would still apply. */
  17049. #ifdef __cplusplus
  17050. extern "C"
  17051. #endif
  17052. char dnet_ntoa ();
  17053. int
  17054. main ()
  17055. {
  17056. return dnet_ntoa ();
  17057. ;
  17058. return 0;
  17059. }
  17060. _ACEOF
  17061. if ac_fn_c_try_link "$LINENO"; then :
  17062. ac_cv_lib_dnet_dnet_ntoa=yes
  17063. else
  17064. ac_cv_lib_dnet_dnet_ntoa=no
  17065. fi
  17066. rm -f core conftest.err conftest.$ac_objext \
  17067. conftest$ac_exeext conftest.$ac_ext
  17068. LIBS=$ac_check_lib_save_LIBS
  17069. fi
  17070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17071. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17072. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17073. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17074. fi
  17075. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17077. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17078. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17079. $as_echo_n "(cached) " >&6
  17080. else
  17081. ac_check_lib_save_LIBS=$LIBS
  17082. LIBS="-ldnet_stub $LIBS"
  17083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17084. /* end confdefs.h. */
  17085. /* Override any GCC internal prototype to avoid an error.
  17086. Use char because int might match the return type of a GCC
  17087. builtin and then its argument prototype would still apply. */
  17088. #ifdef __cplusplus
  17089. extern "C"
  17090. #endif
  17091. char dnet_ntoa ();
  17092. int
  17093. main ()
  17094. {
  17095. return dnet_ntoa ();
  17096. ;
  17097. return 0;
  17098. }
  17099. _ACEOF
  17100. if ac_fn_c_try_link "$LINENO"; then :
  17101. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17102. else
  17103. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17104. fi
  17105. rm -f core conftest.err conftest.$ac_objext \
  17106. conftest$ac_exeext conftest.$ac_ext
  17107. LIBS=$ac_check_lib_save_LIBS
  17108. fi
  17109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17110. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17111. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17112. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17113. fi
  17114. fi
  17115. fi
  17116. rm -f core conftest.err conftest.$ac_objext \
  17117. conftest$ac_exeext conftest.$ac_ext
  17118. LIBS="$ac_xsave_LIBS"
  17119. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17120. # to get the SysV transport functions.
  17121. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17122. # needs -lnsl.
  17123. # The nsl library prevents programs from opening the X display
  17124. # on Irix 5.2, according to T.E. Dickey.
  17125. # The functions gethostbyname, getservbyname, and inet_addr are
  17126. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17127. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17128. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17129. fi
  17130. if test $ac_cv_func_gethostbyname = no; then
  17131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17132. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17133. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17134. $as_echo_n "(cached) " >&6
  17135. else
  17136. ac_check_lib_save_LIBS=$LIBS
  17137. LIBS="-lnsl $LIBS"
  17138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17139. /* end confdefs.h. */
  17140. /* Override any GCC internal prototype to avoid an error.
  17141. Use char because int might match the return type of a GCC
  17142. builtin and then its argument prototype would still apply. */
  17143. #ifdef __cplusplus
  17144. extern "C"
  17145. #endif
  17146. char gethostbyname ();
  17147. int
  17148. main ()
  17149. {
  17150. return gethostbyname ();
  17151. ;
  17152. return 0;
  17153. }
  17154. _ACEOF
  17155. if ac_fn_c_try_link "$LINENO"; then :
  17156. ac_cv_lib_nsl_gethostbyname=yes
  17157. else
  17158. ac_cv_lib_nsl_gethostbyname=no
  17159. fi
  17160. rm -f core conftest.err conftest.$ac_objext \
  17161. conftest$ac_exeext conftest.$ac_ext
  17162. LIBS=$ac_check_lib_save_LIBS
  17163. fi
  17164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17165. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17166. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17167. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17168. fi
  17169. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17171. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17172. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17173. $as_echo_n "(cached) " >&6
  17174. else
  17175. ac_check_lib_save_LIBS=$LIBS
  17176. LIBS="-lbsd $LIBS"
  17177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17178. /* end confdefs.h. */
  17179. /* Override any GCC internal prototype to avoid an error.
  17180. Use char because int might match the return type of a GCC
  17181. builtin and then its argument prototype would still apply. */
  17182. #ifdef __cplusplus
  17183. extern "C"
  17184. #endif
  17185. char gethostbyname ();
  17186. int
  17187. main ()
  17188. {
  17189. return gethostbyname ();
  17190. ;
  17191. return 0;
  17192. }
  17193. _ACEOF
  17194. if ac_fn_c_try_link "$LINENO"; then :
  17195. ac_cv_lib_bsd_gethostbyname=yes
  17196. else
  17197. ac_cv_lib_bsd_gethostbyname=no
  17198. fi
  17199. rm -f core conftest.err conftest.$ac_objext \
  17200. conftest$ac_exeext conftest.$ac_ext
  17201. LIBS=$ac_check_lib_save_LIBS
  17202. fi
  17203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17204. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17205. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17206. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17207. fi
  17208. fi
  17209. fi
  17210. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17211. # socket/setsockopt and other routines are undefined under SCO ODT
  17212. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17213. # on later versions), says Simon Leinen: it contains gethostby*
  17214. # variants that don't use the name server (or something). -lsocket
  17215. # must be given before -lnsl if both are needed. We assume that
  17216. # if connect needs -lnsl, so does gethostbyname.
  17217. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17218. if test "x$ac_cv_func_connect" = xyes; then :
  17219. fi
  17220. if test $ac_cv_func_connect = no; then
  17221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17222. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17223. if ${ac_cv_lib_socket_connect+:} false; then :
  17224. $as_echo_n "(cached) " >&6
  17225. else
  17226. ac_check_lib_save_LIBS=$LIBS
  17227. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17229. /* end confdefs.h. */
  17230. /* Override any GCC internal prototype to avoid an error.
  17231. Use char because int might match the return type of a GCC
  17232. builtin and then its argument prototype would still apply. */
  17233. #ifdef __cplusplus
  17234. extern "C"
  17235. #endif
  17236. char connect ();
  17237. int
  17238. main ()
  17239. {
  17240. return connect ();
  17241. ;
  17242. return 0;
  17243. }
  17244. _ACEOF
  17245. if ac_fn_c_try_link "$LINENO"; then :
  17246. ac_cv_lib_socket_connect=yes
  17247. else
  17248. ac_cv_lib_socket_connect=no
  17249. fi
  17250. rm -f core conftest.err conftest.$ac_objext \
  17251. conftest$ac_exeext conftest.$ac_ext
  17252. LIBS=$ac_check_lib_save_LIBS
  17253. fi
  17254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17255. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17256. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17257. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17258. fi
  17259. fi
  17260. # Guillermo Gomez says -lposix is necessary on A/UX.
  17261. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17262. if test "x$ac_cv_func_remove" = xyes; then :
  17263. fi
  17264. if test $ac_cv_func_remove = no; then
  17265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17266. $as_echo_n "checking for remove in -lposix... " >&6; }
  17267. if ${ac_cv_lib_posix_remove+:} false; then :
  17268. $as_echo_n "(cached) " >&6
  17269. else
  17270. ac_check_lib_save_LIBS=$LIBS
  17271. LIBS="-lposix $LIBS"
  17272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17273. /* end confdefs.h. */
  17274. /* Override any GCC internal prototype to avoid an error.
  17275. Use char because int might match the return type of a GCC
  17276. builtin and then its argument prototype would still apply. */
  17277. #ifdef __cplusplus
  17278. extern "C"
  17279. #endif
  17280. char remove ();
  17281. int
  17282. main ()
  17283. {
  17284. return remove ();
  17285. ;
  17286. return 0;
  17287. }
  17288. _ACEOF
  17289. if ac_fn_c_try_link "$LINENO"; then :
  17290. ac_cv_lib_posix_remove=yes
  17291. else
  17292. ac_cv_lib_posix_remove=no
  17293. fi
  17294. rm -f core conftest.err conftest.$ac_objext \
  17295. conftest$ac_exeext conftest.$ac_ext
  17296. LIBS=$ac_check_lib_save_LIBS
  17297. fi
  17298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17299. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17300. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17301. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17302. fi
  17303. fi
  17304. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17305. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17306. if test "x$ac_cv_func_shmat" = xyes; then :
  17307. fi
  17308. if test $ac_cv_func_shmat = no; then
  17309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17310. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17311. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17312. $as_echo_n "(cached) " >&6
  17313. else
  17314. ac_check_lib_save_LIBS=$LIBS
  17315. LIBS="-lipc $LIBS"
  17316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17317. /* end confdefs.h. */
  17318. /* Override any GCC internal prototype to avoid an error.
  17319. Use char because int might match the return type of a GCC
  17320. builtin and then its argument prototype would still apply. */
  17321. #ifdef __cplusplus
  17322. extern "C"
  17323. #endif
  17324. char shmat ();
  17325. int
  17326. main ()
  17327. {
  17328. return shmat ();
  17329. ;
  17330. return 0;
  17331. }
  17332. _ACEOF
  17333. if ac_fn_c_try_link "$LINENO"; then :
  17334. ac_cv_lib_ipc_shmat=yes
  17335. else
  17336. ac_cv_lib_ipc_shmat=no
  17337. fi
  17338. rm -f core conftest.err conftest.$ac_objext \
  17339. conftest$ac_exeext conftest.$ac_ext
  17340. LIBS=$ac_check_lib_save_LIBS
  17341. fi
  17342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17343. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17344. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17345. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17346. fi
  17347. fi
  17348. fi
  17349. # Check for libraries that X11R6 Xt/Xaw programs need.
  17350. ac_save_LDFLAGS=$LDFLAGS
  17351. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17352. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17353. # check for ICE first), but we must link in the order -lSM -lICE or
  17354. # we get undefined symbols. So assume we have SM if we have ICE.
  17355. # These have to be linked with before -lX11, unlike the other
  17356. # libraries we check for below, so use a different variable.
  17357. # John Interrante, Karl Berry
  17358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17359. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17360. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17361. $as_echo_n "(cached) " >&6
  17362. else
  17363. ac_check_lib_save_LIBS=$LIBS
  17364. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17366. /* end confdefs.h. */
  17367. /* Override any GCC internal prototype to avoid an error.
  17368. Use char because int might match the return type of a GCC
  17369. builtin and then its argument prototype would still apply. */
  17370. #ifdef __cplusplus
  17371. extern "C"
  17372. #endif
  17373. char IceConnectionNumber ();
  17374. int
  17375. main ()
  17376. {
  17377. return IceConnectionNumber ();
  17378. ;
  17379. return 0;
  17380. }
  17381. _ACEOF
  17382. if ac_fn_c_try_link "$LINENO"; then :
  17383. ac_cv_lib_ICE_IceConnectionNumber=yes
  17384. else
  17385. ac_cv_lib_ICE_IceConnectionNumber=no
  17386. fi
  17387. rm -f core conftest.err conftest.$ac_objext \
  17388. conftest$ac_exeext conftest.$ac_ext
  17389. LIBS=$ac_check_lib_save_LIBS
  17390. fi
  17391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17392. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17393. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17394. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17395. fi
  17396. LDFLAGS=$ac_save_LDFLAGS
  17397. fi
  17398. if test x$have_x = xyes; then
  17399. # Check whether --enable-x11-shared was given.
  17400. if test "${enable_x11_shared+set}" = set; then :
  17401. enableval=$enable_x11_shared;
  17402. else
  17403. enable_x11_shared=maybe
  17404. fi
  17405. case "$host" in
  17406. *-*-darwin*)
  17407. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17408. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17409. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17410. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17411. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17412. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17413. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17414. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17415. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17416. ;;
  17417. *-*-openbsd*)
  17418. x11_lib='libX11.so'
  17419. x11ext_lib='libXext.so'
  17420. xcursor_lib='libXcursor.so'
  17421. xinerama_lib='libXinerama.so'
  17422. xinput_lib='libXi.so'
  17423. xrandr_lib='libXrandr.so'
  17424. xrender_lib='libXrender.so'
  17425. xss_lib='libXss.so'
  17426. xvidmode_lib='libXxf86vm.so'
  17427. ;;
  17428. *)
  17429. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17430. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17431. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17432. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17433. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17434. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17435. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17436. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17437. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17438. ;;
  17439. esac
  17440. if test x$ac_cv_func_shmat != xyes; then
  17441. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17442. fi
  17443. CFLAGS="$CFLAGS $X_CFLAGS"
  17444. LDFLAGS="$LDFLAGS $X_LIBS"
  17445. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17446. #include <X11/Xproto.h>
  17447. "
  17448. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17449. have_xext_h_hdr=yes
  17450. else
  17451. have_xext_h_hdr=no
  17452. fi
  17453. if test x$have_xext_h_hdr != xyes; then
  17454. as_fn_error $? "
  17455. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17456. " "$LINENO" 5
  17457. fi
  17458. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17459. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17460. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17461. # Needed so SDL applications can include SDL_syswm.h
  17462. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17463. if test x$enable_x11_shared = xmaybe; then
  17464. enable_x11_shared=yes
  17465. fi
  17466. if test x$have_loadso != xyes && \
  17467. test x$enable_x11_shared = xyes; then
  17468. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17469. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17470. enable_x11_shared=no
  17471. fi
  17472. if test x$have_loadso = xyes && \
  17473. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17474. echo "-- dynamic libX11 -> $x11_lib"
  17475. echo "-- dynamic libX11ext -> $x11ext_lib"
  17476. cat >>confdefs.h <<_ACEOF
  17477. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17478. _ACEOF
  17479. cat >>confdefs.h <<_ACEOF
  17480. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17481. _ACEOF
  17482. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17483. else
  17484. enable_x11_shared=no
  17485. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17486. SUMMARY_video="${SUMMARY_video} x11"
  17487. fi
  17488. have_video=yes
  17489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17490. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17491. have_const_param_XextAddDisplay=no
  17492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17493. /* end confdefs.h. */
  17494. #include <X11/Xlib.h>
  17495. #include <X11/Xproto.h>
  17496. #include <X11/extensions/Xext.h>
  17497. #include <X11/extensions/extutil.h>
  17498. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17499. int
  17500. main ()
  17501. {
  17502. ;
  17503. return 0;
  17504. }
  17505. _ACEOF
  17506. if ac_fn_c_try_compile "$LINENO"; then :
  17507. have_const_param_XextAddDisplay=yes
  17508. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17509. fi
  17510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17512. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17514. $as_echo_n "checking for XGenericEvent... " >&6; }
  17515. have_XGenericEvent=no
  17516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17517. /* end confdefs.h. */
  17518. #include <X11/Xlib.h>
  17519. int
  17520. main ()
  17521. {
  17522. Display *display;
  17523. XEvent event;
  17524. XGenericEventCookie *cookie = &event.xcookie;
  17525. XNextEvent(display, &event);
  17526. XGetEventData(display, cookie);
  17527. XFreeEventData(display, cookie);
  17528. ;
  17529. return 0;
  17530. }
  17531. _ACEOF
  17532. if ac_fn_c_try_compile "$LINENO"; then :
  17533. have_XGenericEvent=yes
  17534. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17535. fi
  17536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17538. $as_echo "$have_XGenericEvent" >&6; }
  17539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17540. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17541. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17542. $as_echo_n "(cached) " >&6
  17543. else
  17544. ac_check_lib_save_LIBS=$LIBS
  17545. LIBS="-lX11 $LIBS"
  17546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17547. /* end confdefs.h. */
  17548. /* Override any GCC internal prototype to avoid an error.
  17549. Use char because int might match the return type of a GCC
  17550. builtin and then its argument prototype would still apply. */
  17551. #ifdef __cplusplus
  17552. extern "C"
  17553. #endif
  17554. char XkbKeycodeToKeysym ();
  17555. int
  17556. main ()
  17557. {
  17558. return XkbKeycodeToKeysym ();
  17559. ;
  17560. return 0;
  17561. }
  17562. _ACEOF
  17563. if ac_fn_c_try_link "$LINENO"; then :
  17564. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17565. else
  17566. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17567. fi
  17568. rm -f core conftest.err conftest.$ac_objext \
  17569. conftest$ac_exeext conftest.$ac_ext
  17570. LIBS=$ac_check_lib_save_LIBS
  17571. fi
  17572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17573. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17574. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17575. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17576. fi
  17577. # Check whether --enable-video-x11-xcursor was given.
  17578. if test "${enable_video_x11_xcursor+set}" = set; then :
  17579. enableval=$enable_video_x11_xcursor;
  17580. else
  17581. enable_video_x11_xcursor=yes
  17582. fi
  17583. if test x$enable_video_x11_xcursor = xyes; then
  17584. definitely_enable_video_x11_xcursor=no
  17585. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17586. "
  17587. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17588. have_xcursor_h_hdr=yes
  17589. else
  17590. have_xcursor_h_hdr=no
  17591. fi
  17592. if test x$have_xcursor_h_hdr = xyes; then
  17593. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17594. echo "-- dynamic libXcursor -> $xcursor_lib"
  17595. cat >>confdefs.h <<_ACEOF
  17596. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17597. _ACEOF
  17598. definitely_enable_video_x11_xcursor=yes
  17599. else
  17600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17601. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17602. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17603. $as_echo_n "(cached) " >&6
  17604. else
  17605. ac_check_lib_save_LIBS=$LIBS
  17606. LIBS="-lXcursor $LIBS"
  17607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17608. /* end confdefs.h. */
  17609. /* Override any GCC internal prototype to avoid an error.
  17610. Use char because int might match the return type of a GCC
  17611. builtin and then its argument prototype would still apply. */
  17612. #ifdef __cplusplus
  17613. extern "C"
  17614. #endif
  17615. char XcursorImageCreate ();
  17616. int
  17617. main ()
  17618. {
  17619. return XcursorImageCreate ();
  17620. ;
  17621. return 0;
  17622. }
  17623. _ACEOF
  17624. if ac_fn_c_try_link "$LINENO"; then :
  17625. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17626. else
  17627. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17628. fi
  17629. rm -f core conftest.err conftest.$ac_objext \
  17630. conftest$ac_exeext conftest.$ac_ext
  17631. LIBS=$ac_check_lib_save_LIBS
  17632. fi
  17633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17634. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17635. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17636. have_xcursor_lib=yes
  17637. fi
  17638. if test x$have_xcursor_lib = xyes ; then
  17639. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17640. definitely_enable_video_x11_xcursor=yes
  17641. fi
  17642. fi
  17643. fi
  17644. fi
  17645. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17646. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17647. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17648. fi
  17649. # Check whether --enable-video-x11-xdbe was given.
  17650. if test "${enable_video_x11_xdbe+set}" = set; then :
  17651. enableval=$enable_video_x11_xdbe;
  17652. else
  17653. enable_video_x11_xdbe=yes
  17654. fi
  17655. if test x$enable_video_x11_xdbe = xyes; then
  17656. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17657. "
  17658. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17659. have_dbe_h_hdr=yes
  17660. else
  17661. have_dbe_h_hdr=no
  17662. fi
  17663. if test x$have_dbe_h_hdr = xyes; then
  17664. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17665. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17666. fi
  17667. fi
  17668. # Check whether --enable-video-x11-xinerama was given.
  17669. if test "${enable_video_x11_xinerama+set}" = set; then :
  17670. enableval=$enable_video_x11_xinerama;
  17671. else
  17672. enable_video_x11_xinerama=yes
  17673. fi
  17674. if test x$enable_video_x11_xinerama = xyes; then
  17675. definitely_enable_video_x11_xinerama=no
  17676. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17677. "
  17678. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17679. have_xinerama_h_hdr=yes
  17680. else
  17681. have_xinerama_h_hdr=no
  17682. fi
  17683. if test x$have_xinerama_h_hdr = xyes; then
  17684. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17685. echo "-- dynamic libXinerama -> $xinerama_lib"
  17686. cat >>confdefs.h <<_ACEOF
  17687. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17688. _ACEOF
  17689. definitely_enable_video_x11_xinerama=yes
  17690. else
  17691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17692. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17693. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17694. $as_echo_n "(cached) " >&6
  17695. else
  17696. ac_check_lib_save_LIBS=$LIBS
  17697. LIBS="-lXinerama $LIBS"
  17698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17699. /* end confdefs.h. */
  17700. /* Override any GCC internal prototype to avoid an error.
  17701. Use char because int might match the return type of a GCC
  17702. builtin and then its argument prototype would still apply. */
  17703. #ifdef __cplusplus
  17704. extern "C"
  17705. #endif
  17706. char XineramaQueryExtension ();
  17707. int
  17708. main ()
  17709. {
  17710. return XineramaQueryExtension ();
  17711. ;
  17712. return 0;
  17713. }
  17714. _ACEOF
  17715. if ac_fn_c_try_link "$LINENO"; then :
  17716. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17717. else
  17718. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17719. fi
  17720. rm -f core conftest.err conftest.$ac_objext \
  17721. conftest$ac_exeext conftest.$ac_ext
  17722. LIBS=$ac_check_lib_save_LIBS
  17723. fi
  17724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17725. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17726. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17727. have_xinerama_lib=yes
  17728. fi
  17729. if test x$have_xinerama_lib = xyes ; then
  17730. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17731. definitely_enable_video_x11_xinerama=yes
  17732. fi
  17733. fi
  17734. fi
  17735. fi
  17736. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17737. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17738. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17739. fi
  17740. # Check whether --enable-video-x11-xinput was given.
  17741. if test "${enable_video_x11_xinput+set}" = set; then :
  17742. enableval=$enable_video_x11_xinput;
  17743. else
  17744. enable_video_x11_xinput=yes
  17745. fi
  17746. if test x$enable_video_x11_xinput = xyes; then
  17747. definitely_enable_video_x11_xinput=no
  17748. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17749. "
  17750. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17751. have_xinput_h_hdr=yes
  17752. else
  17753. have_xinput_h_hdr=no
  17754. fi
  17755. if test x$have_xinput_h_hdr = xyes; then
  17756. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17757. echo "-- dynamic libXi -> $xinput_lib"
  17758. cat >>confdefs.h <<_ACEOF
  17759. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17760. _ACEOF
  17761. definitely_enable_video_x11_xinput=yes
  17762. else
  17763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17764. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17765. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17766. $as_echo_n "(cached) " >&6
  17767. else
  17768. ac_check_lib_save_LIBS=$LIBS
  17769. LIBS="-lXi $LIBS"
  17770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17771. /* end confdefs.h. */
  17772. /* Override any GCC internal prototype to avoid an error.
  17773. Use char because int might match the return type of a GCC
  17774. builtin and then its argument prototype would still apply. */
  17775. #ifdef __cplusplus
  17776. extern "C"
  17777. #endif
  17778. char XOpenDevice ();
  17779. int
  17780. main ()
  17781. {
  17782. return XOpenDevice ();
  17783. ;
  17784. return 0;
  17785. }
  17786. _ACEOF
  17787. if ac_fn_c_try_link "$LINENO"; then :
  17788. ac_cv_lib_Xi_XOpenDevice=yes
  17789. else
  17790. ac_cv_lib_Xi_XOpenDevice=no
  17791. fi
  17792. rm -f core conftest.err conftest.$ac_objext \
  17793. conftest$ac_exeext conftest.$ac_ext
  17794. LIBS=$ac_check_lib_save_LIBS
  17795. fi
  17796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17797. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17798. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17799. have_xinput_lib=yes
  17800. fi
  17801. if test x$have_xinput_lib = xyes ; then
  17802. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17803. definitely_enable_video_x11_xinput=yes
  17804. fi
  17805. fi
  17806. fi
  17807. fi
  17808. if test x$definitely_enable_video_x11_xinput = xyes; then
  17809. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17810. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17812. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17813. have_xinput2_multitouch=no
  17814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17815. /* end confdefs.h. */
  17816. #include <X11/Xlib.h>
  17817. #include <X11/Xproto.h>
  17818. #include <X11/extensions/XInput2.h>
  17819. int
  17820. main ()
  17821. {
  17822. int event_type = XI_TouchBegin;
  17823. XITouchClassInfo *t;
  17824. ;
  17825. return 0;
  17826. }
  17827. _ACEOF
  17828. if ac_fn_c_try_compile "$LINENO"; then :
  17829. have_xinput2_multitouch=yes
  17830. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17831. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17832. fi
  17833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17835. $as_echo "$have_xinput2_multitouch" >&6; }
  17836. fi
  17837. # Check whether --enable-video-x11-xrandr was given.
  17838. if test "${enable_video_x11_xrandr+set}" = set; then :
  17839. enableval=$enable_video_x11_xrandr;
  17840. else
  17841. enable_video_x11_xrandr=yes
  17842. fi
  17843. if test x$enable_video_x11_xrandr = xyes; then
  17844. definitely_enable_video_x11_xrandr=no
  17845. have_xrandr_h_hdr=no
  17846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17847. /* end confdefs.h. */
  17848. #include <X11/Xlib.h>
  17849. #include <X11/extensions/Xrandr.h>
  17850. int
  17851. main ()
  17852. {
  17853. XRRScreenResources *res = NULL;
  17854. ;
  17855. return 0;
  17856. }
  17857. _ACEOF
  17858. if ac_fn_c_try_compile "$LINENO"; then :
  17859. have_xrandr_h_hdr=yes
  17860. fi
  17861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17862. if test x$have_xrandr_h_hdr = xyes; then
  17863. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17864. echo "-- dynamic libXrandr -> $xrandr_lib"
  17865. cat >>confdefs.h <<_ACEOF
  17866. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17867. _ACEOF
  17868. definitely_enable_video_x11_xrandr=yes
  17869. else
  17870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17871. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17872. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17873. $as_echo_n "(cached) " >&6
  17874. else
  17875. ac_check_lib_save_LIBS=$LIBS
  17876. LIBS="-lXrandr $LIBS"
  17877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17878. /* end confdefs.h. */
  17879. /* Override any GCC internal prototype to avoid an error.
  17880. Use char because int might match the return type of a GCC
  17881. builtin and then its argument prototype would still apply. */
  17882. #ifdef __cplusplus
  17883. extern "C"
  17884. #endif
  17885. char XRRQueryExtension ();
  17886. int
  17887. main ()
  17888. {
  17889. return XRRQueryExtension ();
  17890. ;
  17891. return 0;
  17892. }
  17893. _ACEOF
  17894. if ac_fn_c_try_link "$LINENO"; then :
  17895. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17896. else
  17897. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17898. fi
  17899. rm -f core conftest.err conftest.$ac_objext \
  17900. conftest$ac_exeext conftest.$ac_ext
  17901. LIBS=$ac_check_lib_save_LIBS
  17902. fi
  17903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17904. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17905. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17906. have_xrandr_lib=yes
  17907. fi
  17908. if test x$have_xrandr_lib = xyes ; then
  17909. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17910. definitely_enable_video_x11_xrandr=yes
  17911. fi
  17912. fi
  17913. fi
  17914. fi
  17915. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17916. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17917. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17918. fi
  17919. # Check whether --enable-video-x11-scrnsaver was given.
  17920. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17921. enableval=$enable_video_x11_scrnsaver;
  17922. else
  17923. enable_video_x11_scrnsaver=yes
  17924. fi
  17925. if test x$enable_video_x11_scrnsaver = xyes; then
  17926. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17927. "
  17928. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17929. have_scrnsaver_h_hdr=yes
  17930. else
  17931. have_scrnsaver_h_hdr=no
  17932. fi
  17933. if test x$have_scrnsaver_h_hdr = xyes; then
  17934. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17935. echo "-- dynamic libXss -> $xss_lib"
  17936. cat >>confdefs.h <<_ACEOF
  17937. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17938. _ACEOF
  17939. definitely_enable_video_x11_scrnsaver=yes
  17940. else
  17941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17942. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17943. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17944. $as_echo_n "(cached) " >&6
  17945. else
  17946. ac_check_lib_save_LIBS=$LIBS
  17947. LIBS="-lXss $LIBS"
  17948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17949. /* end confdefs.h. */
  17950. /* Override any GCC internal prototype to avoid an error.
  17951. Use char because int might match the return type of a GCC
  17952. builtin and then its argument prototype would still apply. */
  17953. #ifdef __cplusplus
  17954. extern "C"
  17955. #endif
  17956. char XScreenSaverSuspend ();
  17957. int
  17958. main ()
  17959. {
  17960. return XScreenSaverSuspend ();
  17961. ;
  17962. return 0;
  17963. }
  17964. _ACEOF
  17965. if ac_fn_c_try_link "$LINENO"; then :
  17966. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17967. else
  17968. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17969. fi
  17970. rm -f core conftest.err conftest.$ac_objext \
  17971. conftest$ac_exeext conftest.$ac_ext
  17972. LIBS=$ac_check_lib_save_LIBS
  17973. fi
  17974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17975. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17976. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17977. have_xss_lib=yes
  17978. fi
  17979. if test x$have_xss_lib = xyes ; then
  17980. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17981. definitely_enable_video_x11_scrnsaver=yes
  17982. fi
  17983. fi
  17984. fi
  17985. fi
  17986. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17987. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17988. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17989. fi
  17990. # Check whether --enable-video-x11-xshape was given.
  17991. if test "${enable_video_x11_xshape+set}" = set; then :
  17992. enableval=$enable_video_x11_xshape;
  17993. else
  17994. enable_video_x11_xshape=yes
  17995. fi
  17996. if test x$enable_video_x11_xshape = xyes; then
  17997. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17998. "
  17999. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18000. have_shape_h_hdr=yes
  18001. else
  18002. have_shape_h_hdr=no
  18003. fi
  18004. if test x$have_shape_h_hdr = xyes; then
  18005. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18006. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18007. fi
  18008. fi
  18009. # Check whether --enable-video-x11-vm was given.
  18010. if test "${enable_video_x11_vm+set}" = set; then :
  18011. enableval=$enable_video_x11_vm;
  18012. else
  18013. enable_video_x11_vm=yes
  18014. fi
  18015. if test x$enable_video_x11_vm = xyes; then
  18016. definitely_enable_video_x11_vm=no
  18017. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18018. "
  18019. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18020. have_vm_h_hdr=yes
  18021. else
  18022. have_vm_h_hdr=no
  18023. fi
  18024. if test x$have_vm_h_hdr = xyes; then
  18025. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18026. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18027. cat >>confdefs.h <<_ACEOF
  18028. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18029. _ACEOF
  18030. definitely_enable_video_x11_vm=yes
  18031. else
  18032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18033. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18034. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18035. $as_echo_n "(cached) " >&6
  18036. else
  18037. ac_check_lib_save_LIBS=$LIBS
  18038. LIBS="-lXxf86vm $LIBS"
  18039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18040. /* end confdefs.h. */
  18041. /* Override any GCC internal prototype to avoid an error.
  18042. Use char because int might match the return type of a GCC
  18043. builtin and then its argument prototype would still apply. */
  18044. #ifdef __cplusplus
  18045. extern "C"
  18046. #endif
  18047. char XF86VidModeQueryVersion ();
  18048. int
  18049. main ()
  18050. {
  18051. return XF86VidModeQueryVersion ();
  18052. ;
  18053. return 0;
  18054. }
  18055. _ACEOF
  18056. if ac_fn_c_try_link "$LINENO"; then :
  18057. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18058. else
  18059. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18060. fi
  18061. rm -f core conftest.err conftest.$ac_objext \
  18062. conftest$ac_exeext conftest.$ac_ext
  18063. LIBS=$ac_check_lib_save_LIBS
  18064. fi
  18065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18066. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18067. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18068. have_vm_lib=yes
  18069. fi
  18070. if test x$have_vm_lib = xyes ; then
  18071. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18072. definitely_enable_video_x11_vm=yes
  18073. fi
  18074. fi
  18075. fi
  18076. fi
  18077. if test x$definitely_enable_video_x11_vm = xyes; then
  18078. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18079. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18080. fi
  18081. fi
  18082. fi
  18083. }
  18084. CheckVivanteVideo()
  18085. {
  18086. # Check whether --enable-video-vivante was given.
  18087. if test "${enable_video_vivante+set}" = set; then :
  18088. enableval=$enable_video_vivante;
  18089. else
  18090. enable_video_vivante=yes
  18091. fi
  18092. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18094. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18095. have_vivante_vdk=no
  18096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18097. /* end confdefs.h. */
  18098. #define LINUX
  18099. #define EGL_API_FB
  18100. #include <gc_vdk.h>
  18101. int
  18102. main ()
  18103. {
  18104. ;
  18105. return 0;
  18106. }
  18107. _ACEOF
  18108. if ac_fn_c_try_compile "$LINENO"; then :
  18109. have_vivante_vdk=yes
  18110. fi
  18111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18113. $as_echo "$have_vivante_vdk" >&6; }
  18114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18115. $as_echo_n "checking for Vivante FB API... " >&6; }
  18116. have_vivante_egl=no
  18117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18118. /* end confdefs.h. */
  18119. #define LINUX
  18120. #define EGL_API_FB
  18121. #include <EGL/eglvivante.h>
  18122. int
  18123. main ()
  18124. {
  18125. ;
  18126. return 0;
  18127. }
  18128. _ACEOF
  18129. if ac_fn_c_try_compile "$LINENO"; then :
  18130. have_vivante_egl=yes
  18131. fi
  18132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18134. $as_echo "$have_vivante_egl" >&6; }
  18135. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18136. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18137. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18138. if test x$have_vivante_vdk = xyes; then
  18139. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18140. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18141. fi
  18142. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18143. SUMMARY_video="${SUMMARY_video} vivante"
  18144. have_video=yes
  18145. fi
  18146. fi
  18147. }
  18148. CheckHaikuVideo()
  18149. {
  18150. if test x$enable_video = xyes; then
  18151. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18152. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18153. have_video=yes
  18154. SUMMARY_video="${SUMMARY_video} haiku"
  18155. fi
  18156. }
  18157. CheckCOCOA()
  18158. {
  18159. # Check whether --enable-video-cocoa was given.
  18160. if test "${enable_video_cocoa+set}" = set; then :
  18161. enableval=$enable_video_cocoa;
  18162. else
  18163. enable_video_cocoa=yes
  18164. fi
  18165. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18166. save_CFLAGS="$CFLAGS"
  18167. CFLAGS="$CFLAGS -x objective-c"
  18168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18169. $as_echo_n "checking for Cocoa framework... " >&6; }
  18170. have_cocoa=no
  18171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18172. /* end confdefs.h. */
  18173. #import <Cocoa/Cocoa.h>
  18174. int
  18175. main ()
  18176. {
  18177. ;
  18178. return 0;
  18179. }
  18180. _ACEOF
  18181. if ac_fn_c_try_compile "$LINENO"; then :
  18182. have_cocoa=yes
  18183. fi
  18184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18186. $as_echo "$have_cocoa" >&6; }
  18187. CFLAGS="$save_CFLAGS"
  18188. if test x$have_cocoa = xyes; then
  18189. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18190. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18191. SUMMARY_video="${SUMMARY_video} cocoa"
  18192. have_video=yes
  18193. fi
  18194. fi
  18195. }
  18196. CheckDirectFB()
  18197. {
  18198. # Check whether --enable-video-directfb was given.
  18199. if test "${enable_video_directfb+set}" = set; then :
  18200. enableval=$enable_video_directfb;
  18201. else
  18202. enable_video_directfb=no
  18203. fi
  18204. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18205. video_directfb=no
  18206. DIRECTFB_REQUIRED_VERSION=1.0.0
  18207. for ac_prog in directfb-config
  18208. do
  18209. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18210. set dummy $ac_prog; ac_word=$2
  18211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18212. $as_echo_n "checking for $ac_word... " >&6; }
  18213. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  18214. $as_echo_n "(cached) " >&6
  18215. else
  18216. case $DIRECTFBCONFIG in
  18217. [\\/]* | ?:[\\/]*)
  18218. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  18219. ;;
  18220. *)
  18221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18222. as_dummy="$prefix/bin:$PATH"
  18223. for as_dir in $as_dummy
  18224. do
  18225. IFS=$as_save_IFS
  18226. test -z "$as_dir" && as_dir=.
  18227. for ac_exec_ext in '' $ac_executable_extensions; do
  18228. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18229. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18230. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18231. break 2
  18232. fi
  18233. done
  18234. done
  18235. IFS=$as_save_IFS
  18236. ;;
  18237. esac
  18238. fi
  18239. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  18240. if test -n "$DIRECTFBCONFIG"; then
  18241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  18242. $as_echo "$DIRECTFBCONFIG" >&6; }
  18243. else
  18244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18245. $as_echo "no" >&6; }
  18246. fi
  18247. test -n "$DIRECTFBCONFIG" && break
  18248. done
  18249. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  18250. if test x$DIRECTFBCONFIG = xno; then
  18251. # Extract the first word of "pkg-config", so it can be a program name with args.
  18252. set dummy pkg-config; ac_word=$2
  18253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18254. $as_echo_n "checking for $ac_word... " >&6; }
  18255. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18256. $as_echo_n "(cached) " >&6
  18257. else
  18258. case $PKG_CONFIG in
  18259. [\\/]* | ?:[\\/]*)
  18260. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18261. ;;
  18262. *)
  18263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18264. for as_dir in $PATH
  18265. do
  18266. IFS=$as_save_IFS
  18267. test -z "$as_dir" && as_dir=.
  18268. for ac_exec_ext in '' $ac_executable_extensions; do
  18269. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18270. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18272. break 2
  18273. fi
  18274. done
  18275. done
  18276. IFS=$as_save_IFS
  18277. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18278. ;;
  18279. esac
  18280. fi
  18281. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18282. if test -n "$PKG_CONFIG"; then
  18283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18284. $as_echo "$PKG_CONFIG" >&6; }
  18285. else
  18286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18287. $as_echo "no" >&6; }
  18288. fi
  18289. if test x$PKG_CONFIG != xno; then
  18290. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  18291. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  18292. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  18293. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  18294. video_directfb=yes
  18295. fi
  18296. fi
  18297. else
  18298. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  18299. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18300. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  18301. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18302. if test $HAVE_VERSION -ge $NEED_VERSION; then
  18303. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  18304. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  18305. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  18306. video_directfb=yes
  18307. fi
  18308. fi
  18309. if test x$video_directfb = xyes; then
  18310. # SuSE 11.1 installs directfb-config without directfb-devel
  18311. save_CPPFLAGS="$CPPFLAGS"
  18312. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18313. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18314. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18315. have_directfb_hdr=yes
  18316. else
  18317. have_directfb_hdr=no
  18318. fi
  18319. CPPFLAGS="$save_CPPFLAGS"
  18320. video_directfb=$have_directfb_hdr
  18321. fi
  18322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  18323. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  18324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  18325. $as_echo "$video_directfb" >&6; }
  18326. if test x$video_directfb = xyes; then
  18327. # Check whether --enable-directfb-shared was given.
  18328. if test "${enable_directfb_shared+set}" = set; then :
  18329. enableval=$enable_directfb_shared;
  18330. else
  18331. enable_directfb_shared=yes
  18332. fi
  18333. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18334. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18335. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18336. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18338. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18339. directfb_shared=no
  18340. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18341. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18342. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18343. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18344. if test x$have_loadso != xyes && \
  18345. test x$enable_directfb_shared = xyes; then
  18346. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18347. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18348. fi
  18349. if test x$have_loadso = xyes && \
  18350. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18351. directfb_shared=yes
  18352. echo "-- $directfb_lib_spec -> $directfb_lib"
  18353. cat >>confdefs.h <<_ACEOF
  18354. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18355. _ACEOF
  18356. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18357. else
  18358. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18359. SUMMARY_video="${SUMMARY_video} directfb"
  18360. fi
  18361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18362. $as_echo "$directfb_shared" >&6; }
  18363. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18364. have_video=yes
  18365. fi
  18366. fi
  18367. }
  18368. CheckKMSDRM()
  18369. {
  18370. # Check whether --enable-video-kmsdrm was given.
  18371. if test "${enable_video_kmsdrm+set}" = set; then :
  18372. enableval=$enable_video_kmsdrm;
  18373. else
  18374. enable_video_kmsdrm=no
  18375. fi
  18376. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18377. video_kmsdrm=no
  18378. libdrm_avail=no
  18379. libgbm_avail=no
  18380. LIBDRM_REQUIRED_VERSION=2.4.46
  18381. LIBGBM_REQUIRED_VERSION=9.0.0
  18382. # Extract the first word of "pkg-config", so it can be a program name with args.
  18383. set dummy pkg-config; ac_word=$2
  18384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18385. $as_echo_n "checking for $ac_word... " >&6; }
  18386. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18387. $as_echo_n "(cached) " >&6
  18388. else
  18389. case $PKG_CONFIG in
  18390. [\\/]* | ?:[\\/]*)
  18391. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18392. ;;
  18393. *)
  18394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18395. for as_dir in $PATH
  18396. do
  18397. IFS=$as_save_IFS
  18398. test -z "$as_dir" && as_dir=.
  18399. for ac_exec_ext in '' $ac_executable_extensions; do
  18400. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18401. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18403. break 2
  18404. fi
  18405. done
  18406. done
  18407. IFS=$as_save_IFS
  18408. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18409. ;;
  18410. esac
  18411. fi
  18412. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18413. if test -n "$PKG_CONFIG"; then
  18414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18415. $as_echo "$PKG_CONFIG" >&6; }
  18416. else
  18417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18418. $as_echo "no" >&6; }
  18419. fi
  18420. if test x$PKG_CONFIG != xno; then
  18421. if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then
  18422. if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then
  18423. LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm`
  18424. LIBDRM_LIBS=`$PKG_CONFIG --libs libdrm`
  18425. LIBDRM_PREFIX=`$PKG_CONFIG --variable=prefix libdrm`
  18426. libdrm_avail=yes
  18427. fi
  18428. if $PKG_CONFIG --atleast-version $LIBGBM_REQUIRED_VERSION gbm; then
  18429. LIBGBM_CFLAGS=`$PKG_CONFIG --cflags gbm`
  18430. LIBGBM_LIBS=`$PKG_CONFIG --libs gbm`
  18431. LIBGBM_PREFIX=`$PKG_CONFIG --variable=prefix gbm`
  18432. libgbm_avail=yes
  18433. fi
  18434. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18435. video_kmsdrm=yes
  18436. fi
  18437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support" >&5
  18438. $as_echo_n "checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_avail" >&5
  18440. $as_echo "$libdrm_avail" >&6; }
  18441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support" >&5
  18442. $as_echo_n "checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgbm_avail" >&5
  18444. $as_echo "$libgbm_avail" >&6; }
  18445. if test x$video_kmsdrm = xyes; then
  18446. # Check whether --enable-kmsdrm-shared was given.
  18447. if test "${enable_kmsdrm_shared+set}" = set; then :
  18448. enableval=$enable_kmsdrm_shared;
  18449. else
  18450. enable_kmsdrm_shared=yes
  18451. fi
  18452. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18453. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18454. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18456. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18457. kmsdrm_shared=no
  18458. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18459. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18460. if test x$have_loadso != xyes && \
  18461. test x$enable_kmsdrm_shared = xyes; then
  18462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18463. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18464. fi
  18465. if test x$have_loadso = xyes && \
  18466. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18467. kmsdrm_shared=yes
  18468. cat >>confdefs.h <<_ACEOF
  18469. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18470. _ACEOF
  18471. cat >>confdefs.h <<_ACEOF
  18472. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18473. _ACEOF
  18474. cat >>confdefs.h <<_ACEOF
  18475. #define HAVE_KMSDRM_SHARED "TRUE"
  18476. _ACEOF
  18477. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18478. else
  18479. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18480. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18481. fi
  18482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18483. $as_echo "$kmsdrm_shared" >&6; }
  18484. have_video=yes
  18485. fi
  18486. fi
  18487. fi
  18488. fi
  18489. }
  18490. CheckDummyVideo()
  18491. {
  18492. # Check whether --enable-video-dummy was given.
  18493. if test "${enable_video_dummy+set}" = set; then :
  18494. enableval=$enable_video_dummy;
  18495. else
  18496. enable_video_dummy=yes
  18497. fi
  18498. if test x$enable_video_dummy = xyes; then
  18499. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18500. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18501. have_video=yes
  18502. SUMMARY_video="${SUMMARY_video} dummy"
  18503. fi
  18504. }
  18505. CheckQNXVideo()
  18506. {
  18507. if test x$enable_video = xyes; then
  18508. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  18509. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  18510. have_video=yes
  18511. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  18512. SUMMARY_video="${SUMMARY_video} qnx"
  18513. fi
  18514. }
  18515. CheckQNXAudio()
  18516. {
  18517. if test x$enable_audio = xyes; then
  18518. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  18519. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  18520. have_audio=yes
  18521. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  18522. SUMMARY_audio="${SUMMARY_audio} qsa"
  18523. fi
  18524. }
  18525. # Check whether --enable-video-opengl was given.
  18526. if test "${enable_video_opengl+set}" = set; then :
  18527. enableval=$enable_video_opengl;
  18528. else
  18529. enable_video_opengl=yes
  18530. fi
  18531. CheckOpenGLX11()
  18532. {
  18533. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18535. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18536. video_opengl=no
  18537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18538. /* end confdefs.h. */
  18539. #include <GL/gl.h>
  18540. #include <GL/glx.h>
  18541. int
  18542. main ()
  18543. {
  18544. ;
  18545. return 0;
  18546. }
  18547. _ACEOF
  18548. if ac_fn_c_try_compile "$LINENO"; then :
  18549. video_opengl=yes
  18550. fi
  18551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18553. $as_echo "$video_opengl" >&6; }
  18554. if test x$video_opengl = xyes; then
  18555. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18556. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18557. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18558. SUMMARY_video="${SUMMARY_video} opengl"
  18559. fi
  18560. fi
  18561. }
  18562. # Check whether --enable-video-opengles was given.
  18563. if test "${enable_video_opengles+set}" = set; then :
  18564. enableval=$enable_video_opengles;
  18565. else
  18566. enable_video_opengles=yes
  18567. fi
  18568. # Check whether --enable-video-opengles1 was given.
  18569. if test "${enable_video_opengles1+set}" = set; then :
  18570. enableval=$enable_video_opengles1;
  18571. else
  18572. enable_video_opengles1=yes
  18573. fi
  18574. # Check whether --enable-video-opengles2 was given.
  18575. if test "${enable_video_opengles2+set}" = set; then :
  18576. enableval=$enable_video_opengles2;
  18577. else
  18578. enable_video_opengles2=yes
  18579. fi
  18580. CheckOpenGLESX11()
  18581. {
  18582. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18584. $as_echo_n "checking for EGL support... " >&6; }
  18585. video_opengl_egl=no
  18586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18587. /* end confdefs.h. */
  18588. #define LINUX
  18589. #define EGL_API_FB
  18590. #include <EGL/egl.h>
  18591. #include <EGL/eglext.h>
  18592. int
  18593. main ()
  18594. {
  18595. ;
  18596. return 0;
  18597. }
  18598. _ACEOF
  18599. if ac_fn_c_try_compile "$LINENO"; then :
  18600. video_opengl_egl=yes
  18601. fi
  18602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18604. $as_echo "$video_opengl_egl" >&6; }
  18605. if test x$video_opengl_egl = xyes; then
  18606. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18607. fi
  18608. if test x$enable_video_opengles1 = xyes; then
  18609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18610. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18611. video_opengles_v1=no
  18612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18613. /* end confdefs.h. */
  18614. #include <GLES/gl.h>
  18615. #include <GLES/glext.h>
  18616. int
  18617. main ()
  18618. {
  18619. ;
  18620. return 0;
  18621. }
  18622. _ACEOF
  18623. if ac_fn_c_try_compile "$LINENO"; then :
  18624. video_opengles_v1=yes
  18625. fi
  18626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18628. $as_echo "$video_opengles_v1" >&6; }
  18629. if test x$video_opengles_v1 = xyes; then
  18630. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18631. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18632. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18633. fi
  18634. fi
  18635. if test x$enable_video_opengles2 = xyes; then
  18636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18637. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18638. video_opengles_v2=no
  18639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18640. /* end confdefs.h. */
  18641. #include <GLES2/gl2.h>
  18642. #include <GLES2/gl2ext.h>
  18643. int
  18644. main ()
  18645. {
  18646. ;
  18647. return 0;
  18648. }
  18649. _ACEOF
  18650. if ac_fn_c_try_compile "$LINENO"; then :
  18651. video_opengles_v2=yes
  18652. fi
  18653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18655. $as_echo "$video_opengles_v2" >&6; }
  18656. if test x$video_opengles_v2 = xyes; then
  18657. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18658. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18659. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18660. fi
  18661. fi
  18662. fi
  18663. }
  18664. CheckWINDOWSGL()
  18665. {
  18666. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18667. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18668. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18669. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18670. SUMMARY_video="${SUMMARY_video} opengl"
  18671. fi
  18672. }
  18673. CheckWINDOWSGLES()
  18674. {
  18675. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18677. $as_echo_n "checking for EGL support... " >&6; }
  18678. video_opengl_egl=no
  18679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18680. /* end confdefs.h. */
  18681. #include <EGL/egl.h>
  18682. int
  18683. main ()
  18684. {
  18685. ;
  18686. return 0;
  18687. }
  18688. _ACEOF
  18689. if ac_fn_c_try_compile "$LINENO"; then :
  18690. video_opengl_egl=yes
  18691. fi
  18692. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18694. $as_echo "$video_opengl_egl" >&6; }
  18695. if test x$video_opengl_egl = xyes; then
  18696. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18697. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18698. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18699. fi
  18700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18701. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18702. video_opengles_v2=no
  18703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18704. /* end confdefs.h. */
  18705. #include <GLES2/gl2.h>
  18706. #include <GLES2/gl2ext.h>
  18707. int
  18708. main ()
  18709. {
  18710. ;
  18711. return 0;
  18712. }
  18713. _ACEOF
  18714. if ac_fn_c_try_compile "$LINENO"; then :
  18715. video_opengles_v2=yes
  18716. fi
  18717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18719. $as_echo "$video_opengles_v2" >&6; }
  18720. if test x$video_opengles_v2 = xyes; then
  18721. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18722. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18723. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18724. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18725. fi
  18726. fi
  18727. }
  18728. CheckHaikuGL()
  18729. {
  18730. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18731. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18732. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18733. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18734. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18735. SUMMARY_video="${SUMMARY_video} opengl"
  18736. fi
  18737. }
  18738. CheckMacGL()
  18739. {
  18740. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18741. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18742. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18743. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18744. SUMMARY_video="${SUMMARY_video} opengl"
  18745. fi
  18746. }
  18747. CheckEmscriptenGLES()
  18748. {
  18749. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18751. $as_echo_n "checking for EGL support... " >&6; }
  18752. video_opengl_egl=no
  18753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18754. /* end confdefs.h. */
  18755. #include <EGL/egl.h>
  18756. int
  18757. main ()
  18758. {
  18759. ;
  18760. return 0;
  18761. }
  18762. _ACEOF
  18763. if ac_fn_c_try_compile "$LINENO"; then :
  18764. video_opengl_egl=yes
  18765. fi
  18766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18768. $as_echo "$video_opengl_egl" >&6; }
  18769. if test x$video_opengl_egl = xyes; then
  18770. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18771. fi
  18772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18773. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18774. video_opengles_v2=no
  18775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18776. /* end confdefs.h. */
  18777. #include <GLES2/gl2.h>
  18778. #include <GLES2/gl2ext.h>
  18779. int
  18780. main ()
  18781. {
  18782. ;
  18783. return 0;
  18784. }
  18785. _ACEOF
  18786. if ac_fn_c_try_compile "$LINENO"; then :
  18787. video_opengles_v2=yes
  18788. fi
  18789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18791. $as_echo "$video_opengles_v2" >&6; }
  18792. if test x$video_opengles_v2 = xyes; then
  18793. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18794. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18795. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18796. fi
  18797. fi
  18798. }
  18799. # Check whether --enable-video-vulkan was given.
  18800. if test "${enable_video_vulkan+set}" = set; then :
  18801. enableval=$enable_video_vulkan;
  18802. else
  18803. enable_video_vulkan=yes
  18804. fi
  18805. CheckVulkan()
  18806. {
  18807. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  18808. case "$host" in
  18809. *-*-android*)
  18810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18811. /* end confdefs.h. */
  18812. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  18813. #error Vulkan doesn't work on this configuration
  18814. #endif
  18815. int
  18816. main ()
  18817. {
  18818. ;
  18819. return 0;
  18820. }
  18821. _ACEOF
  18822. if ac_fn_c_try_compile "$LINENO"; then :
  18823. else
  18824. enable_video_vulkan=no
  18825. fi
  18826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18827. ;;
  18828. *-*-darwin*)
  18829. save_CFLAGS="$CFLAGS"
  18830. CFLAGS="$CFLAGS -x objective-c"
  18831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18832. /* end confdefs.h. */
  18833. #include <Cocoa/Cocoa.h>
  18834. #include <Metal/Metal.h>
  18835. #include <QuartzCore/CAMetalLayer.h>
  18836. #if !TARGET_CPU_X86_64
  18837. #error Vulkan doesn't work on this configuration
  18838. #endif
  18839. int
  18840. main ()
  18841. {
  18842. ;
  18843. return 0;
  18844. }
  18845. _ACEOF
  18846. if ac_fn_c_try_compile "$LINENO"; then :
  18847. else
  18848. enable_video_vulkan=no
  18849. fi
  18850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18851. CFLAGS="$save_CFLAGS"
  18852. ;;
  18853. *)
  18854. ;;
  18855. esac
  18856. if test x$enable_video_vulkan = xno; then
  18857. # For reasons I am totally unable to see, I get an undefined macro error if
  18858. # I put this in the AC_TRY_COMPILE.
  18859. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  18860. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  18861. fi
  18862. fi
  18863. if test x$enable_video_vulkan = xyes; then
  18864. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  18865. SUMMARY_video="${SUMMARY_video} vulkan"
  18866. fi
  18867. }
  18868. CheckInputEvents()
  18869. {
  18870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18871. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18872. use_input_events=no
  18873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18874. /* end confdefs.h. */
  18875. #include <linux/input.h>
  18876. int
  18877. main ()
  18878. {
  18879. #ifndef EVIOCGNAME
  18880. #error EVIOCGNAME() ioctl not available
  18881. #endif
  18882. ;
  18883. return 0;
  18884. }
  18885. _ACEOF
  18886. if ac_fn_c_try_compile "$LINENO"; then :
  18887. use_input_events=yes
  18888. fi
  18889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18891. $as_echo "$use_input_events" >&6; }
  18892. if test x$use_input_events = xyes; then
  18893. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18894. SUMMARY_input="${SUMMARY_input} linuxev"
  18895. fi
  18896. }
  18897. CheckInputKD()
  18898. {
  18899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18900. $as_echo_n "checking for Linux kd.h... " >&6; }
  18901. use_input_kd=no
  18902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18903. /* end confdefs.h. */
  18904. #include <linux/kd.h>
  18905. #include <linux/keyboard.h>
  18906. int
  18907. main ()
  18908. {
  18909. struct kbentry kbe;
  18910. kbe.kb_table = KG_CTRL;
  18911. ioctl(0, KDGKBENT, &kbe);
  18912. ;
  18913. return 0;
  18914. }
  18915. _ACEOF
  18916. if ac_fn_c_try_compile "$LINENO"; then :
  18917. use_input_kd=yes
  18918. fi
  18919. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18921. $as_echo "$use_input_kd" >&6; }
  18922. if test x$use_input_kd = xyes; then
  18923. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18924. SUMMARY_input="${SUMMARY_input} linuxkd"
  18925. fi
  18926. }
  18927. CheckLibUDev()
  18928. {
  18929. # Check whether --enable-libudev was given.
  18930. if test "${enable_libudev+set}" = set; then :
  18931. enableval=$enable_libudev;
  18932. else
  18933. enable_libudev=yes
  18934. fi
  18935. if test x$enable_libudev = xyes; then
  18936. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18937. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18938. have_libudev_h_hdr=yes
  18939. else
  18940. have_libudev_h_hdr=no
  18941. fi
  18942. if test x$have_libudev_h_hdr = xyes; then
  18943. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18944. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  18945. if test x$udev_lib != x; then
  18946. echo "-- dynamic udev -> $udev_lib"
  18947. cat >>confdefs.h <<_ACEOF
  18948. #define SDL_UDEV_DYNAMIC "$udev_lib"
  18949. _ACEOF
  18950. fi
  18951. fi
  18952. fi
  18953. }
  18954. CheckDBus()
  18955. {
  18956. # Check whether --enable-dbus was given.
  18957. if test "${enable_dbus+set}" = set; then :
  18958. enableval=$enable_dbus;
  18959. else
  18960. enable_dbus=yes
  18961. fi
  18962. if test x$enable_dbus = xyes; then
  18963. # Extract the first word of "pkg-config", so it can be a program name with args.
  18964. set dummy pkg-config; ac_word=$2
  18965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18966. $as_echo_n "checking for $ac_word... " >&6; }
  18967. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18968. $as_echo_n "(cached) " >&6
  18969. else
  18970. case $PKG_CONFIG in
  18971. [\\/]* | ?:[\\/]*)
  18972. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18973. ;;
  18974. *)
  18975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18976. for as_dir in $PATH
  18977. do
  18978. IFS=$as_save_IFS
  18979. test -z "$as_dir" && as_dir=.
  18980. for ac_exec_ext in '' $ac_executable_extensions; do
  18981. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18982. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18983. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18984. break 2
  18985. fi
  18986. done
  18987. done
  18988. IFS=$as_save_IFS
  18989. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18990. ;;
  18991. esac
  18992. fi
  18993. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18994. if test -n "$PKG_CONFIG"; then
  18995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18996. $as_echo "$PKG_CONFIG" >&6; }
  18997. else
  18998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18999. $as_echo "no" >&6; }
  19000. fi
  19001. if test x$PKG_CONFIG != xno; then
  19002. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  19003. save_CFLAGS="$CFLAGS"
  19004. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19005. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19006. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19007. have_dbus_dbus_h_hdr=yes
  19008. else
  19009. have_dbus_dbus_h_hdr=no
  19010. fi
  19011. CFLAGS="$save_CFLAGS"
  19012. if test x$have_dbus_dbus_h_hdr = xyes; then
  19013. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19014. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19015. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19016. fi
  19017. fi
  19018. fi
  19019. }
  19020. CheckIME()
  19021. {
  19022. # Check whether --enable-ime was given.
  19023. if test "${enable_ime+set}" = set; then :
  19024. enableval=$enable_ime;
  19025. else
  19026. enable_ime=yes
  19027. fi
  19028. if test x$enable_ime = xyes; then
  19029. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19030. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19031. fi
  19032. }
  19033. CheckIBus()
  19034. {
  19035. # Check whether --enable-ibus was given.
  19036. if test "${enable_ibus+set}" = set; then :
  19037. enableval=$enable_ibus;
  19038. else
  19039. enable_ibus=yes
  19040. fi
  19041. if test x$enable_ibus = xyes; then
  19042. # Extract the first word of "pkg-config", so it can be a program name with args.
  19043. set dummy pkg-config; ac_word=$2
  19044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19045. $as_echo_n "checking for $ac_word... " >&6; }
  19046. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19047. $as_echo_n "(cached) " >&6
  19048. else
  19049. case $PKG_CONFIG in
  19050. [\\/]* | ?:[\\/]*)
  19051. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19052. ;;
  19053. *)
  19054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19055. for as_dir in $PATH
  19056. do
  19057. IFS=$as_save_IFS
  19058. test -z "$as_dir" && as_dir=.
  19059. for ac_exec_ext in '' $ac_executable_extensions; do
  19060. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19061. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19062. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19063. break 2
  19064. fi
  19065. done
  19066. done
  19067. IFS=$as_save_IFS
  19068. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19069. ;;
  19070. esac
  19071. fi
  19072. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19073. if test -n "$PKG_CONFIG"; then
  19074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19075. $as_echo "$PKG_CONFIG" >&6; }
  19076. else
  19077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19078. $as_echo "no" >&6; }
  19079. fi
  19080. if test x$PKG_CONFIG != xno; then
  19081. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  19082. save_CFLAGS="$CFLAGS"
  19083. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19084. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19085. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19086. have_ibus_ibus_h_hdr=yes
  19087. else
  19088. have_ibus_ibus_h_hdr=no
  19089. fi
  19090. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19091. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19092. have_inotify_inotify_h_hdr=yes
  19093. else
  19094. have_inotify_inotify_h_hdr=no
  19095. fi
  19096. CFLAGS="$save_CFLAGS"
  19097. if test x$have_ibus_ibus_h_hdr = xyes; then
  19098. if test x$enable_ime != xyes; then
  19099. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19100. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19101. have_ibus_ibus_h_hdr=no
  19102. elif test x$enable_dbus != xyes; then
  19103. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19104. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19105. have_ibus_ibus_h_hdr=no
  19106. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19108. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19109. have_ibus_ibus_h_hdr=no
  19110. else
  19111. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19112. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19113. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19114. fi
  19115. fi
  19116. fi
  19117. fi
  19118. }
  19119. CheckFcitx()
  19120. {
  19121. # Check whether --enable-fcitx was given.
  19122. if test "${enable_fcitx+set}" = set; then :
  19123. enableval=$enable_fcitx;
  19124. else
  19125. enable_fcitx=yes
  19126. fi
  19127. if test x$enable_fcitx = xyes; then
  19128. # Extract the first word of "pkg-config", so it can be a program name with args.
  19129. set dummy pkg-config; ac_word=$2
  19130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19131. $as_echo_n "checking for $ac_word... " >&6; }
  19132. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19133. $as_echo_n "(cached) " >&6
  19134. else
  19135. case $PKG_CONFIG in
  19136. [\\/]* | ?:[\\/]*)
  19137. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19138. ;;
  19139. *)
  19140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19141. for as_dir in $PATH
  19142. do
  19143. IFS=$as_save_IFS
  19144. test -z "$as_dir" && as_dir=.
  19145. for ac_exec_ext in '' $ac_executable_extensions; do
  19146. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19147. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19148. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19149. break 2
  19150. fi
  19151. done
  19152. done
  19153. IFS=$as_save_IFS
  19154. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19155. ;;
  19156. esac
  19157. fi
  19158. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19159. if test -n "$PKG_CONFIG"; then
  19160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19161. $as_echo "$PKG_CONFIG" >&6; }
  19162. else
  19163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19164. $as_echo "no" >&6; }
  19165. fi
  19166. if test x$PKG_CONFIG != xno; then
  19167. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  19168. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19169. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19170. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19171. have_fcitx_frontend_h_hdr=yes
  19172. else
  19173. have_fcitx_frontend_h_hdr=no
  19174. fi
  19175. CFLAGS="$save_CFLAGS"
  19176. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19177. if test x$enable_ime != xyes; then
  19178. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19179. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19180. have_fcitx_frontend_h_hdr=no
  19181. elif test x$enable_dbus != xyes; then
  19182. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19183. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19184. have_fcitx_frontend_h_hdr=no
  19185. else
  19186. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19187. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19188. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19189. fi
  19190. fi
  19191. fi
  19192. fi
  19193. }
  19194. CheckTslib()
  19195. {
  19196. # Check whether --enable-input-tslib was given.
  19197. if test "${enable_input_tslib+set}" = set; then :
  19198. enableval=$enable_input_tslib;
  19199. else
  19200. enable_input_tslib=yes
  19201. fi
  19202. if test x$enable_input_tslib = xyes; then
  19203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19204. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19205. enable_input_tslib=no
  19206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19207. /* end confdefs.h. */
  19208. #include "tslib.h"
  19209. int
  19210. main ()
  19211. {
  19212. ;
  19213. return 0;
  19214. }
  19215. _ACEOF
  19216. if ac_fn_c_try_compile "$LINENO"; then :
  19217. enable_input_tslib=yes
  19218. fi
  19219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19221. $as_echo "$enable_input_tslib" >&6; }
  19222. if test x$enable_input_tslib = xyes; then
  19223. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19224. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19225. SUMMARY_input="${SUMMARY_input} ts"
  19226. fi
  19227. fi
  19228. }
  19229. CheckPTHREAD()
  19230. {
  19231. # Check whether --enable-pthreads was given.
  19232. if test "${enable_pthreads+set}" = set; then :
  19233. enableval=$enable_pthreads;
  19234. else
  19235. enable_pthreads=yes
  19236. fi
  19237. # Check whether --enable-pthread-sem was given.
  19238. if test "${enable_pthread_sem+set}" = set; then :
  19239. enableval=$enable_pthread_sem;
  19240. else
  19241. enable_pthread_sem=yes
  19242. fi
  19243. case "$host" in
  19244. *-*-android*)
  19245. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19246. pthread_lib=""
  19247. ;;
  19248. *-*-linux*|*-*-uclinux*)
  19249. pthread_cflags="-D_REENTRANT"
  19250. pthread_lib="-lpthread"
  19251. ;;
  19252. *-*-bsdi*)
  19253. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19254. pthread_lib=""
  19255. ;;
  19256. *-*-darwin*)
  19257. pthread_cflags="-D_THREAD_SAFE"
  19258. # causes Carbon.p complaints?
  19259. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19260. ;;
  19261. *-*-freebsd*|*-*-dragonfly*)
  19262. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19263. pthread_lib="-pthread"
  19264. ;;
  19265. *-*-netbsd*)
  19266. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19267. pthread_lib="-lpthread"
  19268. ;;
  19269. *-*-openbsd*)
  19270. pthread_cflags="-D_REENTRANT"
  19271. pthread_lib="-pthread"
  19272. ;;
  19273. *-*-solaris2.9)
  19274. # From Solaris 9+, posix4's preferred name is rt.
  19275. pthread_cflags="-D_REENTRANT"
  19276. pthread_lib="-lpthread -lrt"
  19277. ;;
  19278. *-*-solaris2.10)
  19279. # Solaris 10+ merged pthread into libc.
  19280. pthread_cflags="-D_REENTRANT"
  19281. pthread_lib="-lrt"
  19282. ;;
  19283. *-*-solaris*)
  19284. # Solaris 11+ merged rt into libc.
  19285. pthread_cflags="-D_REENTRANT"
  19286. pthread_lib=""
  19287. ;;
  19288. *-*-sysv5*)
  19289. pthread_cflags="-D_REENTRANT -Kthread"
  19290. pthread_lib=""
  19291. ;;
  19292. *-*-aix*)
  19293. pthread_cflags="-D_REENTRANT -mthreads"
  19294. pthread_lib="-lpthread"
  19295. ;;
  19296. *-*-hpux11*)
  19297. pthread_cflags="-D_REENTRANT"
  19298. pthread_lib="-L/usr/lib -lpthread"
  19299. ;;
  19300. *-*-haiku*)
  19301. pthread_cflags="-D_REENTRANT"
  19302. pthread_lib=""
  19303. ;;
  19304. *-*-nto*)
  19305. pthread_cflags="-D_REENTRANT"
  19306. pthread_lib=""
  19307. ;;
  19308. *)
  19309. pthread_cflags="-D_REENTRANT"
  19310. pthread_lib="-lpthread"
  19311. ;;
  19312. esac
  19313. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19314. # Save the original compiler flags and libraries
  19315. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19316. # Add the pthread compiler flags and libraries
  19317. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19318. # Check to see if we have pthread support on this system
  19319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19320. $as_echo_n "checking for pthreads... " >&6; }
  19321. use_pthreads=no
  19322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19323. /* end confdefs.h. */
  19324. #include <pthread.h>
  19325. int
  19326. main ()
  19327. {
  19328. pthread_attr_t type;
  19329. pthread_attr_init(&type);
  19330. ;
  19331. return 0;
  19332. }
  19333. _ACEOF
  19334. if ac_fn_c_try_link "$LINENO"; then :
  19335. use_pthreads=yes
  19336. fi
  19337. rm -f core conftest.err conftest.$ac_objext \
  19338. conftest$ac_exeext conftest.$ac_ext
  19339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19340. $as_echo "$use_pthreads" >&6; }
  19341. # Restore the compiler flags and libraries
  19342. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19343. # Do futher testing if we have pthread support...
  19344. if test x$use_pthreads = xyes; then
  19345. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19346. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19347. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19348. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19349. # Save the original compiler flags and libraries
  19350. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19351. # Add the pthread compiler flags and libraries
  19352. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19353. # Check to see if recursive mutexes are available
  19354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19355. $as_echo_n "checking for recursive mutexes... " >&6; }
  19356. has_recursive_mutexes=no
  19357. if test x$has_recursive_mutexes = xno; then
  19358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19359. /* end confdefs.h. */
  19360. #define _GNU_SOURCE 1
  19361. #include <pthread.h>
  19362. int
  19363. main ()
  19364. {
  19365. pthread_mutexattr_t attr;
  19366. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19367. ;
  19368. return 0;
  19369. }
  19370. _ACEOF
  19371. if ac_fn_c_try_link "$LINENO"; then :
  19372. has_recursive_mutexes=yes
  19373. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19374. fi
  19375. rm -f core conftest.err conftest.$ac_objext \
  19376. conftest$ac_exeext conftest.$ac_ext
  19377. fi
  19378. if test x$has_recursive_mutexes = xno; then
  19379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19380. /* end confdefs.h. */
  19381. #define _GNU_SOURCE 1
  19382. #include <pthread.h>
  19383. int
  19384. main ()
  19385. {
  19386. pthread_mutexattr_t attr;
  19387. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19388. ;
  19389. return 0;
  19390. }
  19391. _ACEOF
  19392. if ac_fn_c_try_link "$LINENO"; then :
  19393. has_recursive_mutexes=yes
  19394. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19395. fi
  19396. rm -f core conftest.err conftest.$ac_objext \
  19397. conftest$ac_exeext conftest.$ac_ext
  19398. fi
  19399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19400. $as_echo "$has_recursive_mutexes" >&6; }
  19401. # Check to see if pthread semaphore support is missing
  19402. if test x$enable_pthread_sem = xyes; then
  19403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19404. $as_echo_n "checking for pthread semaphores... " >&6; }
  19405. have_pthread_sem=no
  19406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19407. /* end confdefs.h. */
  19408. #include <pthread.h>
  19409. #include <semaphore.h>
  19410. int
  19411. main ()
  19412. {
  19413. ;
  19414. return 0;
  19415. }
  19416. _ACEOF
  19417. if ac_fn_c_try_compile "$LINENO"; then :
  19418. have_pthread_sem=yes
  19419. fi
  19420. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19422. $as_echo "$have_pthread_sem" >&6; }
  19423. fi
  19424. if test x$have_pthread_sem = xyes; then
  19425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19426. $as_echo_n "checking for sem_timedwait... " >&6; }
  19427. have_sem_timedwait=no
  19428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19429. /* end confdefs.h. */
  19430. #include <pthread.h>
  19431. #include <semaphore.h>
  19432. int
  19433. main ()
  19434. {
  19435. sem_timedwait(NULL, NULL);
  19436. ;
  19437. return 0;
  19438. }
  19439. _ACEOF
  19440. if ac_fn_c_try_link "$LINENO"; then :
  19441. have_sem_timedwait=yes
  19442. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19443. fi
  19444. rm -f core conftest.err conftest.$ac_objext \
  19445. conftest$ac_exeext conftest.$ac_ext
  19446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19447. $as_echo "$have_sem_timedwait" >&6; }
  19448. fi
  19449. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19450. "
  19451. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19452. have_pthread_np_h=yes
  19453. else
  19454. have_pthread_np_h=no
  19455. fi
  19456. if test x$have_pthread_np_h = xyes; then
  19457. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19458. fi
  19459. # Check to see if pthread naming is available
  19460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19461. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19463. /* end confdefs.h. */
  19464. /* Override any GCC internal prototype to avoid an error.
  19465. Use char because int might match the return type of a GCC
  19466. builtin and then its argument prototype would still apply. */
  19467. #ifdef __cplusplus
  19468. extern "C"
  19469. #endif
  19470. char pthread_setname_np ();
  19471. int
  19472. main ()
  19473. {
  19474. return pthread_setname_np ();
  19475. ;
  19476. return 0;
  19477. }
  19478. _ACEOF
  19479. if ac_fn_c_try_link "$LINENO"; then :
  19480. has_pthread_setname_np=yes
  19481. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19482. else
  19483. has_pthread_setname_np=no
  19484. fi
  19485. rm -f core conftest.err conftest.$ac_objext \
  19486. conftest$ac_exeext conftest.$ac_ext
  19487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19488. $as_echo "$has_pthread_setname_np" >&6; }
  19489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19490. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19492. /* end confdefs.h. */
  19493. /* Override any GCC internal prototype to avoid an error.
  19494. Use char because int might match the return type of a GCC
  19495. builtin and then its argument prototype would still apply. */
  19496. #ifdef __cplusplus
  19497. extern "C"
  19498. #endif
  19499. char pthread_set_name_np ();
  19500. int
  19501. main ()
  19502. {
  19503. return pthread_set_name_np ();
  19504. ;
  19505. return 0;
  19506. }
  19507. _ACEOF
  19508. if ac_fn_c_try_link "$LINENO"; then :
  19509. has_pthread_set_name_np=yes
  19510. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19511. else
  19512. has_pthread_set_name_np=no
  19513. fi
  19514. rm -f core conftest.err conftest.$ac_objext \
  19515. conftest$ac_exeext conftest.$ac_ext
  19516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19517. $as_echo "$has_pthread_set_name_np" >&6; }
  19518. # Restore the compiler flags and libraries
  19519. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19520. # Basic thread creation functions
  19521. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19522. # Semaphores
  19523. # We can fake these with mutexes and condition variables if necessary
  19524. if test x$have_pthread_sem = xyes; then
  19525. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19526. else
  19527. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19528. fi
  19529. # Mutexes
  19530. # We can fake these with semaphores if necessary
  19531. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19532. # Condition variables
  19533. # We can fake these with semaphores and mutexes if necessary
  19534. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19535. # Thread local storage
  19536. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19537. have_threads=yes
  19538. fi
  19539. fi
  19540. }
  19541. CheckWINDOWS()
  19542. {
  19543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19544. $as_echo_n "checking Windows compiler... " >&6; }
  19545. have_win32_gcc=no
  19546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19547. /* end confdefs.h. */
  19548. #include <windows.h>
  19549. int
  19550. main ()
  19551. {
  19552. ;
  19553. return 0;
  19554. }
  19555. _ACEOF
  19556. if ac_fn_c_try_compile "$LINENO"; then :
  19557. have_win32_gcc=yes
  19558. fi
  19559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19561. $as_echo "$have_win32_gcc" >&6; }
  19562. if test x$have_win32_gcc != xyes; then
  19563. as_fn_error $? "
  19564. *** Your compiler ($CC) does not produce Windows executables!
  19565. " "$LINENO" 5
  19566. fi
  19567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19568. $as_echo_n "checking Windows CE... " >&6; }
  19569. have_wince=no
  19570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19571. /* end confdefs.h. */
  19572. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19573. #error This is not Windows CE
  19574. #endif
  19575. int
  19576. main ()
  19577. {
  19578. ;
  19579. return 0;
  19580. }
  19581. _ACEOF
  19582. if ac_fn_c_try_compile "$LINENO"; then :
  19583. have_wince=yes
  19584. as_fn_error $? "
  19585. *** Sorry, Windows CE is no longer supported.
  19586. " "$LINENO" 5
  19587. fi
  19588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19590. $as_echo "$have_wince" >&6; }
  19591. # This fixes Windows stack alignment with newer GCC
  19592. CheckStackBoundary
  19593. }
  19594. CheckDIRECTX()
  19595. {
  19596. # Check whether --enable-directx was given.
  19597. if test "${enable_directx+set}" = set; then :
  19598. enableval=$enable_directx;
  19599. else
  19600. enable_directx=yes
  19601. fi
  19602. if test x$enable_directx = xyes; then
  19603. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19604. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19605. have_d3d=yes
  19606. fi
  19607. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19608. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19609. have_d3d11=yes
  19610. fi
  19611. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19612. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19613. have_ddraw=yes
  19614. fi
  19615. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19616. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19617. have_dsound=yes
  19618. fi
  19619. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19620. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19621. have_dinput=yes
  19622. fi
  19623. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19624. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19625. have_dxgi=yes
  19626. fi
  19627. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  19628. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  19629. have_xaudio2=yes
  19630. fi
  19631. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19632. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19633. have_xinput=yes
  19634. fi
  19635. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  19636. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  19637. have_wasapi=yes
  19638. fi
  19639. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  19640. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  19641. else
  19642. have_wasapi=no
  19643. fi
  19644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19645. /* end confdefs.h. */
  19646. #include <windows.h>
  19647. #include <xinput.h>
  19648. XINPUT_GAMEPAD_EX x1;
  19649. int
  19650. main ()
  19651. {
  19652. ;
  19653. return 0;
  19654. }
  19655. _ACEOF
  19656. if ac_fn_c_try_compile "$LINENO"; then :
  19657. have_xinput_gamepadex=yes
  19658. fi
  19659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19661. /* end confdefs.h. */
  19662. #include <windows.h>
  19663. #include <xinput.h>
  19664. XINPUT_STATE_EX s1;
  19665. int
  19666. main ()
  19667. {
  19668. ;
  19669. return 0;
  19670. }
  19671. _ACEOF
  19672. if ac_fn_c_try_compile "$LINENO"; then :
  19673. have_xinput_stateex=yes
  19674. fi
  19675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19676. if test x$have_ddraw = xyes; then
  19677. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19678. fi
  19679. if test x$have_dinput = xyes; then
  19680. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19681. fi
  19682. if test x$have_dsound = xyes; then
  19683. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19684. fi
  19685. if test x$have_dxgi = xyes; then
  19686. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19687. fi
  19688. if test x$have_xinput = xyes; then
  19689. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19690. fi
  19691. if test x$have_xinput_gamepadex = xyes; then
  19692. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  19693. fi
  19694. if test x$have_xinput_stateex = xyes; then
  19695. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  19696. fi
  19697. SUMMARY_video="${SUMMARY_video} directx"
  19698. SUMMARY_audio="${SUMMARY_audio} directx"
  19699. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19700. # FIXME: ...so force it off for now.
  19701. case "$host" in
  19702. *-*-cygwin*)
  19703. have_dinput=false
  19704. ;;
  19705. esac
  19706. fi
  19707. }
  19708. CheckDLOPEN()
  19709. {
  19710. # Check whether --enable-sdl-dlopen was given.
  19711. if test "${enable_sdl_dlopen+set}" = set; then :
  19712. enableval=$enable_sdl_dlopen;
  19713. else
  19714. enable_sdl_dlopen=yes
  19715. fi
  19716. if test x$enable_sdl_dlopen = xyes; then
  19717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19718. $as_echo_n "checking for dlopen... " >&6; }
  19719. have_dlopen=no
  19720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19721. /* end confdefs.h. */
  19722. #include <dlfcn.h>
  19723. int
  19724. main ()
  19725. {
  19726. void *handle = dlopen("", RTLD_NOW);
  19727. const char *loaderror = (char *) dlerror();
  19728. ;
  19729. return 0;
  19730. }
  19731. _ACEOF
  19732. if ac_fn_c_try_compile "$LINENO"; then :
  19733. have_dlopen=yes
  19734. fi
  19735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19737. $as_echo "$have_dlopen" >&6; }
  19738. if test x$have_dlopen = xyes; then
  19739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19740. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19741. if ${ac_cv_lib_c_dlopen+:} false; then :
  19742. $as_echo_n "(cached) " >&6
  19743. else
  19744. ac_check_lib_save_LIBS=$LIBS
  19745. LIBS="-lc $LIBS"
  19746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19747. /* end confdefs.h. */
  19748. /* Override any GCC internal prototype to avoid an error.
  19749. Use char because int might match the return type of a GCC
  19750. builtin and then its argument prototype would still apply. */
  19751. #ifdef __cplusplus
  19752. extern "C"
  19753. #endif
  19754. char dlopen ();
  19755. int
  19756. main ()
  19757. {
  19758. return dlopen ();
  19759. ;
  19760. return 0;
  19761. }
  19762. _ACEOF
  19763. if ac_fn_c_try_link "$LINENO"; then :
  19764. ac_cv_lib_c_dlopen=yes
  19765. else
  19766. ac_cv_lib_c_dlopen=no
  19767. fi
  19768. rm -f core conftest.err conftest.$ac_objext \
  19769. conftest$ac_exeext conftest.$ac_ext
  19770. LIBS=$ac_check_lib_save_LIBS
  19771. fi
  19772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19773. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19774. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19775. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19776. else
  19777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19778. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19779. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19780. $as_echo_n "(cached) " >&6
  19781. else
  19782. ac_check_lib_save_LIBS=$LIBS
  19783. LIBS="-ldl $LIBS"
  19784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19785. /* end confdefs.h. */
  19786. /* Override any GCC internal prototype to avoid an error.
  19787. Use char because int might match the return type of a GCC
  19788. builtin and then its argument prototype would still apply. */
  19789. #ifdef __cplusplus
  19790. extern "C"
  19791. #endif
  19792. char dlopen ();
  19793. int
  19794. main ()
  19795. {
  19796. return dlopen ();
  19797. ;
  19798. return 0;
  19799. }
  19800. _ACEOF
  19801. if ac_fn_c_try_link "$LINENO"; then :
  19802. ac_cv_lib_dl_dlopen=yes
  19803. else
  19804. ac_cv_lib_dl_dlopen=no
  19805. fi
  19806. rm -f core conftest.err conftest.$ac_objext \
  19807. conftest$ac_exeext conftest.$ac_ext
  19808. LIBS=$ac_check_lib_save_LIBS
  19809. fi
  19810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19811. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19812. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19813. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19814. else
  19815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19816. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19817. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19818. $as_echo_n "(cached) " >&6
  19819. else
  19820. ac_check_lib_save_LIBS=$LIBS
  19821. LIBS="-lltdl $LIBS"
  19822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19823. /* end confdefs.h. */
  19824. /* Override any GCC internal prototype to avoid an error.
  19825. Use char because int might match the return type of a GCC
  19826. builtin and then its argument prototype would still apply. */
  19827. #ifdef __cplusplus
  19828. extern "C"
  19829. #endif
  19830. char dlopen ();
  19831. int
  19832. main ()
  19833. {
  19834. return dlopen ();
  19835. ;
  19836. return 0;
  19837. }
  19838. _ACEOF
  19839. if ac_fn_c_try_link "$LINENO"; then :
  19840. ac_cv_lib_ltdl_dlopen=yes
  19841. else
  19842. ac_cv_lib_ltdl_dlopen=no
  19843. fi
  19844. rm -f core conftest.err conftest.$ac_objext \
  19845. conftest$ac_exeext conftest.$ac_ext
  19846. LIBS=$ac_check_lib_save_LIBS
  19847. fi
  19848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19849. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19850. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19851. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19852. fi
  19853. fi
  19854. fi
  19855. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19856. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19857. have_loadso=yes
  19858. fi
  19859. fi
  19860. }
  19861. CheckUSBHID()
  19862. {
  19863. case "$host" in
  19864. *-*-*bsd*)
  19865. if test x$enable_joystick = xyes; then
  19866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19867. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19868. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19869. $as_echo_n "(cached) " >&6
  19870. else
  19871. ac_check_lib_save_LIBS=$LIBS
  19872. LIBS="-lusbhid $LIBS"
  19873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19874. /* end confdefs.h. */
  19875. /* Override any GCC internal prototype to avoid an error.
  19876. Use char because int might match the return type of a GCC
  19877. builtin and then its argument prototype would still apply. */
  19878. #ifdef __cplusplus
  19879. extern "C"
  19880. #endif
  19881. char hid_init ();
  19882. int
  19883. main ()
  19884. {
  19885. return hid_init ();
  19886. ;
  19887. return 0;
  19888. }
  19889. _ACEOF
  19890. if ac_fn_c_try_link "$LINENO"; then :
  19891. ac_cv_lib_usbhid_hid_init=yes
  19892. else
  19893. ac_cv_lib_usbhid_hid_init=no
  19894. fi
  19895. rm -f core conftest.err conftest.$ac_objext \
  19896. conftest$ac_exeext conftest.$ac_ext
  19897. LIBS=$ac_check_lib_save_LIBS
  19898. fi
  19899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19900. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19901. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19902. have_libusbhid=yes
  19903. fi
  19904. if test x$have_libusbhid = xyes; then
  19905. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19906. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19907. USB_CFLAGS="-DHAVE_USBHID_H"
  19908. fi
  19909. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  19910. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  19911. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  19912. fi
  19913. USB_LIBS="$USB_LIBS -lusbhid"
  19914. else
  19915. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  19916. if test "x$ac_cv_header_usb_h" = xyes; then :
  19917. USB_CFLAGS="-DHAVE_USB_H"
  19918. fi
  19919. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  19920. if test "x$ac_cv_header_libusb_h" = xyes; then :
  19921. USB_CFLAGS="-DHAVE_LIBUSB_H"
  19922. fi
  19923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  19924. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  19925. if ${ac_cv_lib_usb_hid_init+:} false; then :
  19926. $as_echo_n "(cached) " >&6
  19927. else
  19928. ac_check_lib_save_LIBS=$LIBS
  19929. LIBS="-lusb $LIBS"
  19930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19931. /* end confdefs.h. */
  19932. /* Override any GCC internal prototype to avoid an error.
  19933. Use char because int might match the return type of a GCC
  19934. builtin and then its argument prototype would still apply. */
  19935. #ifdef __cplusplus
  19936. extern "C"
  19937. #endif
  19938. char hid_init ();
  19939. int
  19940. main ()
  19941. {
  19942. return hid_init ();
  19943. ;
  19944. return 0;
  19945. }
  19946. _ACEOF
  19947. if ac_fn_c_try_link "$LINENO"; then :
  19948. ac_cv_lib_usb_hid_init=yes
  19949. else
  19950. ac_cv_lib_usb_hid_init=no
  19951. fi
  19952. rm -f core conftest.err conftest.$ac_objext \
  19953. conftest$ac_exeext conftest.$ac_ext
  19954. LIBS=$ac_check_lib_save_LIBS
  19955. fi
  19956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19957. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19958. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19959. USB_LIBS="$USB_LIBS -lusb"
  19960. fi
  19961. fi
  19962. save_CFLAGS="$CFLAGS"
  19963. CFLAGS="$CFLAGS $USB_CFLAGS"
  19964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19965. $as_echo_n "checking for usbhid... " >&6; }
  19966. have_usbhid=no
  19967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19968. /* end confdefs.h. */
  19969. #include <sys/types.h>
  19970. #if defined(HAVE_USB_H)
  19971. #include <usb.h>
  19972. #endif
  19973. #ifdef __DragonFly__
  19974. # include <bus/usb/usb.h>
  19975. # include <bus/usb/usbhid.h>
  19976. #else
  19977. # include <dev/usb/usb.h>
  19978. # include <dev/usb/usbhid.h>
  19979. #endif
  19980. #if defined(HAVE_USBHID_H)
  19981. #include <usbhid.h>
  19982. #elif defined(HAVE_LIBUSB_H)
  19983. #include <libusb.h>
  19984. #elif defined(HAVE_LIBUSBHID_H)
  19985. #include <libusbhid.h>
  19986. #endif
  19987. int
  19988. main ()
  19989. {
  19990. struct report_desc *repdesc;
  19991. struct usb_ctl_report *repbuf;
  19992. hid_kind_t hidkind;
  19993. ;
  19994. return 0;
  19995. }
  19996. _ACEOF
  19997. if ac_fn_c_try_compile "$LINENO"; then :
  19998. have_usbhid=yes
  19999. fi
  20000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20002. $as_echo "$have_usbhid" >&6; }
  20003. if test x$have_usbhid = xyes; then
  20004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20005. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20006. have_usbhid_ucr_data=no
  20007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20008. /* end confdefs.h. */
  20009. #include <sys/types.h>
  20010. #if defined(HAVE_USB_H)
  20011. #include <usb.h>
  20012. #endif
  20013. #ifdef __DragonFly__
  20014. # include <bus/usb/usb.h>
  20015. # include <bus/usb/usbhid.h>
  20016. #else
  20017. # include <dev/usb/usb.h>
  20018. # include <dev/usb/usbhid.h>
  20019. #endif
  20020. #if defined(HAVE_USBHID_H)
  20021. #include <usbhid.h>
  20022. #elif defined(HAVE_LIBUSB_H)
  20023. #include <libusb.h>
  20024. #elif defined(HAVE_LIBUSBHID_H)
  20025. #include <libusbhid.h>
  20026. #endif
  20027. int
  20028. main ()
  20029. {
  20030. struct usb_ctl_report buf;
  20031. if (buf.ucr_data) { }
  20032. ;
  20033. return 0;
  20034. }
  20035. _ACEOF
  20036. if ac_fn_c_try_compile "$LINENO"; then :
  20037. have_usbhid_ucr_data=yes
  20038. fi
  20039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20040. if test x$have_usbhid_ucr_data = xyes; then
  20041. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20042. fi
  20043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20044. $as_echo "$have_usbhid_ucr_data" >&6; }
  20045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20046. $as_echo_n "checking for new usbhid API... " >&6; }
  20047. have_usbhid_new=no
  20048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20049. /* end confdefs.h. */
  20050. #include <sys/types.h>
  20051. #if defined(HAVE_USB_H)
  20052. #include <usb.h>
  20053. #endif
  20054. #ifdef __DragonFly__
  20055. #include <bus/usb/usb.h>
  20056. #include <bus/usb/usbhid.h>
  20057. #else
  20058. #include <dev/usb/usb.h>
  20059. #include <dev/usb/usbhid.h>
  20060. #endif
  20061. #if defined(HAVE_USBHID_H)
  20062. #include <usbhid.h>
  20063. #elif defined(HAVE_LIBUSB_H)
  20064. #include <libusb.h>
  20065. #elif defined(HAVE_LIBUSBHID_H)
  20066. #include <libusbhid.h>
  20067. #endif
  20068. int
  20069. main ()
  20070. {
  20071. report_desc_t d;
  20072. hid_start_parse(d, 1, 1);
  20073. ;
  20074. return 0;
  20075. }
  20076. _ACEOF
  20077. if ac_fn_c_try_compile "$LINENO"; then :
  20078. have_usbhid_new=yes
  20079. fi
  20080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20081. if test x$have_usbhid_new = xyes; then
  20082. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20083. fi
  20084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20085. $as_echo "$have_usbhid_new" >&6; }
  20086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20087. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20088. have_machine_joystick=no
  20089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20090. /* end confdefs.h. */
  20091. #include <machine/joystick.h>
  20092. int
  20093. main ()
  20094. {
  20095. struct joystick t;
  20096. ;
  20097. return 0;
  20098. }
  20099. _ACEOF
  20100. if ac_fn_c_try_compile "$LINENO"; then :
  20101. have_machine_joystick=yes
  20102. fi
  20103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20104. if test x$have_machine_joystick = xyes; then
  20105. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20106. fi
  20107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20108. $as_echo "$have_machine_joystick" >&6; }
  20109. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20110. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20111. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20112. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20113. have_joystick=yes
  20114. fi
  20115. CFLAGS="$save_CFLAGS"
  20116. fi
  20117. ;;
  20118. esac
  20119. }
  20120. CheckClockGettime()
  20121. {
  20122. # Check whether --enable-clock_gettime was given.
  20123. if test "${enable_clock_gettime+set}" = set; then :
  20124. enableval=$enable_clock_gettime;
  20125. else
  20126. enable_clock_gettime=yes
  20127. fi
  20128. if test x$enable_clock_gettime = xyes; then
  20129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20130. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20131. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20132. $as_echo_n "(cached) " >&6
  20133. else
  20134. ac_check_lib_save_LIBS=$LIBS
  20135. LIBS="-lrt $LIBS"
  20136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20137. /* end confdefs.h. */
  20138. /* Override any GCC internal prototype to avoid an error.
  20139. Use char because int might match the return type of a GCC
  20140. builtin and then its argument prototype would still apply. */
  20141. #ifdef __cplusplus
  20142. extern "C"
  20143. #endif
  20144. char clock_gettime ();
  20145. int
  20146. main ()
  20147. {
  20148. return clock_gettime ();
  20149. ;
  20150. return 0;
  20151. }
  20152. _ACEOF
  20153. if ac_fn_c_try_link "$LINENO"; then :
  20154. ac_cv_lib_rt_clock_gettime=yes
  20155. else
  20156. ac_cv_lib_rt_clock_gettime=no
  20157. fi
  20158. rm -f core conftest.err conftest.$ac_objext \
  20159. conftest$ac_exeext conftest.$ac_ext
  20160. LIBS=$ac_check_lib_save_LIBS
  20161. fi
  20162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20163. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20164. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20165. have_clock_gettime=yes
  20166. fi
  20167. if test x$have_clock_gettime = xyes; then
  20168. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20169. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20170. else
  20171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20172. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20173. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20174. $as_echo_n "(cached) " >&6
  20175. else
  20176. ac_check_lib_save_LIBS=$LIBS
  20177. LIBS="-lc $LIBS"
  20178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20179. /* end confdefs.h. */
  20180. /* Override any GCC internal prototype to avoid an error.
  20181. Use char because int might match the return type of a GCC
  20182. builtin and then its argument prototype would still apply. */
  20183. #ifdef __cplusplus
  20184. extern "C"
  20185. #endif
  20186. char clock_gettime ();
  20187. int
  20188. main ()
  20189. {
  20190. return clock_gettime ();
  20191. ;
  20192. return 0;
  20193. }
  20194. _ACEOF
  20195. if ac_fn_c_try_link "$LINENO"; then :
  20196. ac_cv_lib_c_clock_gettime=yes
  20197. else
  20198. ac_cv_lib_c_clock_gettime=no
  20199. fi
  20200. rm -f core conftest.err conftest.$ac_objext \
  20201. conftest$ac_exeext conftest.$ac_ext
  20202. LIBS=$ac_check_lib_save_LIBS
  20203. fi
  20204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20205. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20206. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20207. have_clock_gettime=yes
  20208. fi
  20209. if test x$have_clock_gettime = xyes; then
  20210. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20211. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20212. fi
  20213. fi
  20214. fi
  20215. }
  20216. CheckLinuxVersion()
  20217. {
  20218. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20219. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20220. have_linux_version_h=yes
  20221. fi
  20222. if test x$have_linux_version_h = xyes; then
  20223. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20224. fi
  20225. }
  20226. CheckRPATH()
  20227. {
  20228. # Check whether --enable-rpath was given.
  20229. if test "${enable_rpath+set}" = set; then :
  20230. enableval=$enable_rpath;
  20231. else
  20232. enable_rpath=yes
  20233. fi
  20234. }
  20235. CheckWarnAll
  20236. case "$host" in
  20237. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20238. case "$host" in
  20239. *-*-android*)
  20240. # Android
  20241. ARCH=android
  20242. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20243. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20244. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20245. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20246. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20247. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20248. if test x$enable_video = xyes; then
  20249. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20250. # FIXME: confdefs? Not AC_DEFINE?
  20251. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20252. SUMMARY_video="${SUMMARY_video} android"
  20253. fi
  20254. ;;
  20255. *-*-linux*) ARCH=linux ;;
  20256. *-*-uclinux*) ARCH=linux ;;
  20257. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20258. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20259. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20260. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20261. *-*-bsdi*) ARCH=bsdi ;;
  20262. *-*-freebsd*) ARCH=freebsd ;;
  20263. *-*-dragonfly*) ARCH=freebsd ;;
  20264. *-*-netbsd*) ARCH=netbsd ;;
  20265. *-*-openbsd*) ARCH=openbsd ;;
  20266. *-*-sysv5*) ARCH=sysv5 ;;
  20267. *-*-solaris*) ARCH=solaris ;;
  20268. *-*-hpux*) ARCH=hpux ;;
  20269. *-*-aix*) ARCH=aix ;;
  20270. *-*-minix*) ARCH=minix ;;
  20271. *-*-nto*) ARCH=nto
  20272. CheckQNXVideo
  20273. ;;
  20274. esac
  20275. CheckVisibilityHidden
  20276. CheckDeclarationAfterStatement
  20277. CheckDummyVideo
  20278. CheckDiskAudio
  20279. CheckDummyAudio
  20280. CheckDLOPEN
  20281. CheckOSS
  20282. CheckALSA
  20283. CheckPulseAudio
  20284. CheckJACK
  20285. CheckARTSC
  20286. CheckESD
  20287. CheckNAS
  20288. CheckSNDIO
  20289. CheckFusionSound
  20290. CheckLibSampleRate
  20291. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  20292. CheckRPI
  20293. CheckX11
  20294. CheckDirectFB
  20295. CheckKMSDRM
  20296. CheckOpenGLX11
  20297. CheckOpenGLESX11
  20298. CheckVulkan
  20299. CheckMir
  20300. CheckWayland
  20301. CheckLibUDev
  20302. CheckDBus
  20303. CheckIME
  20304. CheckIBus
  20305. CheckFcitx
  20306. case $ARCH in
  20307. linux)
  20308. CheckInputEvents
  20309. CheckInputKD
  20310. ;;
  20311. esac
  20312. CheckTslib
  20313. CheckUSBHID
  20314. CheckPTHREAD
  20315. CheckClockGettime
  20316. CheckLinuxVersion
  20317. CheckRPATH
  20318. CheckVivanteVideo
  20319. # Set up files for the audio library
  20320. if test x$enable_audio = xyes; then
  20321. case $ARCH in
  20322. sysv5|solaris|hpux)
  20323. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  20324. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  20325. SUMMARY_audio="${SUMMARY_audio} sun"
  20326. have_audio=yes
  20327. ;;
  20328. netbsd) # Don't use this on OpenBSD, it's busted.
  20329. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  20330. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  20331. SUMMARY_audio="${SUMMARY_audio} netbsd"
  20332. have_audio=yes
  20333. ;;
  20334. aix)
  20335. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  20336. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  20337. SUMMARY_audio="${SUMMARY_audio} paudio"
  20338. have_audio=yes
  20339. ;;
  20340. android)
  20341. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  20342. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  20343. SUMMARY_audio="${SUMMARY_audio} android"
  20344. have_audio=yes
  20345. ;;
  20346. nto)
  20347. CheckQNXAudio
  20348. ;;
  20349. esac
  20350. fi
  20351. # Set up files for the joystick library
  20352. if test x$enable_joystick = xyes; then
  20353. case $ARCH in
  20354. linux)
  20355. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  20356. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  20357. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20358. have_joystick=yes
  20359. ;;
  20360. android)
  20361. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  20362. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  20363. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20364. have_joystick=yes
  20365. ;;
  20366. esac
  20367. fi
  20368. # Set up files for the haptic library
  20369. if test x$enable_haptic = xyes; then
  20370. case $ARCH in
  20371. linux)
  20372. if test x$use_input_events = xyes; then
  20373. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  20374. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  20375. have_haptic=yes
  20376. fi
  20377. ;;
  20378. android)
  20379. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  20380. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  20381. have_haptic=yes
  20382. ;;
  20383. esac
  20384. fi
  20385. # Set up files for the power library
  20386. if test x$enable_power = xyes; then
  20387. case $ARCH in
  20388. linux)
  20389. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  20390. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  20391. have_power=yes
  20392. ;;
  20393. android)
  20394. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  20395. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  20396. have_power=yes
  20397. ;;
  20398. esac
  20399. fi
  20400. # Set up files for the filesystem library
  20401. if test x$enable_filesystem = xyes; then
  20402. case $ARCH in
  20403. android)
  20404. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  20405. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  20406. have_filesystem=yes
  20407. ;;
  20408. *)
  20409. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  20410. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  20411. have_filesystem=yes
  20412. ;;
  20413. esac
  20414. fi
  20415. # Set up files for the timer library
  20416. if test x$enable_timers = xyes; then
  20417. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20418. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20419. have_timers=yes
  20420. fi
  20421. # Set up files for udev hotplugging support
  20422. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  20423. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  20424. fi
  20425. # Set up files for evdev input
  20426. if test x$use_input_events = xyes; then
  20427. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  20428. fi
  20429. # Set up other core UNIX files
  20430. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20431. ;;
  20432. *-*-cygwin* | *-*-mingw32*)
  20433. ARCH=win32
  20434. if test "$build" != "$host"; then # cross-compiling
  20435. # Default cross-compile location
  20436. ac_default_prefix=/usr/local/cross-tools/$host
  20437. else
  20438. # Look for the location of the tools and install there
  20439. if test "$BUILD_PREFIX" != ""; then
  20440. ac_default_prefix=$BUILD_PREFIX
  20441. fi
  20442. fi
  20443. CheckDeclarationAfterStatement
  20444. CheckDummyVideo
  20445. CheckDiskAudio
  20446. CheckDummyAudio
  20447. CheckWINDOWS
  20448. CheckWINDOWSGL
  20449. CheckWINDOWSGLES
  20450. CheckVulkan
  20451. CheckDIRECTX
  20452. # Set up the core platform files
  20453. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  20454. # Set up files for the video library
  20455. if test x$enable_video = xyes; then
  20456. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  20457. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  20458. have_video=yes
  20459. # Check whether --enable-render-d3d was given.
  20460. if test "${enable_render_d3d+set}" = set; then :
  20461. enableval=$enable_render_d3d;
  20462. else
  20463. enable_render_d3d=yes
  20464. fi
  20465. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  20466. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  20467. fi
  20468. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  20469. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  20470. fi
  20471. fi
  20472. # Set up files for the audio library
  20473. if test x$enable_audio = xyes; then
  20474. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  20475. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  20476. if test x$have_dsound = xyes; then
  20477. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  20478. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  20479. fi
  20480. if test x$have_xaudio2 = xyes; then
  20481. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  20482. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  20483. fi
  20484. if test x$have_wasapi = xyes; then
  20485. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  20486. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  20487. fi
  20488. have_audio=yes
  20489. fi
  20490. # Set up files for the joystick library
  20491. if test x$enable_joystick = xyes; then
  20492. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20493. if test x$have_xinput = xyes; then
  20494. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  20495. fi
  20496. if test x$have_dinput = xyes; then
  20497. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  20498. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  20499. fi
  20500. else
  20501. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  20502. fi
  20503. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  20504. have_joystick=yes
  20505. fi
  20506. if test x$enable_haptic = xyes; then
  20507. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20508. if test x$have_xinput = xyes; then
  20509. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  20510. fi
  20511. if test x$have_dinput = xyes; then
  20512. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  20513. fi
  20514. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  20515. have_haptic=yes
  20516. fi
  20517. fi
  20518. if test x$enable_power = xyes; then
  20519. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  20520. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  20521. have_power=yes
  20522. fi
  20523. if test x$enable_filesystem = xyes; then
  20524. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  20525. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  20526. have_filesystem=yes
  20527. fi
  20528. # Set up files for the thread library
  20529. if test x$enable_threads = xyes; then
  20530. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  20531. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  20532. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  20533. have_threads=yes
  20534. fi
  20535. # Set up files for the timer library
  20536. if test x$enable_timers = xyes; then
  20537. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  20538. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  20539. have_timers=yes
  20540. fi
  20541. # Set up files for the shared object loading library
  20542. if test x$enable_loadso = xyes; then
  20543. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20544. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20545. have_loadso=yes
  20546. fi
  20547. # Set up the system libraries we need
  20548. if test -f /lib/w32api/libuuid.a; then
  20549. LIBUUID=/lib/w32api/libuuid.a
  20550. else
  20551. LIBUUID=-luuid
  20552. fi
  20553. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
  20554. # The Windows platform requires special setup
  20555. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20556. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20557. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20558. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20559. # Check to see if this is a mingw or cygwin build
  20560. have_mingw32=
  20561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20562. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20563. if ${ac_cv_lib_mingw32_main+:} false; then :
  20564. $as_echo_n "(cached) " >&6
  20565. else
  20566. ac_check_lib_save_LIBS=$LIBS
  20567. LIBS="-lmingw32 $LIBS"
  20568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20569. /* end confdefs.h. */
  20570. int
  20571. main ()
  20572. {
  20573. return main ();
  20574. ;
  20575. return 0;
  20576. }
  20577. _ACEOF
  20578. if ac_fn_c_try_link "$LINENO"; then :
  20579. ac_cv_lib_mingw32_main=yes
  20580. else
  20581. ac_cv_lib_mingw32_main=no
  20582. fi
  20583. rm -f core conftest.err conftest.$ac_objext \
  20584. conftest$ac_exeext conftest.$ac_ext
  20585. LIBS=$ac_check_lib_save_LIBS
  20586. fi
  20587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20588. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20589. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20590. have_mingw32=yes
  20591. fi
  20592. if test x$have_mingw32 = xyes; then
  20593. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20594. else
  20595. SDL_LIBS="-lcygwin $SDL_LIBS"
  20596. fi
  20597. ;;
  20598. *-*-beos*)
  20599. as_fn_error $? "
  20600. *** BeOS support has been removed as of SDL 2.0.2.
  20601. " "$LINENO" 5
  20602. ;;
  20603. *-*-haiku*)
  20604. ARCH=haiku
  20605. ac_default_prefix=/boot/system
  20606. CheckDummyVideo
  20607. CheckDiskAudio
  20608. CheckDummyAudio
  20609. CheckDLOPEN
  20610. CheckHaikuVideo
  20611. CheckHaikuGL
  20612. CheckPTHREAD
  20613. # Set up files for the audio library
  20614. if test x$enable_audio = xyes; then
  20615. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20616. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20617. SUMMARY_audio="${SUMMARY_audio} haiku"
  20618. have_audio=yes
  20619. fi
  20620. # Set up files for the joystick library
  20621. if test x$enable_joystick = xyes; then
  20622. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20623. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20624. have_joystick=yes
  20625. fi
  20626. # Set up files for the timer library
  20627. if test x$enable_timers = xyes; then
  20628. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20629. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20630. have_timers=yes
  20631. fi
  20632. # Set up files for the system power library
  20633. if test x$enable_power = xyes; then
  20634. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20635. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20636. have_power=yes
  20637. fi
  20638. # Set up files for the system filesystem library
  20639. if test x$enable_filesystem = xyes; then
  20640. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20641. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20642. have_filesystem=yes
  20643. fi
  20644. # The Haiku platform requires special setup.
  20645. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20646. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  20647. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  20648. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  20649. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  20650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  20651. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  20652. if eval \${$as_ac_File+:} false; then :
  20653. $as_echo_n "(cached) " >&6
  20654. else
  20655. test "$cross_compiling" = yes &&
  20656. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  20657. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  20658. eval "$as_ac_File=yes"
  20659. else
  20660. eval "$as_ac_File=no"
  20661. fi
  20662. fi
  20663. eval ac_res=\$$as_ac_File
  20664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20665. $as_echo "$ac_res" >&6; }
  20666. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  20667. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  20668. else
  20669. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  20670. fi
  20671. ;;
  20672. arm*-apple-darwin*|*-ios-*)
  20673. ARCH=ios
  20674. CheckVisibilityHidden
  20675. CheckDeclarationAfterStatement
  20676. CheckDummyVideo
  20677. CheckDiskAudio
  20678. CheckDummyAudio
  20679. CheckDLOPEN
  20680. CheckPTHREAD
  20681. CheckVulkan
  20682. # Set up files for the audio library
  20683. if test x$enable_audio = xyes; then
  20684. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20685. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20686. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20687. have_audio=yes
  20688. fi
  20689. # Set up files for the joystick library
  20690. if test x$enable_joystick = xyes; then
  20691. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20692. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20693. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20694. have_joystick=yes
  20695. fi
  20696. # Set up files for the haptic library
  20697. #if test x$enable_haptic = xyes; then
  20698. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20699. # have_haptic=yes
  20700. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20701. #fi
  20702. # Set up files for the power library
  20703. if test x$enable_power = xyes; then
  20704. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  20705. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20706. have_power=yes
  20707. fi
  20708. # Set up files for the filesystem library
  20709. if test x$enable_filesystem = xyes; then
  20710. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20711. have_filesystem=yes
  20712. fi
  20713. # Set up additional files for the file library
  20714. if test x$enable_file = xyes; then
  20715. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20716. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20717. fi
  20718. # Set up files for the timer library
  20719. if test x$enable_timers = xyes; then
  20720. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20721. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20722. have_timers=yes
  20723. fi
  20724. # Set up other core UNIX files
  20725. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20726. # The iOS platform requires special setup.
  20727. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  20728. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20729. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20730. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20731. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20732. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20733. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20734. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  20735. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20736. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20737. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20738. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20739. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20740. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20741. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20742. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20743. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20744. ;;
  20745. *-*-darwin* )
  20746. # This could be either full "Mac OS X", or plain "Darwin" which is
  20747. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20748. # Next line is broken, and a few files below require Mac OS X (full)
  20749. ARCH=macosx
  20750. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20751. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20752. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20753. CheckVisibilityHidden
  20754. CheckDeclarationAfterStatement
  20755. CheckDummyVideo
  20756. CheckDiskAudio
  20757. CheckDummyAudio
  20758. CheckDLOPEN
  20759. CheckCOCOA
  20760. CheckX11
  20761. CheckMacGL
  20762. CheckOpenGLX11
  20763. CheckVulkan
  20764. CheckPTHREAD
  20765. # Set up files for the audio library
  20766. if test x$enable_audio = xyes; then
  20767. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20768. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20769. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  20770. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20771. have_audio=yes
  20772. fi
  20773. # Set up files for the joystick library
  20774. if test x$enable_joystick = xyes; then
  20775. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20776. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20777. have_joystick=yes
  20778. fi
  20779. # Set up files for the haptic library
  20780. if test x$enable_haptic = xyes; then
  20781. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20782. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20783. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20784. have_haptic=yes
  20785. fi
  20786. # Set up files for the power library
  20787. if test x$enable_power = xyes; then
  20788. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20789. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20790. have_power=yes
  20791. fi
  20792. # Set up files for the filesystem library
  20793. if test x$enable_filesystem = xyes; then
  20794. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20795. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20796. have_filesystem=yes
  20797. fi
  20798. # Set up files for the timer library
  20799. if test x$enable_timers = xyes; then
  20800. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20801. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20802. have_timers=yes
  20803. fi
  20804. # Set up additional files for the file library
  20805. if test x$enable_file = xyes; then
  20806. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20807. fi
  20808. # Set up other core UNIX files
  20809. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20810. # The Mac OS X platform requires special setup.
  20811. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  20812. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  20813. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  20814. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  20815. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  20816. ;;
  20817. *-nacl|*-pnacl)
  20818. ARCH=nacl
  20819. CheckNativeClient
  20820. CheckDummyAudio
  20821. CheckDummyVideo
  20822. CheckInputEvents
  20823. CheckPTHREAD
  20824. # Set up files for the timer library
  20825. if test x$enable_timers = xyes; then
  20826. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20827. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20828. have_timers=yes
  20829. fi
  20830. if test x$enable_filesystem = xyes; then
  20831. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20832. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20833. have_filesystem=yes
  20834. fi
  20835. ;;
  20836. *-*-emscripten* )
  20837. if test x$enable_video = xyes; then
  20838. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20839. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  20840. have_video=yes
  20841. SUMMARY_video="${SUMMARY_video} emscripten"
  20842. fi
  20843. if test x$enable_audio = xyes; then
  20844. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20845. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  20846. have_audio=yes
  20847. SUMMARY_audio="${SUMMARY_audio} emscripten"
  20848. fi
  20849. CheckVisibilityHidden
  20850. CheckDeclarationAfterStatement
  20851. CheckDummyVideo
  20852. CheckDiskAudio
  20853. CheckDummyAudio
  20854. CheckDLOPEN
  20855. CheckClockGettime
  20856. CheckEmscriptenGLES
  20857. # Set up files for the power library
  20858. if test x$enable_power = xyes; then
  20859. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  20860. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  20861. have_power=yes
  20862. fi
  20863. # Set up files for the power library
  20864. if test x$enable_joystick = xyes; then
  20865. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  20866. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  20867. have_joystick=yes
  20868. fi
  20869. # Set up files for the filesystem library
  20870. if test x$enable_filesystem = xyes; then
  20871. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  20872. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  20873. have_filesystem=yes
  20874. fi
  20875. # Set up files for the timer library
  20876. if test x$enable_timers = xyes; then
  20877. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20878. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20879. have_timers=yes
  20880. fi
  20881. ;;
  20882. *)
  20883. as_fn_error $? "
  20884. *** Unsupported host: Please add to configure.in
  20885. " "$LINENO" 5
  20886. ;;
  20887. esac
  20888. # Verify that we have all the platform specific files we need
  20889. if test x$have_joystick != xyes; then
  20890. if test x$enable_joystick = xyes; then
  20891. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  20892. fi
  20893. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  20894. fi
  20895. if test x$have_haptic != xyes; then
  20896. if test x$enable_haptic = xyes; then
  20897. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  20898. fi
  20899. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  20900. fi
  20901. if test x$have_threads != xyes; then
  20902. if test x$enable_threads = xyes; then
  20903. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  20904. fi
  20905. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  20906. fi
  20907. if test x$have_timers != xyes; then
  20908. if test x$enable_timers = xyes; then
  20909. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  20910. fi
  20911. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  20912. fi
  20913. if test x$have_filesystem != xyes; then
  20914. if test x$enable_filesystem = xyes; then
  20915. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  20916. fi
  20917. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  20918. fi
  20919. if test x$have_loadso != xyes; then
  20920. if test x$enable_loadso = xyes; then
  20921. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  20922. fi
  20923. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  20924. fi
  20925. if test x$SDLMAIN_SOURCES = x; then
  20926. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  20927. fi
  20928. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  20929. if test x$video_wayland = xyes; then
  20930. WAYLAND_CORE_PROTOCOL_SOURCE='$(gen)/wayland-protocol.c'
  20931. WAYLAND_CORE_PROTOCOL_HEADER='$(gen)/wayland-client-protocol.h'
  20932. WAYLAND_PROTOCOLS_UNSTABLE_SOURCES=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20933. sed 's,[^ ]\+,\\$(gen)/&-protocol.c,g'`
  20934. WAYLAND_PROTOCOLS_UNSTABLE_HEADERS=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20935. sed 's,[^ ]\+,\\$(gen)/&-client-protocol.h,g'`
  20936. GEN_SOURCES="$GEN_SOURCES $WAYLAND_CORE_PROTOCOL_SOURCE $WAYLAND_PROTOCOLS_UNSTABLE_SOURCES"
  20937. GEN_HEADERS="$GEN_HEADERS $WAYLAND_CORE_PROTOCOL_HEADER $WAYLAND_PROTOCOLS_UNSTABLE_HEADERS"
  20938. WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS="
  20939. $WAYLAND_CORE_PROTOCOL_SOURCE: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20940. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20941. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) code \$< \$@"
  20942. WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS="
  20943. $WAYLAND_CORE_PROTOCOL_HEADER: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20944. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20945. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) client-header \$< \$@"
  20946. WAYLAND_CORE_PROTOCOL_OBJECT="
  20947. \$(objects)/`echo $WAYLAND_CORE_PROTOCOL_SOURCE | sed 's/\$(gen)\/\(.*\).c$/\1.lo/'`: $WAYLAND_CORE_PROTOCOL_SOURCE
  20948. \$(RUN_CMD_CC)\$(LIBTOOL) --tag=CC --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \$< -o \$@"
  20949. WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20950. do echo ; echo \$p | sed\
  20951. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-client-protocol.h: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20952. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20953. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@," ; done`
  20954. WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20955. do echo ; echo \$p | sed\
  20956. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-protocol.c: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20957. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20958. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@," ; done`
  20959. WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20960. do echo ; echo \$p | sed\
  20961. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\\$(objects)/&-protocol.lo: \\$(gen)/&-protocol.c \\$(gen)/&-client-protocol.h\\\\
  20962. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@," ; done`
  20963. WAYLAND_PROTOCOLS_DEPENDS="
  20964. $WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS
  20965. $WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS
  20966. $WAYLAND_CORE_PROTOCOL_OBJECT
  20967. $WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS
  20968. $WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS
  20969. $WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE
  20970. "
  20971. fi
  20972. OBJECTS=`echo $SOURCES`
  20973. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  20974. for EXT in asm cc m c S; do
  20975. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  20976. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  20977. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  20978. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20979. done
  20980. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20981. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  20982. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  20983. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  20984. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  20985. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  20986. \\$(WINDRES) \\$< \\$@,g"`
  20987. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  20988. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  20989. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20990. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20991. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  20992. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20993. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  20994. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  20995. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20996. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20997. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  20998. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20999. # Set runtime shared library paths as needed
  21000. if test "x$enable_rpath" = "xyes"; then
  21001. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21002. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21004. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21005. have_enable_new_dtags=no
  21006. save_LDFLAGS="$LDFLAGS"
  21007. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21009. /* end confdefs.h. */
  21010. int
  21011. main ()
  21012. {
  21013. ;
  21014. return 0;
  21015. }
  21016. _ACEOF
  21017. if ac_fn_c_try_link "$LINENO"; then :
  21018. have_enable_new_dtags=yes
  21019. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21020. fi
  21021. rm -f core conftest.err conftest.$ac_objext \
  21022. conftest$ac_exeext conftest.$ac_ext
  21023. LDFLAGS="$save_LDFLAGS"
  21024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21025. $as_echo "$have_enable_new_dtags" >&6; }
  21026. fi
  21027. if test $ARCH = solaris; then
  21028. SDL_RLD_FLAGS="-R\${libdir}"
  21029. fi
  21030. else
  21031. SDL_RLD_FLAGS=""
  21032. fi
  21033. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  21034. if test x$enable_shared = xyes; then
  21035. ENABLE_SHARED_TRUE=
  21036. ENABLE_SHARED_FALSE="#"
  21037. else
  21038. ENABLE_SHARED_TRUE="#"
  21039. ENABLE_SHARED_FALSE=
  21040. fi
  21041. if test x$enable_static = xyes; then
  21042. ENABLE_STATIC_TRUE=
  21043. ENABLE_STATIC_FALSE="#"
  21044. else
  21045. ENABLE_STATIC_TRUE="#"
  21046. ENABLE_STATIC_FALSE=
  21047. fi
  21048. cat >Makefile.rules <<__EOF__
  21049. # Build rules for objects
  21050. -include \$(OBJECTS:.lo=.d)
  21051. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21052. $srcdir/src/SDL.c: update-revision
  21053. $DEPENDS
  21054. $VERSION_DEPENDS
  21055. $SDLMAIN_DEPENDS
  21056. $SDLTEST_DEPENDS
  21057. $WAYLAND_PROTOCOLS_DEPENDS
  21058. __EOF__
  21059. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  21060. ac_config_commands="$ac_config_commands sdl2_config"
  21061. SUMMARY="SDL2 Configure Summary:\n"
  21062. if test x$enable_shared = xyes; then
  21063. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21064. fi
  21065. if test x$enable_static = xyes; then
  21066. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21067. fi
  21068. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21069. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21070. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21071. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21072. if test x$have_x = xyes; then
  21073. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21074. fi
  21075. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21076. if test x$have_samplerate_h_hdr = xyes; then
  21077. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21078. else
  21079. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21080. fi
  21081. if test x$have_libudev_h_hdr = xyes; then
  21082. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21083. else
  21084. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21085. fi
  21086. if test x$have_dbus_dbus_h_hdr = xyes; then
  21087. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21088. else
  21089. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21090. fi
  21091. if test x$enable_ime = xyes; then
  21092. SUMMARY="${SUMMARY}Using ime : YES\n"
  21093. else
  21094. SUMMARY="${SUMMARY}Using ime : NO\n"
  21095. fi
  21096. if test x$have_ibus_ibus_h_hdr = xyes; then
  21097. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21098. else
  21099. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21100. fi
  21101. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21102. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21103. else
  21104. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21105. fi
  21106. ac_config_commands="$ac_config_commands summary"
  21107. cat >confcache <<\_ACEOF
  21108. # This file is a shell script that caches the results of configure
  21109. # tests run on this system so they can be shared between configure
  21110. # scripts and configure runs, see configure's option --config-cache.
  21111. # It is not useful on other systems. If it contains results you don't
  21112. # want to keep, you may remove or edit it.
  21113. #
  21114. # config.status only pays attention to the cache file if you give it
  21115. # the --recheck option to rerun configure.
  21116. #
  21117. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21118. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21119. # following values.
  21120. _ACEOF
  21121. # The following way of writing the cache mishandles newlines in values,
  21122. # but we know of no workaround that is simple, portable, and efficient.
  21123. # So, we kill variables containing newlines.
  21124. # Ultrix sh set writes to stderr and can't be redirected directly,
  21125. # and sets the high bit in the cache file unless we assign to the vars.
  21126. (
  21127. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21128. eval ac_val=\$$ac_var
  21129. case $ac_val in #(
  21130. *${as_nl}*)
  21131. case $ac_var in #(
  21132. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21133. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21134. esac
  21135. case $ac_var in #(
  21136. _ | IFS | as_nl) ;; #(
  21137. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21138. *) { eval $ac_var=; unset $ac_var;} ;;
  21139. esac ;;
  21140. esac
  21141. done
  21142. (set) 2>&1 |
  21143. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21144. *${as_nl}ac_space=\ *)
  21145. # `set' does not quote correctly, so add quotes: double-quote
  21146. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21147. sed -n \
  21148. "s/'/'\\\\''/g;
  21149. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21150. ;; #(
  21151. *)
  21152. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21153. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21154. ;;
  21155. esac |
  21156. sort
  21157. ) |
  21158. sed '
  21159. /^ac_cv_env_/b end
  21160. t clear
  21161. :clear
  21162. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21163. t end
  21164. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21165. :end' >>confcache
  21166. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21167. if test -w "$cache_file"; then
  21168. if test "x$cache_file" != "x/dev/null"; then
  21169. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21170. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21171. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21172. cat confcache >"$cache_file"
  21173. else
  21174. case $cache_file in #(
  21175. */* | ?:*)
  21176. mv -f confcache "$cache_file"$$ &&
  21177. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21178. *)
  21179. mv -f confcache "$cache_file" ;;
  21180. esac
  21181. fi
  21182. fi
  21183. else
  21184. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21185. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21186. fi
  21187. fi
  21188. rm -f confcache
  21189. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21190. # Let make expand exec_prefix.
  21191. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21192. DEFS=-DHAVE_CONFIG_H
  21193. ac_libobjs=
  21194. ac_ltlibobjs=
  21195. U=
  21196. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21197. # 1. Remove the extension, and $U if already installed.
  21198. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21199. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21200. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21201. # will be set to the directory where LIBOBJS objects are built.
  21202. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21203. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21204. done
  21205. LIBOBJS=$ac_libobjs
  21206. LTLIBOBJS=$ac_ltlibobjs
  21207. : "${CONFIG_STATUS=./config.status}"
  21208. ac_write_fail=0
  21209. ac_clean_files_save=$ac_clean_files
  21210. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21211. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21212. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21213. as_write_fail=0
  21214. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21215. #! $SHELL
  21216. # Generated by $as_me.
  21217. # Run this file to recreate the current configuration.
  21218. # Compiler output produced by configure, useful for debugging
  21219. # configure, is in config.log if it exists.
  21220. debug=false
  21221. ac_cs_recheck=false
  21222. ac_cs_silent=false
  21223. SHELL=\${CONFIG_SHELL-$SHELL}
  21224. export SHELL
  21225. _ASEOF
  21226. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21227. ## -------------------- ##
  21228. ## M4sh Initialization. ##
  21229. ## -------------------- ##
  21230. # Be more Bourne compatible
  21231. DUALCASE=1; export DUALCASE # for MKS sh
  21232. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21233. emulate sh
  21234. NULLCMD=:
  21235. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21236. # is contrary to our usage. Disable this feature.
  21237. alias -g '${1+"$@"}'='"$@"'
  21238. setopt NO_GLOB_SUBST
  21239. else
  21240. case `(set -o) 2>/dev/null` in #(
  21241. *posix*) :
  21242. set -o posix ;; #(
  21243. *) :
  21244. ;;
  21245. esac
  21246. fi
  21247. as_nl='
  21248. '
  21249. export as_nl
  21250. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21251. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21252. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21253. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21254. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21255. # but without wasting forks for bash or zsh.
  21256. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21257. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21258. as_echo='print -r --'
  21259. as_echo_n='print -rn --'
  21260. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21261. as_echo='printf %s\n'
  21262. as_echo_n='printf %s'
  21263. else
  21264. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21265. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21266. as_echo_n='/usr/ucb/echo -n'
  21267. else
  21268. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21269. as_echo_n_body='eval
  21270. arg=$1;
  21271. case $arg in #(
  21272. *"$as_nl"*)
  21273. expr "X$arg" : "X\\(.*\\)$as_nl";
  21274. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21275. esac;
  21276. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21277. '
  21278. export as_echo_n_body
  21279. as_echo_n='sh -c $as_echo_n_body as_echo'
  21280. fi
  21281. export as_echo_body
  21282. as_echo='sh -c $as_echo_body as_echo'
  21283. fi
  21284. # The user is always right.
  21285. if test "${PATH_SEPARATOR+set}" != set; then
  21286. PATH_SEPARATOR=:
  21287. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21288. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21289. PATH_SEPARATOR=';'
  21290. }
  21291. fi
  21292. # IFS
  21293. # We need space, tab and new line, in precisely that order. Quoting is
  21294. # there to prevent editors from complaining about space-tab.
  21295. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21296. # splitting by setting IFS to empty value.)
  21297. IFS=" "" $as_nl"
  21298. # Find who we are. Look in the path if we contain no directory separator.
  21299. as_myself=
  21300. case $0 in #((
  21301. *[\\/]* ) as_myself=$0 ;;
  21302. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21303. for as_dir in $PATH
  21304. do
  21305. IFS=$as_save_IFS
  21306. test -z "$as_dir" && as_dir=.
  21307. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21308. done
  21309. IFS=$as_save_IFS
  21310. ;;
  21311. esac
  21312. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21313. # in which case we are not to be found in the path.
  21314. if test "x$as_myself" = x; then
  21315. as_myself=$0
  21316. fi
  21317. if test ! -f "$as_myself"; then
  21318. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21319. exit 1
  21320. fi
  21321. # Unset variables that we do not need and which cause bugs (e.g. in
  21322. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21323. # suppresses any "Segmentation fault" message there. '((' could
  21324. # trigger a bug in pdksh 5.2.14.
  21325. for as_var in BASH_ENV ENV MAIL MAILPATH
  21326. do eval test x\${$as_var+set} = xset \
  21327. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21328. done
  21329. PS1='$ '
  21330. PS2='> '
  21331. PS4='+ '
  21332. # NLS nuisances.
  21333. LC_ALL=C
  21334. export LC_ALL
  21335. LANGUAGE=C
  21336. export LANGUAGE
  21337. # CDPATH.
  21338. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21339. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21340. # ----------------------------------------
  21341. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21342. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21343. # script with STATUS, using 1 if that was 0.
  21344. as_fn_error ()
  21345. {
  21346. as_status=$1; test $as_status -eq 0 && as_status=1
  21347. if test "$4"; then
  21348. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21349. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21350. fi
  21351. $as_echo "$as_me: error: $2" >&2
  21352. as_fn_exit $as_status
  21353. } # as_fn_error
  21354. # as_fn_set_status STATUS
  21355. # -----------------------
  21356. # Set $? to STATUS, without forking.
  21357. as_fn_set_status ()
  21358. {
  21359. return $1
  21360. } # as_fn_set_status
  21361. # as_fn_exit STATUS
  21362. # -----------------
  21363. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21364. as_fn_exit ()
  21365. {
  21366. set +e
  21367. as_fn_set_status $1
  21368. exit $1
  21369. } # as_fn_exit
  21370. # as_fn_unset VAR
  21371. # ---------------
  21372. # Portably unset VAR.
  21373. as_fn_unset ()
  21374. {
  21375. { eval $1=; unset $1;}
  21376. }
  21377. as_unset=as_fn_unset
  21378. # as_fn_append VAR VALUE
  21379. # ----------------------
  21380. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21381. # advantage of any shell optimizations that allow amortized linear growth over
  21382. # repeated appends, instead of the typical quadratic growth present in naive
  21383. # implementations.
  21384. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21385. eval 'as_fn_append ()
  21386. {
  21387. eval $1+=\$2
  21388. }'
  21389. else
  21390. as_fn_append ()
  21391. {
  21392. eval $1=\$$1\$2
  21393. }
  21394. fi # as_fn_append
  21395. # as_fn_arith ARG...
  21396. # ------------------
  21397. # Perform arithmetic evaluation on the ARGs, and store the result in the
  21398. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  21399. # must be portable across $(()) and expr.
  21400. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  21401. eval 'as_fn_arith ()
  21402. {
  21403. as_val=$(( $* ))
  21404. }'
  21405. else
  21406. as_fn_arith ()
  21407. {
  21408. as_val=`expr "$@" || test $? -eq 1`
  21409. }
  21410. fi # as_fn_arith
  21411. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21412. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21413. as_expr=expr
  21414. else
  21415. as_expr=false
  21416. fi
  21417. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21418. as_basename=basename
  21419. else
  21420. as_basename=false
  21421. fi
  21422. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21423. as_dirname=dirname
  21424. else
  21425. as_dirname=false
  21426. fi
  21427. as_me=`$as_basename -- "$0" ||
  21428. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21429. X"$0" : 'X\(//\)$' \| \
  21430. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21431. $as_echo X/"$0" |
  21432. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21433. s//\1/
  21434. q
  21435. }
  21436. /^X\/\(\/\/\)$/{
  21437. s//\1/
  21438. q
  21439. }
  21440. /^X\/\(\/\).*/{
  21441. s//\1/
  21442. q
  21443. }
  21444. s/.*/./; q'`
  21445. # Avoid depending upon Character Ranges.
  21446. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21447. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21448. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21449. as_cr_digits='0123456789'
  21450. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21451. ECHO_C= ECHO_N= ECHO_T=
  21452. case `echo -n x` in #(((((
  21453. -n*)
  21454. case `echo 'xy\c'` in
  21455. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21456. xy) ECHO_C='\c';;
  21457. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  21458. ECHO_T=' ';;
  21459. esac;;
  21460. *)
  21461. ECHO_N='-n';;
  21462. esac
  21463. rm -f conf$$ conf$$.exe conf$$.file
  21464. if test -d conf$$.dir; then
  21465. rm -f conf$$.dir/conf$$.file
  21466. else
  21467. rm -f conf$$.dir
  21468. mkdir conf$$.dir 2>/dev/null
  21469. fi
  21470. if (echo >conf$$.file) 2>/dev/null; then
  21471. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21472. as_ln_s='ln -s'
  21473. # ... but there are two gotchas:
  21474. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21475. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21476. # In both cases, we have to default to `cp -pR'.
  21477. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21478. as_ln_s='cp -pR'
  21479. elif ln conf$$.file conf$$ 2>/dev/null; then
  21480. as_ln_s=ln
  21481. else
  21482. as_ln_s='cp -pR'
  21483. fi
  21484. else
  21485. as_ln_s='cp -pR'
  21486. fi
  21487. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21488. rmdir conf$$.dir 2>/dev/null
  21489. # as_fn_mkdir_p
  21490. # -------------
  21491. # Create "$as_dir" as a directory, including parents if necessary.
  21492. as_fn_mkdir_p ()
  21493. {
  21494. case $as_dir in #(
  21495. -*) as_dir=./$as_dir;;
  21496. esac
  21497. test -d "$as_dir" || eval $as_mkdir_p || {
  21498. as_dirs=
  21499. while :; do
  21500. case $as_dir in #(
  21501. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21502. *) as_qdir=$as_dir;;
  21503. esac
  21504. as_dirs="'$as_qdir' $as_dirs"
  21505. as_dir=`$as_dirname -- "$as_dir" ||
  21506. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21507. X"$as_dir" : 'X\(//\)[^/]' \| \
  21508. X"$as_dir" : 'X\(//\)$' \| \
  21509. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21510. $as_echo X"$as_dir" |
  21511. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21512. s//\1/
  21513. q
  21514. }
  21515. /^X\(\/\/\)[^/].*/{
  21516. s//\1/
  21517. q
  21518. }
  21519. /^X\(\/\/\)$/{
  21520. s//\1/
  21521. q
  21522. }
  21523. /^X\(\/\).*/{
  21524. s//\1/
  21525. q
  21526. }
  21527. s/.*/./; q'`
  21528. test -d "$as_dir" && break
  21529. done
  21530. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21531. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  21532. } # as_fn_mkdir_p
  21533. if mkdir -p . 2>/dev/null; then
  21534. as_mkdir_p='mkdir -p "$as_dir"'
  21535. else
  21536. test -d ./-p && rmdir ./-p
  21537. as_mkdir_p=false
  21538. fi
  21539. # as_fn_executable_p FILE
  21540. # -----------------------
  21541. # Test if FILE is an executable regular file.
  21542. as_fn_executable_p ()
  21543. {
  21544. test -f "$1" && test -x "$1"
  21545. } # as_fn_executable_p
  21546. as_test_x='test -x'
  21547. as_executable_p=as_fn_executable_p
  21548. # Sed expression to map a string onto a valid CPP name.
  21549. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21550. # Sed expression to map a string onto a valid variable name.
  21551. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21552. exec 6>&1
  21553. ## ----------------------------------- ##
  21554. ## Main body of $CONFIG_STATUS script. ##
  21555. ## ----------------------------------- ##
  21556. _ASEOF
  21557. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21558. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21559. # Save the log message, to keep $0 and so on meaningful, and to
  21560. # report actual input values of CONFIG_FILES etc. instead of their
  21561. # values after options handling.
  21562. ac_log="
  21563. This file was extended by $as_me, which was
  21564. generated by GNU Autoconf 2.69. Invocation command line was
  21565. CONFIG_FILES = $CONFIG_FILES
  21566. CONFIG_HEADERS = $CONFIG_HEADERS
  21567. CONFIG_LINKS = $CONFIG_LINKS
  21568. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21569. $ $0 $@
  21570. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21571. "
  21572. _ACEOF
  21573. case $ac_config_files in *"
  21574. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21575. esac
  21576. case $ac_config_headers in *"
  21577. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21578. esac
  21579. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21580. # Files that config.status was made for.
  21581. config_files="$ac_config_files"
  21582. config_headers="$ac_config_headers"
  21583. config_commands="$ac_config_commands"
  21584. _ACEOF
  21585. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21586. ac_cs_usage="\
  21587. \`$as_me' instantiates files and other configuration actions
  21588. from templates according to the current configuration. Unless the files
  21589. and actions are specified as TAGs, all are instantiated by default.
  21590. Usage: $0 [OPTION]... [TAG]...
  21591. -h, --help print this help, then exit
  21592. -V, --version print version number and configuration settings, then exit
  21593. --config print configuration, then exit
  21594. -q, --quiet, --silent
  21595. do not print progress messages
  21596. -d, --debug don't remove temporary files
  21597. --recheck update $as_me by reconfiguring in the same conditions
  21598. --file=FILE[:TEMPLATE]
  21599. instantiate the configuration file FILE
  21600. --header=FILE[:TEMPLATE]
  21601. instantiate the configuration header FILE
  21602. Configuration files:
  21603. $config_files
  21604. Configuration headers:
  21605. $config_headers
  21606. Configuration commands:
  21607. $config_commands
  21608. Report bugs to the package provider."
  21609. _ACEOF
  21610. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21611. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21612. ac_cs_version="\\
  21613. config.status
  21614. configured by $0, generated by GNU Autoconf 2.69,
  21615. with options \\"\$ac_cs_config\\"
  21616. Copyright (C) 2012 Free Software Foundation, Inc.
  21617. This config.status script is free software; the Free Software Foundation
  21618. gives unlimited permission to copy, distribute and modify it."
  21619. ac_pwd='$ac_pwd'
  21620. srcdir='$srcdir'
  21621. INSTALL='$INSTALL'
  21622. AWK='$AWK'
  21623. test -n "\$AWK" || AWK=awk
  21624. _ACEOF
  21625. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21626. # The default lists apply if the user does not specify any file.
  21627. ac_need_defaults=:
  21628. while test $# != 0
  21629. do
  21630. case $1 in
  21631. --*=?*)
  21632. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21633. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21634. ac_shift=:
  21635. ;;
  21636. --*=)
  21637. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21638. ac_optarg=
  21639. ac_shift=:
  21640. ;;
  21641. *)
  21642. ac_option=$1
  21643. ac_optarg=$2
  21644. ac_shift=shift
  21645. ;;
  21646. esac
  21647. case $ac_option in
  21648. # Handling of the options.
  21649. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21650. ac_cs_recheck=: ;;
  21651. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21652. $as_echo "$ac_cs_version"; exit ;;
  21653. --config | --confi | --conf | --con | --co | --c )
  21654. $as_echo "$ac_cs_config"; exit ;;
  21655. --debug | --debu | --deb | --de | --d | -d )
  21656. debug=: ;;
  21657. --file | --fil | --fi | --f )
  21658. $ac_shift
  21659. case $ac_optarg in
  21660. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21661. '') as_fn_error $? "missing file argument" ;;
  21662. esac
  21663. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21664. ac_need_defaults=false;;
  21665. --header | --heade | --head | --hea )
  21666. $ac_shift
  21667. case $ac_optarg in
  21668. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21669. esac
  21670. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21671. ac_need_defaults=false;;
  21672. --he | --h)
  21673. # Conflict between --help and --header
  21674. as_fn_error $? "ambiguous option: \`$1'
  21675. Try \`$0 --help' for more information.";;
  21676. --help | --hel | -h )
  21677. $as_echo "$ac_cs_usage"; exit ;;
  21678. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21679. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21680. ac_cs_silent=: ;;
  21681. # This is an error.
  21682. -*) as_fn_error $? "unrecognized option: \`$1'
  21683. Try \`$0 --help' for more information." ;;
  21684. *) as_fn_append ac_config_targets " $1"
  21685. ac_need_defaults=false ;;
  21686. esac
  21687. shift
  21688. done
  21689. ac_configure_extra_args=
  21690. if $ac_cs_silent; then
  21691. exec 6>/dev/null
  21692. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21693. fi
  21694. _ACEOF
  21695. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21696. if \$ac_cs_recheck; then
  21697. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21698. shift
  21699. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21700. CONFIG_SHELL='$SHELL'
  21701. export CONFIG_SHELL
  21702. exec "\$@"
  21703. fi
  21704. _ACEOF
  21705. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21706. exec 5>>config.log
  21707. {
  21708. echo
  21709. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21710. ## Running $as_me. ##
  21711. _ASBOX
  21712. $as_echo "$ac_log"
  21713. } >&5
  21714. _ACEOF
  21715. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21716. #
  21717. # INIT-COMMANDS
  21718. #
  21719. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21720. # if CDPATH is set.
  21721. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21722. sed_quote_subst='$sed_quote_subst'
  21723. double_quote_subst='$double_quote_subst'
  21724. delay_variable_subst='$delay_variable_subst'
  21725. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21726. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21727. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21728. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21729. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21730. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21731. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21732. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21733. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21734. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21735. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21736. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21737. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21738. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21739. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21740. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21741. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21742. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21743. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21744. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21745. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21746. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21747. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21748. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21749. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21750. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21751. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21752. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21753. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21754. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21755. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21756. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21757. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21758. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21759. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21760. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21761. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21762. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21763. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21764. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21765. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21766. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21767. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21768. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21769. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21770. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21771. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21772. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21773. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21774. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21775. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21776. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21777. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21778. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21779. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21780. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21781. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21782. 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"`'
  21783. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21784. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21785. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21786. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21787. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21788. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21789. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21790. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21791. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21792. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21793. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21794. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21795. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21796. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21797. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21798. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21799. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21800. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21801. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21802. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21803. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21804. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21805. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21806. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21807. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21808. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21809. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21810. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21811. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21812. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21813. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21814. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21815. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21816. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21817. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21818. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21819. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21820. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21821. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21822. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21823. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21824. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21825. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21826. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21827. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21828. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21829. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21830. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21831. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21832. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21833. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21834. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21835. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21836. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21837. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21838. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21839. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21840. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21841. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21842. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21843. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21844. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21845. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21846. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21847. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21848. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21849. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  21850. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21851. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21852. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21853. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21854. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21855. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21856. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21857. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21858. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21859. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21860. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21861. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21862. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21863. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21864. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21865. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21866. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21867. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21868. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21869. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21870. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21871. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21872. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21873. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21874. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21875. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21876. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21877. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21878. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21879. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21880. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21881. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21882. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21883. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21884. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  21885. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21886. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21887. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21888. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  21889. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  21890. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  21891. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  21892. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  21893. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  21894. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  21895. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  21896. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  21897. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21898. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21899. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21900. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21901. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21902. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21903. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21904. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21905. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21906. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21907. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  21908. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  21909. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  21910. LTCC='$LTCC'
  21911. LTCFLAGS='$LTCFLAGS'
  21912. compiler='$compiler_DEFAULT'
  21913. # A function that is used when there is no print builtin or printf.
  21914. func_fallback_echo ()
  21915. {
  21916. eval 'cat <<_LTECHO_EOF
  21917. \$1
  21918. _LTECHO_EOF'
  21919. }
  21920. # Quote evaled strings.
  21921. for var in AS \
  21922. DLLTOOL \
  21923. OBJDUMP \
  21924. SHELL \
  21925. ECHO \
  21926. PATH_SEPARATOR \
  21927. SED \
  21928. GREP \
  21929. EGREP \
  21930. FGREP \
  21931. LD \
  21932. NM \
  21933. LN_S \
  21934. lt_SP2NL \
  21935. lt_NL2SP \
  21936. reload_flag \
  21937. deplibs_check_method \
  21938. file_magic_cmd \
  21939. file_magic_glob \
  21940. want_nocaseglob \
  21941. sharedlib_from_linklib_cmd \
  21942. AR \
  21943. AR_FLAGS \
  21944. archiver_list_spec \
  21945. STRIP \
  21946. RANLIB \
  21947. CC \
  21948. CFLAGS \
  21949. compiler \
  21950. lt_cv_sys_global_symbol_pipe \
  21951. lt_cv_sys_global_symbol_to_cdecl \
  21952. lt_cv_sys_global_symbol_to_c_name_address \
  21953. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21954. nm_file_list_spec \
  21955. lt_prog_compiler_no_builtin_flag \
  21956. lt_prog_compiler_pic \
  21957. lt_prog_compiler_wl \
  21958. lt_prog_compiler_static \
  21959. lt_cv_prog_compiler_c_o \
  21960. need_locks \
  21961. MANIFEST_TOOL \
  21962. DSYMUTIL \
  21963. NMEDIT \
  21964. LIPO \
  21965. OTOOL \
  21966. OTOOL64 \
  21967. shrext_cmds \
  21968. export_dynamic_flag_spec \
  21969. whole_archive_flag_spec \
  21970. compiler_needs_object \
  21971. with_gnu_ld \
  21972. allow_undefined_flag \
  21973. no_undefined_flag \
  21974. hardcode_libdir_flag_spec \
  21975. hardcode_libdir_separator \
  21976. exclude_expsyms \
  21977. include_expsyms \
  21978. file_list_spec \
  21979. variables_saved_for_relink \
  21980. libname_spec \
  21981. library_names_spec \
  21982. soname_spec \
  21983. install_override_mode \
  21984. finish_eval \
  21985. old_striplib \
  21986. striplib \
  21987. compiler_lib_search_dirs \
  21988. predep_objects \
  21989. postdep_objects \
  21990. predeps \
  21991. postdeps \
  21992. compiler_lib_search_path \
  21993. LD_CXX \
  21994. reload_flag_CXX \
  21995. compiler_CXX \
  21996. lt_prog_compiler_no_builtin_flag_CXX \
  21997. lt_prog_compiler_pic_CXX \
  21998. lt_prog_compiler_wl_CXX \
  21999. lt_prog_compiler_static_CXX \
  22000. lt_cv_prog_compiler_c_o_CXX \
  22001. export_dynamic_flag_spec_CXX \
  22002. whole_archive_flag_spec_CXX \
  22003. compiler_needs_object_CXX \
  22004. with_gnu_ld_CXX \
  22005. allow_undefined_flag_CXX \
  22006. no_undefined_flag_CXX \
  22007. hardcode_libdir_flag_spec_CXX \
  22008. hardcode_libdir_separator_CXX \
  22009. exclude_expsyms_CXX \
  22010. include_expsyms_CXX \
  22011. file_list_spec_CXX \
  22012. compiler_lib_search_dirs_CXX \
  22013. predep_objects_CXX \
  22014. postdep_objects_CXX \
  22015. predeps_CXX \
  22016. postdeps_CXX \
  22017. compiler_lib_search_path_CXX; do
  22018. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22019. *[\\\\\\\`\\"\\\$]*)
  22020. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22021. ;;
  22022. *)
  22023. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22024. ;;
  22025. esac
  22026. done
  22027. # Double-quote double-evaled strings.
  22028. for var in reload_cmds \
  22029. old_postinstall_cmds \
  22030. old_postuninstall_cmds \
  22031. old_archive_cmds \
  22032. extract_expsyms_cmds \
  22033. old_archive_from_new_cmds \
  22034. old_archive_from_expsyms_cmds \
  22035. archive_cmds \
  22036. archive_expsym_cmds \
  22037. module_cmds \
  22038. module_expsym_cmds \
  22039. export_symbols_cmds \
  22040. prelink_cmds \
  22041. postlink_cmds \
  22042. postinstall_cmds \
  22043. postuninstall_cmds \
  22044. finish_cmds \
  22045. sys_lib_search_path_spec \
  22046. sys_lib_dlsearch_path_spec \
  22047. reload_cmds_CXX \
  22048. old_archive_cmds_CXX \
  22049. old_archive_from_new_cmds_CXX \
  22050. old_archive_from_expsyms_cmds_CXX \
  22051. archive_cmds_CXX \
  22052. archive_expsym_cmds_CXX \
  22053. module_cmds_CXX \
  22054. module_expsym_cmds_CXX \
  22055. export_symbols_cmds_CXX \
  22056. prelink_cmds_CXX \
  22057. postlink_cmds_CXX; do
  22058. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22059. *[\\\\\\\`\\"\\\$]*)
  22060. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22061. ;;
  22062. *)
  22063. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22064. ;;
  22065. esac
  22066. done
  22067. ac_aux_dir='$ac_aux_dir'
  22068. xsi_shell='$xsi_shell'
  22069. lt_shell_append='$lt_shell_append'
  22070. # See if we are running on zsh, and set the options which allow our
  22071. # commands through without removal of \ escapes INIT.
  22072. if test -n "\${ZSH_VERSION+set}" ; then
  22073. setopt NO_GLOB_SUBST
  22074. fi
  22075. PACKAGE='$PACKAGE'
  22076. VERSION='$VERSION'
  22077. TIMESTAMP='$TIMESTAMP'
  22078. RM='$RM'
  22079. ofile='$ofile'
  22080. SUMMARY="$SUMMARY"
  22081. _ACEOF
  22082. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22083. # Handling of arguments.
  22084. for ac_config_target in $ac_config_targets
  22085. do
  22086. case $ac_config_target in
  22087. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22088. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22089. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  22090. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  22091. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  22092. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  22093. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  22094. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  22095. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  22096. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22097. esac
  22098. done
  22099. # If the user did not use the arguments to specify the items to instantiate,
  22100. # then the envvar interface is used. Set only those that are not.
  22101. # We use the long form for the default assignment because of an extremely
  22102. # bizarre bug on SunOS 4.1.3.
  22103. if $ac_need_defaults; then
  22104. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22105. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22106. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22107. fi
  22108. # Have a temporary directory for convenience. Make it in the build tree
  22109. # simply because there is no reason against having it here, and in addition,
  22110. # creating and moving files from /tmp can sometimes cause problems.
  22111. # Hook for its removal unless debugging.
  22112. # Note that there is a small window in which the directory will not be cleaned:
  22113. # after its creation but before its name has been assigned to `$tmp'.
  22114. $debug ||
  22115. {
  22116. tmp= ac_tmp=
  22117. trap 'exit_status=$?
  22118. : "${ac_tmp:=$tmp}"
  22119. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22120. ' 0
  22121. trap 'as_fn_exit 1' 1 2 13 15
  22122. }
  22123. # Create a (secure) tmp directory for tmp files.
  22124. {
  22125. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22126. test -d "$tmp"
  22127. } ||
  22128. {
  22129. tmp=./conf$$-$RANDOM
  22130. (umask 077 && mkdir "$tmp")
  22131. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22132. ac_tmp=$tmp
  22133. # Set up the scripts for CONFIG_FILES section.
  22134. # No need to generate them if there are no CONFIG_FILES.
  22135. # This happens for instance with `./config.status config.h'.
  22136. if test -n "$CONFIG_FILES"; then
  22137. ac_cr=`echo X | tr X '\015'`
  22138. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22139. # But we know of no other shell where ac_cr would be empty at this
  22140. # point, so we can use a bashism as a fallback.
  22141. if test "x$ac_cr" = x; then
  22142. eval ac_cr=\$\'\\r\'
  22143. fi
  22144. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22145. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22146. ac_cs_awk_cr='\\r'
  22147. else
  22148. ac_cs_awk_cr=$ac_cr
  22149. fi
  22150. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22151. _ACEOF
  22152. {
  22153. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22154. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22155. echo "_ACEOF"
  22156. } >conf$$subs.sh ||
  22157. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22158. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22159. ac_delim='%!_!# '
  22160. for ac_last_try in false false false false false :; do
  22161. . ./conf$$subs.sh ||
  22162. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22163. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22164. if test $ac_delim_n = $ac_delim_num; then
  22165. break
  22166. elif $ac_last_try; then
  22167. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22168. else
  22169. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22170. fi
  22171. done
  22172. rm -f conf$$subs.sh
  22173. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22174. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22175. _ACEOF
  22176. sed -n '
  22177. h
  22178. s/^/S["/; s/!.*/"]=/
  22179. p
  22180. g
  22181. s/^[^!]*!//
  22182. :repl
  22183. t repl
  22184. s/'"$ac_delim"'$//
  22185. t delim
  22186. :nl
  22187. h
  22188. s/\(.\{148\}\)..*/\1/
  22189. t more1
  22190. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22191. p
  22192. n
  22193. b repl
  22194. :more1
  22195. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22196. p
  22197. g
  22198. s/.\{148\}//
  22199. t nl
  22200. :delim
  22201. h
  22202. s/\(.\{148\}\)..*/\1/
  22203. t more2
  22204. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22205. p
  22206. b
  22207. :more2
  22208. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22209. p
  22210. g
  22211. s/.\{148\}//
  22212. t delim
  22213. ' <conf$$subs.awk | sed '
  22214. /^[^""]/{
  22215. N
  22216. s/\n//
  22217. }
  22218. ' >>$CONFIG_STATUS || ac_write_fail=1
  22219. rm -f conf$$subs.awk
  22220. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22221. _ACAWK
  22222. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22223. for (key in S) S_is_set[key] = 1
  22224. FS = ""
  22225. }
  22226. {
  22227. line = $ 0
  22228. nfields = split(line, field, "@")
  22229. substed = 0
  22230. len = length(field[1])
  22231. for (i = 2; i < nfields; i++) {
  22232. key = field[i]
  22233. keylen = length(key)
  22234. if (S_is_set[key]) {
  22235. value = S[key]
  22236. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22237. len += length(value) + length(field[++i])
  22238. substed = 1
  22239. } else
  22240. len += 1 + keylen
  22241. }
  22242. print line
  22243. }
  22244. _ACAWK
  22245. _ACEOF
  22246. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22247. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22248. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22249. else
  22250. cat
  22251. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22252. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22253. _ACEOF
  22254. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22255. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22256. # trailing colons and then remove the whole line if VPATH becomes empty
  22257. # (actually we leave an empty line to preserve line numbers).
  22258. if test "x$srcdir" = x.; then
  22259. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22260. h
  22261. s///
  22262. s/^/:/
  22263. s/[ ]*$/:/
  22264. s/:\$(srcdir):/:/g
  22265. s/:\${srcdir}:/:/g
  22266. s/:@srcdir@:/:/g
  22267. s/^:*//
  22268. s/:*$//
  22269. x
  22270. s/\(=[ ]*\).*/\1/
  22271. G
  22272. s/\n//
  22273. s/^[^=]*=[ ]*$//
  22274. }'
  22275. fi
  22276. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22277. fi # test -n "$CONFIG_FILES"
  22278. # Set up the scripts for CONFIG_HEADERS section.
  22279. # No need to generate them if there are no CONFIG_HEADERS.
  22280. # This happens for instance with `./config.status Makefile'.
  22281. if test -n "$CONFIG_HEADERS"; then
  22282. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22283. BEGIN {
  22284. _ACEOF
  22285. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22286. # here-document in config.status, that substitutes the proper values into
  22287. # config.h.in to produce config.h.
  22288. # Create a delimiter string that does not exist in confdefs.h, to ease
  22289. # handling of long lines.
  22290. ac_delim='%!_!# '
  22291. for ac_last_try in false false :; do
  22292. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22293. if test -z "$ac_tt"; then
  22294. break
  22295. elif $ac_last_try; then
  22296. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22297. else
  22298. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22299. fi
  22300. done
  22301. # For the awk script, D is an array of macro values keyed by name,
  22302. # likewise P contains macro parameters if any. Preserve backslash
  22303. # newline sequences.
  22304. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22305. sed -n '
  22306. s/.\{148\}/&'"$ac_delim"'/g
  22307. t rset
  22308. :rset
  22309. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22310. t def
  22311. d
  22312. :def
  22313. s/\\$//
  22314. t bsnl
  22315. s/["\\]/\\&/g
  22316. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22317. D["\1"]=" \3"/p
  22318. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22319. d
  22320. :bsnl
  22321. s/["\\]/\\&/g
  22322. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22323. D["\1"]=" \3\\\\\\n"\\/p
  22324. t cont
  22325. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22326. t cont
  22327. d
  22328. :cont
  22329. n
  22330. s/.\{148\}/&'"$ac_delim"'/g
  22331. t clear
  22332. :clear
  22333. s/\\$//
  22334. t bsnlc
  22335. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22336. d
  22337. :bsnlc
  22338. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22339. b cont
  22340. ' <confdefs.h | sed '
  22341. s/'"$ac_delim"'/"\\\
  22342. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22343. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22344. for (key in D) D_is_set[key] = 1
  22345. FS = ""
  22346. }
  22347. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22348. line = \$ 0
  22349. split(line, arg, " ")
  22350. if (arg[1] == "#") {
  22351. defundef = arg[2]
  22352. mac1 = arg[3]
  22353. } else {
  22354. defundef = substr(arg[1], 2)
  22355. mac1 = arg[2]
  22356. }
  22357. split(mac1, mac2, "(") #)
  22358. macro = mac2[1]
  22359. prefix = substr(line, 1, index(line, defundef) - 1)
  22360. if (D_is_set[macro]) {
  22361. # Preserve the white space surrounding the "#".
  22362. print prefix "define", macro P[macro] D[macro]
  22363. next
  22364. } else {
  22365. # Replace #undef with comments. This is necessary, for example,
  22366. # in the case of _POSIX_SOURCE, which is predefined and required
  22367. # on some systems where configure will not decide to define it.
  22368. if (defundef == "undef") {
  22369. print "/*", prefix defundef, macro, "*/"
  22370. next
  22371. }
  22372. }
  22373. }
  22374. { print }
  22375. _ACAWK
  22376. _ACEOF
  22377. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22378. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  22379. fi # test -n "$CONFIG_HEADERS"
  22380. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22381. shift
  22382. for ac_tag
  22383. do
  22384. case $ac_tag in
  22385. :[FHLC]) ac_mode=$ac_tag; continue;;
  22386. esac
  22387. case $ac_mode$ac_tag in
  22388. :[FHL]*:*);;
  22389. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  22390. :[FH]-) ac_tag=-:-;;
  22391. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22392. esac
  22393. ac_save_IFS=$IFS
  22394. IFS=:
  22395. set x $ac_tag
  22396. IFS=$ac_save_IFS
  22397. shift
  22398. ac_file=$1
  22399. shift
  22400. case $ac_mode in
  22401. :L) ac_source=$1;;
  22402. :[FH])
  22403. ac_file_inputs=
  22404. for ac_f
  22405. do
  22406. case $ac_f in
  22407. -) ac_f="$ac_tmp/stdin";;
  22408. *) # Look for the file first in the build tree, then in the source tree
  22409. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22410. # because $ac_f cannot contain `:'.
  22411. test -f "$ac_f" ||
  22412. case $ac_f in
  22413. [\\/$]*) false;;
  22414. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22415. esac ||
  22416. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  22417. esac
  22418. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22419. as_fn_append ac_file_inputs " '$ac_f'"
  22420. done
  22421. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22422. # use $as_me), people would be surprised to read:
  22423. # /* config.h. Generated by config.status. */
  22424. configure_input='Generated from '`
  22425. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22426. `' by configure.'
  22427. if test x"$ac_file" != x-; then
  22428. configure_input="$ac_file. $configure_input"
  22429. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  22430. $as_echo "$as_me: creating $ac_file" >&6;}
  22431. fi
  22432. # Neutralize special characters interpreted by sed in replacement strings.
  22433. case $configure_input in #(
  22434. *\&* | *\|* | *\\* )
  22435. ac_sed_conf_input=`$as_echo "$configure_input" |
  22436. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22437. *) ac_sed_conf_input=$configure_input;;
  22438. esac
  22439. case $ac_tag in
  22440. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  22441. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  22442. esac
  22443. ;;
  22444. esac
  22445. ac_dir=`$as_dirname -- "$ac_file" ||
  22446. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22447. X"$ac_file" : 'X\(//\)[^/]' \| \
  22448. X"$ac_file" : 'X\(//\)$' \| \
  22449. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22450. $as_echo X"$ac_file" |
  22451. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22452. s//\1/
  22453. q
  22454. }
  22455. /^X\(\/\/\)[^/].*/{
  22456. s//\1/
  22457. q
  22458. }
  22459. /^X\(\/\/\)$/{
  22460. s//\1/
  22461. q
  22462. }
  22463. /^X\(\/\).*/{
  22464. s//\1/
  22465. q
  22466. }
  22467. s/.*/./; q'`
  22468. as_dir="$ac_dir"; as_fn_mkdir_p
  22469. ac_builddir=.
  22470. case "$ac_dir" in
  22471. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22472. *)
  22473. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22474. # A ".." for each directory in $ac_dir_suffix.
  22475. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22476. case $ac_top_builddir_sub in
  22477. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22478. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22479. esac ;;
  22480. esac
  22481. ac_abs_top_builddir=$ac_pwd
  22482. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22483. # for backward compatibility:
  22484. ac_top_builddir=$ac_top_build_prefix
  22485. case $srcdir in
  22486. .) # We are building in place.
  22487. ac_srcdir=.
  22488. ac_top_srcdir=$ac_top_builddir_sub
  22489. ac_abs_top_srcdir=$ac_pwd ;;
  22490. [\\/]* | ?:[\\/]* ) # Absolute name.
  22491. ac_srcdir=$srcdir$ac_dir_suffix;
  22492. ac_top_srcdir=$srcdir
  22493. ac_abs_top_srcdir=$srcdir ;;
  22494. *) # Relative name.
  22495. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22496. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22497. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22498. esac
  22499. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22500. case $ac_mode in
  22501. :F)
  22502. #
  22503. # CONFIG_FILE
  22504. #
  22505. case $INSTALL in
  22506. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22507. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22508. esac
  22509. _ACEOF
  22510. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22511. # If the template does not know about datarootdir, expand it.
  22512. # FIXME: This hack should be removed a few years after 2.60.
  22513. ac_datarootdir_hack=; ac_datarootdir_seen=
  22514. ac_sed_dataroot='
  22515. /datarootdir/ {
  22516. p
  22517. q
  22518. }
  22519. /@datadir@/p
  22520. /@docdir@/p
  22521. /@infodir@/p
  22522. /@localedir@/p
  22523. /@mandir@/p'
  22524. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22525. *datarootdir*) ac_datarootdir_seen=yes;;
  22526. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22528. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22529. _ACEOF
  22530. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22531. ac_datarootdir_hack='
  22532. s&@datadir@&$datadir&g
  22533. s&@docdir@&$docdir&g
  22534. s&@infodir@&$infodir&g
  22535. s&@localedir@&$localedir&g
  22536. s&@mandir@&$mandir&g
  22537. s&\\\${datarootdir}&$datarootdir&g' ;;
  22538. esac
  22539. _ACEOF
  22540. # Neutralize VPATH when `$srcdir' = `.'.
  22541. # Shell code in configure.ac might set extrasub.
  22542. # FIXME: do we really want to maintain this feature?
  22543. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22544. ac_sed_extra="$ac_vpsub
  22545. $extrasub
  22546. _ACEOF
  22547. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22548. :t
  22549. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22550. s|@configure_input@|$ac_sed_conf_input|;t t
  22551. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22552. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22553. s&@srcdir@&$ac_srcdir&;t t
  22554. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22555. s&@top_srcdir@&$ac_top_srcdir&;t t
  22556. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22557. s&@builddir@&$ac_builddir&;t t
  22558. s&@abs_builddir@&$ac_abs_builddir&;t t
  22559. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22560. s&@INSTALL@&$ac_INSTALL&;t t
  22561. $ac_datarootdir_hack
  22562. "
  22563. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22564. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22565. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22566. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22567. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22568. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22569. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22570. which seems to be undefined. Please make sure it is defined" >&5
  22571. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22572. which seems to be undefined. Please make sure it is defined" >&2;}
  22573. rm -f "$ac_tmp/stdin"
  22574. case $ac_file in
  22575. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22576. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22577. esac \
  22578. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22579. ;;
  22580. :H)
  22581. #
  22582. # CONFIG_HEADER
  22583. #
  22584. if test x"$ac_file" != x-; then
  22585. {
  22586. $as_echo "/* $configure_input */" \
  22587. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22588. } >"$ac_tmp/config.h" \
  22589. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22590. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22591. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22592. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22593. else
  22594. rm -f "$ac_file"
  22595. mv "$ac_tmp/config.h" "$ac_file" \
  22596. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22597. fi
  22598. else
  22599. $as_echo "/* $configure_input */" \
  22600. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22601. || as_fn_error $? "could not create -" "$LINENO" 5
  22602. fi
  22603. ;;
  22604. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22605. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22606. ;;
  22607. esac
  22608. case $ac_file$ac_mode in
  22609. "libtool":C)
  22610. # See if we are running on zsh, and set the options which allow our
  22611. # commands through without removal of \ escapes.
  22612. if test -n "${ZSH_VERSION+set}" ; then
  22613. setopt NO_GLOB_SUBST
  22614. fi
  22615. cfgfile="${ofile}T"
  22616. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22617. $RM "$cfgfile"
  22618. cat <<_LT_EOF >> "$cfgfile"
  22619. #! $SHELL
  22620. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22621. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22622. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22623. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22624. #
  22625. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22626. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22627. # Foundation, Inc.
  22628. # Written by Gordon Matzigkeit, 1996
  22629. #
  22630. # This file is part of GNU Libtool.
  22631. #
  22632. # GNU Libtool is free software; you can redistribute it and/or
  22633. # modify it under the terms of the GNU General Public License as
  22634. # published by the Free Software Foundation; either version 2 of
  22635. # the License, or (at your option) any later version.
  22636. #
  22637. # As a special exception to the GNU General Public License,
  22638. # if you distribute this file as part of a program or library that
  22639. # is built using GNU Libtool, you may include this file under the
  22640. # same distribution terms that you use for the rest of that program.
  22641. #
  22642. # GNU Libtool is distributed in the hope that it will be useful,
  22643. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22644. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22645. # GNU General Public License for more details.
  22646. #
  22647. # You should have received a copy of the GNU General Public License
  22648. # along with GNU Libtool; see the file COPYING. If not, a copy
  22649. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22650. # obtained by writing to the Free Software Foundation, Inc.,
  22651. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22652. # The names of the tagged configurations supported by this script.
  22653. available_tags="CXX "
  22654. # ### BEGIN LIBTOOL CONFIG
  22655. # Which release of libtool.m4 was used?
  22656. macro_version=$macro_version
  22657. macro_revision=$macro_revision
  22658. # Assembler program.
  22659. AS=$lt_AS
  22660. # DLL creation program.
  22661. DLLTOOL=$lt_DLLTOOL
  22662. # Object dumper program.
  22663. OBJDUMP=$lt_OBJDUMP
  22664. # Whether or not to build shared libraries.
  22665. build_libtool_libs=$enable_shared
  22666. # Whether or not to build static libraries.
  22667. build_old_libs=$enable_static
  22668. # What type of objects to build.
  22669. pic_mode=$pic_mode
  22670. # Whether or not to optimize for fast installation.
  22671. fast_install=$enable_fast_install
  22672. # Shell to use when invoking shell scripts.
  22673. SHELL=$lt_SHELL
  22674. # An echo program that protects backslashes.
  22675. ECHO=$lt_ECHO
  22676. # The PATH separator for the build system.
  22677. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22678. # The host system.
  22679. host_alias=$host_alias
  22680. host=$host
  22681. host_os=$host_os
  22682. # The build system.
  22683. build_alias=$build_alias
  22684. build=$build
  22685. build_os=$build_os
  22686. # A sed program that does not truncate output.
  22687. SED=$lt_SED
  22688. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22689. Xsed="\$SED -e 1s/^X//"
  22690. # A grep program that handles long lines.
  22691. GREP=$lt_GREP
  22692. # An ERE matcher.
  22693. EGREP=$lt_EGREP
  22694. # A literal string matcher.
  22695. FGREP=$lt_FGREP
  22696. # A BSD- or MS-compatible name lister.
  22697. NM=$lt_NM
  22698. # Whether we need soft or hard links.
  22699. LN_S=$lt_LN_S
  22700. # What is the maximum length of a command?
  22701. max_cmd_len=$max_cmd_len
  22702. # Object file suffix (normally "o").
  22703. objext=$ac_objext
  22704. # Executable file suffix (normally "").
  22705. exeext=$exeext
  22706. # whether the shell understands "unset".
  22707. lt_unset=$lt_unset
  22708. # turn spaces into newlines.
  22709. SP2NL=$lt_lt_SP2NL
  22710. # turn newlines into spaces.
  22711. NL2SP=$lt_lt_NL2SP
  22712. # convert \$build file names to \$host format.
  22713. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22714. # convert \$build files to toolchain format.
  22715. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22716. # Method to check whether dependent libraries are shared objects.
  22717. deplibs_check_method=$lt_deplibs_check_method
  22718. # Command to use when deplibs_check_method = "file_magic".
  22719. file_magic_cmd=$lt_file_magic_cmd
  22720. # How to find potential files when deplibs_check_method = "file_magic".
  22721. file_magic_glob=$lt_file_magic_glob
  22722. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22723. want_nocaseglob=$lt_want_nocaseglob
  22724. # Command to associate shared and link libraries.
  22725. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22726. # The archiver.
  22727. AR=$lt_AR
  22728. # Flags to create an archive.
  22729. AR_FLAGS=$lt_AR_FLAGS
  22730. # How to feed a file listing to the archiver.
  22731. archiver_list_spec=$lt_archiver_list_spec
  22732. # A symbol stripping program.
  22733. STRIP=$lt_STRIP
  22734. # Commands used to install an old-style archive.
  22735. RANLIB=$lt_RANLIB
  22736. old_postinstall_cmds=$lt_old_postinstall_cmds
  22737. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22738. # Whether to use a lock for old archive extraction.
  22739. lock_old_archive_extraction=$lock_old_archive_extraction
  22740. # A C compiler.
  22741. LTCC=$lt_CC
  22742. # LTCC compiler flags.
  22743. LTCFLAGS=$lt_CFLAGS
  22744. # Take the output of nm and produce a listing of raw symbols and C names.
  22745. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22746. # Transform the output of nm in a proper C declaration.
  22747. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22748. # Transform the output of nm in a C name address pair.
  22749. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22750. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22751. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22752. # Specify filename containing input files for \$NM.
  22753. nm_file_list_spec=$lt_nm_file_list_spec
  22754. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22755. lt_sysroot=$lt_sysroot
  22756. # The name of the directory that contains temporary libtool files.
  22757. objdir=$objdir
  22758. # Used to examine libraries when file_magic_cmd begins with "file".
  22759. MAGIC_CMD=$MAGIC_CMD
  22760. # Must we lock files when doing compilation?
  22761. need_locks=$lt_need_locks
  22762. # Manifest tool.
  22763. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22764. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22765. DSYMUTIL=$lt_DSYMUTIL
  22766. # Tool to change global to local symbols on Mac OS X.
  22767. NMEDIT=$lt_NMEDIT
  22768. # Tool to manipulate fat objects and archives on Mac OS X.
  22769. LIPO=$lt_LIPO
  22770. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22771. OTOOL=$lt_OTOOL
  22772. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22773. OTOOL64=$lt_OTOOL64
  22774. # Old archive suffix (normally "a").
  22775. libext=$libext
  22776. # Shared library suffix (normally ".so").
  22777. shrext_cmds=$lt_shrext_cmds
  22778. # The commands to extract the exported symbol list from a shared archive.
  22779. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22780. # Variables whose values should be saved in libtool wrapper scripts and
  22781. # restored at link time.
  22782. variables_saved_for_relink=$lt_variables_saved_for_relink
  22783. # Do we need the "lib" prefix for modules?
  22784. need_lib_prefix=$need_lib_prefix
  22785. # Do we need a version for libraries?
  22786. need_version=$need_version
  22787. # Library versioning type.
  22788. version_type=$version_type
  22789. # Shared library runtime path variable.
  22790. runpath_var=$runpath_var
  22791. # Shared library path variable.
  22792. shlibpath_var=$shlibpath_var
  22793. # Is shlibpath searched before the hard-coded library search path?
  22794. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22795. # Format of library name prefix.
  22796. libname_spec=$lt_libname_spec
  22797. # List of archive names. First name is the real one, the rest are links.
  22798. # The last name is the one that the linker finds with -lNAME
  22799. library_names_spec=$lt_library_names_spec
  22800. # The coded name of the library, if different from the real name.
  22801. soname_spec=$lt_soname_spec
  22802. # Permission mode override for installation of shared libraries.
  22803. install_override_mode=$lt_install_override_mode
  22804. # Command to use after installation of a shared archive.
  22805. postinstall_cmds=$lt_postinstall_cmds
  22806. # Command to use after uninstallation of a shared archive.
  22807. postuninstall_cmds=$lt_postuninstall_cmds
  22808. # Commands used to finish a libtool library installation in a directory.
  22809. finish_cmds=$lt_finish_cmds
  22810. # As "finish_cmds", except a single script fragment to be evaled but
  22811. # not shown.
  22812. finish_eval=$lt_finish_eval
  22813. # Whether we should hardcode library paths into libraries.
  22814. hardcode_into_libs=$hardcode_into_libs
  22815. # Compile-time system search path for libraries.
  22816. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22817. # Run-time system search path for libraries.
  22818. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22819. # Whether dlopen is supported.
  22820. dlopen_support=$enable_dlopen
  22821. # Whether dlopen of programs is supported.
  22822. dlopen_self=$enable_dlopen_self
  22823. # Whether dlopen of statically linked programs is supported.
  22824. dlopen_self_static=$enable_dlopen_self_static
  22825. # Commands to strip libraries.
  22826. old_striplib=$lt_old_striplib
  22827. striplib=$lt_striplib
  22828. # The linker used to build libraries.
  22829. LD=$lt_LD
  22830. # How to create reloadable object files.
  22831. reload_flag=$lt_reload_flag
  22832. reload_cmds=$lt_reload_cmds
  22833. # Commands used to build an old-style archive.
  22834. old_archive_cmds=$lt_old_archive_cmds
  22835. # A language specific compiler.
  22836. CC=$lt_compiler
  22837. # Is the compiler the GNU compiler?
  22838. with_gcc=$GCC
  22839. # Compiler flag to turn off builtin functions.
  22840. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22841. # Additional compiler flags for building library objects.
  22842. pic_flag=$lt_lt_prog_compiler_pic
  22843. # How to pass a linker flag through the compiler.
  22844. wl=$lt_lt_prog_compiler_wl
  22845. # Compiler flag to prevent dynamic linking.
  22846. link_static_flag=$lt_lt_prog_compiler_static
  22847. # Does compiler simultaneously support -c and -o options?
  22848. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22849. # Whether or not to add -lc for building shared libraries.
  22850. build_libtool_need_lc=$archive_cmds_need_lc
  22851. # Whether or not to disallow shared libs when runtime libs are static.
  22852. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22853. # Compiler flag to allow reflexive dlopens.
  22854. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22855. # Compiler flag to generate shared objects directly from archives.
  22856. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22857. # Whether the compiler copes with passing no objects directly.
  22858. compiler_needs_object=$lt_compiler_needs_object
  22859. # Create an old-style archive from a shared archive.
  22860. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22861. # Create a temporary old-style archive to link instead of a shared archive.
  22862. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22863. # Commands used to build a shared archive.
  22864. archive_cmds=$lt_archive_cmds
  22865. archive_expsym_cmds=$lt_archive_expsym_cmds
  22866. # Commands used to build a loadable module if different from building
  22867. # a shared archive.
  22868. module_cmds=$lt_module_cmds
  22869. module_expsym_cmds=$lt_module_expsym_cmds
  22870. # Whether we are building with GNU ld or not.
  22871. with_gnu_ld=$lt_with_gnu_ld
  22872. # Flag that allows shared libraries with undefined symbols to be built.
  22873. allow_undefined_flag=$lt_allow_undefined_flag
  22874. # Flag that enforces no undefined symbols.
  22875. no_undefined_flag=$lt_no_undefined_flag
  22876. # Flag to hardcode \$libdir into a binary during linking.
  22877. # This must work even if \$libdir does not exist
  22878. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22879. # Whether we need a single "-rpath" flag with a separated argument.
  22880. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22881. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22882. # DIR into the resulting binary.
  22883. hardcode_direct=$hardcode_direct
  22884. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22885. # DIR into the resulting binary and the resulting library dependency is
  22886. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22887. # library is relocated.
  22888. hardcode_direct_absolute=$hardcode_direct_absolute
  22889. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22890. # into the resulting binary.
  22891. hardcode_minus_L=$hardcode_minus_L
  22892. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22893. # into the resulting binary.
  22894. hardcode_shlibpath_var=$hardcode_shlibpath_var
  22895. # Set to "yes" if building a shared library automatically hardcodes DIR
  22896. # into the library and all subsequent libraries and executables linked
  22897. # against it.
  22898. hardcode_automatic=$hardcode_automatic
  22899. # Set to yes if linker adds runtime paths of dependent libraries
  22900. # to runtime path list.
  22901. inherit_rpath=$inherit_rpath
  22902. # Whether libtool must link a program against all its dependency libraries.
  22903. link_all_deplibs=$link_all_deplibs
  22904. # Set to "yes" if exported symbols are required.
  22905. always_export_symbols=$always_export_symbols
  22906. # The commands to list exported symbols.
  22907. export_symbols_cmds=$lt_export_symbols_cmds
  22908. # Symbols that should not be listed in the preloaded symbols.
  22909. exclude_expsyms=$lt_exclude_expsyms
  22910. # Symbols that must always be exported.
  22911. include_expsyms=$lt_include_expsyms
  22912. # Commands necessary for linking programs (against libraries) with templates.
  22913. prelink_cmds=$lt_prelink_cmds
  22914. # Commands necessary for finishing linking programs.
  22915. postlink_cmds=$lt_postlink_cmds
  22916. # Specify filename containing input files.
  22917. file_list_spec=$lt_file_list_spec
  22918. # How to hardcode a shared library path into an executable.
  22919. hardcode_action=$hardcode_action
  22920. # The directories searched by this compiler when creating a shared library.
  22921. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22922. # Dependencies to place before and after the objects being linked to
  22923. # create a shared library.
  22924. predep_objects=$lt_predep_objects
  22925. postdep_objects=$lt_postdep_objects
  22926. predeps=$lt_predeps
  22927. postdeps=$lt_postdeps
  22928. # The library search path used internally by the compiler when linking
  22929. # a shared library.
  22930. compiler_lib_search_path=$lt_compiler_lib_search_path
  22931. # ### END LIBTOOL CONFIG
  22932. _LT_EOF
  22933. case $host_os in
  22934. aix3*)
  22935. cat <<\_LT_EOF >> "$cfgfile"
  22936. # AIX sometimes has problems with the GCC collect2 program. For some
  22937. # reason, if we set the COLLECT_NAMES environment variable, the problems
  22938. # vanish in a puff of smoke.
  22939. if test "X${COLLECT_NAMES+set}" != Xset; then
  22940. COLLECT_NAMES=
  22941. export COLLECT_NAMES
  22942. fi
  22943. _LT_EOF
  22944. ;;
  22945. esac
  22946. ltmain="$ac_aux_dir/ltmain.sh"
  22947. # We use sed instead of cat because bash on DJGPP gets confused if
  22948. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22949. # text mode, it properly converts lines to CR/LF. This bash problem
  22950. # is reportedly fixed, but why not run on old versions too?
  22951. sed '$q' "$ltmain" >> "$cfgfile" \
  22952. || (rm -f "$cfgfile"; exit 1)
  22953. if test x"$xsi_shell" = xyes; then
  22954. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  22955. func_dirname ()\
  22956. {\
  22957. \ case ${1} in\
  22958. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22959. \ * ) func_dirname_result="${3}" ;;\
  22960. \ esac\
  22961. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  22962. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22963. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22964. test 0 -eq $? || _lt_function_replace_fail=:
  22965. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  22966. func_basename ()\
  22967. {\
  22968. \ func_basename_result="${1##*/}"\
  22969. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22970. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22971. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22972. test 0 -eq $? || _lt_function_replace_fail=:
  22973. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  22974. func_dirname_and_basename ()\
  22975. {\
  22976. \ case ${1} in\
  22977. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22978. \ * ) func_dirname_result="${3}" ;;\
  22979. \ esac\
  22980. \ func_basename_result="${1##*/}"\
  22981. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22982. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22983. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22984. test 0 -eq $? || _lt_function_replace_fail=:
  22985. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  22986. func_stripname ()\
  22987. {\
  22988. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  22989. \ # positional parameters, so assign one to ordinary parameter first.\
  22990. \ func_stripname_result=${3}\
  22991. \ func_stripname_result=${func_stripname_result#"${1}"}\
  22992. \ func_stripname_result=${func_stripname_result%"${2}"}\
  22993. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22994. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22995. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22996. test 0 -eq $? || _lt_function_replace_fail=:
  22997. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22998. func_split_long_opt ()\
  22999. {\
  23000. \ func_split_long_opt_name=${1%%=*}\
  23001. \ func_split_long_opt_arg=${1#*=}\
  23002. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23003. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23004. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23005. test 0 -eq $? || _lt_function_replace_fail=:
  23006. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23007. func_split_short_opt ()\
  23008. {\
  23009. \ func_split_short_opt_arg=${1#??}\
  23010. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23011. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23012. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23013. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23014. test 0 -eq $? || _lt_function_replace_fail=:
  23015. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23016. func_lo2o ()\
  23017. {\
  23018. \ case ${1} in\
  23019. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23020. \ *) func_lo2o_result=${1} ;;\
  23021. \ esac\
  23022. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23023. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23024. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23025. test 0 -eq $? || _lt_function_replace_fail=:
  23026. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23027. func_xform ()\
  23028. {\
  23029. func_xform_result=${1%.*}.lo\
  23030. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23031. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23032. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23033. test 0 -eq $? || _lt_function_replace_fail=:
  23034. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23035. func_arith ()\
  23036. {\
  23037. func_arith_result=$(( $* ))\
  23038. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23039. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23040. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23041. test 0 -eq $? || _lt_function_replace_fail=:
  23042. sed -e '/^func_len ()$/,/^} # func_len /c\
  23043. func_len ()\
  23044. {\
  23045. func_len_result=${#1}\
  23046. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23047. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23048. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23049. test 0 -eq $? || _lt_function_replace_fail=:
  23050. fi
  23051. if test x"$lt_shell_append" = xyes; then
  23052. sed -e '/^func_append ()$/,/^} # func_append /c\
  23053. func_append ()\
  23054. {\
  23055. eval "${1}+=\\${2}"\
  23056. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23057. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23058. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23059. test 0 -eq $? || _lt_function_replace_fail=:
  23060. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23061. func_append_quoted ()\
  23062. {\
  23063. \ func_quote_for_eval "${2}"\
  23064. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23065. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23066. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23067. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23068. test 0 -eq $? || _lt_function_replace_fail=:
  23069. # Save a `func_append' function call where possible by direct use of '+='
  23070. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  23071. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23072. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23073. test 0 -eq $? || _lt_function_replace_fail=:
  23074. else
  23075. # Save a `func_append' function call even when '+=' is not available
  23076. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23077. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23078. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23079. test 0 -eq $? || _lt_function_replace_fail=:
  23080. fi
  23081. if test x"$_lt_function_replace_fail" = x":"; then
  23082. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23083. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23084. fi
  23085. mv -f "$cfgfile" "$ofile" ||
  23086. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23087. chmod +x "$ofile"
  23088. cat <<_LT_EOF >> "$ofile"
  23089. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23090. # The linker used to build libraries.
  23091. LD=$lt_LD_CXX
  23092. # How to create reloadable object files.
  23093. reload_flag=$lt_reload_flag_CXX
  23094. reload_cmds=$lt_reload_cmds_CXX
  23095. # Commands used to build an old-style archive.
  23096. old_archive_cmds=$lt_old_archive_cmds_CXX
  23097. # A language specific compiler.
  23098. CC=$lt_compiler_CXX
  23099. # Is the compiler the GNU compiler?
  23100. with_gcc=$GCC_CXX
  23101. # Compiler flag to turn off builtin functions.
  23102. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23103. # Additional compiler flags for building library objects.
  23104. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23105. # How to pass a linker flag through the compiler.
  23106. wl=$lt_lt_prog_compiler_wl_CXX
  23107. # Compiler flag to prevent dynamic linking.
  23108. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23109. # Does compiler simultaneously support -c and -o options?
  23110. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23111. # Whether or not to add -lc for building shared libraries.
  23112. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23113. # Whether or not to disallow shared libs when runtime libs are static.
  23114. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23115. # Compiler flag to allow reflexive dlopens.
  23116. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23117. # Compiler flag to generate shared objects directly from archives.
  23118. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23119. # Whether the compiler copes with passing no objects directly.
  23120. compiler_needs_object=$lt_compiler_needs_object_CXX
  23121. # Create an old-style archive from a shared archive.
  23122. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23123. # Create a temporary old-style archive to link instead of a shared archive.
  23124. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23125. # Commands used to build a shared archive.
  23126. archive_cmds=$lt_archive_cmds_CXX
  23127. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23128. # Commands used to build a loadable module if different from building
  23129. # a shared archive.
  23130. module_cmds=$lt_module_cmds_CXX
  23131. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23132. # Whether we are building with GNU ld or not.
  23133. with_gnu_ld=$lt_with_gnu_ld_CXX
  23134. # Flag that allows shared libraries with undefined symbols to be built.
  23135. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23136. # Flag that enforces no undefined symbols.
  23137. no_undefined_flag=$lt_no_undefined_flag_CXX
  23138. # Flag to hardcode \$libdir into a binary during linking.
  23139. # This must work even if \$libdir does not exist
  23140. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23141. # Whether we need a single "-rpath" flag with a separated argument.
  23142. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23143. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23144. # DIR into the resulting binary.
  23145. hardcode_direct=$hardcode_direct_CXX
  23146. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23147. # DIR into the resulting binary and the resulting library dependency is
  23148. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23149. # library is relocated.
  23150. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23151. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23152. # into the resulting binary.
  23153. hardcode_minus_L=$hardcode_minus_L_CXX
  23154. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23155. # into the resulting binary.
  23156. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23157. # Set to "yes" if building a shared library automatically hardcodes DIR
  23158. # into the library and all subsequent libraries and executables linked
  23159. # against it.
  23160. hardcode_automatic=$hardcode_automatic_CXX
  23161. # Set to yes if linker adds runtime paths of dependent libraries
  23162. # to runtime path list.
  23163. inherit_rpath=$inherit_rpath_CXX
  23164. # Whether libtool must link a program against all its dependency libraries.
  23165. link_all_deplibs=$link_all_deplibs_CXX
  23166. # Set to "yes" if exported symbols are required.
  23167. always_export_symbols=$always_export_symbols_CXX
  23168. # The commands to list exported symbols.
  23169. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23170. # Symbols that should not be listed in the preloaded symbols.
  23171. exclude_expsyms=$lt_exclude_expsyms_CXX
  23172. # Symbols that must always be exported.
  23173. include_expsyms=$lt_include_expsyms_CXX
  23174. # Commands necessary for linking programs (against libraries) with templates.
  23175. prelink_cmds=$lt_prelink_cmds_CXX
  23176. # Commands necessary for finishing linking programs.
  23177. postlink_cmds=$lt_postlink_cmds_CXX
  23178. # Specify filename containing input files.
  23179. file_list_spec=$lt_file_list_spec_CXX
  23180. # How to hardcode a shared library path into an executable.
  23181. hardcode_action=$hardcode_action_CXX
  23182. # The directories searched by this compiler when creating a shared library.
  23183. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23184. # Dependencies to place before and after the objects being linked to
  23185. # create a shared library.
  23186. predep_objects=$lt_predep_objects_CXX
  23187. postdep_objects=$lt_postdep_objects_CXX
  23188. predeps=$lt_predeps_CXX
  23189. postdeps=$lt_postdeps_CXX
  23190. # The library search path used internally by the compiler when linking
  23191. # a shared library.
  23192. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23193. # ### END LIBTOOL TAG CONFIG: CXX
  23194. _LT_EOF
  23195. ;;
  23196. "sdl2_config":C) chmod a+x sdl2-config ;;
  23197. "summary":C) echo -en "$SUMMARY" ;;
  23198. esac
  23199. done # for ac_tag
  23200. as_fn_exit 0
  23201. _ACEOF
  23202. ac_clean_files=$ac_clean_files_save
  23203. test $ac_write_fail = 0 ||
  23204. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23205. # configure is writing to config.log, and then calls config.status.
  23206. # config.status does its own redirection, appending to config.log.
  23207. # Unfortunately, on DOS this fails, as config.log is still kept open
  23208. # by configure, so config.status won't be able to write to it; its
  23209. # output is simply discarded. So we exec the FD to /dev/null,
  23210. # effectively closing config.log, so it can be properly (re)opened and
  23211. # appended to by config.status. When coming back to configure, we
  23212. # need to make the FD available again.
  23213. if test "$no_create" != yes; then
  23214. ac_cs_success=:
  23215. ac_config_status_args=
  23216. test "$silent" = yes &&
  23217. ac_config_status_args="$ac_config_status_args --quiet"
  23218. exec 5>/dev/null
  23219. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23220. exec 5>>config.log
  23221. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23222. # would make configure fail if this is the last instruction.
  23223. $ac_cs_success || as_fn_exit 1
  23224. fi
  23225. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23226. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23227. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23228. fi